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 | */ |
| 20 | |
| 21 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 22 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 23 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 24 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 25 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 26 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 27 | * |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 28 | * Temporarily, this file is sorted alphabetically by vendor and name to |
| 29 | * assist with merging the Chromium fork of flashrom. |
| 30 | * |
| 31 | * The usual intention is that that this list is sorted by vendor, then chip |
| 32 | * family and chip density, which is useful for the output of 'flashrom -L'. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 33 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 34 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 35 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 36 | /* |
| 37 | * .vendor = Vendor name |
| 38 | * .name = Chip name |
| 39 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 40 | * .manufacture_id = Manufacturer chip ID |
| 41 | * .model_id = Model chip ID |
| 42 | * .total_size = Total size in (binary) kbytes |
| 43 | * .page_size = Page or eraseblock(?) size in bytes |
| 44 | * .tested = Test status |
| 45 | * .probe = Probe function |
| 46 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 47 | * .block_erasers[] = Array of erase layouts and erase functions |
| 48 | * { |
| 49 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 50 | * .block_erase = Block erase function |
| 51 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 52 | * .printlock = Chip lock status function |
| 53 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 54 | * .write = Chip write function |
| 55 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 56 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 57 | */ |
| 58 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 59 | { |
| 60 | .vendor = "AMD", |
| 61 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 62 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 63 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 64 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 65 | .total_size = 256, |
| 66 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 67 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 68 | .tested = TEST_UNTESTED, |
| 69 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 70 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 71 | .block_erasers = |
| 72 | { |
| 73 | { |
| 74 | .eraseblocks = { |
| 75 | {16 * 1024, 1}, |
| 76 | {8 * 1024, 2}, |
| 77 | {32 * 1024, 1}, |
| 78 | {64 * 1024, 3}, |
| 79 | }, |
| 80 | .block_erase = erase_sector_jedec, |
| 81 | }, { |
| 82 | .eraseblocks = { {256 * 1024, 1} }, |
| 83 | .block_erase = erase_chip_block_jedec, |
| 84 | }, |
| 85 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 86 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 87 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 88 | .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] | 89 | }, |
| 90 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 91 | { |
| 92 | .vendor = "AMD", |
| 93 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 94 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 95 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 96 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 97 | .total_size = 256, |
| 98 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 99 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 100 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 101 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 102 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 103 | .block_erasers = |
| 104 | { |
| 105 | { |
| 106 | .eraseblocks = { |
| 107 | {64 * 1024, 3}, |
| 108 | {32 * 1024, 1}, |
| 109 | {8 * 1024, 2}, |
| 110 | {16 * 1024, 1}, |
| 111 | }, |
| 112 | .block_erase = erase_sector_jedec, |
| 113 | }, { |
| 114 | .eraseblocks = { {256 * 1024, 1} }, |
| 115 | .block_erase = erase_chip_block_jedec, |
| 116 | }, |
| 117 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 118 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 119 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 120 | .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] | 121 | }, |
| 122 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | { |
| 124 | .vendor = "AMD", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 125 | .name = "Am29F010", |
| 126 | .bustype = BUS_PARALLEL, |
| 127 | .manufacture_id = AMD_ID, |
| 128 | .model_id = AMD_AM29F010, |
| 129 | .total_size = 128, |
| 130 | .page_size = 16 * 1024, |
| 131 | .feature_bits = FEATURE_SHORT_RESET, |
| 132 | .tested = TEST_UNTESTED, |
| 133 | .probe = probe_jedec, |
| 134 | .probe_timing = TIMING_ZERO, |
| 135 | .block_erasers = |
| 136 | { |
| 137 | { |
| 138 | .eraseblocks = { {16 * 1024, 8} }, |
| 139 | .block_erase = erase_sector_jedec, |
| 140 | }, { |
| 141 | .eraseblocks = { {128 * 1024, 1} }, |
| 142 | .block_erase = erase_chip_block_jedec, |
| 143 | }, |
| 144 | }, |
| 145 | .write = write_jedec_1, |
| 146 | .read = read_memmapped, |
| 147 | .voltage = {4500, 5500}, |
| 148 | }, |
| 149 | |
| 150 | { |
| 151 | .vendor = "AMD", |
| 152 | .name = "Am29F010A/B", |
| 153 | .bustype = BUS_PARALLEL, |
| 154 | .manufacture_id = AMD_ID, |
| 155 | .model_id = AMD_AM29F010, |
| 156 | .total_size = 128, |
| 157 | .page_size = 16 * 1024, |
| 158 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Alan Green | a4e579f | 2019-07-24 14:18:39 +1000 | [diff] [blame] | 159 | .tested = TEST_OK_PRE, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 160 | .probe = probe_jedec, |
| 161 | .probe_timing = TIMING_ZERO, |
| 162 | .block_erasers = |
| 163 | { |
| 164 | { |
| 165 | .eraseblocks = { {16 * 1024, 8} }, |
| 166 | .block_erase = erase_sector_jedec, |
| 167 | }, { |
| 168 | .eraseblocks = { {128 * 1024, 1} }, |
| 169 | .block_erase = erase_chip_block_jedec, |
| 170 | }, |
| 171 | }, |
| 172 | .write = write_jedec_1, |
| 173 | .read = read_memmapped, |
| 174 | .voltage = {4500, 5500}, |
| 175 | }, |
| 176 | |
| 177 | { |
| 178 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 179 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 180 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 181 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 182 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 183 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 184 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 185 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 186 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 187 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 188 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 189 | .block_erasers = |
| 190 | { |
| 191 | { |
| 192 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 193 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 194 | }, { |
| 195 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 196 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 197 | }, |
| 198 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 199 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 200 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 201 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 202 | }, |
| 203 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 204 | { |
| 205 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 206 | .name = "Am29F040", |
| 207 | .bustype = BUS_PARALLEL, |
| 208 | .manufacture_id = AMD_ID, |
| 209 | .model_id = AMD_AM29F040, |
| 210 | .total_size = 512, |
| 211 | .page_size = 64 * 1024, |
| 212 | .feature_bits = FEATURE_EITHER_RESET, |
| 213 | .tested = TEST_UNTESTED, |
| 214 | .probe = probe_jedec, |
| 215 | .probe_timing = TIMING_ZERO, |
| 216 | .block_erasers = |
| 217 | { |
| 218 | { |
| 219 | .eraseblocks = { {64 * 1024, 8} }, |
| 220 | .block_erase = erase_sector_jedec, |
| 221 | }, { |
| 222 | .eraseblocks = { {512 * 1024, 1} }, |
| 223 | .block_erase = erase_chip_block_jedec, |
| 224 | }, |
| 225 | }, |
| 226 | .write = write_jedec_1, |
| 227 | .read = read_memmapped, |
| 228 | .voltage = {4500, 5500}, |
| 229 | }, |
| 230 | |
| 231 | { |
| 232 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 233 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 234 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 235 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 236 | .model_id = AMD_AM29F040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 237 | .total_size = 512, |
| 238 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 239 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 240 | .tested = TEST_UNTESTED, |
| 241 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 242 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 243 | .block_erasers = |
| 244 | { |
| 245 | { |
| 246 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 247 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 248 | }, { |
| 249 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 250 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 251 | }, |
| 252 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 253 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 254 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 255 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 256 | }, |
| 257 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 258 | { |
| 259 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 260 | .name = "Am29F080", |
| 261 | .bustype = BUS_PARALLEL, |
| 262 | .manufacture_id = AMD_ID, |
| 263 | .model_id = AMD_AM29F080, |
| 264 | .total_size = 1024, |
| 265 | .page_size = 64 * 1024, |
| 266 | .feature_bits = FEATURE_EITHER_RESET, |
| 267 | .tested = TEST_UNTESTED, |
| 268 | .probe = probe_jedec, |
| 269 | .probe_timing = TIMING_ZERO, |
| 270 | .block_erasers = |
| 271 | { |
| 272 | { |
| 273 | .eraseblocks = { {64 * 1024, 16} }, |
| 274 | .block_erase = erase_sector_jedec, |
| 275 | }, { |
| 276 | .eraseblocks = { {1024 * 1024, 1} }, |
| 277 | .block_erase = erase_chip_block_jedec, |
| 278 | }, |
| 279 | }, |
| 280 | .write = write_jedec_1, |
| 281 | .read = read_memmapped, |
| 282 | .voltage = {4500, 5500}, |
| 283 | }, |
| 284 | |
| 285 | { |
| 286 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 287 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 288 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 289 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 290 | .model_id = AMD_AM29F080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 291 | .total_size = 1024, |
| 292 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 293 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 294 | .tested = TEST_UNTESTED, |
| 295 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 296 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 297 | .block_erasers = |
| 298 | { |
| 299 | { |
| 300 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 301 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 302 | }, { |
| 303 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 304 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 305 | }, |
| 306 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 307 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 308 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 309 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 310 | }, |
| 311 | |
| 312 | { |
| 313 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 314 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 315 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 316 | .manufacture_id = AMD_ID, |
| 317 | .model_id = AMD_AM29LV001BB, |
| 318 | .total_size = 128, |
| 319 | .page_size = 64 * 1024, /* unused */ |
| 320 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 321 | .tested = TEST_OK_PREW, |
| 322 | .probe = probe_jedec, |
| 323 | .probe_timing = TIMING_ZERO, |
| 324 | .block_erasers = |
| 325 | { |
| 326 | { |
| 327 | .eraseblocks = { |
| 328 | {8 * 1024, 1}, |
| 329 | {4 * 1024, 2}, |
| 330 | {16 * 1024, 7}, |
| 331 | }, |
| 332 | .block_erase = erase_sector_jedec, |
| 333 | }, { |
| 334 | .eraseblocks = { {128 * 1024, 1} }, |
| 335 | .block_erase = erase_chip_block_jedec, |
| 336 | }, |
| 337 | }, |
| 338 | .write = write_jedec_1, |
| 339 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 340 | .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] | 341 | }, |
| 342 | |
| 343 | { |
| 344 | .vendor = "AMD", |
| 345 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 346 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 347 | .manufacture_id = AMD_ID, |
| 348 | .model_id = AMD_AM29LV001BT, |
| 349 | .total_size = 128, |
| 350 | .page_size = 64 * 1024, /* unused */ |
| 351 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 352 | .tested = TEST_UNTESTED, |
| 353 | .probe = probe_jedec, |
| 354 | .probe_timing = TIMING_ZERO, |
| 355 | .block_erasers = |
| 356 | { |
| 357 | { |
| 358 | .eraseblocks = { |
| 359 | {16 * 1024, 7}, |
| 360 | {4 * 1024, 2}, |
| 361 | {8 * 1024, 1}, |
| 362 | }, |
| 363 | .block_erase = erase_sector_jedec, |
| 364 | }, { |
| 365 | .eraseblocks = { {128 * 1024, 1} }, |
| 366 | .block_erase = erase_chip_block_jedec, |
| 367 | }, |
| 368 | }, |
| 369 | .write = write_jedec_1, |
| 370 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 371 | .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] | 372 | }, |
| 373 | |
| 374 | { |
| 375 | .vendor = "AMD", |
| 376 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 377 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 378 | .manufacture_id = AMD_ID, |
| 379 | .model_id = AMD_AM29LV002BB, |
| 380 | .total_size = 256, |
| 381 | .page_size = 64 * 1024, /* unused */ |
| 382 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 383 | .tested = TEST_UNTESTED, |
| 384 | .probe = probe_jedec, |
| 385 | .probe_timing = TIMING_ZERO, |
| 386 | .block_erasers = |
| 387 | { |
| 388 | { |
| 389 | .eraseblocks = { |
| 390 | {16 * 1024, 1}, |
| 391 | {8 * 1024, 2}, |
| 392 | {32 * 1024, 1}, |
| 393 | {64 * 1024, 3}, |
| 394 | }, |
| 395 | .block_erase = erase_sector_jedec, |
| 396 | }, { |
| 397 | .eraseblocks = { {256 * 1024, 1} }, |
| 398 | .block_erase = erase_chip_block_jedec, |
| 399 | }, |
| 400 | }, |
| 401 | .write = write_jedec_1, |
| 402 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 403 | .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] | 404 | }, |
| 405 | |
| 406 | { |
| 407 | .vendor = "AMD", |
| 408 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 409 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 410 | .manufacture_id = AMD_ID, |
| 411 | .model_id = AMD_AM29LV002BT, |
| 412 | .total_size = 256, |
| 413 | .page_size = 64 * 1024, /* unused */ |
| 414 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 415 | .tested = TEST_UNTESTED, |
| 416 | .probe = probe_jedec, |
| 417 | .probe_timing = TIMING_ZERO, |
| 418 | .block_erasers = |
| 419 | { |
| 420 | { |
| 421 | .eraseblocks = { |
| 422 | {64 * 1024, 3}, |
| 423 | {32 * 1024, 1}, |
| 424 | {8 * 1024, 2}, |
| 425 | {16 * 1024, 1}, |
| 426 | }, |
| 427 | .block_erase = erase_sector_jedec, |
| 428 | }, { |
| 429 | .eraseblocks = { {256 * 1024, 1} }, |
| 430 | .block_erase = erase_chip_block_jedec, |
| 431 | }, |
| 432 | }, |
| 433 | .write = write_jedec_1, |
| 434 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 435 | .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] | 436 | }, |
| 437 | |
| 438 | { |
| 439 | .vendor = "AMD", |
| 440 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 441 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 442 | .manufacture_id = AMD_ID, |
| 443 | .model_id = AMD_AM29LV004BB, |
| 444 | .total_size = 512, |
| 445 | .page_size = 64 * 1024, /* unused */ |
| 446 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 447 | .tested = TEST_UNTESTED, |
| 448 | .probe = probe_jedec, |
| 449 | .probe_timing = TIMING_ZERO, |
| 450 | .block_erasers = |
| 451 | { |
| 452 | { |
| 453 | .eraseblocks = { |
| 454 | {16 * 1024, 1}, |
| 455 | {8 * 1024, 2}, |
| 456 | {32 * 1024, 1}, |
| 457 | {64 * 1024, 7}, |
| 458 | }, |
| 459 | .block_erase = erase_sector_jedec, |
| 460 | }, { |
| 461 | .eraseblocks = { {512 * 1024, 1} }, |
| 462 | .block_erase = erase_chip_block_jedec, |
| 463 | }, |
| 464 | }, |
| 465 | .write = write_jedec_1, |
| 466 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 467 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 468 | }, |
| 469 | |
| 470 | { |
| 471 | .vendor = "AMD", |
| 472 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 473 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 474 | .manufacture_id = AMD_ID, |
| 475 | .model_id = AMD_AM29LV004BT, |
| 476 | .total_size = 512, |
| 477 | .page_size = 64 * 1024, /* unused */ |
| 478 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 479 | .tested = TEST_UNTESTED, |
| 480 | .probe = probe_jedec, |
| 481 | .probe_timing = TIMING_ZERO, |
| 482 | .block_erasers = |
| 483 | { |
| 484 | { |
| 485 | .eraseblocks = { |
| 486 | {64 * 1024, 7}, |
| 487 | {32 * 1024, 1}, |
| 488 | {8 * 1024, 2}, |
| 489 | {16 * 1024, 1}, |
| 490 | }, |
| 491 | .block_erase = erase_sector_jedec, |
| 492 | }, { |
| 493 | .eraseblocks = { {512 * 1024, 1} }, |
| 494 | .block_erase = erase_chip_block_jedec, |
| 495 | }, |
| 496 | }, |
| 497 | .write = write_jedec_1, |
| 498 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 499 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 500 | }, |
| 501 | |
| 502 | { |
| 503 | .vendor = "AMD", |
| 504 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 505 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 506 | .manufacture_id = AMD_ID, |
| 507 | .model_id = AMD_AM29LV008BB, |
| 508 | .total_size = 1024, |
| 509 | .page_size = 64 * 1024, /* unused */ |
| 510 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 511 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 512 | .probe = probe_jedec, |
| 513 | .probe_timing = TIMING_ZERO, |
| 514 | .block_erasers = |
| 515 | { |
| 516 | { |
| 517 | .eraseblocks = { |
| 518 | {16 * 1024, 1}, |
| 519 | {8 * 1024, 2}, |
| 520 | {32 * 1024, 1}, |
| 521 | {64 * 1024, 15}, |
| 522 | }, |
| 523 | .block_erase = erase_sector_jedec, |
| 524 | }, { |
| 525 | .eraseblocks = { {1024 * 1024, 1} }, |
| 526 | .block_erase = erase_chip_block_jedec, |
| 527 | }, |
| 528 | }, |
| 529 | .write = write_jedec_1, |
| 530 | .read = read_memmapped, |
Alan Green | f5ad688 | 2019-06-27 12:09:13 +1000 | [diff] [blame] | 531 | .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] | 532 | }, |
| 533 | |
| 534 | { |
| 535 | .vendor = "AMD", |
| 536 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 537 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 538 | .manufacture_id = AMD_ID, |
| 539 | .model_id = AMD_AM29LV008BT, |
| 540 | .total_size = 1024, |
| 541 | .page_size = 64 * 1024, /* unused */ |
| 542 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 543 | .tested = TEST_UNTESTED, |
| 544 | .probe = probe_jedec, |
| 545 | .probe_timing = TIMING_ZERO, |
| 546 | .block_erasers = |
| 547 | { |
| 548 | { |
| 549 | .eraseblocks = { |
| 550 | {64 * 1024, 15}, |
| 551 | {32 * 1024, 1}, |
| 552 | {8 * 1024, 2}, |
| 553 | {16 * 1024, 1}, |
| 554 | }, |
| 555 | .block_erase = erase_sector_jedec, |
| 556 | }, { |
| 557 | .eraseblocks = { {1024 * 1024, 1} }, |
| 558 | .block_erase = erase_chip_block_jedec, |
| 559 | }, |
| 560 | }, |
| 561 | .write = write_jedec_1, |
| 562 | .read = read_memmapped, |
Alan Green | f5ad688 | 2019-06-27 12:09:13 +1000 | [diff] [blame] | 563 | .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] | 564 | }, |
| 565 | |
| 566 | { |
| 567 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 568 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 569 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 570 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 571 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 572 | .total_size = 512, |
| 573 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 574 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 575 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 576 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 577 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 578 | .block_erasers = |
| 579 | { |
| 580 | { |
| 581 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 582 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 583 | }, { |
| 584 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 585 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 586 | }, |
| 587 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 588 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 589 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 590 | .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] | 591 | }, |
| 592 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 593 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 594 | .vendor = "AMD", |
| 595 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 596 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 597 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 598 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 599 | .total_size = 1024, |
| 600 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 601 | .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] | 602 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 603 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 604 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 605 | .block_erasers = |
| 606 | { |
| 607 | { |
| 608 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 609 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 610 | }, { |
| 611 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 612 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 613 | }, |
| 614 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 615 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 616 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 617 | .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] | 618 | }, |
| 619 | |
| 620 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 621 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 622 | .name = "A25L010", |
| 623 | .bustype = BUS_SPI, |
| 624 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 625 | .model_id = AMIC_A25L010, |
| 626 | .total_size = 128, |
| 627 | .page_size = 256, |
| 628 | .feature_bits = FEATURE_WRSR_WREN, |
| 629 | .tested = TEST_UNTESTED, |
| 630 | .probe = probe_spi_rdid, |
| 631 | .probe_timing = TIMING_ZERO, |
| 632 | .block_erasers = |
| 633 | { |
| 634 | { |
| 635 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 636 | .block_erase = spi_block_erase_20, |
| 637 | }, { |
| 638 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 639 | .block_erase = spi_block_erase_d8, |
| 640 | }, { |
| 641 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 642 | .block_erase = spi_block_erase_c7, |
| 643 | } |
| 644 | }, |
| 645 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 646 | .unlock = spi_disable_blockprotect, |
| 647 | .write = spi_chip_write_256, |
| 648 | .read = spi_chip_read, |
| 649 | .voltage = {2700, 3600}, |
| 650 | }, |
| 651 | |
| 652 | { |
| 653 | .vendor = "AMIC", |
| 654 | .name = "A25L016", |
| 655 | .bustype = BUS_SPI, |
| 656 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 657 | .model_id = AMIC_A25L016, |
| 658 | .total_size = 2048, |
| 659 | .page_size = 256, |
| 660 | .feature_bits = FEATURE_WRSR_WREN, |
| 661 | .tested = TEST_UNTESTED, |
| 662 | .probe = probe_spi_rdid, |
| 663 | .probe_timing = TIMING_ZERO, |
| 664 | .block_erasers = |
| 665 | { |
| 666 | { |
| 667 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 668 | .block_erase = spi_block_erase_20, |
| 669 | }, { |
| 670 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 671 | .block_erase = spi_block_erase_d8, |
| 672 | }, { |
| 673 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 674 | .block_erase = spi_block_erase_c7, |
| 675 | } |
| 676 | }, |
| 677 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 678 | .unlock = spi_disable_blockprotect, |
| 679 | .write = spi_chip_write_256, |
| 680 | .read = spi_chip_read, |
| 681 | .voltage = {2700, 3600}, |
| 682 | }, |
| 683 | |
| 684 | { |
| 685 | .vendor = "AMIC", |
| 686 | .name = "A25L020", |
| 687 | .bustype = BUS_SPI, |
| 688 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 689 | .model_id = AMIC_A25L020, |
| 690 | .total_size = 256, |
| 691 | .page_size = 256, |
| 692 | .feature_bits = FEATURE_WRSR_WREN, |
| 693 | .tested = TEST_UNTESTED, |
| 694 | .probe = probe_spi_rdid, |
| 695 | .probe_timing = TIMING_ZERO, |
| 696 | .block_erasers = |
| 697 | { |
| 698 | { |
| 699 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 700 | .block_erase = spi_block_erase_20, |
| 701 | }, { |
| 702 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 703 | .block_erase = spi_block_erase_d8, |
| 704 | }, { |
| 705 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 706 | .block_erase = spi_block_erase_c7, |
| 707 | } |
| 708 | }, |
| 709 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 710 | .unlock = spi_disable_blockprotect, |
| 711 | .write = spi_chip_write_256, |
| 712 | .read = spi_chip_read, |
| 713 | .voltage = {2700, 3600}, |
| 714 | }, |
| 715 | |
| 716 | { |
| 717 | .vendor = "AMIC", |
| 718 | .name = "A25L032", |
| 719 | .bustype = BUS_SPI, |
| 720 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 721 | .model_id = AMIC_A25L032, |
| 722 | .total_size = 4096, |
| 723 | .page_size = 256, |
| 724 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 725 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 726 | .tested = TEST_OK_PREW, |
| 727 | .probe = probe_spi_rdid, |
| 728 | .probe_timing = TIMING_ZERO, |
| 729 | .block_erasers = |
| 730 | { |
| 731 | { |
| 732 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 733 | .block_erase = spi_block_erase_20, |
| 734 | }, { |
| 735 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 736 | .block_erase = spi_block_erase_52, |
| 737 | }, { |
| 738 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 739 | .block_erase = spi_block_erase_d8, |
| 740 | }, { |
| 741 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 742 | .block_erase = spi_block_erase_60, |
| 743 | }, { |
| 744 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 745 | .block_erase = spi_block_erase_c7, |
| 746 | } |
| 747 | }, |
| 748 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 749 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 750 | .write = spi_chip_write_256, |
| 751 | .read = spi_chip_read, |
| 752 | .voltage = {2700, 3600}, |
| 753 | }, |
| 754 | |
| 755 | { |
| 756 | .vendor = "AMIC", |
| 757 | .name = "A25L040", |
| 758 | .bustype = BUS_SPI, |
| 759 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 760 | .model_id = AMIC_A25L040, |
| 761 | .total_size = 512, |
| 762 | .page_size = 256, |
| 763 | .feature_bits = FEATURE_WRSR_WREN, |
| 764 | .tested = TEST_UNTESTED, |
| 765 | .probe = probe_spi_rdid, |
| 766 | .probe_timing = TIMING_ZERO, |
| 767 | .block_erasers = |
| 768 | { |
| 769 | { |
| 770 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 771 | .block_erase = spi_block_erase_20, |
| 772 | }, { |
| 773 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 774 | .block_erase = spi_block_erase_d8, |
| 775 | }, { |
| 776 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 777 | .block_erase = spi_block_erase_c7, |
| 778 | } |
| 779 | }, |
| 780 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 781 | .unlock = spi_disable_blockprotect, |
| 782 | .write = spi_chip_write_256, |
| 783 | .read = spi_chip_read, |
| 784 | .voltage = {2700, 3600}, |
| 785 | }, |
| 786 | |
| 787 | { |
| 788 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 789 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 790 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 791 | .manufacture_id = AMIC_ID, |
| 792 | .model_id = AMIC_A25L05PT, |
| 793 | .total_size = 64, |
| 794 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 795 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 796 | .tested = TEST_UNTESTED, |
| 797 | .probe = probe_spi_rdid4, |
| 798 | .probe_timing = TIMING_ZERO, |
| 799 | .block_erasers = |
| 800 | { |
| 801 | { |
| 802 | .eraseblocks = { |
| 803 | {32 * 1024, 1}, |
| 804 | {16 * 1024, 1}, |
| 805 | {8 * 1024, 1}, |
| 806 | {4 * 1024, 2}, |
| 807 | }, |
| 808 | .block_erase = spi_block_erase_d8, |
| 809 | }, { |
| 810 | .eraseblocks = { {64 * 1024, 1} }, |
| 811 | .block_erase = spi_block_erase_c7, |
| 812 | } |
| 813 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 814 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 815 | .unlock = spi_disable_blockprotect, |
| 816 | .write = spi_chip_write_256, |
| 817 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 818 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 819 | }, |
| 820 | |
| 821 | { |
| 822 | .vendor = "AMIC", |
| 823 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 824 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 825 | .manufacture_id = AMIC_ID, |
| 826 | .model_id = AMIC_A25L05PU, |
| 827 | .total_size = 64, |
| 828 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 829 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 830 | .tested = TEST_UNTESTED, |
| 831 | .probe = probe_spi_rdid4, |
| 832 | .probe_timing = TIMING_ZERO, |
| 833 | .block_erasers = |
| 834 | { |
| 835 | { |
| 836 | .eraseblocks = { |
| 837 | {4 * 1024, 2}, |
| 838 | {8 * 1024, 1}, |
| 839 | {16 * 1024, 1}, |
| 840 | {32 * 1024, 1}, |
| 841 | }, |
| 842 | .block_erase = spi_block_erase_d8, |
| 843 | }, { |
| 844 | .eraseblocks = { {64 * 1024, 1} }, |
| 845 | .block_erase = spi_block_erase_c7, |
| 846 | } |
| 847 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 848 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 849 | .unlock = spi_disable_blockprotect, |
| 850 | .write = spi_chip_write_256, |
| 851 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 852 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 853 | }, |
| 854 | |
| 855 | { |
| 856 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 857 | .name = "A25L080", |
| 858 | .bustype = BUS_SPI, |
| 859 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 860 | .model_id = AMIC_A25L080, |
| 861 | .total_size = 1024, |
| 862 | .page_size = 256, |
| 863 | .feature_bits = FEATURE_WRSR_WREN, |
| 864 | .tested = TEST_UNTESTED, |
| 865 | .probe = probe_spi_rdid, |
| 866 | .probe_timing = TIMING_ZERO, |
| 867 | .block_erasers = |
| 868 | { |
| 869 | { |
| 870 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 871 | .block_erase = spi_block_erase_20, |
| 872 | }, { |
| 873 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 874 | .block_erase = spi_block_erase_d8, |
| 875 | }, { |
| 876 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 877 | .block_erase = spi_block_erase_c7, |
| 878 | } |
| 879 | }, |
| 880 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 881 | .unlock = spi_disable_blockprotect, |
| 882 | .write = spi_chip_write_256, |
| 883 | .read = spi_chip_read, |
| 884 | .voltage = {2700, 3600}, |
| 885 | }, |
| 886 | |
| 887 | { |
| 888 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 889 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 890 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 891 | .manufacture_id = AMIC_ID, |
| 892 | .model_id = AMIC_A25L10PT, |
| 893 | .total_size = 128, |
| 894 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 895 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 896 | .tested = TEST_UNTESTED, |
| 897 | .probe = probe_spi_rdid4, |
| 898 | .probe_timing = TIMING_ZERO, |
| 899 | .block_erasers = |
| 900 | { |
| 901 | { |
| 902 | .eraseblocks = { |
| 903 | {64 * 1024, 1}, |
| 904 | {32 * 1024, 1}, |
| 905 | {16 * 1024, 1}, |
| 906 | {8 * 1024, 1}, |
| 907 | {4 * 1024, 2}, |
| 908 | }, |
| 909 | .block_erase = spi_block_erase_d8, |
| 910 | }, { |
| 911 | .eraseblocks = { {128 * 1024, 1} }, |
| 912 | .block_erase = spi_block_erase_c7, |
| 913 | } |
| 914 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 915 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 916 | .unlock = spi_disable_blockprotect, |
| 917 | .write = spi_chip_write_256, |
| 918 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 919 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 920 | }, |
| 921 | |
| 922 | { |
| 923 | .vendor = "AMIC", |
| 924 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 925 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 926 | .manufacture_id = AMIC_ID, |
| 927 | .model_id = AMIC_A25L10PU, |
| 928 | .total_size = 128, |
| 929 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 930 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 931 | .tested = TEST_UNTESTED, |
| 932 | .probe = probe_spi_rdid4, |
| 933 | .probe_timing = TIMING_ZERO, |
| 934 | .block_erasers = |
| 935 | { |
| 936 | { |
| 937 | .eraseblocks = { |
| 938 | {4 * 1024, 2}, |
| 939 | {8 * 1024, 1}, |
| 940 | {16 * 1024, 1}, |
| 941 | {32 * 1024, 1}, |
| 942 | {64 * 1024, 1}, |
| 943 | }, |
| 944 | .block_erase = spi_block_erase_d8, |
| 945 | }, { |
| 946 | .eraseblocks = { {128 * 1024, 1} }, |
| 947 | .block_erase = spi_block_erase_c7, |
| 948 | } |
| 949 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 950 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 951 | .unlock = spi_disable_blockprotect, |
| 952 | .write = spi_chip_write_256, |
| 953 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 954 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 955 | }, |
| 956 | |
| 957 | { |
| 958 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 959 | .name = "A25L16PT", |
| 960 | .bustype = BUS_SPI, |
| 961 | .manufacture_id = AMIC_ID, |
| 962 | .model_id = AMIC_A25L16PT, |
| 963 | .total_size = 2048, |
| 964 | .page_size = 256, |
| 965 | .feature_bits = FEATURE_WRSR_WREN, |
| 966 | .tested = TEST_UNTESTED, |
| 967 | .probe = probe_spi_rdid4, |
| 968 | .probe_timing = TIMING_ZERO, |
| 969 | .block_erasers = |
| 970 | { |
| 971 | { |
| 972 | .eraseblocks = { |
| 973 | {64 * 1024, 31}, |
| 974 | {32 * 1024, 1}, |
| 975 | {16 * 1024, 1}, |
| 976 | {8 * 1024, 1}, |
| 977 | {4 * 1024, 2}, |
| 978 | }, |
| 979 | .block_erase = spi_block_erase_d8, |
| 980 | }, { |
| 981 | .eraseblocks = { {2048 * 1024, 1} }, |
| 982 | .block_erase = spi_block_erase_60, |
| 983 | }, { |
| 984 | .eraseblocks = { {2048 * 1024, 1} }, |
| 985 | .block_erase = spi_block_erase_c7, |
| 986 | } |
| 987 | }, |
| 988 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 989 | .unlock = spi_disable_blockprotect, |
| 990 | .write = spi_chip_write_256, |
| 991 | .read = spi_chip_read, |
| 992 | .voltage = {2700, 3600}, |
| 993 | }, |
| 994 | |
| 995 | { |
| 996 | .vendor = "AMIC", |
| 997 | .name = "A25L16PU", |
| 998 | .bustype = BUS_SPI, |
| 999 | .manufacture_id = AMIC_ID, |
| 1000 | .model_id = AMIC_A25L16PU, |
| 1001 | .total_size = 2048, |
| 1002 | .page_size = 256, |
| 1003 | .feature_bits = FEATURE_WRSR_WREN, |
| 1004 | .tested = TEST_OK_PR, |
| 1005 | .probe = probe_spi_rdid4, |
| 1006 | .probe_timing = TIMING_ZERO, |
| 1007 | .block_erasers = |
| 1008 | { |
| 1009 | { |
| 1010 | .eraseblocks = { |
| 1011 | {4 * 1024, 2}, |
| 1012 | {8 * 1024, 1}, |
| 1013 | {16 * 1024, 1}, |
| 1014 | {32 * 1024, 1}, |
| 1015 | {64 * 1024, 31}, |
| 1016 | }, |
| 1017 | .block_erase = spi_block_erase_d8, |
| 1018 | }, { |
| 1019 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1020 | .block_erase = spi_block_erase_60, |
| 1021 | }, { |
| 1022 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1023 | .block_erase = spi_block_erase_c7, |
| 1024 | } |
| 1025 | }, |
| 1026 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1027 | .unlock = spi_disable_blockprotect, |
| 1028 | .write = spi_chip_write_256, |
| 1029 | .read = spi_chip_read, |
| 1030 | .voltage = {2700, 3600}, |
| 1031 | }, |
| 1032 | |
| 1033 | { |
| 1034 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1035 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1036 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1037 | .manufacture_id = AMIC_ID, |
| 1038 | .model_id = AMIC_A25L20PT, |
| 1039 | .total_size = 256, |
| 1040 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1041 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1042 | .tested = TEST_UNTESTED, |
| 1043 | .probe = probe_spi_rdid4, |
| 1044 | .probe_timing = TIMING_ZERO, |
| 1045 | .block_erasers = |
| 1046 | { |
| 1047 | { |
| 1048 | .eraseblocks = { |
| 1049 | {64 * 1024, 3}, |
| 1050 | {32 * 1024, 1}, |
| 1051 | {16 * 1024, 1}, |
| 1052 | {8 * 1024, 1}, |
| 1053 | {4 * 1024, 2}, |
| 1054 | }, |
| 1055 | .block_erase = spi_block_erase_d8, |
| 1056 | }, { |
| 1057 | .eraseblocks = { {256 * 1024, 1} }, |
| 1058 | .block_erase = spi_block_erase_c7, |
| 1059 | } |
| 1060 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1061 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1062 | .unlock = spi_disable_blockprotect, |
| 1063 | .write = spi_chip_write_256, |
| 1064 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1065 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1066 | }, |
| 1067 | |
| 1068 | { |
| 1069 | .vendor = "AMIC", |
| 1070 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1071 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1072 | .manufacture_id = AMIC_ID, |
| 1073 | .model_id = AMIC_A25L20PU, |
| 1074 | .total_size = 256, |
| 1075 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1076 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1077 | .tested = TEST_UNTESTED, |
| 1078 | .probe = probe_spi_rdid4, |
| 1079 | .probe_timing = TIMING_ZERO, |
| 1080 | .block_erasers = |
| 1081 | { |
| 1082 | { |
| 1083 | .eraseblocks = { |
| 1084 | {4 * 1024, 2}, |
| 1085 | {8 * 1024, 1}, |
| 1086 | {16 * 1024, 1}, |
| 1087 | {32 * 1024, 1}, |
| 1088 | {64 * 1024, 3}, |
| 1089 | }, |
| 1090 | .block_erase = spi_block_erase_d8, |
| 1091 | }, { |
| 1092 | .eraseblocks = { {256 * 1024, 1} }, |
| 1093 | .block_erase = spi_block_erase_c7, |
| 1094 | } |
| 1095 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1096 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1097 | .unlock = spi_disable_blockprotect, |
| 1098 | .write = spi_chip_write_256, |
| 1099 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1100 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1101 | }, |
| 1102 | |
| 1103 | /* The A25L40P{T,U} chips are distinguished by their |
| 1104 | * erase block layouts, but without any distinction in RDID. |
| 1105 | * This inexplicable quirk was verified by Rudolf Marek |
| 1106 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 1107 | */ |
| 1108 | { |
| 1109 | .vendor = "AMIC", |
| 1110 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1111 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1112 | .manufacture_id = AMIC_ID, |
| 1113 | .model_id = AMIC_A25L40PT, |
| 1114 | .total_size = 512, |
| 1115 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1116 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1117 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1118 | .probe = probe_spi_rdid4, |
| 1119 | .probe_timing = TIMING_ZERO, |
| 1120 | .block_erasers = |
| 1121 | { |
| 1122 | { |
| 1123 | .eraseblocks = { |
| 1124 | {64 * 1024, 7}, |
| 1125 | {32 * 1024, 1}, |
| 1126 | {16 * 1024, 1}, |
| 1127 | {8 * 1024, 1}, |
| 1128 | {4 * 1024, 2}, |
| 1129 | }, |
| 1130 | .block_erase = spi_block_erase_d8, |
| 1131 | }, { |
| 1132 | .eraseblocks = { {512 * 1024, 1} }, |
| 1133 | .block_erase = spi_block_erase_c7, |
| 1134 | } |
| 1135 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1136 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +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}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1141 | }, |
| 1142 | |
| 1143 | { |
| 1144 | .vendor = "AMIC", |
| 1145 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1146 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1147 | .manufacture_id = AMIC_ID, |
| 1148 | .model_id = AMIC_A25L40PU, |
| 1149 | .total_size = 512, |
| 1150 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1151 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 6f08835 | 2018-09-30 19:59:42 +0200 | [diff] [blame] | 1152 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1153 | .probe = probe_spi_rdid4, |
| 1154 | .probe_timing = TIMING_ZERO, |
| 1155 | .block_erasers = |
| 1156 | { |
| 1157 | { |
| 1158 | .eraseblocks = { |
| 1159 | {4 * 1024, 2}, |
| 1160 | {8 * 1024, 1}, |
| 1161 | {16 * 1024, 1}, |
| 1162 | {32 * 1024, 1}, |
| 1163 | {64 * 1024, 7}, |
| 1164 | }, |
| 1165 | .block_erase = spi_block_erase_d8, |
| 1166 | }, { |
| 1167 | .eraseblocks = { {512 * 1024, 1} }, |
| 1168 | .block_erase = spi_block_erase_c7, |
| 1169 | } |
| 1170 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1171 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1172 | .unlock = spi_disable_blockprotect, |
| 1173 | .write = spi_chip_write_256, |
| 1174 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1175 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1176 | }, |
| 1177 | |
| 1178 | { |
| 1179 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1180 | .name = "A25L512", |
| 1181 | .bustype = BUS_SPI, |
| 1182 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1183 | .model_id = AMIC_A25L512, |
| 1184 | .total_size = 64, |
| 1185 | .page_size = 256, |
| 1186 | .feature_bits = FEATURE_WRSR_WREN, |
| 1187 | .tested = TEST_UNTESTED, |
| 1188 | .probe = probe_spi_rdid, |
| 1189 | .probe_timing = TIMING_ZERO, |
| 1190 | .block_erasers = |
| 1191 | { |
| 1192 | { |
| 1193 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 1194 | .block_erase = spi_block_erase_20, |
| 1195 | }, { |
| 1196 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1197 | .block_erase = spi_block_erase_d8, |
| 1198 | }, { |
| 1199 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1200 | .block_erase = spi_block_erase_c7, |
| 1201 | } |
| 1202 | }, |
| 1203 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1204 | .unlock = spi_disable_blockprotect, |
| 1205 | .write = spi_chip_write_256, |
| 1206 | .read = spi_chip_read, |
| 1207 | .voltage = {2700, 3600}, |
| 1208 | }, |
| 1209 | |
| 1210 | { |
| 1211 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1212 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1213 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1214 | .manufacture_id = AMIC_ID, |
| 1215 | .model_id = AMIC_A25L80P, |
| 1216 | .total_size = 1024, |
| 1217 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1218 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1219 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1220 | .probe = probe_spi_rdid4, |
| 1221 | .probe_timing = TIMING_ZERO, |
| 1222 | .block_erasers = |
| 1223 | { |
| 1224 | { |
| 1225 | .eraseblocks = { |
| 1226 | {4 * 1024, 2}, |
| 1227 | {8 * 1024, 1}, |
| 1228 | {16 * 1024, 1}, |
| 1229 | {32 * 1024, 1}, |
| 1230 | {64 * 1024, 15}, |
| 1231 | }, |
| 1232 | .block_erase = spi_block_erase_d8, |
| 1233 | }, { |
| 1234 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1235 | .block_erase = spi_block_erase_c7, |
| 1236 | } |
| 1237 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1238 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1239 | .unlock = spi_disable_blockprotect, |
| 1240 | .write = spi_chip_write_256, |
| 1241 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1242 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1243 | }, |
| 1244 | |
| 1245 | { |
| 1246 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1247 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1248 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1249 | .manufacture_id = AMIC_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1250 | .model_id = AMIC_A25LQ032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1251 | .total_size = 4096, |
| 1252 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1253 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1254 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1256 | .tested = TEST_UNTESTED, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1257 | .probe = probe_spi_rdid, |
| 1258 | .probe_timing = TIMING_ZERO, |
| 1259 | .block_erasers = |
| 1260 | { |
| 1261 | { |
| 1262 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1263 | .block_erase = spi_block_erase_20, |
| 1264 | }, { |
| 1265 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1266 | .block_erase = spi_block_erase_52, |
| 1267 | }, { |
| 1268 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1269 | .block_erase = spi_block_erase_d8, |
| 1270 | }, { |
| 1271 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1272 | .block_erase = spi_block_erase_60, |
| 1273 | }, { |
| 1274 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1275 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1276 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1277 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 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) */ |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1280 | .write = spi_chip_write_256, |
| 1281 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1282 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1283 | }, |
| 1284 | |
| 1285 | { |
| 1286 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1287 | .name = "A25LQ16", |
| 1288 | .bustype = BUS_SPI, |
| 1289 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1290 | .model_id = AMIC_A25LQ16, |
| 1291 | .total_size = 2048, |
| 1292 | .page_size = 256, |
| 1293 | /* supports SFDP */ |
| 1294 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1295 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1296 | .tested = TEST_UNTESTED, |
| 1297 | .probe = probe_spi_rdid, |
| 1298 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 1299 | .block_erasers = |
| 1300 | { |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1301 | { |
| 1302 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1303 | .block_erase = spi_block_erase_20, |
| 1304 | }, { |
| 1305 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1306 | .block_erase = spi_block_erase_52, |
| 1307 | }, { |
| 1308 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1309 | .block_erase = spi_block_erase_d8, |
| 1310 | }, { |
| 1311 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1312 | .block_erase = spi_block_erase_60, |
| 1313 | }, { |
| 1314 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1315 | .block_erase = spi_block_erase_c7, |
| 1316 | } |
| 1317 | }, |
| 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", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 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", |
Steffen Mauch | 0b59b0d | 2018-06-02 23:46:03 +0200 | [diff] [blame] | 1526 | .name = "AT25DF021A", |
| 1527 | .bustype = BUS_SPI, |
| 1528 | .manufacture_id = ATMEL_ID, |
| 1529 | .model_id = ATMEL_AT25DF021A, |
| 1530 | .total_size = 256, |
| 1531 | .page_size = 256, |
| 1532 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1533 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1534 | .tested = TEST_OK_PREW, |
| 1535 | .probe = probe_spi_rdid, |
| 1536 | .probe_timing = TIMING_ZERO, |
| 1537 | .block_erasers = |
| 1538 | { |
| 1539 | { |
| 1540 | .eraseblocks = { {4 * 1024, 64} }, |
| 1541 | .block_erase = spi_block_erase_20, |
| 1542 | }, { |
| 1543 | .eraseblocks = { {32 * 1024, 8} }, |
| 1544 | .block_erase = spi_block_erase_52, |
| 1545 | }, { |
| 1546 | .eraseblocks = { {64 * 1024, 4} }, |
| 1547 | .block_erase = spi_block_erase_d8, |
| 1548 | }, { |
| 1549 | .eraseblocks = { {256 * 1024, 1} }, |
| 1550 | .block_erase = spi_block_erase_60, |
| 1551 | }, { |
| 1552 | .eraseblocks = { {256 * 1024, 1} }, |
| 1553 | .block_erase = spi_block_erase_c7, |
| 1554 | } |
| 1555 | }, |
| 1556 | .printlock = spi_prettyprint_status_register_at25df, |
| 1557 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
| 1558 | .write = spi_chip_write_256, |
| 1559 | .read = spi_chip_read, |
| 1560 | .voltage = {1650, 3600}, |
| 1561 | }, |
| 1562 | |
| 1563 | { |
| 1564 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1565 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1566 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1567 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1568 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1569 | .total_size = 512, |
| 1570 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1571 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1572 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1573 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1574 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1575 | .block_erasers = |
| 1576 | { |
| 1577 | { |
| 1578 | .eraseblocks = { {4 * 1024, 128} }, |
| 1579 | .block_erase = spi_block_erase_20, |
| 1580 | }, { |
| 1581 | .eraseblocks = { {32 * 1024, 16} }, |
| 1582 | .block_erase = spi_block_erase_52, |
| 1583 | }, { |
| 1584 | .eraseblocks = { {64 * 1024, 8} }, |
| 1585 | .block_erase = spi_block_erase_d8, |
| 1586 | }, { |
| 1587 | .eraseblocks = { {512 * 1024, 1} }, |
| 1588 | .block_erase = spi_block_erase_60, |
| 1589 | }, { |
| 1590 | .eraseblocks = { {512 * 1024, 1} }, |
| 1591 | .block_erase = spi_block_erase_c7, |
| 1592 | } |
| 1593 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1594 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1595 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1596 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1597 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1598 | .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] | 1599 | }, |
| 1600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1601 | { |
| 1602 | .vendor = "Atmel", |
| 1603 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1604 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1605 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1606 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1607 | .total_size = 1024, |
| 1608 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1609 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1610 | .tested = TEST_UNTESTED, |
| 1611 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1612 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1613 | .block_erasers = |
| 1614 | { |
| 1615 | { |
| 1616 | .eraseblocks = { {4 * 1024, 256} }, |
| 1617 | .block_erase = spi_block_erase_20, |
| 1618 | }, { |
| 1619 | .eraseblocks = { {32 * 1024, 32} }, |
| 1620 | .block_erase = spi_block_erase_52, |
| 1621 | }, { |
| 1622 | .eraseblocks = { {64 * 1024, 16} }, |
| 1623 | .block_erase = spi_block_erase_d8, |
| 1624 | }, { |
| 1625 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1626 | .block_erase = spi_block_erase_60, |
| 1627 | }, { |
| 1628 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1629 | .block_erase = spi_block_erase_c7, |
| 1630 | } |
| 1631 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1632 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1633 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1634 | .write = spi_chip_write_256, |
| 1635 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1636 | .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] | 1637 | }, |
| 1638 | |
| 1639 | { |
| 1640 | .vendor = "Atmel", |
| 1641 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1642 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1643 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1644 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1645 | .total_size = 1024, |
| 1646 | .page_size = 256, |
| 1647 | .feature_bits = FEATURE_WRSR_WREN, |
| 1648 | .tested = TEST_UNTESTED, |
| 1649 | .probe = probe_spi_rdid, |
| 1650 | .probe_timing = TIMING_ZERO, |
| 1651 | .block_erasers = |
| 1652 | { |
| 1653 | { |
| 1654 | .eraseblocks = { {4 * 1024, 256} }, |
| 1655 | .block_erase = spi_block_erase_20, |
| 1656 | }, { |
| 1657 | .eraseblocks = { {32 * 1024, 32} }, |
| 1658 | .block_erase = spi_block_erase_52, |
| 1659 | }, { |
| 1660 | .eraseblocks = { {64 * 1024, 16} }, |
| 1661 | .block_erase = spi_block_erase_d8, |
| 1662 | }, { |
| 1663 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1664 | .block_erase = spi_block_erase_60, |
| 1665 | }, { |
| 1666 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1667 | .block_erase = spi_block_erase_c7, |
| 1668 | } |
| 1669 | }, |
| 1670 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1671 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1672 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1673 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1674 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1675 | }, |
| 1676 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1677 | { |
| 1678 | .vendor = "Atmel", |
| 1679 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1680 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1681 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1682 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1683 | .total_size = 2048, |
| 1684 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1685 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 8b5b962 | 2018-09-30 19:13:15 +0200 | [diff] [blame] | 1686 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1687 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1688 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1689 | .block_erasers = |
| 1690 | { |
| 1691 | { |
| 1692 | .eraseblocks = { {4 * 1024, 512} }, |
| 1693 | .block_erase = spi_block_erase_20, |
| 1694 | }, { |
| 1695 | .eraseblocks = { {32 * 1024, 64} }, |
| 1696 | .block_erase = spi_block_erase_52, |
| 1697 | }, { |
| 1698 | .eraseblocks = { {64 * 1024, 32} }, |
| 1699 | .block_erase = spi_block_erase_d8, |
| 1700 | }, { |
| 1701 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1702 | .block_erase = spi_block_erase_60, |
| 1703 | }, { |
| 1704 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1705 | .block_erase = spi_block_erase_c7, |
| 1706 | } |
| 1707 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1708 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1709 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1710 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1711 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1712 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1713 | }, |
| 1714 | |
Alan Green | 86bf6ab | 2019-06-27 16:58:20 +1000 | [diff] [blame] | 1715 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1716 | { |
| 1717 | .vendor = "Atmel", |
| 1718 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1719 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1720 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1721 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1722 | .total_size = 4096, |
| 1723 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1724 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1725 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1726 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1727 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1728 | .block_erasers = |
| 1729 | { |
| 1730 | { |
| 1731 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1732 | .block_erase = spi_block_erase_20, |
| 1733 | }, { |
| 1734 | .eraseblocks = { {32 * 1024, 128} }, |
| 1735 | .block_erase = spi_block_erase_52, |
| 1736 | }, { |
| 1737 | .eraseblocks = { {64 * 1024, 64} }, |
| 1738 | .block_erase = spi_block_erase_d8, |
| 1739 | }, { |
| 1740 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1741 | .block_erase = spi_block_erase_60, |
| 1742 | }, { |
| 1743 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1744 | .block_erase = spi_block_erase_c7, |
| 1745 | } |
| 1746 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1747 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1748 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1749 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1750 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1751 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1752 | }, |
| 1753 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1754 | { |
| 1755 | .vendor = "Atmel", |
| 1756 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1757 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1758 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1759 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1760 | .total_size = 4096, |
| 1761 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1762 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1763 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1764 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1765 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1766 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1767 | .block_erasers = |
| 1768 | { |
| 1769 | { |
| 1770 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1771 | .block_erase = spi_block_erase_20, |
| 1772 | }, { |
| 1773 | .eraseblocks = { {32 * 1024, 128} }, |
| 1774 | .block_erase = spi_block_erase_52, |
| 1775 | }, { |
| 1776 | .eraseblocks = { {64 * 1024, 64} }, |
| 1777 | .block_erase = spi_block_erase_d8, |
| 1778 | }, { |
| 1779 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1780 | .block_erase = spi_block_erase_60, |
| 1781 | }, { |
| 1782 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1783 | .block_erase = spi_block_erase_c7, |
| 1784 | } |
| 1785 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1786 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1787 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1788 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1789 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1790 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1791 | }, |
| 1792 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1793 | { |
| 1794 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1795 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1796 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1797 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1798 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1799 | .total_size = 8192, |
| 1800 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1801 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1802 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1803 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1804 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1805 | .block_erasers = |
| 1806 | { |
| 1807 | { |
| 1808 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1809 | .block_erase = spi_block_erase_20, |
| 1810 | }, { |
| 1811 | .eraseblocks = { {32 * 1024, 256} }, |
| 1812 | .block_erase = spi_block_erase_52, |
| 1813 | }, { |
| 1814 | .eraseblocks = { {64 * 1024, 128} }, |
| 1815 | .block_erase = spi_block_erase_d8, |
| 1816 | }, { |
| 1817 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1818 | .block_erase = spi_block_erase_60, |
| 1819 | }, { |
| 1820 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1821 | .block_erase = spi_block_erase_c7, |
| 1822 | } |
| 1823 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1824 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1825 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1826 | .write = spi_chip_write_256, |
| 1827 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1828 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1829 | }, |
| 1830 | |
| 1831 | { |
| 1832 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1833 | .name = "AT25DL081", |
| 1834 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1835 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1836 | .model_id = ATMEL_AT25DF081, |
| 1837 | .total_size = 1024, |
| 1838 | .page_size = 256, |
| 1839 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1840 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1841 | .tested = TEST_UNTESTED, |
| 1842 | .probe = probe_spi_rdid, |
| 1843 | .probe_timing = TIMING_ZERO, |
| 1844 | .block_erasers = |
| 1845 | { |
| 1846 | { |
| 1847 | .eraseblocks = { {4 * 1024, 256} }, |
| 1848 | .block_erase = spi_block_erase_20, |
| 1849 | }, { |
| 1850 | .eraseblocks = { {32 * 1024, 32} }, |
| 1851 | .block_erase = spi_block_erase_52, |
| 1852 | }, { |
| 1853 | .eraseblocks = { {64 * 1024, 16} }, |
| 1854 | .block_erase = spi_block_erase_d8, |
| 1855 | }, { |
| 1856 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1857 | .block_erase = spi_block_erase_60, |
| 1858 | }, { |
| 1859 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1860 | .block_erase = spi_block_erase_c7, |
| 1861 | } |
| 1862 | }, |
| 1863 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1864 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1865 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1866 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1867 | .voltage = {1650, 1950}, |
| 1868 | }, |
| 1869 | |
| 1870 | { |
| 1871 | .vendor = "Atmel", |
| 1872 | .name = "AT25DL161", |
| 1873 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1874 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1875 | .model_id = ATMEL_AT25DL161, |
| 1876 | .total_size = 2048, |
| 1877 | .page_size = 256, |
| 1878 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1879 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1880 | .tested = TEST_UNTESTED, |
| 1881 | .probe = probe_spi_rdid, |
| 1882 | .probe_timing = TIMING_ZERO, |
| 1883 | .block_erasers = |
| 1884 | { |
| 1885 | { |
| 1886 | .eraseblocks = { {4 * 1024, 512} }, |
| 1887 | .block_erase = spi_block_erase_20, |
| 1888 | }, { |
| 1889 | .eraseblocks = { {32 * 1024, 64} }, |
| 1890 | .block_erase = spi_block_erase_52, |
| 1891 | }, { |
| 1892 | .eraseblocks = { {64 * 1024, 32} }, |
| 1893 | .block_erase = spi_block_erase_d8, |
| 1894 | }, { |
| 1895 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1896 | .block_erase = spi_block_erase_60, |
| 1897 | }, { |
| 1898 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1899 | .block_erase = spi_block_erase_c7, |
| 1900 | } |
| 1901 | }, |
| 1902 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1903 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1904 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1905 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1906 | .voltage = {1650, 1950}, |
| 1907 | }, |
| 1908 | |
| 1909 | { |
| 1910 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1911 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1912 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1913 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1914 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1915 | .total_size = 2048, |
| 1916 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1917 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1918 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1919 | .tested = TEST_UNTESTED, |
| 1920 | .probe = probe_spi_rdid, |
| 1921 | .probe_timing = TIMING_ZERO, |
| 1922 | .block_erasers = |
| 1923 | { |
| 1924 | { |
| 1925 | .eraseblocks = { {4 * 1024, 512} }, |
| 1926 | .block_erase = spi_block_erase_20, |
| 1927 | }, { |
| 1928 | .eraseblocks = { {32 * 1024, 64} }, |
| 1929 | .block_erase = spi_block_erase_52, |
| 1930 | }, { |
| 1931 | .eraseblocks = { {64 * 1024, 32} }, |
| 1932 | .block_erase = spi_block_erase_d8, |
| 1933 | }, { |
| 1934 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1935 | .block_erase = spi_block_erase_60, |
| 1936 | }, { |
| 1937 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1938 | .block_erase = spi_block_erase_c7, |
| 1939 | } |
| 1940 | }, |
| 1941 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1942 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1943 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1944 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1945 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1946 | }, |
| 1947 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1948 | { |
| 1949 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1950 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1951 | * All other properties seem to be the same.*/ |
| 1952 | .name = "AT25F1024(A)", |
| 1953 | .bustype = BUS_SPI, |
| 1954 | .manufacture_id = ATMEL_ID, |
| 1955 | .model_id = ATMEL_AT25F1024, |
| 1956 | .total_size = 128, |
| 1957 | .page_size = 256, |
| 1958 | .feature_bits = FEATURE_WRSR_WREN, |
| 1959 | .tested = TEST_OK_PREW, |
| 1960 | .probe = probe_spi_at25f, |
| 1961 | .probe_timing = TIMING_ZERO, |
| 1962 | .block_erasers = |
| 1963 | { |
| 1964 | { |
| 1965 | .eraseblocks = { {32 * 1024, 4} }, |
| 1966 | .block_erase = spi_block_erase_52, |
| 1967 | }, { |
| 1968 | .eraseblocks = { {128 * 1024, 1} }, |
| 1969 | .block_erase = spi_block_erase_62, |
| 1970 | } |
| 1971 | }, |
| 1972 | .printlock = spi_prettyprint_status_register_at25f, |
| 1973 | .unlock = spi_disable_blockprotect_at25f, |
| 1974 | .write = spi_chip_write_256, |
| 1975 | .read = spi_chip_read, |
| 1976 | .voltage = {2700, 3600}, |
| 1977 | }, |
| 1978 | |
| 1979 | { |
| 1980 | .vendor = "Atmel", |
| 1981 | .name = "AT25F2048", |
| 1982 | .bustype = BUS_SPI, |
| 1983 | .manufacture_id = ATMEL_ID, |
| 1984 | .model_id = ATMEL_AT25F2048, |
| 1985 | .total_size = 256, |
| 1986 | .page_size = 256, |
| 1987 | .feature_bits = FEATURE_WRSR_WREN, |
| 1988 | .tested = TEST_UNTESTED, |
| 1989 | .probe = probe_spi_at25f, |
| 1990 | .probe_timing = TIMING_ZERO, |
| 1991 | .block_erasers = |
| 1992 | { |
| 1993 | { |
| 1994 | .eraseblocks = { {64 * 1024, 4} }, |
| 1995 | .block_erase = spi_block_erase_52, |
| 1996 | }, { |
| 1997 | .eraseblocks = { {256 * 1024, 1} }, |
| 1998 | .block_erase = spi_block_erase_62, |
| 1999 | } |
| 2000 | }, |
| 2001 | .printlock = spi_prettyprint_status_register_at25f, |
| 2002 | .unlock = spi_disable_blockprotect_at25f, |
| 2003 | .write = spi_chip_write_256, |
| 2004 | .read = spi_chip_read, |
| 2005 | .voltage = {2700, 3600}, |
| 2006 | }, |
| 2007 | |
| 2008 | { |
| 2009 | .vendor = "Atmel", |
| 2010 | .name = "AT25F4096", |
| 2011 | .bustype = BUS_SPI, |
| 2012 | .manufacture_id = ATMEL_ID, |
| 2013 | .model_id = ATMEL_AT25F4096, |
| 2014 | .total_size = 512, |
| 2015 | .page_size = 256, |
| 2016 | .feature_bits = FEATURE_WRSR_WREN, |
| 2017 | .tested = TEST_OK_PREW, |
| 2018 | .probe = probe_spi_at25f, |
| 2019 | .probe_timing = TIMING_ZERO, |
| 2020 | .block_erasers = |
| 2021 | { |
| 2022 | { |
| 2023 | .eraseblocks = { {64 * 1024, 8} }, |
| 2024 | .block_erase = spi_block_erase_52, |
| 2025 | }, { |
| 2026 | .eraseblocks = { {512 * 1024, 1} }, |
| 2027 | .block_erase = spi_block_erase_62, |
| 2028 | } |
| 2029 | }, |
| 2030 | .printlock = spi_prettyprint_status_register_at25f4096, |
| 2031 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2032 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 2033 | .write = spi_chip_write_256, |
| 2034 | .read = spi_chip_read, |
| 2035 | .voltage = {2700, 3600}, |
| 2036 | }, |
| 2037 | |
| 2038 | { |
| 2039 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2040 | .name = "AT25F512", |
| 2041 | .bustype = BUS_SPI, |
| 2042 | .manufacture_id = ATMEL_ID, |
| 2043 | .model_id = ATMEL_AT25F512, |
| 2044 | .total_size = 64, |
| 2045 | .page_size = 256, |
| 2046 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2047 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2048 | .probe = probe_spi_at25f, |
| 2049 | .probe_timing = TIMING_ZERO, |
| 2050 | .block_erasers = |
| 2051 | { |
| 2052 | { |
| 2053 | .eraseblocks = { {32 * 1024, 2} }, |
| 2054 | .block_erase = spi_block_erase_52, |
| 2055 | }, { |
| 2056 | .eraseblocks = { {64 * 1024, 1} }, |
| 2057 | .block_erase = spi_block_erase_62, |
| 2058 | } |
| 2059 | }, |
| 2060 | .printlock = spi_prettyprint_status_register_at25f, |
| 2061 | .unlock = spi_disable_blockprotect_at25f, |
| 2062 | .write = spi_chip_write_256, |
| 2063 | .read = spi_chip_read, |
| 2064 | .voltage = {2700, 3600}, |
| 2065 | }, |
| 2066 | |
| 2067 | { |
| 2068 | .vendor = "Atmel", |
| 2069 | .name = "AT25F512A", |
| 2070 | .bustype = BUS_SPI, |
| 2071 | .manufacture_id = ATMEL_ID, |
| 2072 | .model_id = ATMEL_AT25F512A, |
| 2073 | .total_size = 64, |
| 2074 | .page_size = 128, |
| 2075 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2076 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2077 | .probe = probe_spi_at25f, |
| 2078 | .probe_timing = TIMING_ZERO, |
| 2079 | .block_erasers = |
| 2080 | { |
| 2081 | { |
| 2082 | .eraseblocks = { {32 * 1024, 2} }, |
| 2083 | .block_erase = spi_block_erase_52, |
| 2084 | }, { |
| 2085 | .eraseblocks = { {64 * 1024, 1} }, |
| 2086 | .block_erase = spi_block_erase_62, |
| 2087 | } |
| 2088 | }, |
| 2089 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 2090 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 2091 | .unlock = spi_disable_blockprotect_at25f512a, |
| 2092 | .write = spi_chip_write_256, |
| 2093 | .read = spi_chip_read, |
| 2094 | .voltage = {2700, 3600}, |
| 2095 | }, |
| 2096 | |
| 2097 | { |
| 2098 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2099 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2100 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2101 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2102 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2103 | .total_size = 64, |
| 2104 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2105 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2106 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2107 | .tested = TEST_UNTESTED, |
| 2108 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2109 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2110 | .block_erasers = |
| 2111 | { |
| 2112 | { |
| 2113 | .eraseblocks = { {4 * 1024, 16} }, |
| 2114 | .block_erase = spi_block_erase_20, |
| 2115 | }, { |
| 2116 | .eraseblocks = { {32 * 1024, 2} }, |
| 2117 | .block_erase = spi_block_erase_52, |
| 2118 | }, { |
| 2119 | .eraseblocks = { {32 * 1024, 2} }, |
| 2120 | .block_erase = spi_block_erase_d8, |
| 2121 | }, { |
| 2122 | .eraseblocks = { {64 * 1024, 1} }, |
| 2123 | .block_erase = spi_block_erase_60, |
| 2124 | }, { |
| 2125 | .eraseblocks = { {64 * 1024, 1} }, |
| 2126 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 2127 | }, { |
| 2128 | .eraseblocks = { {64 * 1024, 1} }, |
| 2129 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2130 | } |
| 2131 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2132 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2133 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2134 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2135 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2136 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2137 | }, |
| 2138 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2139 | { |
| 2140 | .vendor = "Atmel", |
| 2141 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2142 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2143 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2144 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2145 | .total_size = 128, |
| 2146 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2147 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2148 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2149 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2150 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2151 | .block_erasers = |
| 2152 | { |
| 2153 | { |
| 2154 | .eraseblocks = { {4 * 1024, 32} }, |
| 2155 | .block_erase = spi_block_erase_20, |
| 2156 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2157 | .eraseblocks = { {4 * 1024, 32} }, |
| 2158 | .block_erase = spi_block_erase_d7, |
| 2159 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2160 | .eraseblocks = { {32 * 1024, 4} }, |
| 2161 | .block_erase = spi_block_erase_52, |
| 2162 | }, { |
| 2163 | .eraseblocks = { {32 * 1024, 4} }, |
| 2164 | .block_erase = spi_block_erase_d8, |
| 2165 | }, { |
| 2166 | .eraseblocks = { {128 * 1024, 1} }, |
| 2167 | .block_erase = spi_block_erase_60, |
| 2168 | }, { |
| 2169 | .eraseblocks = { {128 * 1024, 1} }, |
| 2170 | .block_erase = spi_block_erase_c7, |
| 2171 | } |
| 2172 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2173 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2174 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2175 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2176 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2177 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2178 | }, |
| 2179 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2180 | { |
| 2181 | .vendor = "Atmel", |
| 2182 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2183 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2184 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2185 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2186 | .total_size = 512, |
| 2187 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2188 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2189 | .tested = TEST_UNTESTED, |
| 2190 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2191 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2192 | .block_erasers = |
| 2193 | { |
| 2194 | { |
| 2195 | .eraseblocks = { {4 * 1024, 128} }, |
| 2196 | .block_erase = spi_block_erase_20, |
| 2197 | }, { |
| 2198 | .eraseblocks = { {64 * 1024, 8} }, |
| 2199 | .block_erase = spi_block_erase_52, |
| 2200 | }, { |
| 2201 | .eraseblocks = { {64 * 1024, 8} }, |
| 2202 | .block_erase = spi_block_erase_d8, |
| 2203 | }, { |
| 2204 | .eraseblocks = { {512 * 1024, 1} }, |
| 2205 | .block_erase = spi_block_erase_60, |
| 2206 | }, { |
| 2207 | .eraseblocks = { {512 * 1024, 1} }, |
| 2208 | .block_erase = spi_block_erase_c7, |
| 2209 | } |
| 2210 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2211 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2212 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2213 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2214 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2215 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2216 | }, |
| 2217 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2218 | { |
| 2219 | .vendor = "Atmel", |
jvm | a3ab6c6 | 2018-03-08 15:43:20 +0100 | [diff] [blame] | 2220 | .name = "AT25SF041", |
| 2221 | .bustype = BUS_SPI, |
| 2222 | .manufacture_id = ATMEL_ID, |
| 2223 | .model_id = ATMEL_AT25SF041, |
| 2224 | .total_size = 512, |
| 2225 | .page_size = 256, |
| 2226 | .feature_bits = FEATURE_WRSR_WREN, |
| 2227 | .tested = TEST_OK_PREW, |
| 2228 | .probe = probe_spi_rdid, |
| 2229 | .probe_timing = TIMING_ZERO, |
| 2230 | .block_erasers = |
| 2231 | { |
| 2232 | { |
| 2233 | .eraseblocks = { {4 * 1024, 128} }, |
| 2234 | .block_erase = spi_block_erase_20, |
| 2235 | }, { |
| 2236 | .eraseblocks = { {32 * 1024, 16} }, |
| 2237 | .block_erase = spi_block_erase_52, |
| 2238 | }, { |
| 2239 | .eraseblocks = { {64 * 1024, 8} }, |
| 2240 | .block_erase = spi_block_erase_d8, |
| 2241 | }, { |
| 2242 | .eraseblocks = { {512 * 1024, 1} }, |
| 2243 | .block_erase = spi_block_erase_60, |
| 2244 | }, { |
| 2245 | .eraseblocks = { {512 * 1024, 1} }, |
| 2246 | .block_erase = spi_block_erase_c7, |
| 2247 | } |
| 2248 | }, |
| 2249 | .printlock = spi_prettyprint_status_register_plain, |
| 2250 | .unlock = spi_disable_blockprotect, |
| 2251 | .write = spi_chip_write_256, |
| 2252 | .read = spi_chip_read, |
| 2253 | .voltage = {2500, 3600}, |
| 2254 | }, |
| 2255 | |
| 2256 | { |
| 2257 | .vendor = "Atmel", |
Evan Jensen | 291c101 | 2018-05-17 14:30:19 -0700 | [diff] [blame] | 2258 | .name = "AT25SF081", |
| 2259 | .bustype = BUS_SPI, |
| 2260 | .manufacture_id = ATMEL_ID, |
| 2261 | .model_id = ATMEL_AT25SF081, |
| 2262 | .total_size = 1024, |
| 2263 | .page_size = 256, |
| 2264 | .feature_bits = FEATURE_WRSR_WREN, |
| 2265 | .tested = TEST_OK_PREW, |
| 2266 | .probe = probe_spi_rdid, |
| 2267 | .probe_timing = TIMING_ZERO, |
| 2268 | .block_erasers = |
| 2269 | { |
| 2270 | { |
| 2271 | .eraseblocks = { {4 * 1024, 256} }, |
| 2272 | .block_erase = spi_block_erase_20, |
| 2273 | }, { |
| 2274 | .eraseblocks = { {32 * 1024, 32} }, |
| 2275 | .block_erase = spi_block_erase_52, |
| 2276 | }, { |
| 2277 | .eraseblocks = { {64 * 1024, 16} }, |
| 2278 | .block_erase = spi_block_erase_d8, |
| 2279 | }, { |
| 2280 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2281 | .block_erase = spi_block_erase_60, |
| 2282 | }, { |
| 2283 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2284 | .block_erase = spi_block_erase_c7, |
| 2285 | } |
| 2286 | }, |
| 2287 | .printlock = spi_prettyprint_status_register_plain, |
| 2288 | .unlock = spi_disable_blockprotect, |
| 2289 | .write = spi_chip_write_256, |
| 2290 | .read = spi_chip_read, |
| 2291 | .voltage = {2300, 3600}, |
| 2292 | }, |
| 2293 | |
| 2294 | { |
| 2295 | .vendor = "Atmel", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2296 | .name = "AT25SF161", |
| 2297 | .bustype = BUS_SPI, |
| 2298 | .manufacture_id = ATMEL_ID, |
| 2299 | .model_id = ATMEL_AT25SF161, |
| 2300 | .total_size = 2048, |
| 2301 | .page_size = 256, |
| 2302 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 2303 | .tested = TEST_OK_PREW, |
| 2304 | .probe = probe_spi_rdid, |
| 2305 | .probe_timing = TIMING_ZERO, |
| 2306 | .block_erasers = |
| 2307 | { |
| 2308 | { |
| 2309 | .eraseblocks = { {4 * 1024, 512} }, |
| 2310 | .block_erase = spi_block_erase_20, |
| 2311 | }, { |
| 2312 | .eraseblocks = { {32 * 1024, 64} }, |
| 2313 | .block_erase = spi_block_erase_52, |
| 2314 | }, { |
| 2315 | .eraseblocks = { {64 * 1024, 32} }, |
| 2316 | .block_erase = spi_block_erase_d8, |
| 2317 | }, { |
| 2318 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2319 | .block_erase = spi_block_erase_60, |
| 2320 | }, { |
| 2321 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2322 | .block_erase = spi_block_erase_c7, |
| 2323 | } |
| 2324 | }, |
| 2325 | .printlock = spi_prettyprint_status_register_plain, |
| 2326 | .unlock = spi_disable_blockprotect, |
| 2327 | .write = spi_chip_write_256, |
| 2328 | .read = spi_chip_read, |
| 2329 | .voltage = {2500, 3600}, |
| 2330 | }, |
| 2331 | |
| 2332 | { |
Alan Green | 57938f8 | 2019-06-27 15:06:43 +1000 | [diff] [blame] | 2333 | .vendor = "Atmel", |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2334 | .name = "AT25SL128A", |
| 2335 | .bustype = BUS_SPI, |
| 2336 | .manufacture_id = ATMEL_ID, |
| 2337 | .model_id = ATMEL_AT25SL128A, |
| 2338 | .total_size = 16384, |
| 2339 | .page_size = 256, |
| 2340 | /* supports SFDP */ |
| 2341 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 2342 | .tested = TEST_OK_PREW, |
| 2343 | .probe = probe_spi_rdid, |
| 2344 | .probe_timing = TIMING_ZERO, |
| 2345 | .block_erasers = |
| 2346 | { |
| 2347 | { |
| 2348 | .eraseblocks = { {4 * 1024, 4096} }, |
| 2349 | .block_erase = spi_block_erase_20, |
| 2350 | }, { |
| 2351 | .eraseblocks = { {32 * 1024, 512} }, |
| 2352 | .block_erase = spi_block_erase_52, |
| 2353 | }, { |
| 2354 | .eraseblocks = { {64 * 1024, 256} }, |
| 2355 | .block_erase = spi_block_erase_d8, |
| 2356 | }, { |
| 2357 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2358 | .block_erase = spi_block_erase_60, |
| 2359 | }, { |
| 2360 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2361 | .block_erase = spi_block_erase_c7, |
| 2362 | } |
| 2363 | }, |
| 2364 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 2365 | .unlock = spi_disable_blockprotect, |
| 2366 | .write = spi_chip_write_256, |
| 2367 | .read = spi_chip_read, |
| 2368 | .voltage = {1700, 2000}, |
| 2369 | }, |
| 2370 | |
| 2371 | { |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2372 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2373 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2374 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2375 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2376 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2377 | .total_size = 512, |
| 2378 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2379 | /* 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] | 2380 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2381 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2382 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2383 | .block_erasers = |
| 2384 | { |
| 2385 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2386 | .eraseblocks = { {256, 2048} }, |
| 2387 | .block_erase = spi_block_erase_81, |
| 2388 | }, { |
| 2389 | .eraseblocks = { {2 * 1024, 256} }, |
| 2390 | .block_erase = spi_block_erase_50, |
| 2391 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2392 | .eraseblocks = { {4 * 1024, 128} }, |
| 2393 | .block_erase = spi_block_erase_20, |
| 2394 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2395 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2396 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2397 | /* 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] | 2398 | .write = spi_chip_write_1, |
| 2399 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2400 | .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] | 2401 | }, |
| 2402 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2403 | { |
| 2404 | .vendor = "Atmel", |
| 2405 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2406 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2407 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2408 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2409 | .total_size = 1024, |
| 2410 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2411 | .feature_bits = FEATURE_WRSR_WREN, |
| 2412 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2413 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2414 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2415 | .block_erasers = |
| 2416 | { |
| 2417 | { |
| 2418 | .eraseblocks = { {4 * 1024, 256} }, |
| 2419 | .block_erase = spi_block_erase_20, |
| 2420 | }, { |
| 2421 | .eraseblocks = { {32 * 1024, 32} }, |
| 2422 | .block_erase = spi_block_erase_52, |
| 2423 | }, { |
| 2424 | .eraseblocks = { {64 * 1024, 16} }, |
| 2425 | .block_erase = spi_block_erase_d8, |
| 2426 | }, { |
| 2427 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2428 | .block_erase = spi_block_erase_60, |
| 2429 | }, { |
| 2430 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2431 | .block_erase = spi_block_erase_c7, |
| 2432 | } |
| 2433 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2434 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2435 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2436 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2437 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2438 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2439 | }, |
| 2440 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2441 | { |
| 2442 | .vendor = "Atmel", |
| 2443 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2444 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2445 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2446 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2447 | .total_size = 2048, |
| 2448 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2449 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2450 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2451 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2452 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2453 | .block_erasers = |
| 2454 | { |
| 2455 | { |
| 2456 | .eraseblocks = { {4 * 1024, 512} }, |
| 2457 | .block_erase = spi_block_erase_20, |
| 2458 | }, { |
| 2459 | .eraseblocks = { {32 * 1024, 64} }, |
| 2460 | .block_erase = spi_block_erase_52, |
| 2461 | }, { |
| 2462 | .eraseblocks = { {64 * 1024, 32} }, |
| 2463 | .block_erase = spi_block_erase_d8, |
| 2464 | }, { |
| 2465 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2466 | .block_erase = spi_block_erase_60, |
| 2467 | }, { |
| 2468 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2469 | .block_erase = spi_block_erase_c7, |
| 2470 | } |
| 2471 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2472 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2473 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2474 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2475 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2476 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2477 | }, |
| 2478 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2479 | { |
| 2480 | .vendor = "Atmel", |
| 2481 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2482 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2483 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2484 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2485 | .total_size = 2048, |
| 2486 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2487 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2488 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2489 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2490 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2491 | .block_erasers = |
| 2492 | { |
| 2493 | { |
| 2494 | .eraseblocks = { {4 * 1024, 512} }, |
| 2495 | .block_erase = spi_block_erase_20, |
| 2496 | }, { |
| 2497 | .eraseblocks = { {32 * 1024, 64} }, |
| 2498 | .block_erase = spi_block_erase_52, |
| 2499 | }, { |
| 2500 | .eraseblocks = { {64 * 1024, 32} }, |
| 2501 | .block_erase = spi_block_erase_d8, |
| 2502 | }, { |
| 2503 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2504 | .block_erase = spi_block_erase_60, |
| 2505 | }, { |
| 2506 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2507 | .block_erase = spi_block_erase_c7, |
| 2508 | } |
| 2509 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2510 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2511 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2512 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2513 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2514 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2515 | }, |
| 2516 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2517 | { |
| 2518 | .vendor = "Atmel", |
| 2519 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2520 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2521 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2522 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2523 | .total_size = 512, |
| 2524 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2525 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 2526 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD}, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2527 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2528 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2529 | .block_erasers = |
| 2530 | { |
| 2531 | { |
| 2532 | .eraseblocks = { {4 * 1024, 128} }, |
| 2533 | .block_erase = spi_block_erase_20, |
| 2534 | }, { |
| 2535 | .eraseblocks = { {32 * 1024, 16} }, |
| 2536 | .block_erase = spi_block_erase_52, |
| 2537 | }, { |
| 2538 | .eraseblocks = { {64 * 1024, 8} }, |
| 2539 | .block_erase = spi_block_erase_d8, |
| 2540 | }, { |
| 2541 | .eraseblocks = { {512 * 1024, 1} }, |
| 2542 | .block_erase = spi_block_erase_60, |
| 2543 | }, { |
| 2544 | .eraseblocks = { {512 * 1024, 1} }, |
| 2545 | .block_erase = spi_block_erase_c7, |
| 2546 | } |
| 2547 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2548 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2549 | .write = NULL, /* Incompatible Page write */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2550 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2551 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2552 | }, |
| 2553 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2554 | { |
| 2555 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2556 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2557 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2558 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2559 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2560 | .total_size = 128, |
| 2561 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2562 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2563 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2564 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2565 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2566 | .block_erasers = |
| 2567 | { |
| 2568 | { |
| 2569 | .eraseblocks = { {128 * 1024, 1} }, |
| 2570 | .block_erase = erase_chip_block_jedec, |
| 2571 | } |
| 2572 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2573 | .write = write_jedec, /* FIXME */ |
| 2574 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2575 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2576 | }, |
| 2577 | |
| 2578 | { |
| 2579 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2580 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2581 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2582 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2583 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2584 | .total_size = 256, |
| 2585 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2586 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2587 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2588 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2589 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2590 | .block_erasers = |
| 2591 | { |
| 2592 | { |
| 2593 | .eraseblocks = { {256 * 1024, 1} }, |
| 2594 | .block_erase = erase_chip_block_jedec, |
| 2595 | } |
| 2596 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2597 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2598 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2599 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2600 | }, |
| 2601 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2602 | { |
| 2603 | .vendor = "Atmel", |
| 2604 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2605 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2606 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2607 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2608 | .total_size = 512, |
| 2609 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2610 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2611 | .tested = TEST_UNTESTED, |
| 2612 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2613 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2614 | .block_erasers = |
| 2615 | { |
| 2616 | { |
| 2617 | .eraseblocks = { {512 * 1024, 1} }, |
| 2618 | .block_erase = erase_chip_block_jedec, |
| 2619 | } |
| 2620 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2621 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2622 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2623 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2624 | }, |
| 2625 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2626 | { |
| 2627 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2628 | .name = "AT29C512", |
| 2629 | .bustype = BUS_PARALLEL, |
| 2630 | .manufacture_id = ATMEL_ID, |
| 2631 | .model_id = ATMEL_AT29C512, |
| 2632 | .total_size = 64, |
| 2633 | .page_size = 128, |
| 2634 | .feature_bits = FEATURE_LONG_RESET, |
| 2635 | .tested = TEST_OK_PREW, |
| 2636 | .probe = probe_jedec, |
| 2637 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
| 2638 | .block_erasers = |
| 2639 | { |
| 2640 | { |
| 2641 | .eraseblocks = { {64 * 1024, 1} }, |
| 2642 | .block_erase = erase_chip_block_jedec, |
| 2643 | } |
| 2644 | }, |
| 2645 | .write = write_jedec, |
| 2646 | .read = read_memmapped, |
| 2647 | .voltage = {4500, 5500}, |
| 2648 | }, |
| 2649 | |
| 2650 | { |
| 2651 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2652 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2653 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2654 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2655 | .model_id = ATMEL_AT45CS1282, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2656 | .total_size = 16896, /* No power of two sizes */ |
| 2657 | .page_size = 1056, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2658 | /* 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] | 2659 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2660 | .feature_bits = FEATURE_OTP, |
| 2661 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2662 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2663 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2664 | .block_erasers = |
| 2665 | { |
| 2666 | { |
| 2667 | .eraseblocks = { |
| 2668 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2669 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2670 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2671 | }, |
| 2672 | .block_erase = spi_erase_at45cs_sector, |
| 2673 | } |
| 2674 | }, |
| 2675 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2676 | .write = spi_write_at45db, |
| 2677 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2678 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2679 | .gran = write_gran_1056bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2680 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2681 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2682 | { |
| 2683 | .vendor = "Atmel", |
| 2684 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2685 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2686 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2687 | .model_id = ATMEL_AT45DB011D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2688 | .total_size = 128, /* or 132, determined from status register */ |
| 2689 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2690 | /* 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] | 2691 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2692 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2693 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2694 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2695 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2696 | .block_erasers = |
| 2697 | { |
| 2698 | { |
| 2699 | .eraseblocks = { {256, 512} }, |
| 2700 | .block_erase = spi_erase_at45db_page, |
| 2701 | }, { |
| 2702 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2703 | .block_erase = spi_erase_at45db_block, |
| 2704 | }, { |
| 2705 | .eraseblocks = { |
| 2706 | {8 * 256, 1}, |
| 2707 | {120 * 256, 1}, |
| 2708 | {128 * 256, 3}, |
| 2709 | }, |
| 2710 | .block_erase = spi_erase_at45db_sector |
| 2711 | }, { |
| 2712 | .eraseblocks = { {128 * 1024, 1} }, |
| 2713 | .block_erase = spi_erase_at45db_chip, |
| 2714 | } |
| 2715 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2716 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2717 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2718 | /* granularity will be set by the probing function. */ |
| 2719 | .write = spi_write_at45db, |
| 2720 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2721 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2722 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2723 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2724 | { |
| 2725 | .vendor = "Atmel", |
| 2726 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2727 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2728 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2729 | .model_id = ATMEL_AT45DB021D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2730 | .total_size = 256, /* or 264, determined from status register */ |
| 2731 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2732 | /* 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] | 2733 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2734 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2735 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2736 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2737 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2738 | .block_erasers = |
| 2739 | { |
| 2740 | { |
| 2741 | .eraseblocks = { {256, 1024} }, |
| 2742 | .block_erase = spi_erase_at45db_page, |
| 2743 | }, { |
| 2744 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2745 | .block_erase = spi_erase_at45db_block, |
| 2746 | }, { |
| 2747 | .eraseblocks = { |
| 2748 | {8 * 256, 1}, |
| 2749 | {120 * 256, 1}, |
| 2750 | {128 * 256, 7}, |
| 2751 | }, |
| 2752 | .block_erase = spi_erase_at45db_sector |
| 2753 | }, { |
| 2754 | .eraseblocks = { {256 * 1024, 1} }, |
| 2755 | .block_erase = spi_erase_at45db_chip, |
| 2756 | } |
| 2757 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2758 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2759 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2760 | /* granularity will be set by the probing function. */ |
| 2761 | .write = spi_write_at45db, |
| 2762 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2763 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2764 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2765 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2766 | { |
| 2767 | .vendor = "Atmel", |
| 2768 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2769 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2770 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2771 | .model_id = ATMEL_AT45DB041D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2772 | .total_size = 512, /* or 528, determined from status register */ |
| 2773 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2774 | /* 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] | 2775 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2776 | .feature_bits = FEATURE_OTP, |
| 2777 | .tested = TEST_OK_PREW, |
| 2778 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2779 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2780 | .block_erasers = |
| 2781 | { |
| 2782 | { |
| 2783 | .eraseblocks = { {256, 2048} }, |
| 2784 | .block_erase = spi_erase_at45db_page, |
| 2785 | }, { |
| 2786 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2787 | .block_erase = spi_erase_at45db_block, |
| 2788 | }, { |
| 2789 | .eraseblocks = { |
| 2790 | {8 * 256, 1}, |
| 2791 | {248 * 256, 1}, |
| 2792 | {256 * 256, 7}, |
| 2793 | }, |
| 2794 | .block_erase = spi_erase_at45db_sector |
| 2795 | }, { |
| 2796 | .eraseblocks = { {512 * 1024, 1} }, |
| 2797 | .block_erase = spi_erase_at45db_chip, |
| 2798 | } |
| 2799 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2800 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2801 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2802 | /* granularity will be set by the probing function. */ |
| 2803 | .write = spi_write_at45db, |
| 2804 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2805 | .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] | 2806 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2807 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2808 | { |
| 2809 | .vendor = "Atmel", |
| 2810 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2811 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2812 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2813 | .model_id = ATMEL_AT45DB081D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2814 | .total_size = 1024, /* or 1056, determined from status register */ |
| 2815 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2816 | /* 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] | 2817 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2818 | .feature_bits = FEATURE_OTP, |
Angel Pons | 250aeba | 2018-09-30 20:28:22 +0200 | [diff] [blame] | 2819 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2820 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2821 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2822 | .block_erasers = |
| 2823 | { |
| 2824 | { |
| 2825 | .eraseblocks = { {256, 4096} }, |
| 2826 | .block_erase = spi_erase_at45db_page, |
| 2827 | }, { |
| 2828 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2829 | .block_erase = spi_erase_at45db_block, |
| 2830 | }, { |
| 2831 | .eraseblocks = { |
| 2832 | {8 * 256, 1}, |
| 2833 | {248 * 256, 1}, |
| 2834 | {256 * 256, 15}, |
| 2835 | }, |
| 2836 | .block_erase = spi_erase_at45db_sector |
| 2837 | }, { |
| 2838 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2839 | .block_erase = spi_erase_at45db_chip, |
| 2840 | } |
| 2841 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2842 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2843 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2844 | /* granularity will be set by the probing function. */ |
| 2845 | .write = spi_write_at45db, |
| 2846 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2847 | .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] | 2848 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2849 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2850 | { |
| 2851 | .vendor = "Atmel", |
| 2852 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2853 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2854 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2855 | .model_id = ATMEL_AT45DB161D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2856 | .total_size = 2048, /* or 2112, determined from status register */ |
| 2857 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2858 | /* 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] | 2859 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2860 | .feature_bits = FEATURE_OTP, |
| 2861 | .tested = TEST_OK_PREW, |
| 2862 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2863 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2864 | .block_erasers = |
| 2865 | { |
| 2866 | { |
| 2867 | .eraseblocks = { {512, 4096} }, |
| 2868 | .block_erase = spi_erase_at45db_page, |
| 2869 | }, { |
| 2870 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2871 | .block_erase = spi_erase_at45db_block, |
| 2872 | }, { |
| 2873 | .eraseblocks = { |
| 2874 | {8 * 512, 1}, |
| 2875 | {248 * 512, 1}, |
| 2876 | {256 * 512, 15}, |
| 2877 | }, |
| 2878 | .block_erase = spi_erase_at45db_sector |
| 2879 | }, { |
| 2880 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2881 | .block_erase = spi_erase_at45db_chip, |
| 2882 | } |
| 2883 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2884 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2885 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2886 | /* granularity will be set by the probing function. */ |
| 2887 | .write = spi_write_at45db, |
| 2888 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2889 | .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] | 2890 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2891 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2892 | { |
| 2893 | .vendor = "Atmel", |
| 2894 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2895 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2896 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2897 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2898 | .total_size = 4224, /* No power of two sizes */ |
| 2899 | .page_size = 528, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2900 | /* 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] | 2901 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2902 | .feature_bits = FEATURE_OTP, |
| 2903 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2904 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2905 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2906 | .block_erasers = |
| 2907 | { |
| 2908 | { |
| 2909 | .eraseblocks = { {528, 8192} }, |
| 2910 | .block_erase = spi_erase_at45db_page, |
| 2911 | }, { |
| 2912 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2913 | .block_erase = spi_erase_at45db_block, |
| 2914 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2915 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2916 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2917 | .eraseblocks = { |
| 2918 | {8 * 528, 1}, |
| 2919 | {120 * 528, 1}, |
| 2920 | {128 * 528, 63}, |
| 2921 | }, |
| 2922 | .block_erase = spi_erase_at45db_sector |
| 2923 | }, */ { |
| 2924 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2925 | .block_erase = spi_erase_at45db_chip, |
| 2926 | } |
| 2927 | }, |
| 2928 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2929 | .write = spi_write_at45db, |
| 2930 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2931 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2932 | .gran = write_gran_528bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2933 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2934 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2935 | { |
| 2936 | .vendor = "Atmel", |
| 2937 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2938 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2939 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2940 | .model_id = ATMEL_AT45DB321D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2941 | .total_size = 4096, /* or 4224, determined from status register */ |
| 2942 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2943 | /* 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] | 2944 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2945 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2946 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2947 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2948 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2949 | .block_erasers = |
| 2950 | { |
| 2951 | { |
| 2952 | .eraseblocks = { {512, 8192} }, |
| 2953 | .block_erase = spi_erase_at45db_page, |
| 2954 | }, { |
| 2955 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2956 | .block_erase = spi_erase_at45db_block, |
| 2957 | }, { |
| 2958 | .eraseblocks = { |
| 2959 | {8 * 512, 1}, |
| 2960 | {120 * 512, 1}, |
| 2961 | {128 * 512, 63}, |
| 2962 | }, |
| 2963 | .block_erase = spi_erase_at45db_sector |
| 2964 | }, { |
| 2965 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2966 | .block_erase = spi_erase_at45db_chip, |
| 2967 | } |
| 2968 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2969 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2970 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2971 | /* granularity will be set by the probing function. */ |
| 2972 | .write = spi_write_at45db, |
| 2973 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2974 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2975 | }, |
| 2976 | |
| 2977 | { |
| 2978 | .vendor = "Atmel", |
| 2979 | .name = "AT45DB321E", |
| 2980 | .bustype = BUS_SPI, |
| 2981 | .manufacture_id = ATMEL_ID, |
| 2982 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2983 | .total_size = 4096, /* or 4224, determined from status register */ |
| 2984 | .page_size = 512, /* or 528, determined from status register */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2985 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2986 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2987 | .feature_bits = FEATURE_OTP, |
| 2988 | .tested = TEST_UNTESTED, |
| 2989 | .probe = probe_spi_at45db, |
| 2990 | .probe_timing = TIMING_ZERO, |
| 2991 | .block_erasers = |
| 2992 | { |
| 2993 | { |
| 2994 | .eraseblocks = { {512, 8192} }, |
| 2995 | .block_erase = spi_erase_at45db_page, |
| 2996 | }, { |
| 2997 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2998 | .block_erase = spi_erase_at45db_block, |
| 2999 | }, { |
| 3000 | .eraseblocks = { |
| 3001 | {8 * 512, 1}, |
| 3002 | {120 * 512, 1}, |
| 3003 | {128 * 512, 63}, |
| 3004 | }, |
| 3005 | .block_erase = spi_erase_at45db_sector |
| 3006 | }, { |
| 3007 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3008 | .block_erase = spi_erase_at45db_chip, |
| 3009 | } |
| 3010 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3011 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3012 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3013 | /* granularity will be set by the probing function. */ |
| 3014 | .write = spi_write_at45db, |
| 3015 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3016 | .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] | 3017 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3018 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3019 | { |
| 3020 | .vendor = "Atmel", |
| 3021 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3022 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3023 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3024 | .model_id = ATMEL_AT45DB642D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3025 | .total_size = 8192, /* or 8448, determined from status register */ |
| 3026 | .page_size = 1024, /* or 1056, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3027 | /* 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] | 3028 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3029 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 3030 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3031 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3032 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3033 | .block_erasers = |
| 3034 | { |
| 3035 | { |
| 3036 | .eraseblocks = { {1024, 8192} }, |
| 3037 | .block_erase = spi_erase_at45db_page, |
| 3038 | }, { |
| 3039 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 3040 | .block_erase = spi_erase_at45db_block, |
| 3041 | }, { |
| 3042 | .eraseblocks = { |
| 3043 | {8 * 1024, 1}, |
| 3044 | {248 * 1024, 1}, |
| 3045 | {256 * 1024, 31}, |
| 3046 | }, |
| 3047 | .block_erase = spi_erase_at45db_sector |
| 3048 | }, { |
| 3049 | .eraseblocks = { {8192 * 1024, 1} }, |
| 3050 | .block_erase = spi_erase_at45db_chip, |
| 3051 | } |
| 3052 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3053 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3054 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3055 | /* granularity will be set by the probing function. */ |
| 3056 | .write = spi_write_at45db, |
| 3057 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3058 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3059 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3060 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3061 | { |
| 3062 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3063 | .name = "AT49(H)F010", |
| 3064 | .bustype = BUS_PARALLEL, |
| 3065 | .manufacture_id = ATMEL_ID, |
| 3066 | .model_id = ATMEL_AT49F010, |
| 3067 | .total_size = 128, |
| 3068 | .page_size = 0, /* unused */ |
| 3069 | .feature_bits = FEATURE_EITHER_RESET, |
| 3070 | .tested = TEST_OK_PREW, |
| 3071 | .probe = probe_jedec, |
| 3072 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3073 | .block_erasers = |
| 3074 | { |
| 3075 | { |
| 3076 | .eraseblocks = { {128 * 1024, 1} }, |
| 3077 | .block_erase = erase_chip_block_jedec, |
| 3078 | } |
| 3079 | }, |
| 3080 | .printlock = printlock_at49f, |
| 3081 | .write = write_jedec_1, |
| 3082 | .read = read_memmapped, |
| 3083 | .voltage = {4500, 5500}, |
| 3084 | }, |
| 3085 | |
| 3086 | { |
| 3087 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3088 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3089 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3090 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3091 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3092 | .total_size = 64, |
| 3093 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3094 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 3095 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3096 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3097 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3098 | .block_erasers = |
| 3099 | { |
| 3100 | { |
| 3101 | .eraseblocks = { {64 * 1024, 1} }, |
| 3102 | .block_erase = erase_chip_block_jedec, |
| 3103 | } |
| 3104 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3105 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3106 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3107 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3108 | }, |
| 3109 | |
| 3110 | { |
| 3111 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3112 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3113 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3114 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3115 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3116 | .total_size = 256, |
| 3117 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3118 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3119 | .tested = TEST_UNTESTED, |
| 3120 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3121 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3122 | .block_erasers = |
| 3123 | { |
| 3124 | { |
| 3125 | .eraseblocks = { |
| 3126 | {16 * 1024, 1}, |
| 3127 | {8 * 1024, 2}, |
| 3128 | {96 * 1024, 1}, |
| 3129 | {128 * 1024, 1}, |
| 3130 | }, |
| 3131 | .block_erase = erase_sector_jedec, |
| 3132 | }, { |
| 3133 | .eraseblocks = { {256 * 1024, 1} }, |
| 3134 | .block_erase = erase_chip_block_jedec, |
| 3135 | } |
| 3136 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3137 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3138 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3139 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3140 | }, |
| 3141 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3142 | { |
| 3143 | .vendor = "Atmel", |
| 3144 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3145 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3146 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3147 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3148 | .total_size = 256, |
| 3149 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3150 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3151 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3152 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3153 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3154 | .block_erasers = |
| 3155 | { |
| 3156 | { |
| 3157 | .eraseblocks = { |
| 3158 | {128 * 1024, 1}, |
| 3159 | {96 * 1024, 1}, |
| 3160 | {8 * 1024, 2}, |
| 3161 | {16 * 1024, 1}, |
| 3162 | }, |
| 3163 | .block_erase = erase_sector_jedec, |
| 3164 | }, { |
| 3165 | .eraseblocks = { {256 * 1024, 1} }, |
| 3166 | .block_erase = erase_chip_block_jedec, |
| 3167 | } |
| 3168 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3169 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3170 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3171 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3172 | }, |
| 3173 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3174 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3175 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3176 | .name = "AT49F020", |
| 3177 | .bustype = BUS_PARALLEL, |
| 3178 | .manufacture_id = ATMEL_ID, |
| 3179 | .model_id = ATMEL_AT49F020, |
| 3180 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3181 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3182 | .feature_bits = FEATURE_EITHER_RESET, |
| 3183 | .tested = TEST_OK_PRE, |
| 3184 | .probe = probe_jedec, |
| 3185 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3186 | .block_erasers = |
| 3187 | { |
| 3188 | { |
| 3189 | .eraseblocks = { {256 * 1024, 1} }, |
| 3190 | .block_erase = erase_chip_block_jedec, |
| 3191 | } |
| 3192 | /* Chip features an optional permanent write protection |
| 3193 | * of the first 8 kB. The erase function is the same as |
| 3194 | * above, but 00000H to 01FFFH will not be erased. |
| 3195 | * FIXME: add another eraser when partial erasers are |
| 3196 | * supported. |
| 3197 | */ |
| 3198 | }, |
| 3199 | .printlock = printlock_at49f, |
| 3200 | .write = write_jedec_1, |
| 3201 | .read = read_memmapped, |
| 3202 | .voltage = {4500, 5500}, |
| 3203 | }, |
| 3204 | |
| 3205 | { |
| 3206 | .vendor = "Atmel", |
| 3207 | .name = "AT49F040", |
| 3208 | .bustype = BUS_PARALLEL, |
| 3209 | .manufacture_id = ATMEL_ID, |
| 3210 | .model_id = ATMEL_AT49F040, |
| 3211 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3212 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3213 | .feature_bits = FEATURE_EITHER_RESET, |
| 3214 | .tested = TEST_UNTESTED, |
| 3215 | .probe = probe_jedec, |
| 3216 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3217 | .block_erasers = |
| 3218 | { |
| 3219 | { |
| 3220 | .eraseblocks = { {512 * 1024, 1} }, |
| 3221 | .block_erase = erase_chip_block_jedec, |
| 3222 | } |
| 3223 | /* Chip features an optional permanent write protection |
| 3224 | * of the first 16 kB. The erase function is the same as |
| 3225 | * above, but 00000H to 03FFFH will not be erased. |
| 3226 | * FIXME: add another eraser when partial erasers are |
| 3227 | * supported. |
| 3228 | */ |
| 3229 | }, |
| 3230 | .printlock = printlock_at49f, |
| 3231 | .write = write_jedec_1, |
| 3232 | .read = read_memmapped, |
| 3233 | .voltage = {4500, 5500}, |
| 3234 | }, |
| 3235 | |
| 3236 | { |
| 3237 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3238 | .name = "AT49F080", |
| 3239 | .bustype = BUS_PARALLEL, |
| 3240 | .manufacture_id = ATMEL_ID, |
| 3241 | .model_id = ATMEL_AT49F080, |
| 3242 | .total_size = 1024, |
| 3243 | .page_size = 0, /* unused */ |
| 3244 | .feature_bits = FEATURE_EITHER_RESET, |
| 3245 | .tested = TEST_UNTESTED, |
| 3246 | .probe = probe_jedec, |
| 3247 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3248 | .block_erasers = |
| 3249 | { |
| 3250 | { |
| 3251 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3252 | .block_erase = erase_chip_block_jedec, |
| 3253 | } |
| 3254 | /* Chip features an optional permanent write protection |
| 3255 | * of the first 16 kB. The erase function is the same as |
| 3256 | * above, but 00000H to 03FFFH will not be erased. |
| 3257 | * FIXME: add another eraser when partial erasers are |
| 3258 | * supported. |
| 3259 | */ |
| 3260 | }, |
| 3261 | .printlock = printlock_at49f, |
| 3262 | .write = write_jedec_1, |
| 3263 | .read = read_memmapped, |
| 3264 | .voltage = {4500, 5500}, |
| 3265 | }, |
| 3266 | |
| 3267 | { |
| 3268 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3269 | .vendor = "Atmel", |
| 3270 | .name = "AT49F080T", |
| 3271 | .bustype = BUS_PARALLEL, |
| 3272 | .manufacture_id = ATMEL_ID, |
| 3273 | .model_id = ATMEL_AT49F080T, |
| 3274 | .total_size = 1024, |
| 3275 | .page_size = 0, /* unused */ |
| 3276 | .feature_bits = FEATURE_EITHER_RESET, |
| 3277 | .tested = TEST_UNTESTED, |
| 3278 | .probe = probe_jedec, |
| 3279 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3280 | .block_erasers = |
| 3281 | { |
| 3282 | { |
| 3283 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3284 | .block_erase = erase_chip_block_jedec, |
| 3285 | } |
| 3286 | /* Chip features an optional permanent write protection |
| 3287 | * of the first 16 kB. The erase function is the same as |
| 3288 | * above, but FC000H to FFFFFH will not be erased. |
| 3289 | * FIXME: add another eraser when partial erasers are |
| 3290 | * supported. |
| 3291 | */ |
| 3292 | }, |
| 3293 | .printlock = printlock_at49f, |
| 3294 | .write = write_jedec_1, |
| 3295 | .read = read_memmapped, |
| 3296 | .voltage = {4500, 5500}, |
| 3297 | }, |
| 3298 | |
| 3299 | { |
| 3300 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3301 | .name = "AT49LH002", |
| 3302 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3303 | .manufacture_id = ATMEL_ID, |
| 3304 | .model_id = ATMEL_AT49LH002, |
| 3305 | .total_size = 256, |
| 3306 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3307 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3308 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3309 | .probe = probe_82802ab, |
| 3310 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3311 | .block_erasers = |
| 3312 | { |
| 3313 | { |
| 3314 | .eraseblocks = { |
| 3315 | {64 * 1024, 3}, |
| 3316 | {32 * 1024, 1}, |
| 3317 | {8 * 1024, 2}, |
| 3318 | {16 * 1024, 1}, |
| 3319 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3320 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3321 | }, { |
| 3322 | .eraseblocks = { |
| 3323 | {64 * 1024, 4}, |
| 3324 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3325 | .block_erase = erase_block_82802ab, |
| 3326 | }, |
| 3327 | }, |
| 3328 | .printlock = printlock_regspace2_block_eraser_0, |
| 3329 | .unlock = unlock_regspace2_block_eraser_0, |
| 3330 | .write = write_82802ab, |
| 3331 | .read = read_memmapped, |
| 3332 | .voltage = {3000, 3600}, |
| 3333 | }, |
| 3334 | |
| 3335 | { |
| 3336 | .vendor = "Atmel", |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3337 | .name = "AT49LH004", |
| 3338 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3339 | .manufacture_id = ATMEL_ID, |
| 3340 | .model_id = ATMEL_AT49LH004, |
| 3341 | .total_size = 512, |
| 3342 | .page_size = 0, /* unused */ |
| 3343 | .feature_bits = FEATURE_REGISTERMAP, |
| 3344 | .tested = TEST_UNTESTED, |
| 3345 | .probe = probe_82802ab, |
| 3346 | .probe_timing = TIMING_ZERO, |
| 3347 | .block_erasers = |
| 3348 | { |
| 3349 | { |
| 3350 | .eraseblocks = { |
| 3351 | {64 * 1024, 7}, |
| 3352 | {32 * 1024, 1}, |
| 3353 | {8 * 1024, 2}, |
| 3354 | {16 * 1024, 1}, |
| 3355 | }, |
| 3356 | .block_erase = erase_block_82802ab, |
| 3357 | }, { |
| 3358 | .eraseblocks = { |
| 3359 | {64 * 1024, 8}, |
| 3360 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3361 | .block_erase = NULL, /* TODO: Implement. */ |
| 3362 | }, |
| 3363 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3364 | .printlock = printlock_regspace2_block_eraser_0, |
| 3365 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3366 | .write = write_82802ab, |
| 3367 | .read = read_memmapped, |
| 3368 | .voltage = {3000, 3600}, |
| 3369 | }, |
| 3370 | |
| 3371 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3372 | .vendor = "Atmel", |
| 3373 | .name = "AT49LH00B4", |
| 3374 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3375 | .manufacture_id = ATMEL_ID, |
| 3376 | .model_id = ATMEL_AT49LH00B4, |
| 3377 | .total_size = 512, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3378 | .page_size = 0, /* unused */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3379 | .feature_bits = FEATURE_REGISTERMAP, |
| 3380 | .tested = TEST_UNTESTED, |
| 3381 | .probe = probe_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3382 | .probe_timing = TIMING_ZERO, |
| 3383 | .block_erasers = |
| 3384 | { |
| 3385 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3386 | .eraseblocks = { |
| 3387 | {8 * 1024, 2}, |
| 3388 | {16 * 1024, 1}, |
| 3389 | {32 * 1024, 1}, |
| 3390 | {64 * 1024, 7}, |
| 3391 | }, |
| 3392 | .block_erase = NULL, /* TODO: Implement. */ |
| 3393 | }, { |
| 3394 | .eraseblocks = { |
| 3395 | {64 * 1024, 8}, |
| 3396 | }, |
| 3397 | .block_erase = erase_block_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3398 | }, |
| 3399 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3400 | .printlock = printlock_regspace2_block_eraser_0, |
| 3401 | .unlock = unlock_regspace2_block_eraser_0, |
| 3402 | .write = write_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3403 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3404 | .voltage = {3000, 3600}, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3405 | }, |
| 3406 | |
| 3407 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3408 | .vendor = "Bright", |
| 3409 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3410 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3411 | .manufacture_id = BRIGHT_ID, |
| 3412 | .model_id = BRIGHT_BM29F040, |
| 3413 | .total_size = 512, |
| 3414 | .page_size = 64 * 1024, |
| 3415 | .feature_bits = FEATURE_EITHER_RESET, |
| 3416 | .tested = TEST_OK_PR, |
| 3417 | .probe = probe_jedec, |
| 3418 | .probe_timing = TIMING_ZERO, |
| 3419 | .block_erasers = |
| 3420 | { |
| 3421 | { |
| 3422 | .eraseblocks = { {64 * 1024, 8} }, |
| 3423 | .block_erase = erase_sector_jedec, |
| 3424 | }, { |
| 3425 | .eraseblocks = { {512 * 1024, 1} }, |
| 3426 | .block_erase = erase_chip_block_jedec, |
| 3427 | }, |
| 3428 | }, |
| 3429 | .write = write_jedec_1, |
| 3430 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3431 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3432 | }, |
| 3433 | |
| 3434 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3435 | .vendor = "Catalyst", |
| 3436 | .name = "CAT28F512", |
| 3437 | .bustype = BUS_PARALLEL, |
| 3438 | .manufacture_id = CATALYST_ID, |
| 3439 | .model_id = CATALYST_CAT28F512, |
| 3440 | .total_size = 64, |
| 3441 | .page_size = 0, /* unused */ |
| 3442 | .feature_bits = 0, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 3443 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3444 | .probe = probe_jedec, /* FIXME! */ |
| 3445 | .probe_timing = TIMING_ZERO, |
| 3446 | .block_erasers = |
| 3447 | { |
| 3448 | { |
| 3449 | .eraseblocks = { {64 * 1024, 1} }, |
| 3450 | .block_erase = NULL, /* TODO */ |
| 3451 | }, |
| 3452 | }, |
| 3453 | .write = NULL, /* TODO */ |
| 3454 | .read = read_memmapped, |
| 3455 | .voltage = {4500, 5500}, |
| 3456 | }, |
| 3457 | |
| 3458 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3459 | .vendor = "ENE", |
| 3460 | .name = "KB9012 (EDI)", |
| 3461 | .bustype = BUS_SPI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3462 | .total_size = 128, |
| 3463 | .page_size = 128, |
| 3464 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3465 | .tested = TEST_OK_PREW, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3466 | .spi_cmd_set = SPI_EDI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3467 | .probe = edi_probe_kb9012, |
| 3468 | .probe_timing = TIMING_ZERO, |
| 3469 | .block_erasers = |
| 3470 | { |
| 3471 | { |
| 3472 | .eraseblocks = { {128, 1024} }, |
| 3473 | .block_erase = edi_chip_block_erase, |
| 3474 | }, |
| 3475 | }, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3476 | .write = edi_chip_write, |
| 3477 | .read = edi_chip_read, |
| 3478 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3479 | .gran = write_gran_128bytes, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3480 | }, |
| 3481 | |
| 3482 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3483 | .vendor = "ESI", |
| 3484 | .name = "ES25P16", |
| 3485 | .bustype = BUS_SPI, |
| 3486 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3487 | .model_id = EXCEL_ES25P16, |
| 3488 | .total_size = 2 * 1024, |
| 3489 | .page_size = 256, |
| 3490 | /* 256-byte parameter page separate from memory array: |
| 3491 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3492 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3493 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 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 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3499 | .eraseblocks = { {64 * 1024, 32} }, |
| 3500 | .block_erase = spi_block_erase_d8, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3501 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3502 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3503 | .block_erase = spi_block_erase_c7, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3504 | } |
| 3505 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3506 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3507 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3508 | .write = spi_chip_write_256, |
| 3509 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3510 | .voltage = {2700, 3600}, |
| 3511 | }, |
| 3512 | |
| 3513 | { |
| 3514 | .vendor = "ESI", |
| 3515 | .name = "ES25P40", |
| 3516 | .bustype = BUS_SPI, |
| 3517 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3518 | .model_id = EXCEL_ES25P40, |
| 3519 | .total_size = 512, |
| 3520 | .page_size = 256, |
| 3521 | /* 256-byte parameter page separate from memory array: |
| 3522 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3523 | .feature_bits = FEATURE_WRSR_WREN, |
| 3524 | .tested = TEST_UNTESTED, |
| 3525 | .probe = probe_spi_rdid, |
| 3526 | .probe_timing = TIMING_ZERO, |
| 3527 | .block_erasers = |
| 3528 | { |
| 3529 | { |
| 3530 | .eraseblocks = { {64 * 1024, 8} }, |
| 3531 | .block_erase = spi_block_erase_d8, |
| 3532 | }, { |
| 3533 | .eraseblocks = { {512 * 1024, 1} }, |
| 3534 | .block_erase = spi_block_erase_c7, |
| 3535 | } |
| 3536 | }, |
| 3537 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3538 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3539 | .write = spi_chip_write_256, |
| 3540 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3541 | .voltage = {2700, 3600}, |
| 3542 | }, |
| 3543 | |
| 3544 | { |
| 3545 | .vendor = "ESI", |
| 3546 | .name = "ES25P80", |
| 3547 | .bustype = BUS_SPI, |
| 3548 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3549 | .model_id = EXCEL_ES25P80, |
| 3550 | .total_size = 1024, |
| 3551 | .page_size = 256, |
| 3552 | /* 256-byte parameter page separate from memory array: |
| 3553 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3554 | .feature_bits = FEATURE_WRSR_WREN, |
| 3555 | .tested = TEST_UNTESTED, |
| 3556 | .probe = probe_spi_rdid, |
| 3557 | .probe_timing = TIMING_ZERO, |
| 3558 | .block_erasers = |
| 3559 | { |
| 3560 | { |
| 3561 | .eraseblocks = { {64 * 1024, 16} }, |
| 3562 | .block_erase = spi_block_erase_d8, |
| 3563 | }, { |
| 3564 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3565 | .block_erase = spi_block_erase_c7, |
| 3566 | } |
| 3567 | }, |
| 3568 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3569 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3570 | .write = spi_chip_write_256, |
| 3571 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3572 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3573 | }, |
| 3574 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3575 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3576 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3577 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3578 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3579 | .manufacture_id = ESMT_ID, |
| 3580 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3581 | .total_size = 1024, |
| 3582 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3583 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3584 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3585 | .probe = probe_spi_rdid, |
| 3586 | .probe_timing = TIMING_ZERO, |
| 3587 | .block_erasers = |
| 3588 | { |
| 3589 | { |
| 3590 | .eraseblocks = { {4 * 1024, 256} }, |
| 3591 | .block_erase = spi_block_erase_20, |
| 3592 | }, { |
| 3593 | .eraseblocks = { {64 * 1024, 16} }, |
| 3594 | .block_erase = spi_block_erase_d8, |
| 3595 | }, { |
| 3596 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3597 | .block_erase = spi_block_erase_60, |
| 3598 | }, { |
| 3599 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3600 | .block_erase = spi_block_erase_c7, |
| 3601 | } |
| 3602 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3603 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3604 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3605 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3606 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3607 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3608 | }, |
| 3609 | |
| 3610 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3611 | .vendor = "ESMT", |
| 3612 | .name = "F25L32PA", |
| 3613 | .bustype = BUS_SPI, |
| 3614 | .manufacture_id = ESMT_ID, |
| 3615 | .model_id = ESMT_F25L32PA, |
| 3616 | .total_size = 4096, |
| 3617 | .page_size = 256, |
| 3618 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3619 | .tested = TEST_UNTESTED, |
| 3620 | .probe = probe_spi_rdid, |
| 3621 | .probe_timing = TIMING_ZERO, |
| 3622 | .block_erasers = |
| 3623 | { |
| 3624 | { |
| 3625 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3626 | .block_erase = spi_block_erase_20, |
| 3627 | }, { |
| 3628 | .eraseblocks = { {64 * 1024, 64} }, |
| 3629 | .block_erase = spi_block_erase_d8, |
| 3630 | }, { |
| 3631 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3632 | .block_erase = spi_block_erase_60, |
| 3633 | }, { |
| 3634 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3635 | .block_erase = spi_block_erase_c7, |
| 3636 | } |
| 3637 | }, |
| 3638 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3639 | .unlock = spi_disable_blockprotect, |
| 3640 | .write = spi_chip_write_256, |
| 3641 | .read = spi_chip_read, |
| 3642 | .voltage = {2700, 3600}, |
| 3643 | }, |
| 3644 | |
| 3645 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3646 | .vendor = "ESMT", |
| 3647 | .name = "F49B002UA", |
| 3648 | .bustype = BUS_PARALLEL, |
| 3649 | .manufacture_id = ESMT_ID, |
| 3650 | .model_id = ESMT_F49B002UA, |
| 3651 | .total_size = 256, |
| 3652 | .page_size = 4096, |
| 3653 | .feature_bits = FEATURE_EITHER_RESET, |
| 3654 | .tested = TEST_UNTESTED, |
| 3655 | .probe = probe_jedec, |
| 3656 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3657 | .block_erasers = |
| 3658 | { |
| 3659 | { |
| 3660 | .eraseblocks = { |
| 3661 | {128 * 1024, 1}, |
| 3662 | {96 * 1024, 1}, |
| 3663 | {8 * 1024, 2}, |
| 3664 | {16 * 1024, 1}, |
| 3665 | }, |
| 3666 | .block_erase = erase_sector_jedec, |
| 3667 | }, { |
| 3668 | .eraseblocks = { {256 * 1024, 1} }, |
| 3669 | .block_erase = erase_chip_block_jedec, |
| 3670 | } |
| 3671 | }, |
| 3672 | .write = write_jedec_1, |
| 3673 | .read = read_memmapped, |
| 3674 | .voltage = {4500, 5500}, |
| 3675 | }, |
| 3676 | |
| 3677 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3678 | .vendor = "Eon", |
| 3679 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3680 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3681 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3682 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3683 | .total_size = 64, |
| 3684 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3685 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3686 | .tested = TEST_UNTESTED, |
| 3687 | .probe = probe_spi_rdid, |
| 3688 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3689 | .block_erasers = |
| 3690 | { |
| 3691 | { |
| 3692 | .eraseblocks = { |
| 3693 | {4 * 1024, 2}, |
| 3694 | {8 * 1024, 1}, |
| 3695 | {16 * 1024, 1}, |
| 3696 | {32 * 1024, 1}, |
| 3697 | }, |
| 3698 | .block_erase = spi_block_erase_d8, |
| 3699 | }, { |
| 3700 | .eraseblocks = { {64 * 1024, 1} }, |
| 3701 | .block_erase = spi_block_erase_c7, |
| 3702 | } |
| 3703 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3704 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3705 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3706 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3707 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3708 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3709 | }, |
| 3710 | |
| 3711 | { |
| 3712 | .vendor = "Eon", |
| 3713 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3714 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3715 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3716 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3717 | .total_size = 64, |
| 3718 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3719 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3720 | .tested = TEST_UNTESTED, |
| 3721 | .probe = probe_spi_rdid, |
| 3722 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3723 | .block_erasers = |
| 3724 | { |
| 3725 | { |
| 3726 | .eraseblocks = { |
| 3727 | {32 * 1024, 1}, |
| 3728 | {16 * 1024, 1}, |
| 3729 | {8 * 1024, 1}, |
| 3730 | {4 * 1024, 2}, |
| 3731 | }, |
| 3732 | .block_erase = spi_block_erase_d8, |
| 3733 | }, { |
| 3734 | .eraseblocks = { {64 * 1024, 1} }, |
| 3735 | .block_erase = spi_block_erase_c7, |
| 3736 | } |
| 3737 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3738 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3739 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3740 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3741 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3742 | .voltage = {2700, 3600}, |
| 3743 | }, |
| 3744 | |
| 3745 | { |
| 3746 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3747 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3748 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3749 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3750 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3751 | .total_size = 128, |
| 3752 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3753 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3754 | .tested = TEST_UNTESTED, |
| 3755 | .probe = probe_spi_rdid, |
| 3756 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3757 | .block_erasers = |
| 3758 | { |
| 3759 | { |
| 3760 | .eraseblocks = { |
| 3761 | {4 * 1024, 2}, |
| 3762 | {8 * 1024, 1}, |
| 3763 | {16 * 1024, 1}, |
| 3764 | {32 * 1024, 3}, |
| 3765 | }, |
| 3766 | .block_erase = spi_block_erase_d8, |
| 3767 | }, { |
| 3768 | .eraseblocks = { {128 * 1024, 1} }, |
| 3769 | .block_erase = spi_block_erase_c7, |
| 3770 | } |
| 3771 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3772 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3773 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3774 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 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}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3777 | }, |
| 3778 | |
| 3779 | { |
| 3780 | .vendor = "Eon", |
| 3781 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3782 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +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_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3785 | .total_size = 128, |
| 3786 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3787 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3788 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 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 | {32 * 1024, 3}, |
| 3796 | {16 * 1024, 1}, |
| 3797 | {8 * 1024, 1}, |
| 3798 | {4 * 1024, 2}, |
| 3799 | }, |
| 3800 | .block_erase = spi_block_erase_d8, |
| 3801 | }, { |
| 3802 | .eraseblocks = { {128 * 1024, 1} }, |
| 3803 | .block_erase = spi_block_erase_c7, |
| 3804 | } |
| 3805 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3806 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3807 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3808 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3809 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3810 | .voltage = {2700, 3600}, |
| 3811 | }, |
| 3812 | |
| 3813 | { |
| 3814 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3815 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3816 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3817 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3818 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3819 | .total_size = 2048, |
| 3820 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3821 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3822 | .tested = TEST_UNTESTED, |
| 3823 | .probe = probe_spi_rdid, |
| 3824 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3825 | .block_erasers = |
| 3826 | { |
| 3827 | { |
| 3828 | .eraseblocks = { |
| 3829 | {4 * 1024, 2}, |
| 3830 | {8 * 1024, 1}, |
| 3831 | {16 * 1024, 1}, |
| 3832 | {32 * 1024, 1}, |
| 3833 | {64 * 1024, 31}, |
| 3834 | }, |
| 3835 | .block_erase = spi_block_erase_d8, |
| 3836 | }, { |
| 3837 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3838 | .block_erase = spi_block_erase_c7, |
| 3839 | } |
| 3840 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3841 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3842 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3843 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3844 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3845 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3846 | }, |
| 3847 | |
| 3848 | { |
| 3849 | .vendor = "Eon", |
| 3850 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3851 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3852 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3853 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3854 | .total_size = 2048, |
| 3855 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3856 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3857 | .tested = TEST_UNTESTED, |
| 3858 | .probe = probe_spi_rdid, |
| 3859 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3860 | .block_erasers = |
| 3861 | { |
| 3862 | { |
| 3863 | .eraseblocks = { |
| 3864 | {64 * 1024, 31}, |
| 3865 | {32 * 1024, 1}, |
| 3866 | {16 * 1024, 1}, |
| 3867 | {8 * 1024, 1}, |
| 3868 | {4 * 1024, 2}, |
| 3869 | }, |
| 3870 | .block_erase = spi_block_erase_d8, |
| 3871 | }, { |
| 3872 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3873 | .block_erase = spi_block_erase_c7, |
| 3874 | } |
| 3875 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3876 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3877 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3878 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3879 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3880 | .voltage = {2700, 3600}, |
| 3881 | }, |
| 3882 | |
| 3883 | { |
| 3884 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3885 | .name = "EN25B20", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3886 | .bustype = BUS_SPI, |
| 3887 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3888 | .model_id = EON_EN25B20, |
| 3889 | .total_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3890 | .page_size = 256, |
| 3891 | .feature_bits = FEATURE_WRSR_WREN, |
| 3892 | .tested = TEST_UNTESTED, |
| 3893 | .probe = probe_spi_rdid, |
| 3894 | .probe_timing = TIMING_ZERO, |
| 3895 | .block_erasers = |
| 3896 | { |
| 3897 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3898 | .eraseblocks = { |
| 3899 | {4 * 1024, 2}, |
| 3900 | {8 * 1024, 1}, |
| 3901 | {16 * 1024, 1}, |
| 3902 | {32 * 1024, 1}, |
| 3903 | {64 * 1024, 3} |
| 3904 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3905 | .block_erase = spi_block_erase_d8, |
| 3906 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3907 | .eraseblocks = { {256 * 1024, 1} }, |
| 3908 | .block_erase = spi_block_erase_c7, |
| 3909 | } |
| 3910 | }, |
| 3911 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3912 | .unlock = spi_disable_blockprotect, |
| 3913 | .write = spi_chip_write_256, |
| 3914 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3915 | .voltage = {2700, 3600}, |
| 3916 | }, |
| 3917 | |
| 3918 | { |
| 3919 | .vendor = "Eon", |
| 3920 | .name = "EN25B20T", |
| 3921 | .bustype = BUS_SPI, |
| 3922 | .manufacture_id = EON_ID_NOPREFIX, |
| 3923 | .model_id = EON_EN25B20, |
| 3924 | .total_size = 256, |
| 3925 | .page_size = 256, |
| 3926 | .feature_bits = FEATURE_WRSR_WREN, |
| 3927 | .tested = TEST_UNTESTED, |
| 3928 | .probe = probe_spi_rdid, |
| 3929 | .probe_timing = TIMING_ZERO, |
| 3930 | .block_erasers = |
| 3931 | { |
| 3932 | { |
| 3933 | .eraseblocks = { |
| 3934 | {64 * 1024, 3}, |
| 3935 | {32 * 1024, 1}, |
| 3936 | {16 * 1024, 1}, |
| 3937 | {8 * 1024, 1}, |
| 3938 | {4 * 1024, 2}, |
| 3939 | }, |
| 3940 | .block_erase = spi_block_erase_d8, |
| 3941 | }, { |
| 3942 | .eraseblocks = { {256 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3943 | .block_erase = spi_block_erase_c7, |
| 3944 | } |
| 3945 | }, |
| 3946 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3947 | .unlock = spi_disable_blockprotect, |
| 3948 | .write = spi_chip_write_256, |
| 3949 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3950 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3951 | }, |
| 3952 | |
| 3953 | { |
| 3954 | .vendor = "Eon", |
| 3955 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3956 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3957 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3958 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3959 | .total_size = 4096, |
| 3960 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3961 | /* OTP: 512B total; enter 0x3A */ |
| 3962 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3963 | .tested = TEST_UNTESTED, |
| 3964 | .probe = probe_spi_rdid, |
| 3965 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3966 | .block_erasers = |
| 3967 | { |
| 3968 | { |
| 3969 | .eraseblocks = { |
| 3970 | {4 * 1024, 2}, |
| 3971 | {8 * 1024, 1}, |
| 3972 | {16 * 1024, 1}, |
| 3973 | {32 * 1024, 1}, |
| 3974 | {64 * 1024, 63}, |
| 3975 | }, |
| 3976 | .block_erase = spi_block_erase_d8, |
| 3977 | }, { |
| 3978 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3979 | .block_erase = spi_block_erase_c7, |
| 3980 | } |
| 3981 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3982 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3983 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3984 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3985 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3986 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3987 | }, |
| 3988 | |
| 3989 | { |
| 3990 | .vendor = "Eon", |
| 3991 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3992 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3993 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3994 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3995 | .total_size = 4096, |
| 3996 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3997 | /* OTP: 512B total; enter 0x3A */ |
| 3998 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3999 | .tested = TEST_UNTESTED, |
| 4000 | .probe = probe_spi_rdid, |
| 4001 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4002 | .block_erasers = |
| 4003 | { |
| 4004 | { |
| 4005 | .eraseblocks = { |
| 4006 | {64 * 1024, 63}, |
| 4007 | {32 * 1024, 1}, |
| 4008 | {16 * 1024, 1}, |
| 4009 | {8 * 1024, 1}, |
| 4010 | {4 * 1024, 2}, |
| 4011 | }, |
| 4012 | .block_erase = spi_block_erase_d8, |
| 4013 | }, { |
| 4014 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4015 | .block_erase = spi_block_erase_c7, |
| 4016 | } |
| 4017 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4018 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4019 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4020 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4021 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4022 | .voltage = {2700, 3600}, |
| 4023 | }, |
| 4024 | |
| 4025 | { |
| 4026 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4027 | .name = "EN25B40", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4028 | .bustype = BUS_SPI, |
| 4029 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4030 | .model_id = EON_EN25B40, |
| 4031 | .total_size = 512, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4032 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4033 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4034 | .tested = TEST_UNTESTED, |
| 4035 | .probe = probe_spi_rdid, |
| 4036 | .probe_timing = TIMING_ZERO, |
| 4037 | .block_erasers = |
| 4038 | { |
| 4039 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4040 | .eraseblocks = { |
| 4041 | {4 * 1024, 2}, |
| 4042 | {8 * 1024, 1}, |
| 4043 | {16 * 1024, 1}, |
| 4044 | {32 * 1024, 1}, |
| 4045 | {64 * 1024, 7} |
| 4046 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4047 | .block_erase = spi_block_erase_d8, |
| 4048 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4049 | .eraseblocks = { {512 * 1024, 1} }, |
| 4050 | .block_erase = spi_block_erase_c7, |
| 4051 | } |
| 4052 | }, |
| 4053 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4054 | .unlock = spi_disable_blockprotect, |
| 4055 | .write = spi_chip_write_256, |
| 4056 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4057 | .voltage = {2700, 3600}, |
| 4058 | }, |
| 4059 | |
| 4060 | { |
| 4061 | .vendor = "Eon", |
| 4062 | .name = "EN25B40T", |
| 4063 | .bustype = BUS_SPI, |
| 4064 | .manufacture_id = EON_ID_NOPREFIX, |
| 4065 | .model_id = EON_EN25B40, |
| 4066 | .total_size = 512, |
| 4067 | .page_size = 256, |
| 4068 | .feature_bits = FEATURE_WRSR_WREN, |
| 4069 | .tested = TEST_UNTESTED, |
| 4070 | .probe = probe_spi_rdid, |
| 4071 | .probe_timing = TIMING_ZERO, |
| 4072 | .block_erasers = |
| 4073 | { |
| 4074 | { |
| 4075 | .eraseblocks = { |
| 4076 | {64 * 1024, 7}, |
| 4077 | {32 * 1024, 1}, |
| 4078 | {16 * 1024, 1}, |
| 4079 | {8 * 1024, 1}, |
| 4080 | {4 * 1024, 2}, |
| 4081 | }, |
| 4082 | .block_erase = spi_block_erase_d8, |
| 4083 | }, { |
| 4084 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4085 | .block_erase = spi_block_erase_c7, |
| 4086 | } |
| 4087 | }, |
| 4088 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4089 | .unlock = spi_disable_blockprotect, |
| 4090 | .write = spi_chip_write_256, |
| 4091 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4092 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4093 | }, |
| 4094 | |
| 4095 | { |
| 4096 | .vendor = "Eon", |
| 4097 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4098 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4099 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4100 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4101 | .total_size = 8192, |
| 4102 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4103 | /* OTP: 512B total; enter 0x3A */ |
| 4104 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4105 | .tested = TEST_UNTESTED, |
| 4106 | .probe = probe_spi_rdid, |
| 4107 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4108 | .block_erasers = |
| 4109 | { |
| 4110 | { |
| 4111 | .eraseblocks = { |
| 4112 | {4 * 1024, 2}, |
| 4113 | {8 * 1024, 1}, |
| 4114 | {16 * 1024, 1}, |
| 4115 | {32 * 1024, 1}, |
| 4116 | {64 * 1024, 127}, |
| 4117 | }, |
| 4118 | .block_erase = spi_block_erase_d8, |
| 4119 | }, { |
| 4120 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4121 | .block_erase = spi_block_erase_c7, |
| 4122 | } |
| 4123 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4124 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4125 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4126 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4127 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4128 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4129 | }, |
| 4130 | |
| 4131 | { |
| 4132 | .vendor = "Eon", |
| 4133 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4134 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4135 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4136 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4137 | .total_size = 8192, |
| 4138 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4139 | /* OTP: 512B total; enter 0x3A */ |
| 4140 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4141 | .tested = TEST_UNTESTED, |
| 4142 | .probe = probe_spi_rdid, |
| 4143 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4144 | .block_erasers = |
| 4145 | { |
| 4146 | { |
| 4147 | .eraseblocks = { |
| 4148 | {64 * 1024, 127}, |
| 4149 | {32 * 1024, 1}, |
| 4150 | {16 * 1024, 1}, |
| 4151 | {8 * 1024, 1}, |
| 4152 | {4 * 1024, 2}, |
| 4153 | }, |
| 4154 | .block_erase = spi_block_erase_d8, |
| 4155 | }, { |
| 4156 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4157 | .block_erase = spi_block_erase_c7, |
| 4158 | } |
| 4159 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4160 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4161 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4162 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4163 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4164 | .voltage = {2700, 3600}, |
| 4165 | }, |
| 4166 | |
| 4167 | { |
| 4168 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4169 | .name = "EN25B80", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4170 | .bustype = BUS_SPI, |
| 4171 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4172 | .model_id = EON_EN25B80, |
| 4173 | .total_size = 1024, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4174 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4175 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4176 | .tested = TEST_UNTESTED, |
| 4177 | .probe = probe_spi_rdid, |
| 4178 | .probe_timing = TIMING_ZERO, |
| 4179 | .block_erasers = |
| 4180 | { |
| 4181 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4182 | .eraseblocks = { |
| 4183 | {4 * 1024, 2}, |
| 4184 | {8 * 1024, 1}, |
| 4185 | {16 * 1024, 1}, |
| 4186 | {32 * 1024, 1}, |
| 4187 | {64 * 1024, 15} |
| 4188 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4189 | .block_erase = spi_block_erase_d8, |
| 4190 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4191 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4192 | .block_erase = spi_block_erase_c7, |
| 4193 | } |
| 4194 | }, |
| 4195 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4196 | .unlock = spi_disable_blockprotect, |
| 4197 | .write = spi_chip_write_256, |
| 4198 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4199 | .voltage = {2700, 3600}, |
| 4200 | }, |
| 4201 | |
| 4202 | { |
| 4203 | .vendor = "Eon", |
| 4204 | .name = "EN25B80T", |
| 4205 | .bustype = BUS_SPI, |
| 4206 | .manufacture_id = EON_ID_NOPREFIX, |
| 4207 | .model_id = EON_EN25B80, |
| 4208 | .total_size = 1024, |
| 4209 | .page_size = 256, |
| 4210 | .feature_bits = FEATURE_WRSR_WREN, |
| 4211 | .tested = TEST_UNTESTED, |
| 4212 | .probe = probe_spi_rdid, |
| 4213 | .probe_timing = TIMING_ZERO, |
| 4214 | .block_erasers = |
| 4215 | { |
| 4216 | { |
| 4217 | .eraseblocks = { |
| 4218 | {64 * 1024, 15}, |
| 4219 | {32 * 1024, 1}, |
| 4220 | {16 * 1024, 1}, |
| 4221 | {8 * 1024, 1}, |
| 4222 | {4 * 1024, 2}, |
| 4223 | }, |
| 4224 | .block_erase = spi_block_erase_d8, |
| 4225 | }, { |
| 4226 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4227 | .block_erase = spi_block_erase_c7, |
| 4228 | } |
| 4229 | }, |
| 4230 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4231 | .unlock = spi_disable_blockprotect, |
| 4232 | .write = spi_chip_write_256, |
| 4233 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4234 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4235 | }, |
| 4236 | |
| 4237 | { |
| 4238 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4239 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4240 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4241 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4242 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4243 | .total_size = 64, |
| 4244 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4245 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4246 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4247 | .probe = probe_spi_rdid, |
| 4248 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4249 | .block_erasers = |
| 4250 | { |
| 4251 | { |
| 4252 | .eraseblocks = { {4 * 1024, 16} }, |
| 4253 | .block_erase = spi_block_erase_20, |
| 4254 | }, { |
| 4255 | .eraseblocks = { {32 * 1024, 2} }, |
| 4256 | .block_erase = spi_block_erase_d8, |
| 4257 | }, { |
| 4258 | .eraseblocks = { {32 * 1024, 2} }, |
| 4259 | .block_erase = spi_block_erase_52, |
| 4260 | }, { |
| 4261 | .eraseblocks = { {64 * 1024, 1} }, |
| 4262 | .block_erase = spi_block_erase_60, |
| 4263 | }, { |
| 4264 | .eraseblocks = { {64 * 1024, 1} }, |
| 4265 | .block_erase = spi_block_erase_c7, |
| 4266 | } |
| 4267 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4268 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4269 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4270 | .write = spi_chip_write_256, |
| 4271 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4272 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4273 | }, |
| 4274 | |
| 4275 | { |
| 4276 | .vendor = "Eon", |
| 4277 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4278 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4279 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4280 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4281 | .total_size = 128, |
| 4282 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4283 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4284 | .tested = TEST_UNTESTED, |
| 4285 | .probe = probe_spi_rdid, |
| 4286 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4287 | .block_erasers = |
| 4288 | { |
| 4289 | { |
| 4290 | .eraseblocks = { {4 * 1024, 32} }, |
| 4291 | .block_erase = spi_block_erase_20, |
| 4292 | }, { |
| 4293 | .eraseblocks = { {32 * 1024, 4} }, |
| 4294 | .block_erase = spi_block_erase_d8, |
| 4295 | }, { |
| 4296 | .eraseblocks = { {32 * 1024, 4} }, |
| 4297 | .block_erase = spi_block_erase_52, |
| 4298 | }, { |
| 4299 | .eraseblocks = { {128 * 1024, 1} }, |
| 4300 | .block_erase = spi_block_erase_60, |
| 4301 | }, { |
| 4302 | .eraseblocks = { {128 * 1024, 1} }, |
| 4303 | .block_erase = spi_block_erase_c7, |
| 4304 | } |
| 4305 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4306 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4307 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4308 | .write = spi_chip_write_256, |
| 4309 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4310 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4311 | }, |
| 4312 | |
| 4313 | { |
| 4314 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4315 | .name = "EN25F16", |
| 4316 | .bustype = BUS_SPI, |
| 4317 | .manufacture_id = EON_ID_NOPREFIX, |
| 4318 | .model_id = EON_EN25F16, |
| 4319 | .total_size = 2048, |
| 4320 | .page_size = 256, |
| 4321 | .feature_bits = FEATURE_WRSR_WREN, |
| 4322 | .tested = TEST_OK_PREW, |
| 4323 | .probe = probe_spi_rdid, |
| 4324 | .probe_timing = TIMING_ZERO, |
| 4325 | .block_erasers = |
| 4326 | { |
| 4327 | { |
| 4328 | .eraseblocks = { {4 * 1024, 512} }, |
| 4329 | .block_erase = spi_block_erase_20, |
| 4330 | }, { |
| 4331 | .eraseblocks = { {64 * 1024, 32} }, |
| 4332 | .block_erase = spi_block_erase_d8, |
| 4333 | }, { |
| 4334 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4335 | .block_erase = spi_block_erase_60, |
| 4336 | }, { |
| 4337 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4338 | .block_erase = spi_block_erase_c7, |
| 4339 | } |
| 4340 | }, |
| 4341 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4342 | .unlock = spi_disable_blockprotect, |
| 4343 | .write = spi_chip_write_256, |
| 4344 | .read = spi_chip_read, |
| 4345 | .voltage = {2700, 3600}, |
| 4346 | }, |
| 4347 | |
| 4348 | { |
| 4349 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4350 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4351 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4352 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4353 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4354 | .total_size = 256, |
| 4355 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4356 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4357 | .tested = TEST_UNTESTED, |
| 4358 | .probe = probe_spi_rdid, |
| 4359 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4360 | .block_erasers = |
| 4361 | { |
| 4362 | { |
| 4363 | .eraseblocks = { {4 * 1024, 64} }, |
| 4364 | .block_erase = spi_block_erase_20, |
| 4365 | }, { |
| 4366 | .eraseblocks = { {64 * 1024, 4} }, |
| 4367 | .block_erase = spi_block_erase_d8, |
| 4368 | }, { |
| 4369 | .eraseblocks = { {64 * 1024, 4} }, |
| 4370 | .block_erase = spi_block_erase_52, |
| 4371 | }, { |
| 4372 | .eraseblocks = { {256 * 1024, 1} }, |
| 4373 | .block_erase = spi_block_erase_60, |
| 4374 | }, { |
| 4375 | .eraseblocks = { {256 * 1024, 1} }, |
| 4376 | .block_erase = spi_block_erase_c7, |
| 4377 | } |
| 4378 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4379 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4380 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4381 | .write = spi_chip_write_256, |
| 4382 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4383 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4384 | }, |
| 4385 | |
| 4386 | { |
| 4387 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4388 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4389 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4390 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4391 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4392 | .total_size = 4096, |
| 4393 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4394 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4395 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4396 | .probe = probe_spi_rdid, |
| 4397 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4398 | .block_erasers = |
| 4399 | { |
| 4400 | { |
| 4401 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4402 | .block_erase = spi_block_erase_20, |
| 4403 | }, { |
| 4404 | .eraseblocks = { {64 * 1024, 64} }, |
| 4405 | .block_erase = spi_block_erase_d8, |
| 4406 | }, { |
| 4407 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4408 | .block_erase = spi_block_erase_60, |
| 4409 | }, { |
| 4410 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4411 | .block_erase = spi_block_erase_c7, |
| 4412 | } |
| 4413 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4414 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4415 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4416 | .write = spi_chip_write_256, |
| 4417 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4418 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4419 | }, |
| 4420 | |
| 4421 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4422 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4423 | .name = "EN25F40", |
| 4424 | .bustype = BUS_SPI, |
| 4425 | .manufacture_id = EON_ID_NOPREFIX, |
| 4426 | .model_id = EON_EN25F40, |
| 4427 | .total_size = 512, |
| 4428 | .page_size = 256, |
| 4429 | .feature_bits = FEATURE_WRSR_WREN, |
| 4430 | .tested = TEST_OK_PREW, |
| 4431 | .probe = probe_spi_rdid, |
| 4432 | .probe_timing = TIMING_ZERO, |
| 4433 | .block_erasers = |
| 4434 | { |
| 4435 | { |
| 4436 | .eraseblocks = { {4 * 1024, 128} }, |
| 4437 | .block_erase = spi_block_erase_20, |
| 4438 | }, { |
| 4439 | .eraseblocks = { {64 * 1024, 8} }, |
| 4440 | .block_erase = spi_block_erase_d8, |
| 4441 | }, { |
| 4442 | .eraseblocks = { {512 * 1024, 1} }, |
| 4443 | .block_erase = spi_block_erase_60, |
| 4444 | }, { |
| 4445 | .eraseblocks = { {512 * 1024, 1} }, |
| 4446 | .block_erase = spi_block_erase_c7, |
| 4447 | }, |
| 4448 | }, |
| 4449 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4450 | .unlock = spi_disable_blockprotect, |
| 4451 | .write = spi_chip_write_256, |
| 4452 | .read = spi_chip_read, |
| 4453 | .voltage = {2700, 3600}, |
| 4454 | }, |
| 4455 | |
| 4456 | { |
| 4457 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4458 | .name = "EN25F64", |
| 4459 | .bustype = BUS_SPI, |
| 4460 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4461 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4462 | .total_size = 8192, |
| 4463 | .page_size = 256, |
| 4464 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4465 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4466 | .probe = probe_spi_rdid, |
| 4467 | .probe_timing = TIMING_ZERO, |
| 4468 | .block_erasers = |
| 4469 | { |
| 4470 | { |
| 4471 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4472 | .block_erase = spi_block_erase_20, |
| 4473 | }, { |
| 4474 | .eraseblocks = { {64 * 1024, 128} }, |
| 4475 | .block_erase = spi_block_erase_d8, |
| 4476 | }, { |
| 4477 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4478 | .block_erase = spi_block_erase_60, |
| 4479 | }, { |
| 4480 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4481 | .block_erase = spi_block_erase_c7, |
| 4482 | } |
| 4483 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4484 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4485 | .unlock = spi_disable_blockprotect, |
| 4486 | .write = spi_chip_write_256, |
| 4487 | .read = spi_chip_read, |
| 4488 | .voltage = {2700, 3600}, |
| 4489 | }, |
| 4490 | |
| 4491 | { |
| 4492 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4493 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4494 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4495 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4496 | .model_id = EON_EN25F80, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4497 | .total_size = 1024, |
| 4498 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4499 | .feature_bits = FEATURE_WRSR_WREN, |
| 4500 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4501 | .probe = probe_spi_rdid, |
| 4502 | .probe_timing = TIMING_ZERO, |
| 4503 | .block_erasers = |
| 4504 | { |
| 4505 | { |
| 4506 | .eraseblocks = { {4 * 1024, 256} }, |
| 4507 | .block_erase = spi_block_erase_20, |
| 4508 | }, { |
| 4509 | .eraseblocks = { {64 * 1024, 16} }, |
| 4510 | .block_erase = spi_block_erase_d8, |
| 4511 | }, { |
| 4512 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4513 | .block_erase = spi_block_erase_60, |
| 4514 | }, { |
| 4515 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4516 | .block_erase = spi_block_erase_c7, |
| 4517 | } |
| 4518 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4519 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4520 | .unlock = spi_disable_blockprotect, |
| 4521 | .write = spi_chip_write_256, |
| 4522 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4523 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4524 | }, |
| 4525 | |
| 4526 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4527 | .vendor = "Eon", |
| 4528 | .name = "EN25P05", |
| 4529 | .bustype = BUS_SPI, |
| 4530 | .manufacture_id = EON_ID_NOPREFIX, |
| 4531 | .model_id = EON_EN25B05, |
| 4532 | .total_size = 64, |
| 4533 | .page_size = 256, |
| 4534 | .feature_bits = FEATURE_WRSR_WREN, |
| 4535 | .tested = TEST_UNTESTED, |
| 4536 | .probe = probe_spi_rdid, |
| 4537 | .probe_timing = TIMING_ZERO, |
| 4538 | .block_erasers = |
| 4539 | { |
| 4540 | { |
| 4541 | .eraseblocks = { |
| 4542 | {32 * 1024, 2} }, |
| 4543 | .block_erase = spi_block_erase_d8, |
| 4544 | }, { |
| 4545 | .eraseblocks = { {64 * 1024, 1} }, |
| 4546 | .block_erase = spi_block_erase_c7, |
| 4547 | } |
| 4548 | }, |
| 4549 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4550 | .unlock = spi_disable_blockprotect, |
| 4551 | .write = spi_chip_write_256, |
| 4552 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4553 | .voltage = {2700, 3600}, |
| 4554 | }, |
| 4555 | |
| 4556 | { |
| 4557 | .vendor = "Eon", |
| 4558 | .name = "EN25P10", |
| 4559 | .bustype = BUS_SPI, |
| 4560 | .manufacture_id = EON_ID_NOPREFIX, |
| 4561 | .model_id = EON_EN25B10, |
| 4562 | .total_size = 128, |
| 4563 | .page_size = 256, |
| 4564 | .feature_bits = FEATURE_WRSR_WREN, |
| 4565 | .tested = TEST_UNTESTED, |
| 4566 | .probe = probe_spi_rdid, |
| 4567 | .probe_timing = TIMING_ZERO, |
| 4568 | .block_erasers = |
| 4569 | { |
| 4570 | { |
| 4571 | .eraseblocks = { {32 * 1024, 4} }, |
| 4572 | .block_erase = spi_block_erase_d8, |
| 4573 | }, { |
| 4574 | .eraseblocks = { {128 * 1024, 1} }, |
| 4575 | .block_erase = spi_block_erase_c7, |
| 4576 | } |
| 4577 | }, |
| 4578 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4579 | .unlock = spi_disable_blockprotect, |
| 4580 | .write = spi_chip_write_256, |
| 4581 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4582 | .voltage = {2700, 3600}, |
| 4583 | }, |
| 4584 | |
| 4585 | { |
| 4586 | .vendor = "Eon", |
| 4587 | .name = "EN25P16", |
| 4588 | .bustype = BUS_SPI, |
| 4589 | .manufacture_id = EON_ID_NOPREFIX, |
| 4590 | .model_id = EON_EN25B16, |
| 4591 | .total_size = 2048, |
| 4592 | .page_size = 256, |
| 4593 | .feature_bits = FEATURE_WRSR_WREN, |
| 4594 | .tested = TEST_UNTESTED, |
| 4595 | .probe = probe_spi_rdid, |
| 4596 | .probe_timing = TIMING_ZERO, |
| 4597 | .block_erasers = |
| 4598 | { |
| 4599 | { |
| 4600 | .eraseblocks = { {64 * 1024, 32} }, |
| 4601 | .block_erase = spi_block_erase_d8, |
| 4602 | }, { |
| 4603 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4604 | .block_erase = spi_block_erase_c7, |
| 4605 | } |
| 4606 | }, |
| 4607 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4608 | .unlock = spi_disable_blockprotect, |
| 4609 | .write = spi_chip_write_256, |
| 4610 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4611 | .voltage = {2700, 3600}, |
| 4612 | }, |
| 4613 | |
| 4614 | { |
| 4615 | .vendor = "Eon", |
| 4616 | .name = "EN25P20", |
| 4617 | .bustype = BUS_SPI, |
| 4618 | .manufacture_id = EON_ID_NOPREFIX, |
| 4619 | .model_id = EON_EN25B20, |
| 4620 | .total_size = 256, |
| 4621 | .page_size = 256, |
| 4622 | .feature_bits = FEATURE_WRSR_WREN, |
| 4623 | .tested = TEST_UNTESTED, |
| 4624 | .probe = probe_spi_rdid, |
| 4625 | .probe_timing = TIMING_ZERO, |
| 4626 | .block_erasers = |
| 4627 | { |
| 4628 | { |
| 4629 | .eraseblocks = { {64 * 1024, 4} }, |
| 4630 | .block_erase = spi_block_erase_d8, |
| 4631 | }, { |
| 4632 | .eraseblocks = { {256 * 1024, 1} }, |
| 4633 | .block_erase = spi_block_erase_c7, |
| 4634 | } |
| 4635 | }, |
| 4636 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4637 | .unlock = spi_disable_blockprotect, |
| 4638 | .write = spi_chip_write_256, |
| 4639 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4640 | .voltage = {2700, 3600}, |
| 4641 | }, |
| 4642 | |
| 4643 | { |
| 4644 | .vendor = "Eon", |
| 4645 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4646 | .bustype = BUS_SPI, |
| 4647 | .manufacture_id = EON_ID_NOPREFIX, |
| 4648 | .model_id = EON_EN25B32, |
| 4649 | .total_size = 4096, |
| 4650 | .page_size = 256, |
| 4651 | /* OTP: 512B total; enter 0x3A */ |
| 4652 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4653 | .tested = TEST_UNTESTED, |
| 4654 | .probe = probe_spi_rdid, |
| 4655 | .probe_timing = TIMING_ZERO, |
| 4656 | .block_erasers = |
| 4657 | { |
| 4658 | { |
| 4659 | .eraseblocks = { {64 * 1024, 64} }, |
| 4660 | .block_erase = spi_block_erase_d8, |
| 4661 | }, { |
| 4662 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4663 | .block_erase = spi_block_erase_c7, |
| 4664 | } |
| 4665 | }, |
| 4666 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4667 | .unlock = spi_disable_blockprotect, |
| 4668 | .write = spi_chip_write_256, |
| 4669 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4670 | .voltage = {2700, 3600}, |
| 4671 | }, |
| 4672 | |
| 4673 | { |
| 4674 | .vendor = "Eon", |
| 4675 | .name = "EN25P40", |
| 4676 | .bustype = BUS_SPI, |
| 4677 | .manufacture_id = EON_ID_NOPREFIX, |
| 4678 | .model_id = EON_EN25B40, |
| 4679 | .total_size = 512, |
| 4680 | .page_size = 256, |
| 4681 | .feature_bits = FEATURE_WRSR_WREN, |
| 4682 | .tested = TEST_UNTESTED, |
| 4683 | .probe = probe_spi_rdid, |
| 4684 | .probe_timing = TIMING_ZERO, |
| 4685 | .block_erasers = |
| 4686 | { |
| 4687 | { |
| 4688 | .eraseblocks = { {64 * 1024, 8} }, |
| 4689 | .block_erase = spi_block_erase_d8, |
| 4690 | }, { |
| 4691 | .eraseblocks = { {512 * 1024, 1} }, |
| 4692 | .block_erase = spi_block_erase_c7, |
| 4693 | } |
| 4694 | }, |
| 4695 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4696 | .unlock = spi_disable_blockprotect, |
| 4697 | .write = spi_chip_write_256, |
| 4698 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4699 | .voltage = {2700, 3600}, |
| 4700 | }, |
| 4701 | |
| 4702 | { |
| 4703 | .vendor = "Eon", |
| 4704 | .name = "EN25P64", |
| 4705 | .bustype = BUS_SPI, |
| 4706 | .manufacture_id = EON_ID_NOPREFIX, |
| 4707 | .model_id = EON_EN25B64, |
| 4708 | .total_size = 8192, |
| 4709 | .page_size = 256, |
| 4710 | /* OTP: 512B total; enter 0x3A */ |
| 4711 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4712 | .tested = TEST_UNTESTED, |
| 4713 | .probe = probe_spi_rdid, |
| 4714 | .probe_timing = TIMING_ZERO, |
| 4715 | .block_erasers = |
| 4716 | { |
| 4717 | { |
| 4718 | .eraseblocks = { {64 * 1024, 128} }, |
| 4719 | .block_erase = spi_block_erase_d8, |
| 4720 | }, { |
| 4721 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4722 | .block_erase = spi_block_erase_c7, |
| 4723 | } |
| 4724 | }, |
| 4725 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4726 | .unlock = spi_disable_blockprotect, |
| 4727 | .write = spi_chip_write_256, |
| 4728 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4729 | .voltage = {2700, 3600}, |
| 4730 | }, |
| 4731 | |
| 4732 | { |
| 4733 | .vendor = "Eon", |
| 4734 | .name = "EN25P80", |
| 4735 | .bustype = BUS_SPI, |
| 4736 | .manufacture_id = EON_ID_NOPREFIX, |
| 4737 | .model_id = EON_EN25B80, |
| 4738 | .total_size = 1024, |
| 4739 | .page_size = 256, |
| 4740 | .feature_bits = FEATURE_WRSR_WREN, |
| 4741 | .tested = TEST_UNTESTED, |
| 4742 | .probe = probe_spi_rdid, |
| 4743 | .probe_timing = TIMING_ZERO, |
| 4744 | .block_erasers = |
| 4745 | { |
| 4746 | { |
| 4747 | .eraseblocks = { {64 * 1024, 16} }, |
| 4748 | .block_erase = spi_block_erase_d8, |
| 4749 | }, { |
| 4750 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4751 | .block_erase = spi_block_erase_c7, |
| 4752 | } |
| 4753 | }, |
| 4754 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4755 | .unlock = spi_disable_blockprotect, |
| 4756 | .write = spi_chip_write_256, |
| 4757 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4758 | .voltage = {2700, 3600}, |
| 4759 | }, |
| 4760 | |
| 4761 | { |
| 4762 | .vendor = "Eon", |
| 4763 | .name = "EN25Q128", |
| 4764 | .bustype = BUS_SPI, |
| 4765 | .manufacture_id = EON_ID_NOPREFIX, |
| 4766 | .model_id = EON_EN25Q128, |
| 4767 | .total_size = 16384, |
| 4768 | .page_size = 256, |
| 4769 | /* OTP: 512B total; enter 0x3A */ |
| 4770 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4771 | .tested = TEST_OK_PREW, |
| 4772 | .probe = probe_spi_rdid, |
| 4773 | .probe_timing = TIMING_ZERO, |
| 4774 | .block_erasers = |
| 4775 | { |
| 4776 | { |
| 4777 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4778 | .block_erase = spi_block_erase_20, |
| 4779 | }, { |
| 4780 | .eraseblocks = { {64 * 1024, 256} }, |
| 4781 | .block_erase = spi_block_erase_d8, |
| 4782 | }, { |
| 4783 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4784 | .block_erase = spi_block_erase_60, |
| 4785 | }, { |
| 4786 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4787 | .block_erase = spi_block_erase_c7, |
| 4788 | } |
| 4789 | }, |
| 4790 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4791 | .unlock = spi_disable_blockprotect, |
| 4792 | .write = spi_chip_write_256, |
| 4793 | .read = spi_chip_read, |
| 4794 | }, |
| 4795 | |
| 4796 | { |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4797 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4798 | but has different write protection capabilities */ |
| 4799 | .vendor = "Eon", |
| 4800 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4801 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4802 | .manufacture_id = EON_ID_NOPREFIX, |
| 4803 | .model_id = EON_EN25Q16, |
| 4804 | .total_size = 2048, |
| 4805 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4806 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4807 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4808 | .tested = TEST_UNTESTED, |
| 4809 | .probe = probe_spi_rdid, |
| 4810 | .probe_timing = TIMING_ZERO, |
| 4811 | .block_erasers = |
| 4812 | { |
| 4813 | { |
| 4814 | .eraseblocks = { {4 * 1024, 512} }, |
| 4815 | .block_erase = spi_block_erase_20, |
| 4816 | }, { |
| 4817 | .eraseblocks = { {64 * 1024, 32} }, |
| 4818 | .block_erase = spi_block_erase_d8, |
| 4819 | }, { |
| 4820 | /* not supported by Q16 version */ |
| 4821 | .eraseblocks = { {64 * 1024, 32} }, |
| 4822 | .block_erase = spi_block_erase_52, |
| 4823 | }, { |
| 4824 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4825 | .block_erase = spi_block_erase_60, |
| 4826 | }, { |
| 4827 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4828 | .block_erase = spi_block_erase_c7, |
| 4829 | } |
| 4830 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4831 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4832 | .unlock = spi_disable_blockprotect, |
| 4833 | .write = spi_chip_write_256, |
| 4834 | .read = spi_chip_read, |
| 4835 | .voltage = {2700, 3600}, |
| 4836 | }, |
| 4837 | |
| 4838 | { |
| 4839 | .vendor = "Eon", |
| 4840 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4841 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4842 | .manufacture_id = EON_ID_NOPREFIX, |
| 4843 | .model_id = EON_EN25Q32, |
| 4844 | .total_size = 4096, |
| 4845 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4846 | /* OTP: 512B total; enter 0x3A */ |
| 4847 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4848 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4849 | .probe = probe_spi_rdid, |
| 4850 | .probe_timing = TIMING_ZERO, |
| 4851 | .block_erasers = |
| 4852 | { |
| 4853 | { |
| 4854 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4855 | .block_erase = spi_block_erase_20, |
| 4856 | }, { |
| 4857 | .eraseblocks = { {64 * 1024, 64} }, |
| 4858 | .block_erase = spi_block_erase_d8, |
| 4859 | }, { |
| 4860 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4861 | .block_erase = spi_block_erase_60, |
| 4862 | }, { |
| 4863 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4864 | .block_erase = spi_block_erase_c7, |
| 4865 | } |
| 4866 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4867 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4868 | .unlock = spi_disable_blockprotect, |
| 4869 | .write = spi_chip_write_256, |
| 4870 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4871 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4872 | }, |
| 4873 | |
| 4874 | { |
| 4875 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4876 | .name = "EN25Q40", |
| 4877 | .bustype = BUS_SPI, |
| 4878 | .manufacture_id = EON_ID_NOPREFIX, |
| 4879 | .model_id = EON_EN25Q40, |
| 4880 | .total_size = 512, |
| 4881 | .page_size = 256, |
| 4882 | /* OTP: 256B total; enter 0x3A */ |
| 4883 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4884 | .tested = TEST_UNTESTED, |
| 4885 | .probe = probe_spi_rdid, |
| 4886 | .probe_timing = TIMING_ZERO, |
| 4887 | .block_erasers = |
| 4888 | { |
| 4889 | { |
| 4890 | .eraseblocks = { {4 * 1024, 128} }, |
| 4891 | .block_erase = spi_block_erase_20, |
| 4892 | }, { |
| 4893 | .eraseblocks = { {64 * 1024, 8} }, |
| 4894 | .block_erase = spi_block_erase_d8, |
| 4895 | }, { |
| 4896 | .eraseblocks = { {512 * 1024, 1} }, |
| 4897 | .block_erase = spi_block_erase_60, |
| 4898 | }, { |
| 4899 | .eraseblocks = { {512 * 1024, 1} }, |
| 4900 | .block_erase = spi_block_erase_c7, |
| 4901 | } |
| 4902 | }, |
| 4903 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4904 | .unlock = spi_disable_blockprotect, |
| 4905 | .write = spi_chip_write_256, |
| 4906 | .read = spi_chip_read, |
| 4907 | .voltage = {2700, 3600}, |
| 4908 | }, |
| 4909 | |
| 4910 | { |
| 4911 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4912 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4913 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4914 | .manufacture_id = EON_ID_NOPREFIX, |
| 4915 | .model_id = EON_EN25Q64, |
| 4916 | .total_size = 8192, |
| 4917 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4918 | /* OTP: 512B total; enter 0x3A */ |
| 4919 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4920 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4921 | .probe = probe_spi_rdid, |
| 4922 | .probe_timing = TIMING_ZERO, |
| 4923 | .block_erasers = |
| 4924 | { |
| 4925 | { |
| 4926 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4927 | .block_erase = spi_block_erase_20, |
| 4928 | }, { |
| 4929 | .eraseblocks = { {64 * 1024, 128} }, |
| 4930 | .block_erase = spi_block_erase_d8, |
| 4931 | }, { |
| 4932 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4933 | .block_erase = spi_block_erase_60, |
| 4934 | }, { |
| 4935 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4936 | .block_erase = spi_block_erase_c7, |
| 4937 | } |
| 4938 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4939 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4940 | .unlock = spi_disable_blockprotect, |
| 4941 | .write = spi_chip_write_256, |
| 4942 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4943 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4944 | }, |
| 4945 | |
| 4946 | { |
| 4947 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4948 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4949 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4950 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4951 | .model_id = EON_EN25Q80, |
| 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 | { |
| 4962 | .eraseblocks = { {4 * 1024, 256} }, |
| 4963 | .block_erase = spi_block_erase_20, |
| 4964 | }, { |
| 4965 | .eraseblocks = { {64 * 1024, 16} }, |
| 4966 | .block_erase = spi_block_erase_d8, |
| 4967 | }, { |
| 4968 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4969 | .block_erase = spi_block_erase_60, |
| 4970 | }, { |
| 4971 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4972 | .block_erase = spi_block_erase_c7, |
| 4973 | } |
| 4974 | }, |
| 4975 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4976 | .unlock = spi_disable_blockprotect, |
| 4977 | .write = spi_chip_write_256, |
| 4978 | .read = spi_chip_read, |
| 4979 | .voltage = {2700, 3600}, |
| 4980 | }, |
| 4981 | |
| 4982 | { |
| 4983 | .vendor = "Eon", |
| 4984 | .name = "EN25QH128", |
| 4985 | .bustype = BUS_SPI, |
| 4986 | .manufacture_id = EON_ID_NOPREFIX, |
| 4987 | .model_id = EON_EN25QH128, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4988 | .total_size = 16384, |
| 4989 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4990 | /* supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4991 | /* OTP: 512B total; enter 0x3A */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4992 | /* QPI enable 0x38, disable 0xFF */ |
| 4993 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4994 | .tested = TEST_UNTESTED, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4995 | .probe = probe_spi_rdid, |
| 4996 | .probe_timing = TIMING_ZERO, |
| 4997 | .block_erasers = |
| 4998 | { |
| 4999 | { |
| 5000 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5001 | .block_erase = spi_block_erase_20, |
| 5002 | }, { |
| 5003 | .eraseblocks = { {64 * 1024, 256} }, |
| 5004 | .block_erase = spi_block_erase_d8, |
| 5005 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5006 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5007 | .block_erase = spi_block_erase_60, |
| 5008 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5009 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5010 | .block_erase = spi_block_erase_c7, |
| 5011 | } |
| 5012 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5013 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5014 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5015 | .write = spi_chip_write_256, |
| 5016 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5017 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5018 | }, |
| 5019 | |
| 5020 | { |
| 5021 | .vendor = "Eon", |
| 5022 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5023 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5024 | .manufacture_id = EON_ID_NOPREFIX, |
| 5025 | .model_id = EON_EN25QH16, |
| 5026 | .total_size = 2048, |
| 5027 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5028 | /* supports SFDP */ |
| 5029 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5030 | /* QPI enable 0x38, disable 0xFF */ |
| 5031 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5032 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5033 | .probe = probe_spi_rdid, |
| 5034 | .probe_timing = TIMING_ZERO, |
| 5035 | .block_erasers = |
| 5036 | { |
| 5037 | { |
| 5038 | .eraseblocks = { {4 * 1024, 512} }, |
| 5039 | .block_erase = spi_block_erase_20, |
| 5040 | }, { |
| 5041 | .eraseblocks = { {64 * 1024, 32} }, |
| 5042 | .block_erase = spi_block_erase_d8, |
| 5043 | }, { |
| 5044 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5045 | .block_erase = spi_block_erase_60, |
| 5046 | }, { |
| 5047 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5048 | .block_erase = spi_block_erase_c7, |
| 5049 | } |
| 5050 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5051 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5052 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5053 | .write = spi_chip_write_256, |
| 5054 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5055 | .voltage = {2700, 3600}, |
| 5056 | }, |
| 5057 | |
| 5058 | { |
| 5059 | .vendor = "Eon", |
| 5060 | .name = "EN25QH32", |
| 5061 | .bustype = BUS_SPI, |
| 5062 | .manufacture_id = EON_ID_NOPREFIX, |
| 5063 | .model_id = EON_EN25QH32, |
| 5064 | .total_size = 4096, |
| 5065 | .page_size = 256, |
| 5066 | /* supports SFDP */ |
| 5067 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5068 | /* QPI enable 0x38, disable 0xFF */ |
| 5069 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5070 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5071 | .probe = probe_spi_rdid, |
| 5072 | .probe_timing = TIMING_ZERO, |
| 5073 | .block_erasers = |
| 5074 | { |
| 5075 | { |
| 5076 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5077 | .block_erase = spi_block_erase_20, |
| 5078 | }, { |
| 5079 | .eraseblocks = { {64 * 1024, 64} }, |
| 5080 | .block_erase = spi_block_erase_d8, |
| 5081 | }, { |
| 5082 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5083 | .block_erase = spi_block_erase_60, |
| 5084 | }, { |
| 5085 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5086 | .block_erase = spi_block_erase_c7, |
| 5087 | } |
| 5088 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5089 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5090 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5091 | .write = spi_chip_write_256, |
| 5092 | .read = spi_chip_read, |
| 5093 | .voltage = {2700, 3600}, |
| 5094 | }, |
| 5095 | |
| 5096 | { |
| 5097 | .vendor = "Eon", |
| 5098 | .name = "EN25QH64", |
| 5099 | .bustype = BUS_SPI, |
| 5100 | .manufacture_id = EON_ID_NOPREFIX, |
| 5101 | .model_id = EON_EN25QH64, |
| 5102 | .total_size = 8192, |
| 5103 | .page_size = 256, |
| 5104 | /* supports SFDP */ |
| 5105 | /* OTP: 512B total; enter 0x3A */ |
| 5106 | /* QPI enable 0x38, disable 0xFF */ |
| 5107 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5108 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5109 | .probe = probe_spi_rdid, |
| 5110 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5111 | .block_erasers = |
| 5112 | { |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5113 | { |
| 5114 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5115 | .block_erase = spi_block_erase_20, |
| 5116 | }, { |
| 5117 | .eraseblocks = { {64 * 1024, 128} }, |
| 5118 | .block_erase = spi_block_erase_d8, |
| 5119 | }, { |
| 5120 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5121 | .block_erase = spi_block_erase_60, |
| 5122 | }, { |
| 5123 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5124 | .block_erase = spi_block_erase_c7, |
| 5125 | } |
| 5126 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5127 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5128 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5129 | .write = spi_chip_write_256, |
| 5130 | .read = spi_chip_read, |
| 5131 | .voltage = {2700, 3600}, |
| 5132 | }, |
| 5133 | |
| 5134 | { |
| 5135 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5136 | .name = "EN25S10", |
| 5137 | .bustype = BUS_SPI, |
| 5138 | .manufacture_id = EON_ID_NOPREFIX, |
| 5139 | .model_id = EON_EN25S10, |
| 5140 | .total_size = 128, |
| 5141 | .page_size = 256, |
| 5142 | /* OTP: 256B total; enter 0x3A */ |
| 5143 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5144 | .tested = TEST_UNTESTED, |
| 5145 | .probe = probe_spi_rdid, |
| 5146 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5147 | .block_erasers = |
| 5148 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5149 | { |
| 5150 | .eraseblocks = { {4 * 1024, 32} }, |
| 5151 | .block_erase = spi_block_erase_20, |
| 5152 | }, { |
| 5153 | .eraseblocks = { {32 * 1024, 4} }, |
| 5154 | .block_erase = spi_block_erase_52, |
| 5155 | }, { |
| 5156 | .eraseblocks = { {128 * 1024, 1} }, |
| 5157 | .block_erase = spi_block_erase_60, |
| 5158 | }, { |
| 5159 | .eraseblocks = { {128 * 1024, 1} }, |
| 5160 | .block_erase = spi_block_erase_c7, |
| 5161 | } |
| 5162 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5163 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5164 | .unlock = spi_disable_blockprotect, |
| 5165 | .write = spi_chip_write_256, |
| 5166 | .read = spi_chip_read, |
| 5167 | .voltage = {1650, 1950}, |
| 5168 | }, |
| 5169 | |
| 5170 | { |
| 5171 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5172 | .name = "EN25S16", |
| 5173 | .bustype = BUS_SPI, |
| 5174 | .manufacture_id = EON_ID_NOPREFIX, |
| 5175 | .model_id = EON_EN25S16, |
| 5176 | .total_size = 2048, |
| 5177 | .page_size = 256, |
| 5178 | /* OTP: 512B total; enter 0x3A */ |
| 5179 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5180 | .tested = TEST_UNTESTED, |
| 5181 | .probe = probe_spi_rdid, |
| 5182 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5183 | .block_erasers = |
| 5184 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5185 | { |
| 5186 | .eraseblocks = { {4 * 1024, 512} }, |
| 5187 | .block_erase = spi_block_erase_20, |
| 5188 | }, { |
| 5189 | .eraseblocks = { {64 * 1024, 32} }, |
| 5190 | .block_erase = spi_block_erase_52, |
| 5191 | }, { |
| 5192 | .eraseblocks = { {32 * 1024, 64} }, |
| 5193 | .block_erase = spi_block_erase_d8, |
| 5194 | }, { |
| 5195 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5196 | .block_erase = spi_block_erase_60, |
| 5197 | }, { |
| 5198 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5199 | .block_erase = spi_block_erase_c7, |
| 5200 | } |
| 5201 | }, |
| 5202 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5203 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5204 | .write = spi_chip_write_256, |
| 5205 | .read = spi_chip_read, |
| 5206 | .voltage = {1650, 1950}, |
| 5207 | }, |
| 5208 | |
| 5209 | { |
| 5210 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5211 | .name = "EN25S20", |
| 5212 | .bustype = BUS_SPI, |
| 5213 | .manufacture_id = EON_ID_NOPREFIX, |
| 5214 | .model_id = EON_EN25S20, |
| 5215 | .total_size = 256, |
| 5216 | .page_size = 256, |
| 5217 | /* OTP: 256B total; enter 0x3A */ |
| 5218 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5219 | .tested = TEST_UNTESTED, |
| 5220 | .probe = probe_spi_rdid, |
| 5221 | .probe_timing = TIMING_ZERO, |
| 5222 | .block_erasers = |
| 5223 | { |
| 5224 | { |
| 5225 | .eraseblocks = { {4 * 1024, 64} }, |
| 5226 | .block_erase = spi_block_erase_20, |
| 5227 | }, { |
| 5228 | .eraseblocks = { {64 * 1024, 4} }, |
| 5229 | .block_erase = spi_block_erase_d8, |
| 5230 | }, { |
| 5231 | .eraseblocks = { {256 * 1024, 1} }, |
| 5232 | .block_erase = spi_block_erase_60, |
| 5233 | }, { |
| 5234 | .eraseblocks = { {256 * 1024, 1} }, |
| 5235 | .block_erase = spi_block_erase_c7, |
| 5236 | } |
| 5237 | }, |
| 5238 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5239 | .unlock = spi_disable_blockprotect, |
| 5240 | .write = spi_chip_write_256, |
| 5241 | .read = spi_chip_read, |
| 5242 | .voltage = {1650, 1950}, |
| 5243 | }, |
| 5244 | |
| 5245 | { |
| 5246 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5247 | .name = "EN25S32", |
| 5248 | .bustype = BUS_SPI, |
| 5249 | .manufacture_id = EON_ID_NOPREFIX, |
| 5250 | .model_id = EON_EN25S32, |
| 5251 | .total_size = 4096, |
| 5252 | .page_size = 256, |
| 5253 | /* OTP: 512B total; enter 0x3A */ |
| 5254 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5255 | .tested = TEST_UNTESTED, |
| 5256 | .probe = probe_spi_rdid, |
| 5257 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5258 | .block_erasers = |
| 5259 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5260 | { |
| 5261 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5262 | .block_erase = spi_block_erase_20, |
| 5263 | }, { |
| 5264 | .eraseblocks = { {32 * 1024, 128} }, |
| 5265 | .block_erase = spi_block_erase_52, |
| 5266 | }, { |
| 5267 | .eraseblocks = { {64 * 1024, 64} }, |
| 5268 | .block_erase = spi_block_erase_d8, |
| 5269 | }, { |
| 5270 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5271 | .block_erase = spi_block_erase_60, |
| 5272 | }, { |
| 5273 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5274 | .block_erase = spi_block_erase_c7, |
| 5275 | } |
| 5276 | }, |
| 5277 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5278 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5279 | .write = spi_chip_write_256, |
| 5280 | .read = spi_chip_read, |
| 5281 | .voltage = {1650, 1950}, |
| 5282 | }, |
| 5283 | |
| 5284 | { |
| 5285 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5286 | .name = "EN25S40", |
| 5287 | .bustype = BUS_SPI, |
| 5288 | .manufacture_id = EON_ID_NOPREFIX, |
| 5289 | .model_id = EON_EN25S40, |
| 5290 | .total_size = 512, |
| 5291 | .page_size = 256, |
| 5292 | /* OTP: 256B total; enter 0x3A */ |
| 5293 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5294 | .tested = TEST_OK_PREW, |
| 5295 | .probe = probe_spi_rdid, |
| 5296 | .probe_timing = TIMING_ZERO, |
| 5297 | .block_erasers = |
| 5298 | { |
| 5299 | { |
| 5300 | .eraseblocks = { {4 * 1024, 128} }, |
| 5301 | .block_erase = spi_block_erase_20, |
| 5302 | }, { |
| 5303 | .eraseblocks = { {64 * 1024, 8} }, |
| 5304 | .block_erase = spi_block_erase_d8, |
| 5305 | }, { |
| 5306 | .eraseblocks = { {512 * 1024, 1} }, |
| 5307 | .block_erase = spi_block_erase_60, |
| 5308 | }, { |
| 5309 | .eraseblocks = { {512 * 1024, 1} }, |
| 5310 | .block_erase = spi_block_erase_c7, |
| 5311 | } |
| 5312 | }, |
| 5313 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5314 | .unlock = spi_disable_blockprotect, |
| 5315 | .write = spi_chip_write_256, |
| 5316 | .read = spi_chip_read, |
| 5317 | .voltage = {1650, 1950}, |
| 5318 | }, |
| 5319 | |
| 5320 | { |
| 5321 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5322 | .name = "EN25S64", |
| 5323 | .bustype = BUS_SPI, |
| 5324 | .manufacture_id = EON_ID_NOPREFIX, |
| 5325 | .model_id = EON_EN25S64, |
| 5326 | .total_size = 8192, |
| 5327 | .page_size = 256, |
| 5328 | /* OTP: 512B total; enter 0x3A */ |
| 5329 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5330 | .tested = TEST_UNTESTED, |
| 5331 | .probe = probe_spi_rdid, |
| 5332 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5333 | .block_erasers = |
| 5334 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5335 | { |
| 5336 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5337 | .block_erase = spi_block_erase_20, |
| 5338 | }, { |
| 5339 | .eraseblocks = { {64 * 1024, 128} }, |
| 5340 | .block_erase = spi_block_erase_d8, |
| 5341 | }, { |
| 5342 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5343 | .block_erase = spi_block_erase_60, |
| 5344 | }, { |
| 5345 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5346 | .block_erase = spi_block_erase_c7, |
| 5347 | } |
| 5348 | }, |
| 5349 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5350 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5351 | .write = spi_chip_write_256, |
| 5352 | .read = spi_chip_read, |
| 5353 | .voltage = {1650, 1950}, |
| 5354 | }, |
| 5355 | |
| 5356 | { |
| 5357 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5358 | .name = "EN25S80", |
| 5359 | .bustype = BUS_SPI, |
| 5360 | .manufacture_id = EON_ID_NOPREFIX, |
| 5361 | .model_id = EON_EN25S80, |
| 5362 | .total_size = 1024, |
| 5363 | .page_size = 256, |
| 5364 | /* OTP: 256B total; enter 0x3A */ |
| 5365 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5366 | .tested = TEST_UNTESTED, |
| 5367 | .probe = probe_spi_rdid, |
| 5368 | .probe_timing = TIMING_ZERO, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5369 | .block_erasers = |
| 5370 | { |
| 5371 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5372 | .eraseblocks = { {4 * 1024, 256} }, |
| 5373 | .block_erase = spi_block_erase_20, |
| 5374 | }, { |
| 5375 | .eraseblocks = { {64 * 1024, 16} }, |
| 5376 | .block_erase = spi_block_erase_d8, |
| 5377 | }, { |
| 5378 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5379 | .block_erase = spi_block_erase_60, |
| 5380 | }, { |
| 5381 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5382 | .block_erase = spi_block_erase_c7, |
| 5383 | } |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5384 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5385 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5386 | .unlock = spi_disable_blockprotect, |
| 5387 | .write = spi_chip_write_256, |
| 5388 | .read = spi_chip_read, |
| 5389 | .voltage = {1650, 1950}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5390 | }, |
| 5391 | |
| 5392 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5393 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5394 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5395 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5396 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5397 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5398 | .total_size = 256, |
| 5399 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5400 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Alan Green | 4362e62 | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 5401 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5402 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5403 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5404 | .block_erasers = |
| 5405 | { |
| 5406 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5407 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5408 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5409 | {8 * 1024, 2}, |
| 5410 | {32 * 1024, 1}, |
| 5411 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5412 | }, |
| 5413 | .block_erase = erase_sector_jedec, |
| 5414 | }, { |
| 5415 | .eraseblocks = { {256 * 1024, 1} }, |
| 5416 | .block_erase = erase_chip_block_jedec, |
| 5417 | }, |
| 5418 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5419 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5420 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5421 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5422 | }, |
| 5423 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5424 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5425 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5426 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5427 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5428 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5429 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5430 | .total_size = 256, |
| 5431 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5432 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5433 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5434 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5435 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5436 | .block_erasers = |
| 5437 | { |
| 5438 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5439 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5440 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5441 | {32 * 1024, 1}, |
| 5442 | {8 * 1024, 2}, |
| 5443 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5444 | }, |
| 5445 | .block_erase = erase_sector_jedec, |
| 5446 | }, { |
| 5447 | .eraseblocks = { {256 * 1024, 1} }, |
| 5448 | .block_erase = erase_chip_block_jedec, |
| 5449 | }, |
| 5450 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5451 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5452 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5453 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5454 | }, |
| 5455 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5456 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5457 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5458 | .name = "EN29F010", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5459 | .bustype = BUS_PARALLEL, |
| 5460 | .manufacture_id = EON_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5461 | .model_id = EON_EN29F010, |
| 5462 | .total_size = 128, |
| 5463 | .page_size = 128, |
| 5464 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5465 | .tested = TEST_OK_PRE, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5466 | .probe = probe_jedec, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5467 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5468 | .block_erasers = |
| 5469 | { |
| 5470 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5471 | .eraseblocks = { {16 * 1024, 8} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5472 | .block_erase = erase_sector_jedec, |
| 5473 | }, |
| 5474 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5475 | .eraseblocks = { {128 * 1024, 1} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5476 | .block_erase = erase_chip_block_jedec, |
| 5477 | }, |
| 5478 | }, |
| 5479 | .write = write_jedec_1, |
| 5480 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5481 | .voltage = {4500, 5500}, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5482 | }, |
| 5483 | |
| 5484 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5485 | .vendor = "Eon", |
| 5486 | .name = "EN29GL064(A)B", |
| 5487 | .bustype = BUS_PARALLEL, |
| 5488 | .manufacture_id = EON_ID, |
| 5489 | .model_id = EON_EN29GL064B, |
| 5490 | .total_size = 8192, |
| 5491 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5492 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5493 | .tested = TEST_UNTESTED, |
| 5494 | .probe = probe_jedec_29gl, |
| 5495 | .probe_timing = TIMING_ZERO, |
| 5496 | .block_erasers = |
| 5497 | { |
| 5498 | { |
| 5499 | .eraseblocks = { |
| 5500 | {8 * 1024, 8}, |
| 5501 | {64 * 1024, 127}, |
| 5502 | }, |
| 5503 | .block_erase = erase_sector_jedec, |
| 5504 | }, { |
| 5505 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5506 | .block_erase = erase_chip_block_jedec, |
| 5507 | }, |
| 5508 | }, |
| 5509 | .write = write_jedec_1, |
| 5510 | .read = read_memmapped, |
| 5511 | .voltage = {2700, 3600}, |
| 5512 | }, |
| 5513 | |
| 5514 | { |
| 5515 | .vendor = "Eon", |
| 5516 | .name = "EN29GL064(A)T", |
| 5517 | .bustype = BUS_PARALLEL, |
| 5518 | .manufacture_id = EON_ID, |
| 5519 | .model_id = EON_EN29GL064T, |
| 5520 | .total_size = 8192, |
| 5521 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5522 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5523 | .tested = TEST_UNTESTED, |
| 5524 | .probe = probe_jedec_29gl, |
| 5525 | .probe_timing = TIMING_ZERO, |
| 5526 | .block_erasers = |
| 5527 | { |
| 5528 | { |
| 5529 | .eraseblocks = { |
| 5530 | {64 * 1024, 127}, |
| 5531 | {8 * 1024, 8}, |
| 5532 | }, |
| 5533 | .block_erase = erase_sector_jedec, |
| 5534 | }, { |
| 5535 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5536 | .block_erase = erase_chip_block_jedec, |
| 5537 | }, |
| 5538 | }, |
| 5539 | .write = write_jedec_1, |
| 5540 | .read = read_memmapped, |
| 5541 | .voltage = {2700, 3600}, |
| 5542 | }, |
| 5543 | |
| 5544 | { |
| 5545 | .vendor = "Eon", |
| 5546 | .name = "EN29GL064H/L", |
| 5547 | .bustype = BUS_PARALLEL, |
| 5548 | .manufacture_id = EON_ID, |
| 5549 | .model_id = EON_EN29GL064HL, |
| 5550 | .total_size = 8192, |
| 5551 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5552 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5553 | .tested = TEST_UNTESTED, |
| 5554 | .probe = probe_jedec_29gl, |
| 5555 | .probe_timing = TIMING_ZERO, |
| 5556 | .block_erasers = |
| 5557 | { |
| 5558 | { |
| 5559 | .eraseblocks = { {64 * 1024, 128} }, |
| 5560 | .block_erase = erase_sector_jedec, |
| 5561 | }, { |
| 5562 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5563 | .block_erase = erase_chip_block_jedec, |
| 5564 | }, |
| 5565 | }, |
| 5566 | .write = write_jedec_1, |
| 5567 | .read = read_memmapped, |
| 5568 | .voltage = {2700, 3600}, |
| 5569 | }, |
| 5570 | |
| 5571 | { |
| 5572 | .vendor = "Eon", |
| 5573 | .name = "EN29GL128", |
| 5574 | .bustype = BUS_PARALLEL, |
| 5575 | .manufacture_id = EON_ID, |
| 5576 | .model_id = EON_EN29GL128HL, |
| 5577 | .total_size = 16384, |
| 5578 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5579 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5580 | .tested = TEST_UNTESTED, |
| 5581 | .probe = probe_jedec_29gl, |
| 5582 | .probe_timing = TIMING_ZERO, |
| 5583 | .block_erasers = |
| 5584 | { |
| 5585 | { |
| 5586 | .eraseblocks = { {128 * 1024, 128} }, |
| 5587 | .block_erase = erase_sector_jedec, |
| 5588 | }, { |
| 5589 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5590 | .block_erase = erase_chip_block_jedec, |
| 5591 | }, |
| 5592 | }, |
| 5593 | .write = write_jedec_1, |
| 5594 | .read = read_memmapped, |
| 5595 | .voltage = {2700, 3600}, |
| 5596 | }, |
| 5597 | |
| 5598 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5599 | .vendor = "Eon", |
| 5600 | .name = "EN29LV040(A)", |
| 5601 | .bustype = BUS_PARALLEL, |
| 5602 | .manufacture_id = EON_ID, |
| 5603 | .model_id = EON_EN29LV040, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5604 | .total_size = 512, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5605 | .page_size = 4 * 1024, |
| 5606 | .tested = TEST_OK_PREW, |
| 5607 | .probe = probe_jedec, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5608 | .probe_timing = TIMING_ZERO, |
| 5609 | .block_erasers = |
| 5610 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5611 | { |
| 5612 | .eraseblocks = { {64 * 1024, 8} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5613 | .block_erase = erase_sector_jedec, |
| 5614 | }, |
| 5615 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5616 | .eraseblocks = { {512 * 1024, 1} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5617 | .block_erase = erase_chip_block_jedec, |
| 5618 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5619 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5620 | .write = write_jedec_1, |
| 5621 | .read = read_memmapped, |
| 5622 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5623 | }, |
| 5624 | |
| 5625 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5626 | .vendor = "Eon", |
| 5627 | .name = "EN29LV640B", |
| 5628 | .bustype = BUS_PARALLEL, |
| 5629 | .manufacture_id = EON_ID, |
| 5630 | .model_id = EON_EN29LV640B, |
| 5631 | .total_size = 8192, |
| 5632 | .page_size = 8192, |
| 5633 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5634 | .tested = TEST_OK_PREW, |
| 5635 | .probe = probe_en29lv640b, |
| 5636 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5637 | .block_erasers = |
| 5638 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5639 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5640 | .eraseblocks = { |
| 5641 | {8 * 1024, 8}, |
| 5642 | {64 * 1024, 127}, |
| 5643 | }, |
| 5644 | .block_erase = erase_block_jedec, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5645 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5646 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5647 | .block_erase = erase_chip_block_jedec, |
| 5648 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5649 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5650 | .write = write_en29lv640b, |
| 5651 | .read = read_memmapped, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5652 | .voltage = {2700, 3600}, |
| 5653 | }, |
| 5654 | |
| 5655 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5656 | .vendor = "Fujitsu", |
| 5657 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5658 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5659 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5660 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5661 | .total_size = 512, |
| 5662 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5663 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5664 | .tested = TEST_UNTESTED, |
| 5665 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5666 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5667 | .block_erasers = |
| 5668 | { |
| 5669 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5670 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5671 | {16 * 1024, 1}, |
| 5672 | {8 * 1024, 2}, |
| 5673 | {32 * 1024, 1}, |
| 5674 | {64 * 1024, 7}, |
| 5675 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5676 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5677 | }, { |
| 5678 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5679 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5680 | }, |
| 5681 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5682 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5683 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5684 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5685 | }, |
| 5686 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5687 | { |
| 5688 | .vendor = "Fujitsu", |
| 5689 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5690 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5691 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5692 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5693 | .total_size = 512, |
| 5694 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5695 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5696 | .tested = TEST_UNTESTED, |
| 5697 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5698 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5699 | .block_erasers = |
| 5700 | { |
| 5701 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5702 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5703 | {64 * 1024, 7}, |
| 5704 | {32 * 1024, 1}, |
| 5705 | {8 * 1024, 2}, |
| 5706 | {16 * 1024, 1}, |
| 5707 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5708 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5709 | }, { |
| 5710 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5711 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5712 | }, |
| 5713 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5714 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5715 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5716 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5717 | }, |
| 5718 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5719 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5720 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5721 | .vendor = "Fujitsu", |
| 5722 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5723 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5724 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5725 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5726 | .total_size = 512, |
| 5727 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5728 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5729 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5730 | .probe = probe_jedec, |
| 5731 | .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] | 5732 | .block_erasers = |
| 5733 | { |
| 5734 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5735 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5736 | {16 * 1024, 1}, |
| 5737 | {8 * 1024, 2}, |
| 5738 | {32 * 1024, 1}, |
| 5739 | {64 * 1024, 7}, |
| 5740 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5741 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5742 | }, { |
| 5743 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5744 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5745 | }, |
| 5746 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5747 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5748 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5749 | .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] | 5750 | }, |
| 5751 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5752 | { |
| 5753 | .vendor = "Fujitsu", |
| 5754 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5755 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5756 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5757 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5758 | .total_size = 512, |
| 5759 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5760 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5761 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5762 | .probe = probe_jedec, |
| 5763 | .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] | 5764 | .block_erasers = |
| 5765 | { |
| 5766 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5767 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5768 | {64 * 1024, 7}, |
| 5769 | {32 * 1024, 1}, |
| 5770 | {8 * 1024, 2}, |
| 5771 | {16 * 1024, 1}, |
| 5772 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5773 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5774 | }, { |
| 5775 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5776 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5777 | }, |
| 5778 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5779 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5780 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5781 | .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] | 5782 | }, |
| 5783 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5784 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5785 | .vendor = "Fujitsu", |
| 5786 | .name = "MBM29LV160BE", |
| 5787 | .bustype = BUS_PARALLEL, |
| 5788 | .manufacture_id = FUJITSU_ID, |
| 5789 | .model_id = FUJITSU_MBM29LV160BE, |
| 5790 | .total_size = 2 * 1024, |
| 5791 | .page_size = 0, |
| 5792 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5793 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5794 | .probe = probe_jedec, |
| 5795 | .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] | 5796 | .block_erasers = |
| 5797 | { |
| 5798 | { |
| 5799 | .eraseblocks = { |
| 5800 | {16 * 1024, 1}, |
| 5801 | {8 * 1024, 2}, |
| 5802 | {32 * 1024, 1}, |
| 5803 | {64 * 1024, 31}, |
| 5804 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5805 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5806 | }, { |
| 5807 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5808 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5809 | }, |
| 5810 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5811 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5812 | .read = read_memmapped, |
| 5813 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5814 | }, |
| 5815 | |
| 5816 | { |
| 5817 | .vendor = "Fujitsu", |
| 5818 | .name = "MBM29LV160TE", |
| 5819 | .bustype = BUS_PARALLEL, |
| 5820 | .manufacture_id = FUJITSU_ID, |
| 5821 | .model_id = FUJITSU_MBM29LV160TE, |
| 5822 | .total_size = 2 * 1024, |
| 5823 | .page_size = 0, |
| 5824 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5825 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5826 | .probe = probe_jedec, |
| 5827 | .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] | 5828 | .block_erasers = |
| 5829 | { |
| 5830 | { |
| 5831 | .eraseblocks = { |
| 5832 | {64 * 1024, 31}, |
| 5833 | {32 * 1024, 1}, |
| 5834 | {8 * 1024, 2}, |
| 5835 | {16 * 1024, 1}, |
| 5836 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5837 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5838 | }, { |
| 5839 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5840 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5841 | }, |
| 5842 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5843 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5844 | .read = read_memmapped, |
| 5845 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5846 | }, |
| 5847 | |
| 5848 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5849 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5850 | .name = "GD25B128B/GD25Q128B", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5851 | .bustype = BUS_SPI, |
| 5852 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5853 | .model_id = GIGADEVICE_GD25Q128, |
| 5854 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5855 | .page_size = 256, |
| 5856 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5857 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5858 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5859 | .probe = probe_spi_rdid, |
| 5860 | .probe_timing = TIMING_ZERO, |
| 5861 | .block_erasers = |
| 5862 | { |
| 5863 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5864 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5865 | .block_erase = spi_block_erase_20, |
| 5866 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5867 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5868 | .block_erase = spi_block_erase_52, |
| 5869 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5870 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5871 | .block_erase = spi_block_erase_d8, |
| 5872 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5873 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5874 | .block_erase = spi_block_erase_60, |
| 5875 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5876 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5877 | .block_erase = spi_block_erase_c7, |
| 5878 | } |
| 5879 | }, |
| 5880 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5881 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5882 | .write = spi_chip_write_256, |
| 5883 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5884 | .voltage = {2700, 3600}, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5885 | }, |
| 5886 | |
| 5887 | { |
| 5888 | .vendor = "GigaDevice", |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 5889 | .name = "GD25LQ128C/GD25LQ128D", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5890 | .bustype = BUS_SPI, |
| 5891 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 5892 | .model_id = GIGADEVICE_GD25LQ128CD, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5893 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5894 | .page_size = 256, |
| 5895 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5897 | .tested = TEST_UNTESTED, |
| 5898 | .probe = probe_spi_rdid, |
| 5899 | .probe_timing = TIMING_ZERO, |
| 5900 | .block_erasers = |
| 5901 | { |
| 5902 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5903 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5904 | .block_erase = spi_block_erase_20, |
| 5905 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5906 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5907 | .block_erase = spi_block_erase_52, |
| 5908 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5909 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5910 | .block_erase = spi_block_erase_d8, |
| 5911 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5912 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5913 | .block_erase = spi_block_erase_60, |
| 5914 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5915 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5916 | .block_erase = spi_block_erase_c7, |
| 5917 | } |
| 5918 | }, |
| 5919 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5920 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5921 | .write = spi_chip_write_256, |
| 5922 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5923 | .voltage = {1695, 1950}, |
| 5924 | }, |
| 5925 | |
| 5926 | { |
| 5927 | .vendor = "GigaDevice", |
| 5928 | .name = "GD25LQ16", |
| 5929 | .bustype = BUS_SPI, |
| 5930 | .manufacture_id = GIGADEVICE_ID, |
| 5931 | .model_id = GIGADEVICE_GD25LQ16, |
| 5932 | .total_size = 2048, |
| 5933 | .page_size = 256, |
| 5934 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5936 | .tested = TEST_UNTESTED, |
| 5937 | .probe = probe_spi_rdid, |
| 5938 | .probe_timing = TIMING_ZERO, |
| 5939 | .block_erasers = |
| 5940 | { |
| 5941 | { |
| 5942 | .eraseblocks = { {4 * 1024, 512} }, |
| 5943 | .block_erase = spi_block_erase_20, |
| 5944 | }, { |
| 5945 | .eraseblocks = { {32 * 1024, 64} }, |
| 5946 | .block_erase = spi_block_erase_52, |
| 5947 | }, { |
| 5948 | .eraseblocks = { {64 * 1024, 32} }, |
| 5949 | .block_erase = spi_block_erase_d8, |
| 5950 | }, { |
| 5951 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5952 | .block_erase = spi_block_erase_60, |
| 5953 | }, { |
| 5954 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5955 | .block_erase = spi_block_erase_c7, |
| 5956 | } |
| 5957 | }, |
| 5958 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5959 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5960 | .write = spi_chip_write_256, |
| 5961 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5962 | .voltage = {1695, 1950}, |
| 5963 | }, |
| 5964 | |
| 5965 | { |
| 5966 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5967 | .name = "GD25LQ32", |
| 5968 | .bustype = BUS_SPI, |
| 5969 | .manufacture_id = GIGADEVICE_ID, |
| 5970 | .model_id = GIGADEVICE_GD25LQ32, |
| 5971 | .total_size = 4096, |
| 5972 | .page_size = 256, |
| 5973 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5975 | .tested = TEST_OK_PREW, |
| 5976 | .probe = probe_spi_rdid, |
| 5977 | .probe_timing = TIMING_ZERO, |
| 5978 | .block_erasers = |
| 5979 | { |
| 5980 | { |
| 5981 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5982 | .block_erase = spi_block_erase_20, |
| 5983 | }, { |
| 5984 | .eraseblocks = { {32 * 1024, 128} }, |
| 5985 | .block_erase = spi_block_erase_52, |
| 5986 | }, { |
| 5987 | .eraseblocks = { {64 * 1024, 64} }, |
| 5988 | .block_erase = spi_block_erase_d8, |
| 5989 | }, { |
| 5990 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5991 | .block_erase = spi_block_erase_60, |
| 5992 | }, { |
| 5993 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5994 | .block_erase = spi_block_erase_c7, |
| 5995 | } |
| 5996 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5997 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5998 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5999 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6000 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6001 | .voltage = {1695, 1950}, |
| 6002 | }, |
| 6003 | |
| 6004 | { |
| 6005 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6006 | .name = "GD25LQ40", |
| 6007 | .bustype = BUS_SPI, |
| 6008 | .manufacture_id = GIGADEVICE_ID, |
| 6009 | .model_id = GIGADEVICE_GD25LQ40, |
| 6010 | .total_size = 512, |
| 6011 | .page_size = 256, |
| 6012 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6013 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6014 | .tested = TEST_UNTESTED, |
| 6015 | .probe = probe_spi_rdid, |
| 6016 | .probe_timing = TIMING_ZERO, |
| 6017 | .block_erasers = |
| 6018 | { |
| 6019 | { |
| 6020 | .eraseblocks = { {4 * 1024, 128} }, |
| 6021 | .block_erase = spi_block_erase_20, |
| 6022 | }, { |
| 6023 | .eraseblocks = { {32 * 1024, 16} }, |
| 6024 | .block_erase = spi_block_erase_52, |
| 6025 | }, { |
| 6026 | .eraseblocks = { {64 * 1024, 8} }, |
| 6027 | .block_erase = spi_block_erase_d8, |
| 6028 | }, { |
| 6029 | .eraseblocks = { {512 * 1024, 1} }, |
| 6030 | .block_erase = spi_block_erase_60, |
| 6031 | }, { |
| 6032 | .eraseblocks = { {512 * 1024, 1} }, |
| 6033 | .block_erase = spi_block_erase_c7, |
| 6034 | } |
| 6035 | }, |
| 6036 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6037 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6038 | .write = spi_chip_write_256, |
| 6039 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6040 | .voltage = {1695, 1950}, |
| 6041 | }, |
| 6042 | |
| 6043 | { |
| 6044 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6045 | .name = "GD25LQ64(B)", |
| 6046 | .bustype = BUS_SPI, |
| 6047 | .manufacture_id = GIGADEVICE_ID, |
| 6048 | .model_id = GIGADEVICE_GD25LQ64, |
| 6049 | .total_size = 8192, |
| 6050 | .page_size = 256, |
| 6051 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6052 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 6053 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6054 | .probe = probe_spi_rdid, |
| 6055 | .probe_timing = TIMING_ZERO, |
| 6056 | .block_erasers = |
| 6057 | { |
| 6058 | { |
| 6059 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6060 | .block_erase = spi_block_erase_20, |
| 6061 | }, { |
| 6062 | .eraseblocks = { {32 * 1024, 256} }, |
| 6063 | .block_erase = spi_block_erase_52, |
| 6064 | }, { |
| 6065 | .eraseblocks = { {64 * 1024, 128} }, |
| 6066 | .block_erase = spi_block_erase_d8, |
| 6067 | }, { |
| 6068 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6069 | .block_erase = spi_block_erase_60, |
| 6070 | }, { |
| 6071 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6072 | .block_erase = spi_block_erase_c7, |
| 6073 | } |
| 6074 | }, |
| 6075 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6076 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6077 | .write = spi_chip_write_256, |
| 6078 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6079 | .voltage = {1695, 1950}, |
| 6080 | }, |
| 6081 | |
| 6082 | { |
| 6083 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6084 | .name = "GD25LQ80", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6085 | .bustype = BUS_SPI, |
| 6086 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6087 | .model_id = GIGADEVICE_GD25LQ80, |
| 6088 | .total_size = 1024, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6089 | .page_size = 256, |
| 6090 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6091 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6092 | .tested = TEST_UNTESTED, |
| 6093 | .probe = probe_spi_rdid, |
| 6094 | .probe_timing = TIMING_ZERO, |
| 6095 | .block_erasers = |
| 6096 | { |
| 6097 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6098 | .eraseblocks = { {4 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6099 | .block_erase = spi_block_erase_20, |
| 6100 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6101 | .eraseblocks = { {32 * 1024, 32} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6102 | .block_erase = spi_block_erase_52, |
| 6103 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6104 | .eraseblocks = { {64 * 1024, 16} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6105 | .block_erase = spi_block_erase_d8, |
| 6106 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6107 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6108 | .block_erase = spi_block_erase_60, |
| 6109 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6110 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6111 | .block_erase = spi_block_erase_c7, |
| 6112 | } |
| 6113 | }, |
| 6114 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6115 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6116 | .write = spi_chip_write_256, |
| 6117 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6118 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6119 | }, |
| 6120 | |
| 6121 | { |
| 6122 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6123 | .name = "GD25Q10", |
| 6124 | .bustype = BUS_SPI, |
| 6125 | .manufacture_id = GIGADEVICE_ID, |
| 6126 | .model_id = GIGADEVICE_GD25Q10, |
| 6127 | .total_size = 128, |
| 6128 | .page_size = 256, |
| 6129 | .feature_bits = FEATURE_WRSR_WREN, |
| 6130 | .tested = TEST_UNTESTED, |
| 6131 | .probe = probe_spi_rdid, |
| 6132 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6133 | .block_erasers = |
| 6134 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6135 | { |
| 6136 | .eraseblocks = { {4 * 1024, 32} }, |
| 6137 | .block_erase = spi_block_erase_20, |
| 6138 | }, { |
| 6139 | .eraseblocks = { {32 * 1024, 4} }, |
| 6140 | .block_erase = spi_block_erase_52, |
| 6141 | }, { |
| 6142 | .eraseblocks = { {64 * 1024, 2} }, |
| 6143 | .block_erase = spi_block_erase_d8, |
| 6144 | }, { |
| 6145 | .eraseblocks = { {128 * 1024, 1} }, |
| 6146 | .block_erase = spi_block_erase_60, |
| 6147 | }, { |
| 6148 | .eraseblocks = { {128 * 1024, 1} }, |
| 6149 | .block_erase = spi_block_erase_c7, |
| 6150 | } |
| 6151 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6152 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6153 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6154 | .write = spi_chip_write_256, |
| 6155 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6156 | .voltage = {2700, 3600}, |
| 6157 | }, |
| 6158 | |
| 6159 | { |
| 6160 | .vendor = "GigaDevice", |
Alan Green | 4f00912 | 2019-08-26 10:45:18 +1000 | [diff] [blame] | 6161 | .name = "GD25Q127C/GD25Q128C", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6162 | .bustype = BUS_SPI, |
| 6163 | .manufacture_id = GIGADEVICE_ID, |
| 6164 | .model_id = GIGADEVICE_GD25Q128, |
| 6165 | .total_size = 16384, |
| 6166 | .page_size = 256, |
| 6167 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6168 | /* QPI: enable 0x38, disable 0xFF */ |
| 6169 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Angel Pons | bce364c | 2018-09-30 20:04:14 +0200 | [diff] [blame] | 6170 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6171 | .probe = probe_spi_rdid, |
| 6172 | .probe_timing = TIMING_ZERO, |
| 6173 | .block_erasers = |
| 6174 | { |
| 6175 | { |
| 6176 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6177 | .block_erase = spi_block_erase_20, |
| 6178 | }, { |
| 6179 | .eraseblocks = { {32 * 1024, 512} }, |
| 6180 | .block_erase = spi_block_erase_52, |
| 6181 | }, { |
| 6182 | .eraseblocks = { {64 * 1024, 256} }, |
| 6183 | .block_erase = spi_block_erase_d8, |
| 6184 | }, { |
| 6185 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6186 | .block_erase = spi_block_erase_60, |
| 6187 | }, { |
| 6188 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6189 | .block_erase = spi_block_erase_c7, |
| 6190 | } |
| 6191 | }, |
| 6192 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6193 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6194 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6195 | .write = spi_chip_write_256, |
| 6196 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6197 | .voltage = {2700, 3600}, |
| 6198 | }, |
| 6199 | |
| 6200 | { |
| 6201 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6202 | .name = "GD25Q16(B)", |
| 6203 | .bustype = BUS_SPI, |
| 6204 | .manufacture_id = GIGADEVICE_ID, |
| 6205 | .model_id = GIGADEVICE_GD25Q16, |
| 6206 | .total_size = 2048, |
| 6207 | .page_size = 256, |
| 6208 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6209 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6210 | .tested = TEST_OK_PREW, |
| 6211 | .probe = probe_spi_rdid, |
| 6212 | .probe_timing = TIMING_ZERO, |
| 6213 | .block_erasers = |
| 6214 | { |
| 6215 | { |
| 6216 | .eraseblocks = { {4 * 1024, 512} }, |
| 6217 | .block_erase = spi_block_erase_20, |
| 6218 | }, { |
| 6219 | .eraseblocks = { {32 * 1024, 64} }, |
| 6220 | .block_erase = spi_block_erase_52, |
| 6221 | }, { |
| 6222 | .eraseblocks = { {64 * 1024, 32} }, |
| 6223 | .block_erase = spi_block_erase_d8, |
| 6224 | }, { |
| 6225 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6226 | .block_erase = spi_block_erase_60, |
| 6227 | }, { |
| 6228 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6229 | .block_erase = spi_block_erase_c7, |
| 6230 | } |
| 6231 | }, |
| 6232 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6233 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6234 | .write = spi_chip_write_256, |
| 6235 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6236 | .voltage = {2700, 3600}, |
| 6237 | }, |
| 6238 | |
| 6239 | { |
| 6240 | .vendor = "GigaDevice", |
| 6241 | .name = "GD25Q20(B)", |
| 6242 | .bustype = BUS_SPI, |
| 6243 | .manufacture_id = GIGADEVICE_ID, |
| 6244 | .model_id = GIGADEVICE_GD25Q20, |
| 6245 | .total_size = 256, |
| 6246 | .page_size = 256, |
| 6247 | .feature_bits = FEATURE_WRSR_WREN, |
| 6248 | .tested = TEST_OK_PREW, |
| 6249 | .probe = probe_spi_rdid, |
| 6250 | .probe_timing = TIMING_ZERO, |
| 6251 | .block_erasers = |
| 6252 | { |
| 6253 | { |
| 6254 | .eraseblocks = { {4 * 1024, 64} }, |
| 6255 | .block_erase = spi_block_erase_20, |
| 6256 | }, { |
| 6257 | .eraseblocks = { {32 * 1024, 8} }, |
| 6258 | .block_erase = spi_block_erase_52, |
| 6259 | }, { |
| 6260 | .eraseblocks = { {64 * 1024, 4} }, |
| 6261 | .block_erase = spi_block_erase_d8, |
| 6262 | }, { |
| 6263 | .eraseblocks = { {256 * 1024, 1} }, |
| 6264 | .block_erase = spi_block_erase_60, |
| 6265 | }, { |
| 6266 | .eraseblocks = { {256 * 1024, 1} }, |
| 6267 | .block_erase = spi_block_erase_c7, |
| 6268 | } |
| 6269 | }, |
| 6270 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6271 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6272 | .write = spi_chip_write_256, |
| 6273 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6274 | .voltage = {2700, 3600}, |
| 6275 | }, |
| 6276 | |
| 6277 | { |
| 6278 | .vendor = "GigaDevice", |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6279 | .name = "GD25Q256D", |
| 6280 | .bustype = BUS_SPI, |
| 6281 | .manufacture_id = GIGADEVICE_ID, |
| 6282 | .model_id = GIGADEVICE_GD25Q256D, |
| 6283 | .total_size = 32768, |
| 6284 | .page_size = 256, |
| 6285 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 6286 | .tested = TEST_UNTESTED, |
| 6287 | .probe = probe_spi_rdid, |
| 6288 | .probe_timing = TIMING_ZERO, |
| 6289 | .block_erasers = |
| 6290 | { |
| 6291 | { |
| 6292 | .eraseblocks = { {4 * 1024, 8192} }, |
| 6293 | .block_erase = spi_block_erase_20, |
| 6294 | }, { |
| 6295 | .eraseblocks = { {32 * 1024, 1024} }, |
| 6296 | .block_erase = spi_block_erase_52, |
| 6297 | }, { |
| 6298 | .eraseblocks = { {64 * 1024, 512} }, |
| 6299 | .block_erase = spi_block_erase_d8, |
| 6300 | }, { |
| 6301 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6302 | .block_erase = spi_block_erase_60, |
| 6303 | }, { |
| 6304 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6305 | .block_erase = spi_block_erase_c7, |
| 6306 | } |
| 6307 | }, |
| 6308 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 6309 | .unlock = spi_disable_blockprotect, |
| 6310 | .write = spi_chip_write_256, |
| 6311 | .read = spi_chip_read, |
| 6312 | .voltage = {2700, 3600}, |
| 6313 | }, |
| 6314 | |
| 6315 | { |
| 6316 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6317 | .name = "GD25Q32(B)", |
| 6318 | .bustype = BUS_SPI, |
| 6319 | .manufacture_id = GIGADEVICE_ID, |
| 6320 | .model_id = GIGADEVICE_GD25Q32, |
| 6321 | .total_size = 4096, |
| 6322 | .page_size = 256, |
| 6323 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6324 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6325 | .tested = TEST_OK_PREW, |
| 6326 | .probe = probe_spi_rdid, |
| 6327 | .probe_timing = TIMING_ZERO, |
| 6328 | .block_erasers = |
| 6329 | { |
| 6330 | { |
| 6331 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6332 | .block_erase = spi_block_erase_20, |
| 6333 | }, { |
| 6334 | .eraseblocks = { {32 * 1024, 128} }, |
| 6335 | .block_erase = spi_block_erase_52, |
| 6336 | }, { |
| 6337 | .eraseblocks = { {64 * 1024, 64} }, |
| 6338 | .block_erase = spi_block_erase_d8, |
| 6339 | }, { |
| 6340 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6341 | .block_erase = spi_block_erase_60, |
| 6342 | }, { |
| 6343 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6344 | .block_erase = spi_block_erase_c7, |
| 6345 | } |
| 6346 | }, |
| 6347 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6348 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6349 | .write = spi_chip_write_256, |
| 6350 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6351 | .voltage = {2700, 3600}, |
| 6352 | }, |
| 6353 | |
| 6354 | { |
| 6355 | .vendor = "GigaDevice", |
| 6356 | .name = "GD25Q40(B)", |
| 6357 | .bustype = BUS_SPI, |
| 6358 | .manufacture_id = GIGADEVICE_ID, |
| 6359 | .model_id = GIGADEVICE_GD25Q40, |
| 6360 | .total_size = 512, |
| 6361 | .page_size = 256, |
| 6362 | .feature_bits = FEATURE_WRSR_WREN, |
| 6363 | .tested = TEST_UNTESTED, |
| 6364 | .probe = probe_spi_rdid, |
| 6365 | .probe_timing = TIMING_ZERO, |
| 6366 | .block_erasers = |
| 6367 | { |
| 6368 | { |
| 6369 | .eraseblocks = { {4 * 1024, 128} }, |
| 6370 | .block_erase = spi_block_erase_20, |
| 6371 | }, { |
| 6372 | .eraseblocks = { {32 * 1024, 16} }, |
| 6373 | .block_erase = spi_block_erase_52, |
| 6374 | }, { |
| 6375 | .eraseblocks = { {64 * 1024, 8} }, |
| 6376 | .block_erase = spi_block_erase_d8, |
| 6377 | }, { |
| 6378 | .eraseblocks = { {512 * 1024, 1} }, |
| 6379 | .block_erase = spi_block_erase_60, |
| 6380 | }, { |
| 6381 | .eraseblocks = { {512 * 1024, 1} }, |
| 6382 | .block_erase = spi_block_erase_c7, |
| 6383 | } |
| 6384 | }, |
| 6385 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6386 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6387 | .write = spi_chip_write_256, |
| 6388 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6389 | .voltage = {2700, 3600}, |
| 6390 | }, |
| 6391 | |
| 6392 | { |
| 6393 | .vendor = "GigaDevice", |
| 6394 | .name = "GD25Q512", |
| 6395 | .bustype = BUS_SPI, |
| 6396 | .manufacture_id = GIGADEVICE_ID, |
| 6397 | .model_id = GIGADEVICE_GD25Q512, |
| 6398 | .total_size = 64, |
| 6399 | .page_size = 256, |
| 6400 | .feature_bits = FEATURE_WRSR_WREN, |
| 6401 | .tested = TEST_OK_PREW, |
| 6402 | .probe = probe_spi_rdid, |
| 6403 | .probe_timing = TIMING_ZERO, |
| 6404 | .block_erasers = |
| 6405 | { |
| 6406 | { |
| 6407 | .eraseblocks = { {4 * 1024, 16} }, |
| 6408 | .block_erase = spi_block_erase_20, |
| 6409 | }, { |
| 6410 | .eraseblocks = { {32 * 1024, 2} }, |
| 6411 | .block_erase = spi_block_erase_52, |
| 6412 | }, { |
| 6413 | .eraseblocks = { {64 * 1024, 1} }, |
| 6414 | .block_erase = spi_block_erase_60, |
| 6415 | }, { |
| 6416 | .eraseblocks = { {64 * 1024, 1} }, |
| 6417 | .block_erase = spi_block_erase_c7, |
| 6418 | } |
| 6419 | }, |
| 6420 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6421 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6422 | .write = spi_chip_write_256, |
| 6423 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6424 | .voltage = {2700, 3600}, |
| 6425 | }, |
| 6426 | |
| 6427 | { |
| 6428 | .vendor = "GigaDevice", |
| 6429 | .name = "GD25Q64(B)", |
| 6430 | .bustype = BUS_SPI, |
| 6431 | .manufacture_id = GIGADEVICE_ID, |
| 6432 | .model_id = GIGADEVICE_GD25Q64, |
| 6433 | .total_size = 8192, |
| 6434 | .page_size = 256, |
| 6435 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6436 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6437 | .tested = TEST_OK_PREW, |
| 6438 | .probe = probe_spi_rdid, |
| 6439 | .probe_timing = TIMING_ZERO, |
| 6440 | .block_erasers = |
| 6441 | { |
| 6442 | { |
| 6443 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6444 | .block_erase = spi_block_erase_20, |
| 6445 | }, { |
| 6446 | .eraseblocks = { {32 * 1024, 256} }, |
| 6447 | .block_erase = spi_block_erase_52, |
| 6448 | }, { |
| 6449 | .eraseblocks = { {64 * 1024, 128} }, |
| 6450 | .block_erase = spi_block_erase_d8, |
| 6451 | }, { |
| 6452 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6453 | .block_erase = spi_block_erase_60, |
| 6454 | }, { |
| 6455 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6456 | .block_erase = spi_block_erase_c7, |
| 6457 | } |
| 6458 | }, |
| 6459 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6460 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6461 | .write = spi_chip_write_256, |
| 6462 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6463 | .voltage = {2700, 3600}, |
| 6464 | }, |
| 6465 | |
| 6466 | { |
| 6467 | .vendor = "GigaDevice", |
| 6468 | .name = "GD25Q80(B)", |
| 6469 | .bustype = BUS_SPI, |
| 6470 | .manufacture_id = GIGADEVICE_ID, |
| 6471 | .model_id = GIGADEVICE_GD25Q80, |
| 6472 | .total_size = 1024, |
| 6473 | .page_size = 256, |
| 6474 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6475 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6476 | .tested = TEST_OK_PREW, |
| 6477 | .probe = probe_spi_rdid, |
| 6478 | .probe_timing = TIMING_ZERO, |
| 6479 | .block_erasers = |
| 6480 | { |
| 6481 | { |
| 6482 | .eraseblocks = { {4 * 1024, 256} }, |
| 6483 | .block_erase = spi_block_erase_20, |
| 6484 | }, { |
| 6485 | .eraseblocks = { {32 * 1024, 32} }, |
| 6486 | .block_erase = spi_block_erase_52, |
| 6487 | }, { |
| 6488 | .eraseblocks = { {64 * 1024, 16} }, |
| 6489 | .block_erase = spi_block_erase_d8, |
| 6490 | }, { |
| 6491 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6492 | .block_erase = spi_block_erase_60, |
| 6493 | }, { |
| 6494 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6495 | .block_erase = spi_block_erase_c7, |
| 6496 | } |
| 6497 | }, |
| 6498 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6499 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6500 | .write = spi_chip_write_256, |
| 6501 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6502 | .voltage = {2700, 3600}, |
| 6503 | }, |
| 6504 | |
| 6505 | { |
| 6506 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6507 | .name = "GD25T80", |
| 6508 | .bustype = BUS_SPI, |
| 6509 | .manufacture_id = GIGADEVICE_ID, |
| 6510 | .model_id = GIGADEVICE_GD25T80, |
| 6511 | .total_size = 1024, |
| 6512 | .page_size = 256, |
| 6513 | /* OTP: 256B total; enter 0x3A */ |
| 6514 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6515 | .tested = TEST_UNTESTED, |
| 6516 | .probe = probe_spi_rdid, |
| 6517 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6518 | .block_erasers = |
| 6519 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6520 | { |
| 6521 | .eraseblocks = { {4 * 1024, 256} }, |
| 6522 | .block_erase = spi_block_erase_20, |
| 6523 | }, { |
| 6524 | .eraseblocks = { {64 * 1024, 16} }, |
| 6525 | .block_erase = spi_block_erase_52, |
| 6526 | }, { |
| 6527 | .eraseblocks = { {64 * 1024, 16} }, |
| 6528 | .block_erase = spi_block_erase_d8, |
| 6529 | }, { |
| 6530 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6531 | .block_erase = spi_block_erase_60, |
| 6532 | }, { |
| 6533 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6534 | .block_erase = spi_block_erase_c7, |
| 6535 | } |
| 6536 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6537 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6538 | .unlock = spi_disable_blockprotect, |
| 6539 | .write = spi_chip_write_256, |
| 6540 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6541 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6542 | }, |
| 6543 | |
| 6544 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6545 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6546 | .name = "GD25VQ16C", |
| 6547 | .bustype = BUS_SPI, |
| 6548 | .manufacture_id = GIGADEVICE_ID, |
| 6549 | .model_id = GIGADEVICE_GD25VQ16C, |
| 6550 | .total_size = 2 * 1024, |
| 6551 | .page_size = 256, |
| 6552 | /* Supports SFDP */ |
| 6553 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6554 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6555 | .tested = TEST_UNTESTED, |
| 6556 | .probe = probe_spi_rdid, |
| 6557 | .probe_timing = TIMING_ZERO, |
| 6558 | .block_erasers = |
| 6559 | { |
| 6560 | { |
| 6561 | .eraseblocks = { { 4 * 1024, 512} }, |
| 6562 | .block_erase = spi_block_erase_20, |
| 6563 | }, { |
| 6564 | .eraseblocks = { { 32 * 1024, 64} }, |
| 6565 | .block_erase = spi_block_erase_52, |
| 6566 | }, { |
| 6567 | .eraseblocks = { { 64 * 1024, 32} }, |
| 6568 | .block_erase = spi_block_erase_d8, |
| 6569 | }, { |
| 6570 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6571 | .block_erase = spi_block_erase_60, |
| 6572 | }, { |
| 6573 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6574 | .block_erase = spi_block_erase_c7, |
| 6575 | } |
| 6576 | }, |
| 6577 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6578 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6579 | .write = spi_chip_write_256, |
| 6580 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6581 | .voltage = {2300, 3600}, |
| 6582 | }, |
| 6583 | |
| 6584 | { |
| 6585 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6586 | .name = "GD25VQ21B", |
| 6587 | .bustype = BUS_SPI, |
| 6588 | .manufacture_id = GIGADEVICE_ID, |
| 6589 | .model_id = GIGADEVICE_GD25VQ21B, |
| 6590 | .total_size = 256, |
| 6591 | .page_size = 256, |
| 6592 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6593 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6594 | .tested = TEST_UNTESTED, |
| 6595 | .probe = probe_spi_rdid, |
| 6596 | .probe_timing = TIMING_ZERO, |
| 6597 | .block_erasers = |
| 6598 | { |
| 6599 | { |
| 6600 | .eraseblocks = { { 4 * 1024, 64} }, |
| 6601 | .block_erase = spi_block_erase_20, |
| 6602 | }, { |
| 6603 | .eraseblocks = { { 32 * 1024, 8} }, |
| 6604 | .block_erase = spi_block_erase_52, |
| 6605 | }, { |
| 6606 | .eraseblocks = { { 64 * 1024, 4} }, |
| 6607 | .block_erase = spi_block_erase_d8, |
| 6608 | }, { |
| 6609 | .eraseblocks = { {256 * 1024, 1} }, |
| 6610 | .block_erase = spi_block_erase_60, |
| 6611 | }, { |
| 6612 | .eraseblocks = { {256 * 1024, 1} }, |
| 6613 | .block_erase = spi_block_erase_c7, |
| 6614 | } |
| 6615 | }, |
| 6616 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6617 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6618 | .write = spi_chip_write_256, |
| 6619 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6620 | .voltage = {2300, 3600}, |
| 6621 | }, |
| 6622 | |
| 6623 | { |
| 6624 | .vendor = "GigaDevice", |
| 6625 | .name = "GD25VQ40C", |
| 6626 | .bustype = BUS_SPI, |
| 6627 | .manufacture_id = GIGADEVICE_ID, |
| 6628 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6629 | .total_size = 512, |
| 6630 | .page_size = 256, |
| 6631 | /* Supports SFDP */ |
| 6632 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6633 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6634 | .tested = TEST_UNTESTED, |
| 6635 | .probe = probe_spi_rdid, |
| 6636 | .probe_timing = TIMING_ZERO, |
| 6637 | .block_erasers = |
| 6638 | { |
| 6639 | { |
| 6640 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6641 | .block_erase = spi_block_erase_20, |
| 6642 | }, { |
| 6643 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6644 | .block_erase = spi_block_erase_52, |
| 6645 | }, { |
| 6646 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6647 | .block_erase = spi_block_erase_d8, |
| 6648 | }, { |
| 6649 | .eraseblocks = { {512 * 1024, 1} }, |
| 6650 | .block_erase = spi_block_erase_60, |
| 6651 | }, { |
| 6652 | .eraseblocks = { {512 * 1024, 1} }, |
| 6653 | .block_erase = spi_block_erase_c7, |
| 6654 | } |
| 6655 | }, |
| 6656 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6657 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6658 | .write = spi_chip_write_256, |
| 6659 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6660 | .voltage = {2300, 3600}, |
| 6661 | }, |
| 6662 | |
| 6663 | { |
| 6664 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6665 | .name = "GD25VQ41B", |
| 6666 | .bustype = BUS_SPI, |
| 6667 | .manufacture_id = GIGADEVICE_ID, |
| 6668 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6669 | .total_size = 512, |
| 6670 | .page_size = 256, |
| 6671 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6672 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6673 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6674 | .probe = probe_spi_rdid, |
| 6675 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6676 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6677 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6678 | { |
| 6679 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6680 | .block_erase = spi_block_erase_20, |
| 6681 | }, { |
| 6682 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6683 | .block_erase = spi_block_erase_52, |
| 6684 | }, { |
| 6685 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6686 | .block_erase = spi_block_erase_d8, |
| 6687 | }, { |
| 6688 | .eraseblocks = { {512 * 1024, 1} }, |
| 6689 | .block_erase = spi_block_erase_60, |
| 6690 | }, { |
| 6691 | .eraseblocks = { {512 * 1024, 1} }, |
| 6692 | .block_erase = spi_block_erase_c7, |
| 6693 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6694 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6695 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6696 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6697 | .write = spi_chip_write_256, |
| 6698 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6699 | .voltage = {2300, 3600}, |
| 6700 | }, |
| 6701 | |
| 6702 | { |
| 6703 | .vendor = "GigaDevice", |
| 6704 | .name = "GD25VQ80C", |
| 6705 | .bustype = BUS_SPI, |
| 6706 | .manufacture_id = GIGADEVICE_ID, |
| 6707 | .model_id = GIGADEVICE_GD25VQ80C, |
| 6708 | .total_size = 1024, |
| 6709 | .page_size = 256, |
| 6710 | /* Supports SFDP */ |
| 6711 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6712 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6713 | .tested = TEST_UNTESTED, |
| 6714 | .probe = probe_spi_rdid, |
| 6715 | .probe_timing = TIMING_ZERO, |
| 6716 | .block_erasers = |
| 6717 | { |
| 6718 | { |
| 6719 | .eraseblocks = { { 4 * 1024, 256} }, |
| 6720 | .block_erase = spi_block_erase_20, |
| 6721 | }, { |
| 6722 | .eraseblocks = { { 32 * 1024, 32} }, |
| 6723 | .block_erase = spi_block_erase_52, |
| 6724 | }, { |
| 6725 | .eraseblocks = { { 64 * 1024, 16} }, |
| 6726 | .block_erase = spi_block_erase_d8, |
| 6727 | }, { |
| 6728 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6729 | .block_erase = spi_block_erase_60, |
| 6730 | }, { |
| 6731 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6732 | .block_erase = spi_block_erase_c7, |
| 6733 | } |
| 6734 | }, |
| 6735 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6736 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6737 | .write = spi_chip_write_256, |
| 6738 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6739 | .voltage = {2300, 3600}, |
| 6740 | }, |
| 6741 | |
| 6742 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6743 | .vendor = "Hyundai", |
| 6744 | .name = "HY29F002B", |
| 6745 | .bustype = BUS_PARALLEL, |
| 6746 | .manufacture_id = HYUNDAI_ID, |
| 6747 | .model_id = HYUNDAI_HY29F002B, |
| 6748 | .total_size = 256, |
| 6749 | .page_size = 256 * 1024, |
| 6750 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6751 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6752 | .probe = probe_jedec, |
| 6753 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6754 | .block_erasers = |
| 6755 | { |
| 6756 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6757 | .eraseblocks = { |
| 6758 | {16 * 1024, 1}, |
| 6759 | {8 * 1024, 2}, |
| 6760 | {32 * 1024, 1}, |
| 6761 | {64 * 1024, 3}, |
| 6762 | }, |
| 6763 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6764 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6765 | .eraseblocks = { {256 * 1024, 1} }, |
| 6766 | .block_erase = erase_chip_block_jedec, |
| 6767 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6768 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6769 | .write = write_jedec_1, |
| 6770 | .read = read_memmapped, |
| 6771 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6772 | }, |
| 6773 | |
| 6774 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6775 | .vendor = "Hyundai", |
| 6776 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6777 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6778 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6779 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6780 | .total_size = 256, |
| 6781 | .page_size = 256 * 1024, |
| 6782 | .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] | 6783 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6784 | .probe = probe_jedec, |
| 6785 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6786 | .block_erasers = |
| 6787 | { |
| 6788 | { |
| 6789 | .eraseblocks = { |
| 6790 | {64 * 1024, 3}, |
| 6791 | {32 * 1024, 1}, |
| 6792 | {8 * 1024, 2}, |
| 6793 | {16 * 1024, 1}, |
| 6794 | }, |
| 6795 | .block_erase = erase_sector_jedec, |
| 6796 | }, { |
| 6797 | .eraseblocks = { {256 * 1024, 1} }, |
| 6798 | .block_erase = erase_chip_block_jedec, |
| 6799 | }, |
| 6800 | }, |
| 6801 | .write = write_jedec_1, |
| 6802 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6803 | .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] | 6804 | }, |
| 6805 | |
| 6806 | { |
| 6807 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6808 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6809 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6810 | .manufacture_id = HYUNDAI_ID, |
| 6811 | .model_id = HYUNDAI_HY29F040A, |
| 6812 | .total_size = 512, |
| 6813 | .page_size = 64 * 1024, |
| 6814 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6815 | .tested = TEST_UNTESTED, |
| 6816 | .probe = probe_jedec, |
| 6817 | .probe_timing = TIMING_ZERO, |
| 6818 | .block_erasers = |
| 6819 | { |
| 6820 | { |
| 6821 | .eraseblocks = { {64 * 1024, 8} }, |
| 6822 | .block_erase = erase_sector_jedec, |
| 6823 | }, { |
| 6824 | .eraseblocks = { {512 * 1024, 1} }, |
| 6825 | .block_erase = erase_chip_block_jedec, |
| 6826 | }, |
| 6827 | }, |
| 6828 | .write = write_jedec_1, |
| 6829 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6830 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6831 | }, |
| 6832 | |
| 6833 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 6834 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 6835 | .name = "IS25LP064", |
| 6836 | .bustype = BUS_SPI, |
| 6837 | .manufacture_id = ISSI_ID_SPI, |
| 6838 | .model_id = ISSI_IS25LP064, |
| 6839 | .total_size = 8192, |
| 6840 | .page_size = 256, |
| 6841 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6842 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6843 | .tested = TEST_UNTESTED, |
| 6844 | .probe = probe_spi_rdid, |
| 6845 | .probe_timing = TIMING_ZERO, |
| 6846 | .block_erasers = |
| 6847 | { |
| 6848 | { |
| 6849 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6850 | .block_erase = spi_block_erase_20, |
| 6851 | }, { |
| 6852 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6853 | .block_erase = spi_block_erase_d7, |
| 6854 | }, { |
| 6855 | .eraseblocks = { {32 * 1024, 256} }, |
| 6856 | .block_erase = spi_block_erase_52, |
| 6857 | }, { |
| 6858 | .eraseblocks = { {64 * 1024, 128} }, |
| 6859 | .block_erase = spi_block_erase_d8, |
| 6860 | }, { |
| 6861 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6862 | .block_erase = spi_block_erase_60, |
| 6863 | }, { |
| 6864 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6865 | .block_erase = spi_block_erase_c7, |
| 6866 | } |
| 6867 | }, |
| 6868 | .unlock = spi_disable_blockprotect, |
| 6869 | .write = spi_chip_write_256, |
| 6870 | .read = spi_chip_read, |
| 6871 | .voltage = {2300, 3600}, |
| 6872 | }, |
| 6873 | |
| 6874 | { |
| 6875 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 6876 | .name = "IS25LP128", |
| 6877 | .bustype = BUS_SPI, |
| 6878 | .manufacture_id = ISSI_ID_SPI, |
| 6879 | .model_id = ISSI_IS25LP128, |
| 6880 | .total_size = 16384, |
| 6881 | .page_size = 256, |
| 6882 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6883 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6884 | .tested = TEST_OK_PREW, |
| 6885 | .probe = probe_spi_rdid, |
| 6886 | .probe_timing = TIMING_ZERO, |
| 6887 | .block_erasers = |
| 6888 | { |
| 6889 | { |
| 6890 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6891 | .block_erase = spi_block_erase_20, |
| 6892 | }, { |
| 6893 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6894 | .block_erase = spi_block_erase_d7, |
| 6895 | }, { |
| 6896 | .eraseblocks = { {32 * 1024, 512} }, |
| 6897 | .block_erase = spi_block_erase_52, |
| 6898 | }, { |
| 6899 | .eraseblocks = { {64 * 1024, 256} }, |
| 6900 | .block_erase = spi_block_erase_d8, |
| 6901 | }, { |
| 6902 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6903 | .block_erase = spi_block_erase_60, |
| 6904 | }, { |
| 6905 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6906 | .block_erase = spi_block_erase_c7, |
| 6907 | } |
| 6908 | }, |
| 6909 | .unlock = spi_disable_blockprotect, |
| 6910 | .write = spi_chip_write_256, |
| 6911 | .read = spi_chip_read, |
| 6912 | .voltage = {2300, 3600}, |
| 6913 | }, |
| 6914 | |
| 6915 | { |
| 6916 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 6917 | .name = "IS25LP256", |
| 6918 | .bustype = BUS_SPI, |
| 6919 | .manufacture_id = ISSI_ID_SPI, |
| 6920 | .model_id = ISSI_IS25LP256, |
| 6921 | .total_size = 32768, |
| 6922 | .page_size = 256, |
| 6923 | /* supports SFDP */ |
| 6924 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 6925 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 6926 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 6927 | .tested = TEST_OK_PREW, |
| 6928 | .probe = probe_spi_rdid, |
| 6929 | .probe_timing = TIMING_ZERO, |
| 6930 | .block_erasers = |
| 6931 | { |
| 6932 | { |
| 6933 | .eraseblocks = { {4 * 1024, 8192} }, |
| 6934 | .block_erase = spi_block_erase_21, |
| 6935 | }, { |
| 6936 | .eraseblocks = { {4 * 1024, 8192} }, |
| 6937 | .block_erase = spi_block_erase_20, |
| 6938 | /* could also use spi_block_erase_d7 */ |
| 6939 | }, { |
| 6940 | .eraseblocks = { {32 * 1024, 1024} }, |
| 6941 | .block_erase = spi_block_erase_5c, |
| 6942 | }, { |
| 6943 | .eraseblocks = { {32 * 1024, 1024} }, |
| 6944 | .block_erase = spi_block_erase_52, |
| 6945 | }, { |
| 6946 | .eraseblocks = { {64 * 1024, 512} }, |
| 6947 | .block_erase = spi_block_erase_dc, |
| 6948 | }, { |
| 6949 | .eraseblocks = { {64 * 1024, 512} }, |
| 6950 | .block_erase = spi_block_erase_d8, |
| 6951 | }, { |
| 6952 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6953 | .block_erase = spi_block_erase_60, |
| 6954 | }, { |
| 6955 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6956 | .block_erase = spi_block_erase_c7, |
| 6957 | } |
| 6958 | }, |
| 6959 | .unlock = spi_disable_blockprotect, |
| 6960 | .write = spi_chip_write_256, |
| 6961 | .read = spi_chip_read, |
| 6962 | .voltage = {2300, 3600}, |
| 6963 | }, |
| 6964 | |
| 6965 | { |
| 6966 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 6967 | .name = "IS25WP032", |
| 6968 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 6969 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 6970 | .model_id = ISSI_IS25WP032, |
| 6971 | .total_size = 4096, |
| 6972 | .page_size = 256, |
| 6973 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6974 | /* QPI enable 0x35, disable 0xF5 */ |
| 6975 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6976 | .tested = TEST_UNTESTED, |
| 6977 | .probe = probe_spi_rdid, |
| 6978 | .probe_timing = TIMING_ZERO, |
| 6979 | .block_erasers = |
| 6980 | { |
| 6981 | { |
| 6982 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6983 | .block_erase = spi_block_erase_20, |
| 6984 | }, { |
| 6985 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6986 | .block_erase = spi_block_erase_d7, |
| 6987 | }, { |
| 6988 | .eraseblocks = { {32 * 1024, 128} }, |
| 6989 | .block_erase = spi_block_erase_52, |
| 6990 | }, { |
| 6991 | .eraseblocks = { {64 * 1024, 64} }, |
| 6992 | .block_erase = spi_block_erase_d8, |
| 6993 | }, { |
| 6994 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6995 | .block_erase = spi_block_erase_60, |
| 6996 | }, { |
| 6997 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6998 | .block_erase = spi_block_erase_c7, |
| 6999 | } |
| 7000 | }, |
| 7001 | .unlock = spi_disable_blockprotect, |
| 7002 | .write = spi_chip_write_256, |
| 7003 | .read = spi_chip_read, |
| 7004 | .voltage = {1650, 1950}, |
| 7005 | }, |
| 7006 | |
| 7007 | { |
| 7008 | .vendor = "ISSI", |
| 7009 | .name = "IS25WP064", |
| 7010 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7011 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7012 | .model_id = ISSI_IS25WP064, |
| 7013 | .total_size = 8192, |
| 7014 | .page_size = 256, |
| 7015 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7016 | /* QPI enable 0x35, disable 0xF5 */ |
| 7017 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7018 | .tested = TEST_OK_PREW, |
| 7019 | .probe = probe_spi_rdid, |
| 7020 | .probe_timing = TIMING_ZERO, |
| 7021 | .block_erasers = |
| 7022 | { |
| 7023 | { |
| 7024 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7025 | .block_erase = spi_block_erase_20, |
| 7026 | }, { |
| 7027 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7028 | .block_erase = spi_block_erase_d7, |
| 7029 | }, { |
| 7030 | .eraseblocks = { {32 * 1024, 256} }, |
| 7031 | .block_erase = spi_block_erase_52, |
| 7032 | }, { |
| 7033 | .eraseblocks = { {64 * 1024, 128} }, |
| 7034 | .block_erase = spi_block_erase_d8, |
| 7035 | }, { |
| 7036 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7037 | .block_erase = spi_block_erase_60, |
| 7038 | }, { |
| 7039 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7040 | .block_erase = spi_block_erase_c7, |
| 7041 | } |
| 7042 | }, |
| 7043 | .unlock = spi_disable_blockprotect, |
| 7044 | .write = spi_chip_write_256, |
| 7045 | .read = spi_chip_read, |
| 7046 | .voltage = {1650, 1950}, |
| 7047 | }, |
| 7048 | |
| 7049 | { |
| 7050 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7051 | .name = "IS25WP128", |
| 7052 | .bustype = BUS_SPI, |
| 7053 | .manufacture_id = ISSI_ID_SPI, |
| 7054 | .model_id = ISSI_IS25WP128, |
| 7055 | .total_size = 16384, |
| 7056 | .page_size = 256, |
| 7057 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7058 | /* QPI enable 0x35, disable 0xF5 */ |
| 7059 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7060 | .tested = TEST_OK_PREW, |
| 7061 | .probe = probe_spi_rdid, |
| 7062 | .probe_timing = TIMING_ZERO, |
| 7063 | .block_erasers = |
| 7064 | { |
| 7065 | { |
| 7066 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7067 | .block_erase = spi_block_erase_20, |
| 7068 | }, { |
| 7069 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7070 | .block_erase = spi_block_erase_d7, |
| 7071 | }, { |
| 7072 | .eraseblocks = { {32 * 1024, 512} }, |
| 7073 | .block_erase = spi_block_erase_52, |
| 7074 | }, { |
| 7075 | .eraseblocks = { {64 * 1024, 256} }, |
| 7076 | .block_erase = spi_block_erase_d8, |
| 7077 | }, { |
| 7078 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7079 | .block_erase = spi_block_erase_60, |
| 7080 | }, { |
| 7081 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7082 | .block_erase = spi_block_erase_c7, |
| 7083 | } |
| 7084 | }, |
| 7085 | .unlock = spi_disable_blockprotect, |
| 7086 | .write = spi_chip_write_256, |
| 7087 | .read = spi_chip_read, |
| 7088 | .voltage = {1650, 1950}, |
| 7089 | }, |
| 7090 | |
| 7091 | { |
| 7092 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7093 | .name = "IS25WP256", |
| 7094 | .bustype = BUS_SPI, |
| 7095 | .manufacture_id = ISSI_ID_SPI, |
| 7096 | .model_id = ISSI_IS25WP256, |
| 7097 | .total_size = 32768, |
| 7098 | .page_size = 256, |
| 7099 | /* supports SFDP */ |
| 7100 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 7101 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 7102 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 7103 | .tested = TEST_OK_PREW, |
| 7104 | .probe = probe_spi_rdid, |
| 7105 | .probe_timing = TIMING_ZERO, |
| 7106 | .block_erasers = |
| 7107 | { |
| 7108 | { |
| 7109 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7110 | .block_erase = spi_block_erase_21, |
| 7111 | }, { |
| 7112 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7113 | .block_erase = spi_block_erase_20, |
| 7114 | /* could also use spi_block_erase_d7 */ |
| 7115 | }, { |
| 7116 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7117 | .block_erase = spi_block_erase_5c, |
| 7118 | }, { |
| 7119 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7120 | .block_erase = spi_block_erase_52, |
| 7121 | }, { |
| 7122 | .eraseblocks = { {64 * 1024, 512} }, |
| 7123 | .block_erase = spi_block_erase_dc, |
| 7124 | }, { |
| 7125 | .eraseblocks = { {64 * 1024, 512} }, |
| 7126 | .block_erase = spi_block_erase_d8, |
| 7127 | }, { |
| 7128 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7129 | .block_erase = spi_block_erase_60, |
| 7130 | }, { |
| 7131 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7132 | .block_erase = spi_block_erase_c7, |
| 7133 | } |
| 7134 | }, |
| 7135 | .unlock = spi_disable_blockprotect, |
| 7136 | .write = spi_chip_write_256, |
| 7137 | .read = spi_chip_read, |
| 7138 | .voltage = {1650, 1950}, |
| 7139 | }, |
| 7140 | |
| 7141 | { |
| 7142 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7143 | .name = "IS29GL064B", |
| 7144 | .bustype = BUS_PARALLEL, |
| 7145 | .manufacture_id = ISSI_ID, |
| 7146 | .model_id = ISSI_PMC_IS29GL064B, |
| 7147 | .total_size = 8192, |
| 7148 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7149 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7150 | .tested = TEST_UNTESTED, |
| 7151 | .probe = probe_jedec_29gl, |
| 7152 | .probe_timing = TIMING_ZERO, |
| 7153 | .block_erasers = |
| 7154 | { |
| 7155 | { |
| 7156 | .eraseblocks = { |
| 7157 | {8 * 1024, 8}, |
| 7158 | {64 * 1024, 127}, |
| 7159 | }, |
| 7160 | .block_erase = erase_sector_jedec, |
| 7161 | }, { |
| 7162 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7163 | .block_erase = erase_chip_block_jedec, |
| 7164 | }, |
| 7165 | }, |
| 7166 | .write = write_jedec_1, |
| 7167 | .read = read_memmapped, |
| 7168 | .voltage = {2700, 3600}, |
| 7169 | }, |
| 7170 | |
| 7171 | { |
| 7172 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7173 | .name = "IS29GL064H/L", |
| 7174 | .bustype = BUS_PARALLEL, |
| 7175 | .manufacture_id = ISSI_ID, |
| 7176 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7177 | .total_size = 8192, |
| 7178 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7179 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7180 | .tested = TEST_UNTESTED, |
| 7181 | .probe = probe_jedec_29gl, |
| 7182 | .probe_timing = TIMING_ZERO, |
| 7183 | .block_erasers = |
| 7184 | { |
| 7185 | { |
| 7186 | .eraseblocks = { {64 * 1024, 128} }, |
| 7187 | .block_erase = erase_sector_jedec, |
| 7188 | }, { |
| 7189 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7190 | .block_erase = erase_chip_block_jedec, |
| 7191 | }, |
| 7192 | }, |
| 7193 | .write = write_jedec_1, |
| 7194 | .read = read_memmapped, |
| 7195 | .voltage = {2700, 3600}, |
| 7196 | }, |
| 7197 | |
| 7198 | { |
| 7199 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7200 | .name = "IS29GL064T", |
| 7201 | .bustype = BUS_PARALLEL, |
| 7202 | .manufacture_id = ISSI_ID, |
| 7203 | .model_id = ISSI_PMC_IS29GL064T, |
| 7204 | .total_size = 8192, |
| 7205 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7206 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7207 | .tested = TEST_UNTESTED, |
| 7208 | .probe = probe_jedec_29gl, |
| 7209 | .probe_timing = TIMING_ZERO, |
| 7210 | .block_erasers = |
| 7211 | { |
| 7212 | { |
| 7213 | .eraseblocks = { |
| 7214 | {64 * 1024, 127}, |
| 7215 | {8 * 1024, 8}, |
| 7216 | }, |
| 7217 | .block_erase = erase_sector_jedec, |
| 7218 | }, { |
| 7219 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7220 | .block_erase = erase_chip_block_jedec, |
| 7221 | }, |
| 7222 | }, |
| 7223 | .write = write_jedec_1, |
| 7224 | .read = read_memmapped, |
| 7225 | .voltage = {2700, 3600}, |
| 7226 | }, |
| 7227 | |
| 7228 | { |
| 7229 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7230 | .name = "IS29GL128H/L", |
| 7231 | .bustype = BUS_PARALLEL, |
| 7232 | .manufacture_id = ISSI_ID, |
| 7233 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7234 | .total_size = 16384, |
| 7235 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7236 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7237 | .tested = TEST_UNTESTED, |
| 7238 | .probe = probe_jedec_29gl, |
| 7239 | .probe_timing = TIMING_ZERO, |
| 7240 | .block_erasers = |
| 7241 | { |
| 7242 | { |
| 7243 | .eraseblocks = { {128 * 1024, 128} }, |
| 7244 | .block_erase = erase_sector_jedec, |
| 7245 | }, { |
| 7246 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7247 | .block_erase = erase_chip_block_jedec, |
| 7248 | }, |
| 7249 | }, |
| 7250 | .write = write_jedec_1, |
| 7251 | .read = read_memmapped, |
| 7252 | .voltage = {2700, 3600}, |
| 7253 | }, |
| 7254 | |
| 7255 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7256 | .vendor = "Intel", |
| 7257 | .name = "25F160S33B8", |
| 7258 | .bustype = BUS_SPI, |
| 7259 | .manufacture_id = INTEL_ID, |
| 7260 | .model_id = INTEL_25F160S33B8, |
| 7261 | .total_size = 2048, |
| 7262 | .page_size = 256, |
| 7263 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7264 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7265 | .tested = TEST_UNTESTED, |
| 7266 | .probe = probe_spi_rdid, |
| 7267 | .probe_timing = TIMING_ZERO, |
| 7268 | .block_erasers = |
| 7269 | { |
| 7270 | { |
| 7271 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7272 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7273 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7274 | .eraseblocks = { |
| 7275 | {8 * 1024, 8}, |
| 7276 | {64 * 1024, 31} // inaccessible |
| 7277 | }, |
| 7278 | .block_erase = spi_block_erase_40, |
| 7279 | }, { */ |
| 7280 | .eraseblocks = { {64 * 1024, 32} }, |
| 7281 | .block_erase = spi_block_erase_d8, |
| 7282 | }, { |
| 7283 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7284 | .block_erase = spi_block_erase_c7, |
| 7285 | } |
| 7286 | }, |
| 7287 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7288 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7289 | .write = spi_chip_write_256, |
| 7290 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7291 | .voltage = {2700, 3600}, |
| 7292 | }, |
| 7293 | |
| 7294 | { |
| 7295 | .vendor = "Intel", |
| 7296 | .name = "25F160S33T8", |
| 7297 | .bustype = BUS_SPI, |
| 7298 | .manufacture_id = INTEL_ID, |
| 7299 | .model_id = INTEL_25F160S33T8, |
| 7300 | .total_size = 2048, |
| 7301 | .page_size = 256, |
| 7302 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7303 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7304 | .tested = TEST_UNTESTED, |
| 7305 | .probe = probe_spi_rdid, |
| 7306 | .probe_timing = TIMING_ZERO, |
| 7307 | .block_erasers = |
| 7308 | { |
| 7309 | { |
| 7310 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7311 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7312 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7313 | .eraseblocks = { |
| 7314 | {64 * 1024, 31}, // inaccessible |
| 7315 | {8 * 1024, 8} |
| 7316 | }, |
| 7317 | .block_erase = spi_block_erase_40, |
| 7318 | }, { */ |
| 7319 | .eraseblocks = { {64 * 1024, 32} }, |
| 7320 | .block_erase = spi_block_erase_d8, |
| 7321 | }, { |
| 7322 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7323 | .block_erase = spi_block_erase_c7, |
| 7324 | } |
| 7325 | }, |
| 7326 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7327 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7328 | .write = spi_chip_write_256, |
| 7329 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7330 | .voltage = {2700, 3600}, |
| 7331 | }, |
| 7332 | |
| 7333 | { |
| 7334 | .vendor = "Intel", |
| 7335 | .name = "25F320S33B8", |
| 7336 | .bustype = BUS_SPI, |
| 7337 | .manufacture_id = INTEL_ID, |
| 7338 | .model_id = INTEL_25F320S33B8, |
| 7339 | .total_size = 4096, |
| 7340 | .page_size = 256, |
| 7341 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7342 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7343 | .tested = TEST_UNTESTED, |
| 7344 | .probe = probe_spi_rdid, |
| 7345 | .probe_timing = TIMING_ZERO, |
| 7346 | .block_erasers = |
| 7347 | { |
| 7348 | { |
| 7349 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7350 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7351 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7352 | .eraseblocks = { |
| 7353 | {8 * 1024, 8}, |
| 7354 | {64 * 1024, 63} // inaccessible |
| 7355 | }, |
| 7356 | .block_erase = spi_block_erase_40, |
| 7357 | }, { */ |
| 7358 | .eraseblocks = { {64 * 1024, 64} }, |
| 7359 | .block_erase = spi_block_erase_d8, |
| 7360 | }, { |
| 7361 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7362 | .block_erase = spi_block_erase_c7, |
| 7363 | } |
| 7364 | }, |
| 7365 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7366 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7367 | .write = spi_chip_write_256, |
| 7368 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7369 | .voltage = {2700, 3600}, |
| 7370 | }, |
| 7371 | |
| 7372 | { |
| 7373 | .vendor = "Intel", |
| 7374 | .name = "25F320S33T8", |
| 7375 | .bustype = BUS_SPI, |
| 7376 | .manufacture_id = INTEL_ID, |
| 7377 | .model_id = INTEL_25F320S33T8, |
| 7378 | .total_size = 4096, |
| 7379 | .page_size = 256, |
| 7380 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7381 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7382 | .tested = TEST_UNTESTED, |
| 7383 | .probe = probe_spi_rdid, |
| 7384 | .probe_timing = TIMING_ZERO, |
| 7385 | .block_erasers = |
| 7386 | { |
| 7387 | { |
| 7388 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7389 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7390 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7391 | .eraseblocks = { |
| 7392 | {64 * 1024, 63}, // inaccessible |
| 7393 | {8 * 1024, 8} |
| 7394 | }, |
| 7395 | .block_erase = spi_block_erase_40, |
| 7396 | }, { */ |
| 7397 | .eraseblocks = { {64 * 1024, 64} }, |
| 7398 | .block_erase = spi_block_erase_d8, |
| 7399 | }, { |
| 7400 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7401 | .block_erase = spi_block_erase_c7, |
| 7402 | } |
| 7403 | }, |
| 7404 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7405 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7406 | .write = spi_chip_write_256, |
| 7407 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7408 | .voltage = {2700, 3600}, |
| 7409 | }, |
| 7410 | |
| 7411 | { |
| 7412 | .vendor = "Intel", |
| 7413 | .name = "25F640S33B8", |
| 7414 | .bustype = BUS_SPI, |
| 7415 | .manufacture_id = INTEL_ID, |
| 7416 | .model_id = INTEL_25F640S33B8, |
| 7417 | .total_size = 8192, |
| 7418 | .page_size = 256, |
| 7419 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7420 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7421 | .tested = TEST_UNTESTED, |
| 7422 | .probe = probe_spi_rdid, |
| 7423 | .probe_timing = TIMING_ZERO, |
| 7424 | .block_erasers = |
| 7425 | { |
| 7426 | { |
| 7427 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7428 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7429 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7430 | .eraseblocks = { |
| 7431 | {8 * 1024, 8}, |
| 7432 | {64 * 1024, 127} // inaccessible |
| 7433 | }, |
| 7434 | .block_erase = spi_block_erase_40, |
| 7435 | }, { */ |
| 7436 | .eraseblocks = { {64 * 1024, 128} }, |
| 7437 | .block_erase = spi_block_erase_d8, |
| 7438 | }, { |
| 7439 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7440 | .block_erase = spi_block_erase_c7, |
| 7441 | } |
| 7442 | }, |
| 7443 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7444 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7445 | .write = spi_chip_write_256, |
| 7446 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7447 | .voltage = {2700, 3600}, |
| 7448 | }, |
| 7449 | |
| 7450 | { |
| 7451 | .vendor = "Intel", |
| 7452 | .name = "25F640S33T8", |
| 7453 | .bustype = BUS_SPI, |
| 7454 | .manufacture_id = INTEL_ID, |
| 7455 | .model_id = INTEL_25F640S33T8, |
| 7456 | .total_size = 8192, |
| 7457 | .page_size = 256, |
| 7458 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7459 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7460 | .tested = TEST_UNTESTED, |
| 7461 | .probe = probe_spi_rdid, |
| 7462 | .probe_timing = TIMING_ZERO, |
| 7463 | .block_erasers = |
| 7464 | { |
| 7465 | { |
| 7466 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7467 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7468 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7469 | .eraseblocks = { |
| 7470 | {64 * 1024, 127}, // inaccessible |
| 7471 | {8 * 1024, 8} |
| 7472 | }, |
| 7473 | .block_erase = spi_block_erase_40, |
| 7474 | }, { */ |
| 7475 | .eraseblocks = { {64 * 1024, 128} }, |
| 7476 | .block_erase = spi_block_erase_d8, |
| 7477 | }, { |
| 7478 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7479 | .block_erase = spi_block_erase_c7, |
| 7480 | } |
| 7481 | }, |
| 7482 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7483 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7484 | .write = spi_chip_write_256, |
| 7485 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7486 | .voltage = {2700, 3600}, |
| 7487 | }, |
| 7488 | |
| 7489 | { |
| 7490 | .vendor = "Intel", |
| 7491 | .name = "28F001BN/BX-B", |
| 7492 | .bustype = BUS_PARALLEL, |
| 7493 | .manufacture_id = INTEL_ID, |
| 7494 | .model_id = INTEL_28F001B, |
| 7495 | .total_size = 128, |
| 7496 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 7497 | .tested = TEST_UNTESTED, |
| 7498 | .probe = probe_jedec, |
| 7499 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7500 | .block_erasers = |
| 7501 | { |
| 7502 | { |
| 7503 | .eraseblocks = { |
| 7504 | {8 * 1024, 1}, |
| 7505 | {4 * 1024, 2}, |
| 7506 | {112 * 1024, 1}, |
| 7507 | }, |
| 7508 | .block_erase = erase_block_82802ab, |
| 7509 | }, |
| 7510 | }, |
| 7511 | .write = write_82802ab, |
| 7512 | .read = read_memmapped, |
| 7513 | .voltage = {4500, 5500}, |
| 7514 | }, |
| 7515 | |
| 7516 | { |
| 7517 | .vendor = "Intel", |
| 7518 | .name = "28F001BN/BX-T", |
| 7519 | .bustype = BUS_PARALLEL, |
| 7520 | .manufacture_id = INTEL_ID, |
| 7521 | .model_id = INTEL_28F001T, |
| 7522 | .total_size = 128, |
| 7523 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 7524 | .tested = TEST_OK_PREW, |
| 7525 | .probe = probe_jedec, |
| 7526 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7527 | .block_erasers = |
| 7528 | { |
| 7529 | { |
| 7530 | .eraseblocks = { |
| 7531 | {112 * 1024, 1}, |
| 7532 | {4 * 1024, 2}, |
| 7533 | {8 * 1024, 1}, |
| 7534 | }, |
| 7535 | .block_erase = erase_block_82802ab, |
| 7536 | }, |
| 7537 | }, |
| 7538 | .write = write_82802ab, |
| 7539 | .read = read_memmapped, |
| 7540 | .voltage = {4500, 5500}, |
| 7541 | }, |
| 7542 | |
| 7543 | { |
| 7544 | .vendor = "Intel", |
| 7545 | .name = "28F002BC/BL/BV/BX-T", |
| 7546 | .bustype = BUS_PARALLEL, |
| 7547 | .manufacture_id = INTEL_ID, |
| 7548 | .model_id = INTEL_28F002T, |
| 7549 | .total_size = 256, |
| 7550 | .page_size = 256 * 1024, |
| 7551 | .tested = TEST_OK_PRE, |
| 7552 | .probe = probe_82802ab, |
| 7553 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7554 | .block_erasers = |
| 7555 | { |
| 7556 | { |
| 7557 | .eraseblocks = { |
| 7558 | {128 * 1024, 1}, |
| 7559 | {96 * 1024, 1}, |
| 7560 | {8 * 1024, 2}, |
| 7561 | {16 * 1024, 1}, |
| 7562 | }, |
| 7563 | .block_erase = erase_block_82802ab, |
| 7564 | }, |
| 7565 | }, |
| 7566 | .write = write_82802ab, |
| 7567 | .read = read_memmapped, |
| 7568 | }, |
| 7569 | |
| 7570 | { |
| 7571 | .vendor = "Intel", |
| 7572 | .name = "28F004B5/BE/BV/BX-B", |
| 7573 | .bustype = BUS_PARALLEL, |
| 7574 | .manufacture_id = INTEL_ID, |
| 7575 | .model_id = INTEL_28F004B, |
| 7576 | .total_size = 512, |
| 7577 | .page_size = 128 * 1024, /* maximal block size */ |
| 7578 | .tested = TEST_UNTESTED, |
| 7579 | .probe = probe_82802ab, |
| 7580 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7581 | .block_erasers = |
| 7582 | { |
| 7583 | { |
| 7584 | .eraseblocks = { |
| 7585 | {16 * 1024, 1}, |
| 7586 | {8 * 1024, 2}, |
| 7587 | {96 * 1024, 1}, |
| 7588 | {128 * 1024, 3}, |
| 7589 | }, |
| 7590 | .block_erase = erase_block_82802ab, |
| 7591 | }, |
| 7592 | }, |
| 7593 | .write = write_82802ab, |
| 7594 | .read = read_memmapped, |
| 7595 | }, |
| 7596 | |
| 7597 | { |
| 7598 | .vendor = "Intel", |
| 7599 | .name = "28F004B5/BE/BV/BX-T", |
| 7600 | .bustype = BUS_PARALLEL, |
| 7601 | .manufacture_id = INTEL_ID, |
| 7602 | .model_id = INTEL_28F004T, |
| 7603 | .total_size = 512, |
| 7604 | .page_size = 128 * 1024, /* maximal block size */ |
| 7605 | .tested = TEST_UNTESTED, |
| 7606 | .probe = probe_82802ab, |
| 7607 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7608 | .block_erasers = |
| 7609 | { |
| 7610 | { |
| 7611 | .eraseblocks = { |
| 7612 | {128 * 1024, 3}, |
| 7613 | {96 * 1024, 1}, |
| 7614 | {8 * 1024, 2}, |
| 7615 | {16 * 1024, 1}, |
| 7616 | }, |
| 7617 | .block_erase = erase_block_82802ab, |
| 7618 | }, |
| 7619 | }, |
| 7620 | .write = write_82802ab, |
| 7621 | .read = read_memmapped, |
| 7622 | }, |
| 7623 | |
| 7624 | { |
| 7625 | .vendor = "Intel", |
| 7626 | .name = "28F008S3/S5/SC", |
| 7627 | .bustype = BUS_PARALLEL, |
| 7628 | .manufacture_id = INTEL_ID, |
| 7629 | .model_id = INTEL_28F004S3, |
| 7630 | .total_size = 512, |
| 7631 | .page_size = 256, |
| 7632 | .tested = TEST_UNTESTED, |
| 7633 | .probe = probe_82802ab, |
| 7634 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7635 | .block_erasers = |
| 7636 | { |
| 7637 | { |
| 7638 | .eraseblocks = { {64 * 1024, 8} }, |
| 7639 | .block_erase = erase_block_82802ab, |
| 7640 | }, |
| 7641 | }, |
| 7642 | .unlock = unlock_28f004s5, |
| 7643 | .write = write_82802ab, |
| 7644 | .read = read_memmapped, |
| 7645 | }, |
| 7646 | |
| 7647 | { |
| 7648 | .vendor = "Intel", |
| 7649 | .name = "28F400BV/BX/CE/CV-B", |
| 7650 | .bustype = BUS_PARALLEL, |
| 7651 | .manufacture_id = INTEL_ID, |
| 7652 | .model_id = INTEL_28F400B, |
| 7653 | .total_size = 512, |
| 7654 | .page_size = 128 * 1024, /* maximal block size */ |
| 7655 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7656 | .tested = TEST_UNTESTED, |
| 7657 | .probe = probe_82802ab, |
| 7658 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7659 | .block_erasers = |
| 7660 | { |
| 7661 | { |
| 7662 | .eraseblocks = { |
| 7663 | {16 * 1024, 1}, |
| 7664 | {8 * 1024, 2}, |
| 7665 | {96 * 1024, 1}, |
| 7666 | {128 * 1024, 3}, |
| 7667 | }, |
| 7668 | .block_erase = erase_block_82802ab, |
| 7669 | }, |
| 7670 | }, |
| 7671 | .write = write_82802ab, |
| 7672 | .read = read_memmapped, |
| 7673 | }, |
| 7674 | |
| 7675 | { |
| 7676 | .vendor = "Intel", |
| 7677 | .name = "28F400BV/BX/CE/CV-T", |
| 7678 | .bustype = BUS_PARALLEL, |
| 7679 | .manufacture_id = INTEL_ID, |
| 7680 | .model_id = INTEL_28F400T, |
| 7681 | .total_size = 512, |
| 7682 | .page_size = 128 * 1024, /* maximal block size */ |
| 7683 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7684 | .tested = TEST_UNTESTED, |
| 7685 | .probe = probe_82802ab, |
| 7686 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7687 | .block_erasers = |
| 7688 | { |
| 7689 | { |
| 7690 | .eraseblocks = { |
| 7691 | {128 * 1024, 3}, |
| 7692 | {96 * 1024, 1}, |
| 7693 | {8 * 1024, 2}, |
| 7694 | {16 * 1024, 1}, |
| 7695 | }, |
| 7696 | .block_erase = erase_block_82802ab, |
| 7697 | }, |
| 7698 | }, |
| 7699 | .write = write_82802ab, |
| 7700 | .read = read_memmapped, |
| 7701 | }, |
| 7702 | |
| 7703 | { |
| 7704 | .vendor = "Intel", |
| 7705 | .name = "82802AB", |
| 7706 | .bustype = BUS_FWH, |
| 7707 | .manufacture_id = INTEL_ID, |
| 7708 | .model_id = INTEL_82802AB, |
| 7709 | .total_size = 512, |
| 7710 | .page_size = 64 * 1024, |
| 7711 | .feature_bits = FEATURE_REGISTERMAP, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 7712 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7713 | .probe = probe_82802ab, |
| 7714 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 7715 | .block_erasers = |
| 7716 | { |
| 7717 | { |
| 7718 | .eraseblocks = { {64 * 1024, 8} }, |
| 7719 | .block_erase = erase_block_82802ab, |
| 7720 | }, |
| 7721 | }, |
| 7722 | .unlock = unlock_regspace2_uniform_64k, |
| 7723 | .write = write_82802ab, |
| 7724 | .read = read_memmapped, |
| 7725 | .voltage = {3000, 3600}, |
| 7726 | }, |
| 7727 | |
| 7728 | { |
| 7729 | .vendor = "Intel", |
| 7730 | .name = "82802AC", |
| 7731 | .bustype = BUS_FWH, |
| 7732 | .manufacture_id = INTEL_ID, |
| 7733 | .model_id = INTEL_82802AC, |
| 7734 | .total_size = 1024, |
| 7735 | .page_size = 64 * 1024, |
| 7736 | .feature_bits = FEATURE_REGISTERMAP, |
| 7737 | .tested = TEST_OK_PR, |
| 7738 | .probe = probe_82802ab, |
| 7739 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 7740 | .block_erasers = |
| 7741 | { |
| 7742 | { |
| 7743 | .eraseblocks = { {64 * 1024, 16} }, |
| 7744 | .block_erase = erase_block_82802ab, |
| 7745 | }, |
| 7746 | }, |
| 7747 | .unlock = unlock_regspace2_uniform_64k, |
| 7748 | .write = write_82802ab, |
| 7749 | .read = read_memmapped, |
| 7750 | .voltage = {3000, 3600}, |
| 7751 | }, |
| 7752 | |
| 7753 | { |
| 7754 | .vendor = "Macronix", |
| 7755 | .name = "MX23L12854", |
| 7756 | .bustype = BUS_SPI, |
| 7757 | .manufacture_id = MACRONIX_ID, |
| 7758 | .model_id = MACRONIX_MX23L12854, |
| 7759 | .total_size = 16384, |
| 7760 | .page_size = 256, |
| 7761 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7762 | .probe = probe_spi_rdid, |
| 7763 | .probe_timing = TIMING_ZERO, |
| 7764 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 7765 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7766 | .voltage = {3000, 3600}, |
| 7767 | }, |
| 7768 | |
| 7769 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7770 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7771 | .name = "MX23L1654", |
| 7772 | .bustype = BUS_SPI, |
| 7773 | .manufacture_id = MACRONIX_ID, |
| 7774 | .model_id = MACRONIX_MX23L1654, |
| 7775 | .total_size = 2048, |
| 7776 | .page_size = 256, |
| 7777 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7778 | .probe = probe_spi_rdid, |
| 7779 | .probe_timing = TIMING_ZERO, |
| 7780 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 7781 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7782 | .voltage = {3000, 3600}, |
| 7783 | }, |
| 7784 | |
| 7785 | { |
| 7786 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7787 | .name = "MX23L3254", |
| 7788 | .bustype = BUS_SPI, |
| 7789 | .manufacture_id = MACRONIX_ID, |
| 7790 | .model_id = MACRONIX_MX23L3254, |
| 7791 | .total_size = 4096, |
| 7792 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 7793 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7794 | .probe = probe_spi_rdid, |
| 7795 | .probe_timing = TIMING_ZERO, |
| 7796 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 7797 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7798 | .voltage = {3000, 3600}, |
| 7799 | }, |
| 7800 | |
| 7801 | { |
| 7802 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7803 | .name = "MX23L6454", |
| 7804 | .bustype = BUS_SPI, |
| 7805 | .manufacture_id = MACRONIX_ID, |
| 7806 | .model_id = MACRONIX_MX23L6454, |
| 7807 | .total_size = 8192, |
| 7808 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7809 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7810 | .probe = probe_spi_rdid, |
| 7811 | .probe_timing = TIMING_ZERO, |
| 7812 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 7813 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7814 | .voltage = {3000, 3600}, |
| 7815 | }, |
| 7816 | |
| 7817 | { |
| 7818 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7819 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7820 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7821 | .manufacture_id = MACRONIX_ID, |
| 7822 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7823 | .total_size = 128, |
| 7824 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7825 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7826 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 7827 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7828 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7829 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7830 | .block_erasers = |
| 7831 | { |
| 7832 | { |
| 7833 | .eraseblocks = { {4 * 1024, 32} }, |
| 7834 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7835 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7836 | .eraseblocks = { {64 * 1024, 2} }, |
| 7837 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7838 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7839 | .eraseblocks = { {128 * 1024, 1} }, |
| 7840 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7841 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7842 | .eraseblocks = { {128 * 1024, 1} }, |
| 7843 | .block_erase = spi_block_erase_c7, |
| 7844 | }, |
| 7845 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7846 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7847 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7848 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7849 | .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] | 7850 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7851 | }, |
| 7852 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7853 | { |
| 7854 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7855 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7856 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7857 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7858 | .model_id = MACRONIX_MX25L12805D, |
| 7859 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7860 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7861 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7862 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7863 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7864 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7865 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7866 | .block_erasers = |
| 7867 | { |
| 7868 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7869 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7870 | .block_erase = spi_block_erase_20, |
| 7871 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7872 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7873 | .block_erase = spi_block_erase_d8, |
| 7874 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7875 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7876 | .block_erase = spi_block_erase_60, |
| 7877 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7878 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7879 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7880 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7881 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7882 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 7883 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7884 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7885 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7886 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7887 | }, |
| 7888 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7889 | { |
| 7890 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7891 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7892 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7893 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7894 | .model_id = MACRONIX_MX25L12805D, |
| 7895 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7896 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7897 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7898 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7899 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7900 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7901 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7902 | .block_erasers = |
| 7903 | { |
| 7904 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7905 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7906 | .block_erase = spi_block_erase_20, |
| 7907 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7908 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7909 | .block_erase = spi_block_erase_52, |
| 7910 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7911 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7912 | .block_erase = spi_block_erase_d8, |
| 7913 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7914 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7915 | .block_erase = spi_block_erase_60, |
| 7916 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7917 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7918 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7919 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7920 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7921 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 7922 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 7923 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7924 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7925 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7926 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7927 | }, |
| 7928 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7929 | { |
| 7930 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7931 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7932 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7933 | .manufacture_id = MACRONIX_ID, |
| 7934 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7935 | .total_size = 2048, |
| 7936 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7937 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 7938 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7939 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7940 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7941 | .block_erasers = |
| 7942 | { |
| 7943 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7944 | .eraseblocks = { {64 * 1024, 32} }, |
| 7945 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7946 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7947 | .eraseblocks = { {64 * 1024, 32} }, |
| 7948 | .block_erase = spi_block_erase_d8, |
| 7949 | }, { |
| 7950 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7951 | .block_erase = spi_block_erase_60, |
| 7952 | }, { |
| 7953 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7954 | .block_erase = spi_block_erase_c7, |
| 7955 | }, |
| 7956 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7957 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7958 | .unlock = spi_disable_blockprotect, |
| 7959 | .write = spi_chip_write_256, |
| 7960 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7961 | .voltage = {2700, 3600}, |
| 7962 | }, |
| 7963 | |
| 7964 | { |
| 7965 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7966 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7967 | .bustype = BUS_SPI, |
| 7968 | .manufacture_id = MACRONIX_ID, |
| 7969 | .model_id = MACRONIX_MX25L1605, |
| 7970 | .total_size = 2048, |
| 7971 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7972 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7973 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7974 | .tested = TEST_OK_PREW, |
| 7975 | .probe = probe_spi_rdid, |
| 7976 | .probe_timing = TIMING_ZERO, |
| 7977 | .block_erasers = |
| 7978 | { |
| 7979 | { |
| 7980 | .eraseblocks = { {4 * 1024, 512} }, |
| 7981 | .block_erase = spi_block_erase_20, |
| 7982 | }, { |
| 7983 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7984 | .block_erase = spi_block_erase_52, |
| 7985 | }, { |
| 7986 | .eraseblocks = { {64 * 1024, 32} }, |
| 7987 | .block_erase = spi_block_erase_d8, |
| 7988 | }, { |
| 7989 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7990 | .block_erase = spi_block_erase_60, |
| 7991 | }, { |
| 7992 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7993 | .block_erase = spi_block_erase_c7, |
| 7994 | }, |
| 7995 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7996 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7997 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7998 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7999 | .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] | 8000 | .voltage = {2700, 3600}, |
| 8001 | }, |
| 8002 | |
| 8003 | { |
| 8004 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8005 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8006 | .bustype = BUS_SPI, |
| 8007 | .manufacture_id = MACRONIX_ID, |
| 8008 | .model_id = MACRONIX_MX25L1605, |
| 8009 | .total_size = 2048, |
| 8010 | .page_size = 256, |
| 8011 | .feature_bits = FEATURE_WRSR_WREN, |
| 8012 | .tested = TEST_OK_PREW, |
| 8013 | .probe = probe_spi_rdid, |
| 8014 | .probe_timing = TIMING_ZERO, |
| 8015 | .block_erasers = |
| 8016 | { |
| 8017 | { |
| 8018 | .eraseblocks = { {4 * 1024, 512} }, |
| 8019 | .block_erase = spi_block_erase_20, |
| 8020 | }, { |
| 8021 | .eraseblocks = { {64 * 1024, 32} }, |
| 8022 | .block_erase = spi_block_erase_d8, |
| 8023 | }, { |
| 8024 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8025 | .block_erase = spi_block_erase_60, |
| 8026 | }, { |
| 8027 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8028 | .block_erase = spi_block_erase_c7, |
| 8029 | }, |
| 8030 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8031 | .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] | 8032 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8033 | .write = spi_chip_write_256, |
| 8034 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8035 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8036 | }, |
| 8037 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8038 | { |
| 8039 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8040 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8041 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8042 | .manufacture_id = MACRONIX_ID, |
| 8043 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8044 | .total_size = 2048, |
| 8045 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8046 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8047 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8048 | .tested = TEST_UNTESTED, |
| 8049 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8050 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8051 | .block_erasers = |
| 8052 | { |
| 8053 | { |
| 8054 | .eraseblocks = { {4 * 1024, 512} }, |
| 8055 | .block_erase = spi_block_erase_20, |
| 8056 | }, { |
| 8057 | .eraseblocks = { {64 * 1024, 32} }, |
| 8058 | .block_erase = spi_block_erase_d8, |
| 8059 | }, { |
| 8060 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8061 | .block_erase = spi_block_erase_60, |
| 8062 | }, { |
| 8063 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8064 | .block_erase = spi_block_erase_c7, |
| 8065 | } |
| 8066 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8067 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8068 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8069 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8070 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8071 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8072 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 8073 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8074 | { |
| 8075 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8076 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8077 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8078 | .manufacture_id = MACRONIX_ID, |
| 8079 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8080 | .total_size = 2048, |
| 8081 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8082 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8083 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8084 | .tested = TEST_UNTESTED, |
| 8085 | .probe = probe_spi_rdid, |
| 8086 | .probe_timing = TIMING_ZERO, |
| 8087 | .block_erasers = |
| 8088 | { |
| 8089 | { |
| 8090 | .eraseblocks = { {4 * 1024, 512} }, |
| 8091 | .block_erase = spi_block_erase_20, |
| 8092 | }, { |
| 8093 | .eraseblocks = { {64 * 1024, 32} }, |
| 8094 | .block_erase = spi_block_erase_d8, |
| 8095 | }, { |
| 8096 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8097 | .block_erase = spi_block_erase_60, |
| 8098 | }, { |
| 8099 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8100 | .block_erase = spi_block_erase_c7, |
| 8101 | } |
| 8102 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8103 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8104 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8105 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8106 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8107 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8108 | }, |
| 8109 | |
| 8110 | { |
| 8111 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8112 | .name = "MX25L2005(C)/MX25L2006E", |
| 8113 | .bustype = BUS_SPI, |
| 8114 | .manufacture_id = MACRONIX_ID, |
| 8115 | .model_id = MACRONIX_MX25L2005, |
| 8116 | .total_size = 256, |
| 8117 | .page_size = 256, |
| 8118 | .feature_bits = FEATURE_WRSR_WREN, |
| 8119 | .tested = TEST_OK_PREW, |
| 8120 | .probe = probe_spi_rdid, |
| 8121 | .probe_timing = TIMING_ZERO, |
| 8122 | .block_erasers = |
| 8123 | { |
| 8124 | { |
| 8125 | .eraseblocks = { {4 * 1024, 64} }, |
| 8126 | .block_erase = spi_block_erase_20, |
| 8127 | }, { |
| 8128 | .eraseblocks = { {64 * 1024, 4} }, |
| 8129 | .block_erase = spi_block_erase_52, |
| 8130 | }, { |
| 8131 | .eraseblocks = { {64 * 1024, 4} }, |
| 8132 | .block_erase = spi_block_erase_d8, |
| 8133 | }, { |
| 8134 | .eraseblocks = { {256 * 1024, 1} }, |
| 8135 | .block_erase = spi_block_erase_60, |
| 8136 | }, { |
| 8137 | .eraseblocks = { {256 * 1024, 1} }, |
| 8138 | .block_erase = spi_block_erase_c7, |
| 8139 | }, |
| 8140 | }, |
| 8141 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8142 | .unlock = spi_disable_blockprotect, |
| 8143 | .write = spi_chip_write_256, |
| 8144 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8145 | .voltage = {2700, 3600}, |
| 8146 | }, |
| 8147 | |
| 8148 | { |
| 8149 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 8150 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8151 | .bustype = BUS_SPI, |
| 8152 | .manufacture_id = MACRONIX_ID, |
| 8153 | .model_id = MACRONIX_MX25L25635F, |
| 8154 | .total_size = 32768, |
| 8155 | .page_size = 256, |
| 8156 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8157 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8158 | .tested = TEST_OK_PREW, |
| 8159 | .probe = probe_spi_rdid, |
| 8160 | .probe_timing = TIMING_ZERO, |
| 8161 | .block_erasers = |
| 8162 | { |
| 8163 | { |
| 8164 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8165 | .block_erase = spi_block_erase_21, |
| 8166 | }, { |
| 8167 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8168 | .block_erase = spi_block_erase_20, |
| 8169 | }, { |
| 8170 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8171 | .block_erase = spi_block_erase_5c, |
| 8172 | }, { |
| 8173 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8174 | .block_erase = spi_block_erase_52, |
| 8175 | }, { |
| 8176 | .eraseblocks = { {64 * 1024, 512} }, |
| 8177 | .block_erase = spi_block_erase_dc, |
| 8178 | }, { |
| 8179 | .eraseblocks = { {64 * 1024, 512} }, |
| 8180 | .block_erase = spi_block_erase_d8, |
| 8181 | }, { |
| 8182 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8183 | .block_erase = spi_block_erase_60, |
| 8184 | }, { |
| 8185 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8186 | .block_erase = spi_block_erase_c7, |
| 8187 | } |
| 8188 | }, |
| 8189 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8190 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8191 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8192 | .write = spi_chip_write_256, |
| 8193 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8194 | .voltage = {2700, 3600}, |
| 8195 | }, |
| 8196 | |
| 8197 | { |
| 8198 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8199 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8200 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8201 | .manufacture_id = MACRONIX_ID, |
| 8202 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8203 | .total_size = 4096, |
| 8204 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8205 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 8206 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8207 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8208 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8209 | .block_erasers = |
| 8210 | { |
| 8211 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8212 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8213 | .block_erase = spi_block_erase_20, |
| 8214 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8215 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8216 | .block_erase = spi_block_erase_d8, |
| 8217 | }, { |
| 8218 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8219 | .block_erase = spi_block_erase_60, |
| 8220 | }, { |
| 8221 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8222 | .block_erase = spi_block_erase_c7, |
| 8223 | }, |
| 8224 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8225 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8226 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8227 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8228 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8229 | .voltage = {2700, 3600}, |
| 8230 | }, |
| 8231 | |
| 8232 | { |
| 8233 | .vendor = "Macronix", |
| 8234 | .name = "MX25L3205D/MX25L3208D", |
| 8235 | .bustype = BUS_SPI, |
| 8236 | .manufacture_id = MACRONIX_ID, |
| 8237 | .model_id = MACRONIX_MX25L3205, |
| 8238 | .total_size = 4096, |
| 8239 | .page_size = 256, |
| 8240 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8241 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8242 | .tested = TEST_OK_PREW, |
| 8243 | .probe = probe_spi_rdid, |
| 8244 | .probe_timing = TIMING_ZERO, |
| 8245 | .block_erasers = |
| 8246 | { |
| 8247 | { |
| 8248 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8249 | .block_erase = spi_block_erase_20, |
| 8250 | }, { |
| 8251 | .eraseblocks = { {64 * 1024, 64} }, |
| 8252 | .block_erase = spi_block_erase_d8, |
| 8253 | }, { |
| 8254 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8255 | .block_erase = spi_block_erase_60, |
| 8256 | }, { |
| 8257 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8258 | .block_erase = spi_block_erase_c7, |
| 8259 | }, |
| 8260 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8261 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8262 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8263 | .write = spi_chip_write_256, |
| 8264 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8265 | .voltage = {2700, 3600}, |
| 8266 | }, |
| 8267 | |
| 8268 | { |
| 8269 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8270 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8271 | .bustype = BUS_SPI, |
| 8272 | .manufacture_id = MACRONIX_ID, |
| 8273 | .model_id = MACRONIX_MX25L3205, |
| 8274 | .total_size = 4096, |
| 8275 | .page_size = 256, |
| 8276 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8277 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8278 | .tested = TEST_OK_PREW, |
| 8279 | .probe = probe_spi_rdid, |
| 8280 | .probe_timing = TIMING_ZERO, |
| 8281 | .block_erasers = |
| 8282 | { |
| 8283 | { |
| 8284 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8285 | .block_erase = spi_block_erase_20, |
| 8286 | }, { |
| 8287 | .eraseblocks = { {64 * 1024, 64} }, |
| 8288 | .block_erase = spi_block_erase_d8, |
| 8289 | }, { |
| 8290 | .eraseblocks = { {64 * 1024, 64} }, |
| 8291 | .block_erase = spi_block_erase_52, |
| 8292 | }, { |
| 8293 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8294 | .block_erase = spi_block_erase_60, |
| 8295 | }, { |
| 8296 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8297 | .block_erase = spi_block_erase_c7, |
| 8298 | }, |
| 8299 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8300 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8301 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8302 | .write = spi_chip_write_256, |
| 8303 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8304 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8305 | }, |
| 8306 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8307 | { |
| 8308 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8309 | .name = "MX25L3235D", |
| 8310 | .bustype = BUS_SPI, |
| 8311 | .manufacture_id = MACRONIX_ID, |
| 8312 | .model_id = MACRONIX_MX25L3235D, |
| 8313 | .total_size = 4096, |
| 8314 | .page_size = 256, |
| 8315 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 8316 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8317 | .tested = TEST_UNTESTED, |
| 8318 | .probe = probe_spi_rdid, |
| 8319 | .probe_timing = TIMING_ZERO, |
| 8320 | .block_erasers = |
| 8321 | { |
| 8322 | { |
| 8323 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8324 | .block_erase = spi_block_erase_20, |
| 8325 | }, { |
| 8326 | .eraseblocks = { {64 * 1024, 64} }, |
| 8327 | .block_erase = spi_block_erase_d8, |
| 8328 | }, { |
| 8329 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8330 | .block_erase = spi_block_erase_60, |
| 8331 | }, { |
| 8332 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8333 | .block_erase = spi_block_erase_c7, |
| 8334 | } |
| 8335 | }, |
| 8336 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8337 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8338 | .write = spi_chip_write_256, |
| 8339 | .read = spi_chip_read, |
| 8340 | .voltage = {2700, 3600}, |
| 8341 | }, |
| 8342 | |
| 8343 | { |
| 8344 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8345 | .name = "MX25L3273E", |
| 8346 | .bustype = BUS_SPI, |
| 8347 | .manufacture_id = MACRONIX_ID, |
| 8348 | .model_id = MACRONIX_MX25L3205, |
| 8349 | .total_size = 4096, |
| 8350 | .page_size = 256, |
| 8351 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8352 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8353 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8354 | .probe = probe_spi_rdid, |
| 8355 | .probe_timing = TIMING_ZERO, |
| 8356 | .block_erasers = |
| 8357 | { |
| 8358 | { |
| 8359 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8360 | .block_erase = spi_block_erase_20, |
| 8361 | }, { |
| 8362 | .eraseblocks = { {32 * 1024, 128} }, |
| 8363 | .block_erase = spi_block_erase_52, |
| 8364 | }, { |
| 8365 | .eraseblocks = { {64 * 1024, 64} }, |
| 8366 | .block_erase = spi_block_erase_d8, |
| 8367 | }, { |
| 8368 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8369 | .block_erase = spi_block_erase_60, |
| 8370 | }, { |
| 8371 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8372 | .block_erase = spi_block_erase_c7, |
| 8373 | }, |
| 8374 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8375 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8376 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8377 | .write = spi_chip_write_256, |
| 8378 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8379 | .voltage = {2700, 3600}, |
| 8380 | }, |
| 8381 | |
| 8382 | { |
| 8383 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8384 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8385 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8386 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8387 | .model_id = MACRONIX_MX25L4005, |
| 8388 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8389 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8390 | .feature_bits = FEATURE_WRSR_WREN, |
| 8391 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8392 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8393 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8394 | .block_erasers = |
| 8395 | { |
| 8396 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8397 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8398 | .block_erase = spi_block_erase_20, |
| 8399 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8400 | .eraseblocks = { {64 * 1024, 8} }, |
| 8401 | .block_erase = spi_block_erase_52, |
| 8402 | }, { |
| 8403 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8404 | .block_erase = spi_block_erase_d8, |
| 8405 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8406 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8407 | .block_erase = spi_block_erase_60, |
| 8408 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8409 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8410 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8411 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8412 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8413 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8414 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8415 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8416 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8417 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8418 | }, |
| 8419 | |
| 8420 | { |
| 8421 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8422 | .name = "MX25L512(E)/MX25V512(C)", |
| 8423 | .bustype = BUS_SPI, |
| 8424 | .manufacture_id = MACRONIX_ID, |
| 8425 | .model_id = MACRONIX_MX25L512, |
| 8426 | .total_size = 64, |
| 8427 | .page_size = 256, |
| 8428 | /* MX25L512E supports SFDP */ |
| 8429 | .feature_bits = FEATURE_WRSR_WREN, |
| 8430 | .tested = TEST_OK_PREW, |
| 8431 | .probe = probe_spi_rdid, |
| 8432 | .probe_timing = TIMING_ZERO, |
| 8433 | .block_erasers = |
| 8434 | { |
| 8435 | { |
| 8436 | .eraseblocks = { {4 * 1024, 16} }, |
| 8437 | .block_erase = spi_block_erase_20, |
| 8438 | }, { |
| 8439 | .eraseblocks = { {64 * 1024, 1} }, |
| 8440 | .block_erase = spi_block_erase_52, |
| 8441 | }, { |
| 8442 | .eraseblocks = { {64 * 1024, 1} }, |
| 8443 | .block_erase = spi_block_erase_d8, |
| 8444 | }, { |
| 8445 | .eraseblocks = { {64 * 1024, 1} }, |
| 8446 | .block_erase = spi_block_erase_60, |
| 8447 | }, { |
| 8448 | .eraseblocks = { {64 * 1024, 1} }, |
| 8449 | .block_erase = spi_block_erase_c7, |
| 8450 | }, |
| 8451 | }, |
| 8452 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8453 | .unlock = spi_disable_blockprotect, |
| 8454 | .write = spi_chip_write_256, |
| 8455 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 8456 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 8457 | }, |
| 8458 | |
| 8459 | { |
| 8460 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8461 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8462 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8463 | .manufacture_id = MACRONIX_ID, |
| 8464 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8465 | .total_size = 8192, |
| 8466 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8467 | /* Has an additional 512B EEPROM sector */ |
| 8468 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 8469 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8470 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8471 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8472 | .block_erasers = |
| 8473 | { |
| 8474 | { |
| 8475 | .eraseblocks = { {64 * 1024, 128} }, |
| 8476 | .block_erase = spi_block_erase_20, |
| 8477 | }, { |
| 8478 | .eraseblocks = { {64 * 1024, 128} }, |
| 8479 | .block_erase = spi_block_erase_d8, |
| 8480 | }, { |
| 8481 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8482 | .block_erase = spi_block_erase_60, |
| 8483 | }, { |
| 8484 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8485 | .block_erase = spi_block_erase_c7, |
| 8486 | } |
| 8487 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8488 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8489 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8490 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8491 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8492 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8493 | }, |
| 8494 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8495 | { |
| 8496 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8497 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8498 | .bustype = BUS_SPI, |
| 8499 | .manufacture_id = MACRONIX_ID, |
| 8500 | .model_id = MACRONIX_MX25L6405, |
| 8501 | .total_size = 8192, |
| 8502 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8503 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8504 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8505 | .tested = TEST_OK_PREW, |
| 8506 | .probe = probe_spi_rdid, |
| 8507 | .probe_timing = TIMING_ZERO, |
| 8508 | .block_erasers = |
| 8509 | { |
| 8510 | { |
| 8511 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8512 | .block_erase = spi_block_erase_20, |
| 8513 | }, { |
| 8514 | .eraseblocks = { {64 * 1024, 128} }, |
| 8515 | .block_erase = spi_block_erase_d8, |
| 8516 | }, { |
| 8517 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8518 | .block_erase = spi_block_erase_60, |
| 8519 | }, { |
| 8520 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8521 | .block_erase = spi_block_erase_c7, |
| 8522 | } |
| 8523 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8524 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8525 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8526 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8527 | .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] | 8528 | .voltage = {2700, 3600}, |
| 8529 | }, |
| 8530 | |
| 8531 | { |
| 8532 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8533 | .name = "MX25L6406E/MX25L6408E", |
| 8534 | .bustype = BUS_SPI, |
| 8535 | .manufacture_id = MACRONIX_ID, |
| 8536 | .model_id = MACRONIX_MX25L6405, |
| 8537 | .total_size = 8192, |
| 8538 | .page_size = 256, |
| 8539 | /* MX25L6406E supports SFDP */ |
| 8540 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 8541 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8542 | .tested = TEST_OK_PREW, |
| 8543 | .probe = probe_spi_rdid, |
| 8544 | .probe_timing = TIMING_ZERO, |
| 8545 | .block_erasers = |
| 8546 | { |
| 8547 | { |
| 8548 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8549 | .block_erase = spi_block_erase_20, |
| 8550 | }, { |
| 8551 | .eraseblocks = { {64 * 1024, 128} }, |
| 8552 | .block_erase = spi_block_erase_52, |
| 8553 | }, { |
| 8554 | .eraseblocks = { {64 * 1024, 128} }, |
| 8555 | .block_erase = spi_block_erase_d8, |
| 8556 | }, { |
| 8557 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8558 | .block_erase = spi_block_erase_60, |
| 8559 | }, { |
| 8560 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8561 | .block_erase = spi_block_erase_c7, |
| 8562 | } |
| 8563 | }, |
| 8564 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8565 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8566 | .write = spi_chip_write_256, |
| 8567 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 8568 | .voltage = {2700, 3600}, |
| 8569 | }, |
| 8570 | |
| 8571 | { |
| 8572 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 8573 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8574 | .bustype = BUS_SPI, |
| 8575 | .manufacture_id = MACRONIX_ID, |
| 8576 | .model_id = MACRONIX_MX25L6405, |
| 8577 | .total_size = 8192, |
| 8578 | .page_size = 256, |
| 8579 | /* supports SFDP */ |
| 8580 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8581 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8582 | .tested = TEST_OK_PREW, |
| 8583 | .probe = probe_spi_rdid, |
| 8584 | .probe_timing = TIMING_ZERO, |
| 8585 | .block_erasers = |
| 8586 | { |
| 8587 | { |
| 8588 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8589 | .block_erase = spi_block_erase_20, |
| 8590 | }, { |
| 8591 | .eraseblocks = { {32 * 1024, 256} }, |
| 8592 | .block_erase = spi_block_erase_52, |
| 8593 | }, { |
| 8594 | .eraseblocks = { {64 * 1024, 128} }, |
| 8595 | .block_erase = spi_block_erase_d8, |
| 8596 | }, { |
| 8597 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8598 | .block_erase = spi_block_erase_60, |
| 8599 | }, { |
| 8600 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8601 | .block_erase = spi_block_erase_c7, |
| 8602 | } |
| 8603 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8604 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8605 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8606 | .write = spi_chip_write_256, |
| 8607 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8608 | .voltage = {2700, 3600}, |
| 8609 | }, |
| 8610 | |
| 8611 | { |
| 8612 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8613 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8614 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8615 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8616 | .model_id = MACRONIX_MX25L6495F, |
| 8617 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8618 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8619 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8620 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8621 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8622 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8623 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8624 | .block_erasers = |
| 8625 | { |
| 8626 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8627 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8628 | .block_erase = spi_block_erase_20, |
| 8629 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8630 | .eraseblocks = { {64 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8631 | .block_erase = spi_block_erase_d8, |
| 8632 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8633 | .eraseblocks = { {32 * 1024, 256} }, |
| 8634 | .block_erase = spi_block_erase_52, |
| 8635 | }, { |
| 8636 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8637 | .block_erase = spi_block_erase_60, |
| 8638 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8639 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8640 | .block_erase = spi_block_erase_c7, |
| 8641 | } |
| 8642 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8643 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8644 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8645 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8646 | .voltage = {2700, 3600}, |
| 8647 | }, |
| 8648 | |
| 8649 | { |
| 8650 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8651 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8652 | .bustype = BUS_SPI, |
| 8653 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8654 | .model_id = MACRONIX_MX25L8005, |
| 8655 | .total_size = 1024, |
| 8656 | .page_size = 256, |
| 8657 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 8658 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
| 8659 | .feature_bits = FEATURE_WRSR_WREN, |
| 8660 | .tested = TEST_OK_PREW, |
| 8661 | .probe = probe_spi_rdid, |
| 8662 | .probe_timing = TIMING_ZERO, |
| 8663 | .block_erasers = |
| 8664 | { |
| 8665 | { |
| 8666 | .eraseblocks = { {4 * 1024, 256} }, |
| 8667 | .block_erase = spi_block_erase_20, |
| 8668 | }, { |
| 8669 | .eraseblocks = { {64 * 1024, 16} }, |
| 8670 | .block_erase = spi_block_erase_52, |
| 8671 | }, { |
| 8672 | .eraseblocks = { {64 * 1024, 16} }, |
| 8673 | .block_erase = spi_block_erase_d8, |
| 8674 | }, { |
| 8675 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8676 | .block_erase = spi_block_erase_60, |
| 8677 | }, { |
| 8678 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8679 | .block_erase = spi_block_erase_c7, |
| 8680 | }, |
| 8681 | }, |
| 8682 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8683 | .unlock = spi_disable_blockprotect, |
| 8684 | .write = spi_chip_write_256, |
| 8685 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8686 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 8687 | }, |
| 8688 | |
| 8689 | { |
| 8690 | .vendor = "Macronix", |
| 8691 | .name = "MX25R6435F", |
| 8692 | .bustype = BUS_SPI, |
| 8693 | .manufacture_id = MACRONIX_ID, |
| 8694 | .model_id = MACRONIX_MX25R6435F, |
| 8695 | .total_size = 8192, |
| 8696 | .page_size = 256, |
| 8697 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8698 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8699 | .tested = TEST_OK_PREW, |
| 8700 | .probe = probe_spi_rdid, |
| 8701 | .probe_timing = TIMING_ZERO, |
| 8702 | .block_erasers = |
| 8703 | { |
| 8704 | { |
| 8705 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8706 | .block_erase = spi_block_erase_20, |
| 8707 | }, { |
| 8708 | .eraseblocks = { {64 * 1024, 128} }, |
| 8709 | .block_erase = spi_block_erase_d8, |
| 8710 | }, { |
| 8711 | .eraseblocks = { {32 * 1024, 256} }, |
| 8712 | .block_erase = spi_block_erase_52, |
| 8713 | }, { |
| 8714 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8715 | .block_erase = spi_block_erase_60, |
| 8716 | }, { |
| 8717 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8718 | .block_erase = spi_block_erase_c7, |
| 8719 | } |
| 8720 | }, |
| 8721 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8722 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8723 | .write = spi_chip_write_256, |
| 8724 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8725 | .voltage = {1650, 3600}, |
| 8726 | }, |
| 8727 | |
| 8728 | { |
| 8729 | .vendor = "Macronix", |
| 8730 | .name = "MX25U12835F", |
| 8731 | .bustype = BUS_SPI, |
| 8732 | .manufacture_id = MACRONIX_ID, |
| 8733 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8734 | .total_size = 16384, |
| 8735 | .page_size = 256, |
| 8736 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8737 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8738 | .tested = TEST_OK_PREW, |
| 8739 | .probe = probe_spi_rdid, |
| 8740 | .probe_timing = TIMING_ZERO, |
| 8741 | .block_erasers = |
| 8742 | { |
| 8743 | { |
| 8744 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8745 | .block_erase = spi_block_erase_20, |
| 8746 | }, { |
| 8747 | .eraseblocks = { {32 * 1024, 512} }, |
| 8748 | .block_erase = spi_block_erase_52, |
| 8749 | }, { |
| 8750 | .eraseblocks = { {64 * 1024, 256} }, |
| 8751 | .block_erase = spi_block_erase_d8, |
| 8752 | }, { |
| 8753 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8754 | .block_erase = spi_block_erase_60, |
| 8755 | }, { |
| 8756 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8757 | .block_erase = spi_block_erase_c7, |
| 8758 | } |
| 8759 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 8760 | /* TODO: security register */ |
| 8761 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8762 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8763 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 8764 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8765 | .voltage = {1650, 2000}, |
| 8766 | }, |
| 8767 | |
| 8768 | { |
| 8769 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8770 | .name = "MX25U1635E", |
| 8771 | .bustype = BUS_SPI, |
| 8772 | .manufacture_id = MACRONIX_ID, |
| 8773 | .model_id = MACRONIX_MX25U1635E, |
| 8774 | .total_size = 2048, |
| 8775 | .page_size = 256, |
| 8776 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8777 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8778 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8779 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8780 | .probe = probe_spi_rdid, |
| 8781 | .probe_timing = TIMING_ZERO, |
| 8782 | .block_erasers = |
| 8783 | { |
| 8784 | { |
| 8785 | .eraseblocks = { {4 * 1024, 512} }, |
| 8786 | .block_erase = spi_block_erase_20, |
| 8787 | }, { |
| 8788 | .eraseblocks = { {32 * 1024, 64} }, |
| 8789 | .block_erase = spi_block_erase_52, |
| 8790 | }, { |
| 8791 | .eraseblocks = { {64 * 1024, 32} }, |
| 8792 | .block_erase = spi_block_erase_d8, |
| 8793 | }, { |
| 8794 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8795 | .block_erase = spi_block_erase_60, |
| 8796 | }, { |
| 8797 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8798 | .block_erase = spi_block_erase_c7, |
| 8799 | } |
| 8800 | }, |
| 8801 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8802 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8803 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8804 | .write = spi_chip_write_256, |
| 8805 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8806 | .voltage = {1650, 2000}, |
| 8807 | }, |
| 8808 | |
| 8809 | { |
| 8810 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 8811 | .name = "MX25U25635F", |
| 8812 | .bustype = BUS_SPI, |
| 8813 | .manufacture_id = MACRONIX_ID, |
| 8814 | .model_id = MACRONIX_MX25U25635F, |
| 8815 | .total_size = 32768, |
| 8816 | .page_size = 256, |
| 8817 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8818 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 8819 | .tested = TEST_OK_PR, |
| 8820 | .probe = probe_spi_rdid, |
| 8821 | .probe_timing = TIMING_ZERO, |
| 8822 | .block_erasers = |
| 8823 | { |
| 8824 | { |
| 8825 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8826 | .block_erase = spi_block_erase_21, |
| 8827 | }, { |
| 8828 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8829 | .block_erase = spi_block_erase_20, |
| 8830 | }, { |
| 8831 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8832 | .block_erase = spi_block_erase_5c, |
| 8833 | }, { |
| 8834 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8835 | .block_erase = spi_block_erase_52, |
| 8836 | }, { |
| 8837 | .eraseblocks = { {64 * 1024, 512} }, |
| 8838 | .block_erase = spi_block_erase_dc, |
| 8839 | }, { |
| 8840 | .eraseblocks = { {64 * 1024, 512} }, |
| 8841 | .block_erase = spi_block_erase_d8, |
| 8842 | }, { |
| 8843 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8844 | .block_erase = spi_block_erase_60, |
| 8845 | }, { |
| 8846 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8847 | .block_erase = spi_block_erase_c7, |
| 8848 | } |
| 8849 | }, |
| 8850 | /* TODO: security register */ |
| 8851 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8852 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8853 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8854 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8855 | .voltage = {1650, 2000}, |
| 8856 | }, |
| 8857 | |
| 8858 | { |
| 8859 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8860 | .name = "MX25U3235E/F", |
| 8861 | .bustype = BUS_SPI, |
| 8862 | .manufacture_id = MACRONIX_ID, |
| 8863 | .model_id = MACRONIX_MX25U3235E, |
| 8864 | .total_size = 4096, |
| 8865 | .page_size = 256, |
| 8866 | /* F model supports SFDP */ |
| 8867 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8868 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8869 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8870 | .tested = TEST_OK_PREW, |
| 8871 | .probe = probe_spi_rdid, |
| 8872 | .probe_timing = TIMING_ZERO, |
| 8873 | .block_erasers = |
| 8874 | { |
| 8875 | { |
| 8876 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8877 | .block_erase = spi_block_erase_20, |
| 8878 | }, { |
| 8879 | .eraseblocks = { {32 * 1024, 128} }, |
| 8880 | .block_erase = spi_block_erase_52, |
| 8881 | }, { |
| 8882 | .eraseblocks = { {64 * 1024, 64} }, |
| 8883 | .block_erase = spi_block_erase_d8, |
| 8884 | }, { |
| 8885 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8886 | .block_erase = spi_block_erase_60, |
| 8887 | }, { |
| 8888 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8889 | .block_erase = spi_block_erase_c7, |
| 8890 | } |
| 8891 | }, |
| 8892 | /* TODO: security register */ |
| 8893 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8894 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8895 | .write = spi_chip_write_256, |
| 8896 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8897 | .voltage = {1650, 2000}, |
| 8898 | }, |
| 8899 | |
| 8900 | { |
| 8901 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 8902 | .name = "MX25U51245G", |
| 8903 | .bustype = BUS_SPI, |
| 8904 | .manufacture_id = MACRONIX_ID, |
| 8905 | .model_id = MACRONIX_MX25U51245G, |
| 8906 | .total_size = 65536, |
| 8907 | .page_size = 256, |
| 8908 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
| 8909 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 8910 | .tested = TEST_OK_PREW, |
| 8911 | .probe = probe_spi_rdid, |
| 8912 | .probe_timing = TIMING_ZERO, |
| 8913 | .block_erasers = |
| 8914 | { |
| 8915 | { |
| 8916 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8917 | .block_erase = spi_block_erase_21, |
| 8918 | }, { |
| 8919 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8920 | .block_erase = spi_block_erase_20, |
| 8921 | }, { |
| 8922 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8923 | .block_erase = spi_block_erase_5c, |
| 8924 | }, { |
| 8925 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8926 | .block_erase = spi_block_erase_52, |
| 8927 | }, { |
| 8928 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8929 | .block_erase = spi_block_erase_dc, |
| 8930 | }, { |
| 8931 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8932 | .block_erase = spi_block_erase_d8, |
| 8933 | }, { |
| 8934 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8935 | .block_erase = spi_block_erase_60, |
| 8936 | }, { |
| 8937 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8938 | .block_erase = spi_block_erase_c7, |
| 8939 | } |
| 8940 | }, |
| 8941 | /* TODO: security register */ |
| 8942 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8943 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8944 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8945 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8946 | .voltage = {1650, 2000}, |
| 8947 | }, |
| 8948 | |
| 8949 | { |
| 8950 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8951 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8952 | .bustype = BUS_SPI, |
| 8953 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8954 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8955 | .total_size = 8192, |
| 8956 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8957 | /* F model supports SFDP */ |
| 8958 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8959 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8960 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8961 | .tested = TEST_OK_PREW, |
| 8962 | .probe = probe_spi_rdid, |
| 8963 | .probe_timing = TIMING_ZERO, |
| 8964 | .block_erasers = |
| 8965 | { |
| 8966 | { |
| 8967 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8968 | .block_erase = spi_block_erase_20, |
| 8969 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8970 | .eraseblocks = { {32 * 1024, 256} }, |
| 8971 | .block_erase = spi_block_erase_52, |
| 8972 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8973 | .eraseblocks = { {64 * 1024, 128} }, |
| 8974 | .block_erase = spi_block_erase_d8, |
| 8975 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8976 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8977 | .block_erase = spi_block_erase_60, |
| 8978 | }, { |
| 8979 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8980 | .block_erase = spi_block_erase_c7, |
| 8981 | } |
| 8982 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8983 | /* TODO: security register */ |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 8984 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8985 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8986 | .write = spi_chip_write_256, |
| 8987 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8988 | .voltage = {1650, 2000}, |
| 8989 | }, |
| 8990 | |
| 8991 | { |
| 8992 | .vendor = "Macronix", |
| 8993 | .name = "MX25U8032E", |
| 8994 | .bustype = BUS_SPI, |
| 8995 | .manufacture_id = MACRONIX_ID, |
| 8996 | .model_id = MACRONIX_MX25U8032E, |
| 8997 | .total_size = 1024, |
| 8998 | .page_size = 256, |
| 8999 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9000 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9001 | .tested = TEST_OK_PREW, |
| 9002 | .probe = probe_spi_rdid, |
| 9003 | .probe_timing = TIMING_ZERO, |
| 9004 | .block_erasers = |
| 9005 | { |
| 9006 | { |
| 9007 | .eraseblocks = { {4 * 1024, 256} }, |
| 9008 | .block_erase = spi_block_erase_20, |
| 9009 | }, { |
| 9010 | .eraseblocks = { {32 * 1024, 32} }, |
| 9011 | .block_erase = spi_block_erase_52, |
| 9012 | }, { |
| 9013 | .eraseblocks = { {64 * 1024, 16} }, |
| 9014 | .block_erase = spi_block_erase_d8, |
| 9015 | }, { |
| 9016 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9017 | .block_erase = spi_block_erase_60, |
| 9018 | }, { |
| 9019 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9020 | .block_erase = spi_block_erase_c7, |
| 9021 | } |
| 9022 | }, |
| 9023 | /* TODO: security register */ |
| 9024 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9025 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9026 | .write = spi_chip_write_256, |
| 9027 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9028 | .voltage = {1650, 2000}, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9029 | }, |
| 9030 | |
| 9031 | { |
| 9032 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9033 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9034 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9035 | .manufacture_id = MACRONIX_ID, |
| 9036 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9037 | .total_size = 128, |
| 9038 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9039 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9040 | .tested = TEST_UNTESTED, |
| 9041 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9042 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9043 | .block_erasers = |
| 9044 | { |
| 9045 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9046 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9047 | {8 * 1024, 1}, |
| 9048 | {4 * 1024, 2}, |
| 9049 | {8 * 1024, 2}, |
| 9050 | {32 * 1024, 1}, |
| 9051 | {64 * 1024, 1}, |
| 9052 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9053 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9054 | }, { |
| 9055 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9056 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9057 | } |
| 9058 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9059 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9060 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9061 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9062 | }, |
| 9063 | |
| 9064 | { |
| 9065 | .vendor = "Macronix", |
| 9066 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9067 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9068 | .manufacture_id = MACRONIX_ID, |
| 9069 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9070 | .total_size = 128, |
| 9071 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9072 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 9073 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9074 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9075 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9076 | .block_erasers = |
| 9077 | { |
| 9078 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9079 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9080 | {64 * 1024, 1}, |
| 9081 | {32 * 1024, 1}, |
| 9082 | {8 * 1024, 2}, |
| 9083 | {4 * 1024, 2}, |
| 9084 | {8 * 1024, 1}, |
| 9085 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9086 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9087 | }, { |
| 9088 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9089 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9090 | } |
| 9091 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9092 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9093 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9094 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9095 | }, |
| 9096 | |
| 9097 | { |
| 9098 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9099 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9100 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9101 | .manufacture_id = MACRONIX_ID, |
| 9102 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9103 | .total_size = 256, |
| 9104 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9105 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9106 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9107 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9108 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9109 | .block_erasers = |
| 9110 | { |
| 9111 | { |
| 9112 | .eraseblocks = { |
| 9113 | {16 * 1024, 1}, |
| 9114 | {8 * 1024, 2}, |
| 9115 | {32 * 1024, 1}, |
| 9116 | {64 * 1024, 3}, |
| 9117 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9118 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9119 | }, { |
| 9120 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9121 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9122 | }, |
| 9123 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9124 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9125 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9126 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9127 | }, |
| 9128 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9129 | { |
| 9130 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9131 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9132 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9133 | .manufacture_id = MACRONIX_ID, |
| 9134 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9135 | .total_size = 256, |
| 9136 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9137 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9138 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9139 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9140 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9141 | .block_erasers = |
| 9142 | { |
| 9143 | { |
| 9144 | .eraseblocks = { |
| 9145 | {64 * 1024, 3}, |
| 9146 | {32 * 1024, 1}, |
| 9147 | {8 * 1024, 2}, |
| 9148 | {16 * 1024, 1}, |
| 9149 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9150 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9151 | }, { |
| 9152 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9153 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9154 | }, |
| 9155 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9156 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9157 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9158 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9159 | }, |
| 9160 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9161 | { |
| 9162 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 9163 | .name = "MX29F022(N)B", |
| 9164 | .bustype = BUS_PARALLEL, |
| 9165 | .manufacture_id = MACRONIX_ID, |
| 9166 | .model_id = MACRONIX_MX29F022B, |
| 9167 | .total_size = 256, |
| 9168 | .page_size = 0, /* unused */ |
| 9169 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9170 | .tested = TEST_UNTESTED, |
| 9171 | .probe = probe_jedec, |
| 9172 | .probe_timing = TIMING_ZERO, |
| 9173 | .block_erasers = |
| 9174 | { |
| 9175 | { |
| 9176 | .eraseblocks = { |
| 9177 | {16 * 1024, 1}, |
| 9178 | {8 * 1024, 2}, |
| 9179 | {32 * 1024, 1}, |
| 9180 | {64 * 1024, 3}, |
| 9181 | }, |
| 9182 | .block_erase = erase_sector_jedec, |
| 9183 | }, { |
| 9184 | .eraseblocks = { {256 * 1024, 1} }, |
| 9185 | .block_erase = erase_chip_block_jedec, |
| 9186 | } |
| 9187 | }, |
| 9188 | .write = write_jedec_1, |
| 9189 | .read = read_memmapped, |
| 9190 | .voltage = {4500, 5500}, |
| 9191 | }, |
| 9192 | |
| 9193 | { |
| 9194 | .vendor = "Macronix", |
| 9195 | .name = "MX29F022(N)T", |
| 9196 | .bustype = BUS_PARALLEL, |
| 9197 | .manufacture_id = MACRONIX_ID, |
| 9198 | .model_id = MACRONIX_MX29F022T, |
| 9199 | .total_size = 256, |
| 9200 | .page_size = 0, /* unused */ |
| 9201 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9202 | .tested = TEST_OK_PREW, |
| 9203 | .probe = probe_jedec, |
| 9204 | .probe_timing = TIMING_ZERO, |
| 9205 | .block_erasers = |
| 9206 | { |
| 9207 | { |
| 9208 | .eraseblocks = { |
| 9209 | {64 * 1024, 3}, |
| 9210 | {32 * 1024, 1}, |
| 9211 | {8 * 1024, 2}, |
| 9212 | {16 * 1024, 1}, |
| 9213 | }, |
| 9214 | .block_erase = erase_sector_jedec, |
| 9215 | }, { |
| 9216 | .eraseblocks = { {256 * 1024, 1} }, |
| 9217 | .block_erase = erase_chip_block_jedec, |
| 9218 | } |
| 9219 | }, |
| 9220 | .write = write_jedec_1, |
| 9221 | .read = read_memmapped, |
| 9222 | .voltage = {4500, 5500}, |
| 9223 | }, |
| 9224 | |
| 9225 | { |
| 9226 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9227 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9228 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9229 | .manufacture_id = MACRONIX_ID, |
| 9230 | .model_id = MACRONIX_MX29F040, |
| 9231 | .total_size = 512, |
| 9232 | .page_size = 64 * 1024, |
| 9233 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9234 | .tested = TEST_UNTESTED, |
| 9235 | .probe = probe_jedec, |
| 9236 | .probe_timing = TIMING_ZERO, |
| 9237 | .block_erasers = |
| 9238 | { |
| 9239 | { |
| 9240 | .eraseblocks = { {64 * 1024, 8} }, |
| 9241 | .block_erase = erase_sector_jedec, |
| 9242 | }, { |
| 9243 | .eraseblocks = { {512 * 1024, 1} }, |
| 9244 | .block_erase = erase_chip_block_jedec, |
| 9245 | }, |
| 9246 | }, |
| 9247 | .write = write_jedec_1, |
| 9248 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9249 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9250 | }, |
| 9251 | |
| 9252 | { |
| 9253 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9254 | .name = "MX29GL128F", |
| 9255 | .bustype = BUS_PARALLEL, |
| 9256 | .manufacture_id = MACRONIX_ID, |
| 9257 | .model_id = MACRONIX_MX29GL128F, |
| 9258 | .total_size = 16384, |
| 9259 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9260 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9261 | .tested = TEST_UNTESTED, |
| 9262 | .probe = probe_jedec_29gl, |
| 9263 | .probe_timing = TIMING_ZERO, |
| 9264 | .block_erasers = |
| 9265 | { |
| 9266 | { |
| 9267 | .eraseblocks = { {128 * 1024, 128} }, |
| 9268 | .block_erase = erase_sector_jedec, |
| 9269 | }, { |
| 9270 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9271 | .block_erase = erase_chip_block_jedec, |
| 9272 | }, |
| 9273 | }, |
| 9274 | .write = write_jedec_1, |
| 9275 | .read = read_memmapped, |
| 9276 | .voltage = {2700, 3600}, |
| 9277 | }, |
| 9278 | |
| 9279 | { |
| 9280 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9281 | .name = "MX29GL320EB", |
| 9282 | .bustype = BUS_PARALLEL, |
| 9283 | .manufacture_id = MACRONIX_ID, |
| 9284 | .model_id = MACRONIX_MX29GL320EB, |
| 9285 | .total_size = 4096, |
| 9286 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9287 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9288 | .tested = TEST_UNTESTED, |
| 9289 | .probe = probe_jedec_29gl, |
| 9290 | .probe_timing = TIMING_ZERO, |
| 9291 | .block_erasers = |
| 9292 | { |
| 9293 | { |
| 9294 | .eraseblocks = { |
| 9295 | {8 * 1024, 8}, |
| 9296 | {64 * 1024, 63}, |
| 9297 | }, |
| 9298 | .block_erase = erase_sector_jedec, |
| 9299 | }, { |
| 9300 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9301 | .block_erase = erase_chip_block_jedec, |
| 9302 | }, |
| 9303 | }, |
| 9304 | .write = write_jedec_1, |
| 9305 | .read = read_memmapped, |
| 9306 | .voltage = {2700, 3600}, |
| 9307 | }, |
| 9308 | |
| 9309 | { |
| 9310 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9311 | .name = "MX29GL320EH/L", |
| 9312 | .bustype = BUS_PARALLEL, |
| 9313 | .manufacture_id = MACRONIX_ID, |
| 9314 | .model_id = MACRONIX_MX29GL320EHL, |
| 9315 | .total_size = 4096, |
| 9316 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9317 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9318 | .tested = TEST_UNTESTED, |
| 9319 | .probe = probe_jedec_29gl, |
| 9320 | .probe_timing = TIMING_ZERO, |
| 9321 | .block_erasers = |
| 9322 | { |
| 9323 | { |
| 9324 | .eraseblocks = { {64 * 1024, 64} }, |
| 9325 | .block_erase = erase_sector_jedec, |
| 9326 | }, { |
| 9327 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9328 | .block_erase = erase_chip_block_jedec, |
| 9329 | }, |
| 9330 | }, |
| 9331 | .write = write_jedec_1, |
| 9332 | .read = read_memmapped, |
| 9333 | .voltage = {2700, 3600}, |
| 9334 | }, |
| 9335 | |
| 9336 | { |
| 9337 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9338 | .name = "MX29GL320ET", |
| 9339 | .bustype = BUS_PARALLEL, |
| 9340 | .manufacture_id = MACRONIX_ID, |
| 9341 | .model_id = MACRONIX_MX29GL320ET, |
| 9342 | .total_size = 4096, |
| 9343 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9344 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9345 | .tested = TEST_UNTESTED, |
| 9346 | .probe = probe_jedec_29gl, |
| 9347 | .probe_timing = TIMING_ZERO, |
| 9348 | .block_erasers = |
| 9349 | { |
| 9350 | { |
| 9351 | .eraseblocks = { |
| 9352 | {64 * 1024, 63}, |
| 9353 | {8 * 1024, 8}, |
| 9354 | }, |
| 9355 | .block_erase = erase_sector_jedec, |
| 9356 | }, { |
| 9357 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9358 | .block_erase = erase_chip_block_jedec, |
| 9359 | }, |
| 9360 | }, |
| 9361 | .write = write_jedec_1, |
| 9362 | .read = read_memmapped, |
| 9363 | .voltage = {2700, 3600}, |
| 9364 | }, |
| 9365 | |
| 9366 | { |
| 9367 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9368 | .name = "MX29GL640EB", |
| 9369 | .bustype = BUS_PARALLEL, |
| 9370 | .manufacture_id = MACRONIX_ID, |
| 9371 | .model_id = MACRONIX_MX29GL640EB, |
| 9372 | .total_size = 8192, |
| 9373 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9374 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9375 | .tested = TEST_UNTESTED, |
| 9376 | .probe = probe_jedec_29gl, |
| 9377 | .probe_timing = TIMING_ZERO, |
| 9378 | .block_erasers = |
| 9379 | { |
| 9380 | { |
| 9381 | .eraseblocks = { |
| 9382 | {8 * 1024, 8}, |
| 9383 | {64 * 1024, 127}, |
| 9384 | }, |
| 9385 | .block_erase = erase_sector_jedec, |
| 9386 | }, { |
| 9387 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9388 | .block_erase = erase_chip_block_jedec, |
| 9389 | }, |
| 9390 | }, |
| 9391 | .write = write_jedec_1, |
| 9392 | .read = read_memmapped, |
| 9393 | .voltage = {2700, 3600}, |
| 9394 | }, |
| 9395 | |
| 9396 | { |
| 9397 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9398 | .name = "MX29GL640EH/L", |
| 9399 | .bustype = BUS_PARALLEL, |
| 9400 | .manufacture_id = MACRONIX_ID, |
| 9401 | .model_id = MACRONIX_MX29GL640EHL, |
| 9402 | .total_size = 8192, |
| 9403 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9404 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9405 | .tested = TEST_UNTESTED, |
| 9406 | .probe = probe_jedec_29gl, |
| 9407 | .probe_timing = TIMING_ZERO, |
| 9408 | .block_erasers = |
| 9409 | { |
| 9410 | { |
| 9411 | .eraseblocks = { {64 * 1024, 128} }, |
| 9412 | .block_erase = erase_sector_jedec, |
| 9413 | }, { |
| 9414 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9415 | .block_erase = erase_chip_block_jedec, |
| 9416 | }, |
| 9417 | }, |
| 9418 | .write = write_jedec_1, |
| 9419 | .read = read_memmapped, |
| 9420 | .voltage = {2700, 3600}, |
| 9421 | }, |
| 9422 | |
| 9423 | { |
| 9424 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9425 | .name = "MX29GL640ET", |
| 9426 | .bustype = BUS_PARALLEL, |
| 9427 | .manufacture_id = MACRONIX_ID, |
| 9428 | .model_id = MACRONIX_MX29GL640ET, |
| 9429 | .total_size = 8192, |
| 9430 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9431 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9432 | .tested = TEST_UNTESTED, |
| 9433 | .probe = probe_jedec_29gl, |
| 9434 | .probe_timing = TIMING_ZERO, |
| 9435 | .block_erasers = |
| 9436 | { |
| 9437 | { |
| 9438 | .eraseblocks = { |
| 9439 | {64 * 1024, 127}, |
| 9440 | {8 * 1024, 8}, |
| 9441 | }, |
| 9442 | .block_erase = erase_sector_jedec, |
| 9443 | }, { |
| 9444 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9445 | .block_erase = erase_chip_block_jedec, |
| 9446 | }, |
| 9447 | }, |
| 9448 | .write = write_jedec_1, |
| 9449 | .read = read_memmapped, |
| 9450 | .voltage = {2700, 3600}, |
| 9451 | }, |
| 9452 | |
| 9453 | { |
| 9454 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 9455 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9456 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9457 | .manufacture_id = MACRONIX_ID, |
| 9458 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9459 | .total_size = 512, |
| 9460 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9461 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9462 | .tested = TEST_UNTESTED, |
| 9463 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9464 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9465 | .block_erasers = |
| 9466 | { |
| 9467 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 9468 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9469 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9470 | }, { |
| 9471 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9472 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9473 | }, |
| 9474 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9475 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9476 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9477 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 9478 | }, |
| 9479 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9480 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9481 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 9482 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9483 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9484 | .manufacture_id = MACRONIX_ID, |
| 9485 | .model_id = MACRONIX_MX66L51235F, |
| 9486 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9487 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9488 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9489 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9490 | .tested = TEST_OK_PREW, |
| 9491 | .probe = probe_spi_rdid, |
| 9492 | .probe_timing = TIMING_ZERO, |
| 9493 | .block_erasers = |
| 9494 | { |
| 9495 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9496 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9497 | .block_erase = spi_block_erase_21, |
| 9498 | }, { |
| 9499 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9500 | .block_erase = spi_block_erase_20, |
| 9501 | }, { |
| 9502 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9503 | .block_erase = spi_block_erase_5c, |
| 9504 | }, { |
| 9505 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9506 | .block_erase = spi_block_erase_52, |
| 9507 | }, { |
| 9508 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9509 | .block_erase = spi_block_erase_dc, |
| 9510 | }, { |
| 9511 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9512 | .block_erase = spi_block_erase_d8, |
| 9513 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9514 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9515 | .block_erase = spi_block_erase_60, |
| 9516 | }, { |
| 9517 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9518 | .block_erase = spi_block_erase_c7, |
| 9519 | } |
| 9520 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9521 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 9522 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9523 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9524 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9525 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9526 | .voltage = {2700, 3600}, |
| 9527 | }, |
| 9528 | |
| 9529 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 9530 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 9531 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 9532 | * only is successful if RDID does not work. |
| 9533 | */ |
| 9534 | { |
| 9535 | .vendor = "Micron/Numonyx/ST", |
| 9536 | .name = "M25P05", |
| 9537 | .bustype = BUS_SPI, |
| 9538 | .manufacture_id = 0, /* Not used. */ |
| 9539 | .model_id = ST_M25P05_RES, |
| 9540 | .total_size = 64, |
| 9541 | .page_size = 256, |
| 9542 | .feature_bits = FEATURE_WRSR_WREN, |
| 9543 | .tested = TEST_UNTESTED, |
| 9544 | .probe = probe_spi_res1, |
| 9545 | .probe_timing = TIMING_ZERO, |
| 9546 | .block_erasers = |
| 9547 | { |
| 9548 | { |
| 9549 | .eraseblocks = { {32 * 1024, 2} }, |
| 9550 | .block_erase = spi_block_erase_d8, |
| 9551 | }, { |
| 9552 | .eraseblocks = { {64 * 1024, 1} }, |
| 9553 | .block_erase = spi_block_erase_c7, |
| 9554 | } |
| 9555 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9556 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9557 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9558 | .write = spi_chip_write_1, /* 128 */ |
| 9559 | .read = spi_chip_read, |
| 9560 | .voltage = {2700, 3600}, |
| 9561 | }, |
| 9562 | |
| 9563 | { |
| 9564 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9565 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9566 | .bustype = BUS_SPI, |
| 9567 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9568 | .model_id = ST_M25P05A, |
| 9569 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9570 | .page_size = 256, |
| 9571 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9572 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9573 | .probe = probe_spi_rdid, |
| 9574 | .probe_timing = TIMING_ZERO, |
| 9575 | .block_erasers = |
| 9576 | { |
| 9577 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9578 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9579 | .block_erase = spi_block_erase_d8, |
| 9580 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9581 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9582 | .block_erase = spi_block_erase_c7, |
| 9583 | } |
| 9584 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9585 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9586 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9587 | .write = spi_chip_write_256, |
| 9588 | .read = spi_chip_read, |
| 9589 | .voltage = {2700, 3600}, |
| 9590 | }, |
| 9591 | |
| 9592 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 9593 | { |
| 9594 | .vendor = "Micron/Numonyx/ST", |
| 9595 | .name = "M25P10", |
| 9596 | .bustype = BUS_SPI, |
| 9597 | .manufacture_id = 0, /* Not used. */ |
| 9598 | .model_id = ST_M25P10_RES, |
| 9599 | .total_size = 128, |
| 9600 | .page_size = 256, |
| 9601 | .feature_bits = FEATURE_WRSR_WREN, |
| 9602 | .tested = TEST_UNTESTED, |
| 9603 | .probe = probe_spi_res1, |
| 9604 | .probe_timing = TIMING_ZERO, |
| 9605 | .block_erasers = |
| 9606 | { |
| 9607 | { |
| 9608 | .eraseblocks = { {32 * 1024, 4} }, |
| 9609 | .block_erase = spi_block_erase_d8, |
| 9610 | }, { |
| 9611 | .eraseblocks = { {128 * 1024, 1} }, |
| 9612 | .block_erase = spi_block_erase_c7, |
| 9613 | } |
| 9614 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9615 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9616 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9617 | .write = spi_chip_write_1, /* 128 */ |
| 9618 | .read = spi_chip_read, |
| 9619 | .voltage = {2700, 3600}, |
| 9620 | }, |
| 9621 | |
| 9622 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9623 | .vendor = "Micron/Numonyx/ST", |
| 9624 | .name = "M25P10-A", |
| 9625 | .bustype = BUS_SPI, |
| 9626 | .manufacture_id = ST_ID, |
| 9627 | .model_id = ST_M25P10A, |
| 9628 | .total_size = 128, |
| 9629 | .page_size = 256, |
| 9630 | .feature_bits = FEATURE_WRSR_WREN, |
| 9631 | .tested = TEST_OK_PREW, |
| 9632 | .probe = probe_spi_rdid, |
| 9633 | .probe_timing = TIMING_ZERO, |
| 9634 | .block_erasers = |
| 9635 | { |
| 9636 | { |
| 9637 | .eraseblocks = { {32 * 1024, 4} }, |
| 9638 | .block_erase = spi_block_erase_d8, |
| 9639 | }, { |
| 9640 | .eraseblocks = { {128 * 1024, 1} }, |
| 9641 | .block_erase = spi_block_erase_c7, |
| 9642 | } |
| 9643 | }, |
| 9644 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9645 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9646 | .write = spi_chip_write_256, |
| 9647 | .read = spi_chip_read, |
| 9648 | .voltage = {2700, 3600}, |
| 9649 | }, |
| 9650 | |
| 9651 | { |
| 9652 | .vendor = "Micron/Numonyx/ST", |
| 9653 | .name = "M25P128", |
| 9654 | .bustype = BUS_SPI, |
| 9655 | .manufacture_id = ST_ID, |
| 9656 | .model_id = ST_M25P128, |
| 9657 | .total_size = 16384, |
| 9658 | .page_size = 256, |
| 9659 | .feature_bits = FEATURE_WRSR_WREN, |
| 9660 | .tested = TEST_OK_PREW, |
| 9661 | .probe = probe_spi_rdid, |
| 9662 | .probe_timing = TIMING_ZERO, |
| 9663 | .block_erasers = |
| 9664 | { |
| 9665 | { |
| 9666 | .eraseblocks = { {256 * 1024, 64} }, |
| 9667 | .block_erase = spi_block_erase_d8, |
| 9668 | }, { |
| 9669 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9670 | .block_erase = spi_block_erase_c7, |
| 9671 | } |
| 9672 | }, |
| 9673 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9674 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9675 | .write = spi_chip_write_256, |
| 9676 | .read = spi_chip_read, |
| 9677 | .voltage = {2700, 3600}, |
| 9678 | }, |
| 9679 | |
| 9680 | { |
| 9681 | .vendor = "Micron/Numonyx/ST", |
| 9682 | .name = "M25P16", |
| 9683 | .bustype = BUS_SPI, |
| 9684 | .manufacture_id = ST_ID, |
| 9685 | .model_id = ST_M25P16, |
| 9686 | .total_size = 2048, |
| 9687 | .page_size = 256, |
| 9688 | .feature_bits = FEATURE_WRSR_WREN, |
| 9689 | .tested = TEST_OK_PREW, |
| 9690 | .probe = probe_spi_rdid, |
| 9691 | .probe_timing = TIMING_ZERO, |
| 9692 | .block_erasers = |
| 9693 | { |
| 9694 | { |
| 9695 | .eraseblocks = { {64 * 1024, 32} }, |
| 9696 | .block_erase = spi_block_erase_d8, |
| 9697 | }, { |
| 9698 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9699 | .block_erase = spi_block_erase_c7, |
| 9700 | } |
| 9701 | }, |
| 9702 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9703 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9704 | .write = spi_chip_write_256, |
| 9705 | .read = spi_chip_read, |
| 9706 | .voltage = {2700, 3600}, |
| 9707 | }, |
| 9708 | |
| 9709 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9710 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9711 | .name = "M25P20", |
| 9712 | .bustype = BUS_SPI, |
| 9713 | .manufacture_id = ST_ID, |
| 9714 | .model_id = ST_M25P20, |
| 9715 | .total_size = 256, |
| 9716 | .page_size = 256, |
| 9717 | .feature_bits = FEATURE_WRSR_WREN, |
| 9718 | .tested = TEST_UNTESTED, |
| 9719 | .probe = probe_spi_rdid, |
| 9720 | .probe_timing = TIMING_ZERO, |
| 9721 | .block_erasers = |
| 9722 | { |
| 9723 | { |
| 9724 | .eraseblocks = { {64 * 1024, 4} }, |
| 9725 | .block_erase = spi_block_erase_d8, |
| 9726 | }, { |
| 9727 | .eraseblocks = { {256 * 1024, 1} }, |
| 9728 | .block_erase = spi_block_erase_c7, |
| 9729 | } |
| 9730 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9731 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9732 | .unlock = spi_disable_blockprotect, |
| 9733 | .write = spi_chip_write_256, |
| 9734 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9735 | .voltage = {2700, 3600}, |
| 9736 | }, |
| 9737 | |
| 9738 | { |
| 9739 | .vendor = "Micron/Numonyx/ST", |
| 9740 | .name = "M25P20-old", |
| 9741 | .bustype = BUS_SPI, |
| 9742 | .manufacture_id = 0, /* Not used. */ |
| 9743 | .model_id = ST_M25P20_RES, |
| 9744 | .total_size = 256, |
| 9745 | .page_size = 256, |
| 9746 | .feature_bits = FEATURE_WRSR_WREN, |
| 9747 | .tested = TEST_OK_PREW, |
| 9748 | .probe = probe_spi_res1, |
| 9749 | .probe_timing = TIMING_ZERO, |
| 9750 | .block_erasers = |
| 9751 | { |
| 9752 | { |
| 9753 | .eraseblocks = { {64 * 1024, 4} }, |
| 9754 | .block_erase = spi_block_erase_d8, |
| 9755 | }, { |
| 9756 | .eraseblocks = { {256 * 1024, 1} }, |
| 9757 | .block_erase = spi_block_erase_c7, |
| 9758 | } |
| 9759 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9760 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9761 | .unlock = spi_disable_blockprotect, |
| 9762 | .write = spi_chip_write_256, |
| 9763 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9764 | .voltage = {2700, 3600}, |
| 9765 | }, |
| 9766 | |
| 9767 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9768 | .vendor = "Micron/Numonyx/ST", |
| 9769 | .name = "M25P32", |
| 9770 | .bustype = BUS_SPI, |
| 9771 | .manufacture_id = ST_ID, |
| 9772 | .model_id = ST_M25P32, |
| 9773 | .total_size = 4096, |
| 9774 | .page_size = 256, |
| 9775 | .feature_bits = FEATURE_WRSR_WREN, |
| 9776 | .tested = TEST_OK_PREW, |
| 9777 | .probe = probe_spi_rdid, |
| 9778 | .probe_timing = TIMING_ZERO, |
| 9779 | .block_erasers = |
| 9780 | { |
| 9781 | { |
| 9782 | .eraseblocks = { {64 * 1024, 64} }, |
| 9783 | .block_erase = spi_block_erase_d8, |
| 9784 | }, { |
| 9785 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9786 | .block_erase = spi_block_erase_c7, |
| 9787 | } |
| 9788 | }, |
| 9789 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9790 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9791 | .write = spi_chip_write_256, |
| 9792 | .read = spi_chip_read, |
| 9793 | .voltage = {2700, 3600}, |
| 9794 | }, |
| 9795 | |
| 9796 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9797 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9798 | .name = "M25P40", |
| 9799 | .bustype = BUS_SPI, |
| 9800 | .manufacture_id = ST_ID, |
| 9801 | .model_id = ST_M25P40, |
| 9802 | .total_size = 512, |
| 9803 | .page_size = 256, |
| 9804 | .feature_bits = FEATURE_WRSR_WREN, |
| 9805 | .tested = TEST_OK_PREW, |
| 9806 | .probe = probe_spi_rdid, |
| 9807 | .probe_timing = TIMING_ZERO, |
| 9808 | .block_erasers = |
| 9809 | { |
| 9810 | { |
| 9811 | .eraseblocks = { {64 * 1024, 8} }, |
| 9812 | .block_erase = spi_block_erase_d8, |
| 9813 | }, { |
| 9814 | .eraseblocks = { {512 * 1024, 1} }, |
| 9815 | .block_erase = spi_block_erase_c7, |
| 9816 | } |
| 9817 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9818 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9819 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9820 | .write = spi_chip_write_256, |
| 9821 | .read = spi_chip_read, |
| 9822 | .voltage = {2700, 3600}, |
| 9823 | }, |
| 9824 | |
| 9825 | { |
| 9826 | .vendor = "Micron/Numonyx/ST", |
| 9827 | .name = "M25P40-old", |
| 9828 | .bustype = BUS_SPI, |
| 9829 | .manufacture_id = 0, /* Not used. */ |
| 9830 | .model_id = ST_M25P40_RES, |
| 9831 | .total_size = 512, |
| 9832 | .page_size = 256, |
| 9833 | .feature_bits = FEATURE_WRSR_WREN, |
| 9834 | .tested = TEST_UNTESTED, |
| 9835 | .probe = probe_spi_res1, |
| 9836 | .probe_timing = TIMING_ZERO, |
| 9837 | .block_erasers = |
| 9838 | { |
| 9839 | { |
| 9840 | .eraseblocks = { {64 * 1024, 8} }, |
| 9841 | .block_erase = spi_block_erase_d8, |
| 9842 | }, { |
| 9843 | .eraseblocks = { {512 * 1024, 1} }, |
| 9844 | .block_erase = spi_block_erase_c7, |
| 9845 | } |
| 9846 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9847 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9848 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9849 | .write = spi_chip_write_256, |
| 9850 | .read = spi_chip_read, |
| 9851 | }, |
| 9852 | |
| 9853 | { |
| 9854 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9855 | .name = "M25P64", |
| 9856 | .bustype = BUS_SPI, |
| 9857 | .manufacture_id = ST_ID, |
| 9858 | .model_id = ST_M25P64, |
| 9859 | .total_size = 8192, |
| 9860 | .page_size = 256, |
| 9861 | .feature_bits = FEATURE_WRSR_WREN, |
| 9862 | .tested = TEST_OK_PREW, |
| 9863 | .probe = probe_spi_rdid, |
| 9864 | .probe_timing = TIMING_ZERO, |
| 9865 | .block_erasers = |
| 9866 | { |
| 9867 | { |
| 9868 | .eraseblocks = { {64 * 1024, 128} }, |
| 9869 | .block_erase = spi_block_erase_d8, |
| 9870 | }, { |
| 9871 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9872 | .block_erase = spi_block_erase_c7, |
| 9873 | } |
| 9874 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9875 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9876 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9877 | .write = spi_chip_write_256, |
| 9878 | .read = spi_chip_read, |
| 9879 | .voltage = {2700, 3600}, |
| 9880 | }, |
| 9881 | |
| 9882 | { |
| 9883 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9884 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9885 | .bustype = BUS_SPI, |
| 9886 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9887 | .model_id = ST_M25P80, |
| 9888 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9889 | .page_size = 256, |
| 9890 | .feature_bits = FEATURE_WRSR_WREN, |
| 9891 | .tested = TEST_OK_PREW, |
| 9892 | .probe = probe_spi_rdid, |
| 9893 | .probe_timing = TIMING_ZERO, |
| 9894 | .block_erasers = |
| 9895 | { |
| 9896 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9897 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9898 | .block_erase = spi_block_erase_d8, |
| 9899 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9900 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9901 | .block_erase = spi_block_erase_c7, |
| 9902 | } |
| 9903 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9904 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9905 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9906 | .write = spi_chip_write_256, |
| 9907 | .read = spi_chip_read, |
| 9908 | .voltage = {2700, 3600}, |
| 9909 | }, |
| 9910 | |
| 9911 | { |
| 9912 | .vendor = "Micron/Numonyx/ST", |
| 9913 | .name = "M25PE10", |
| 9914 | .bustype = BUS_SPI, |
| 9915 | .manufacture_id = ST_ID, |
| 9916 | .model_id = ST_M25PE10, |
| 9917 | .total_size = 128, |
| 9918 | .page_size = 256, |
| 9919 | .feature_bits = FEATURE_WRSR_WREN, |
| 9920 | .tested = TEST_UNTESTED, |
| 9921 | .probe = probe_spi_rdid, |
| 9922 | .probe_timing = TIMING_ZERO, |
| 9923 | .block_erasers = |
| 9924 | { |
| 9925 | { |
| 9926 | .eraseblocks = { {4 * 1024, 32} }, |
| 9927 | .block_erase = spi_block_erase_20, |
| 9928 | }, { |
| 9929 | .eraseblocks = { {64 * 1024, 2} }, |
| 9930 | .block_erase = spi_block_erase_d8, |
| 9931 | }, { |
| 9932 | .eraseblocks = { {128 * 1024, 1} }, |
| 9933 | .block_erase = spi_block_erase_c7, |
| 9934 | } |
| 9935 | }, |
| 9936 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9937 | .unlock = spi_disable_blockprotect, |
| 9938 | .write = spi_chip_write_256, |
| 9939 | .read = spi_chip_read, |
| 9940 | .voltage = {2700, 3600}, |
| 9941 | }, |
| 9942 | |
| 9943 | { |
| 9944 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9945 | .name = "M25PE16", |
| 9946 | .bustype = BUS_SPI, |
| 9947 | .manufacture_id = ST_ID, |
| 9948 | .model_id = ST_M25PE16, |
| 9949 | .total_size = 2048, |
| 9950 | .page_size = 256, |
| 9951 | .feature_bits = FEATURE_WRSR_WREN, |
| 9952 | .tested = TEST_UNTESTED, |
| 9953 | .probe = probe_spi_rdid, |
| 9954 | .probe_timing = TIMING_ZERO, |
| 9955 | .block_erasers = |
| 9956 | { |
| 9957 | { |
| 9958 | .eraseblocks = { {4 * 1024, 512} }, |
| 9959 | .block_erase = spi_block_erase_20, |
| 9960 | }, { |
| 9961 | .eraseblocks = { {64 * 1024, 32} }, |
| 9962 | .block_erase = spi_block_erase_d8, |
| 9963 | }, { |
| 9964 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9965 | .block_erase = spi_block_erase_c7, |
| 9966 | } |
| 9967 | }, |
| 9968 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9969 | .unlock = spi_disable_blockprotect, |
| 9970 | .write = spi_chip_write_256, |
| 9971 | .read = spi_chip_read, |
| 9972 | .voltage = {2700, 3600}, |
| 9973 | }, |
| 9974 | |
| 9975 | { |
| 9976 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9977 | .name = "M25PE20", |
| 9978 | .bustype = BUS_SPI, |
| 9979 | .manufacture_id = ST_ID, |
| 9980 | .model_id = ST_M25PE20, |
| 9981 | .total_size = 256, |
| 9982 | .page_size = 256, |
| 9983 | .feature_bits = FEATURE_WRSR_WREN, |
| 9984 | .tested = TEST_UNTESTED, |
| 9985 | .probe = probe_spi_rdid, |
| 9986 | .probe_timing = TIMING_ZERO, |
| 9987 | .block_erasers = |
| 9988 | { |
| 9989 | { |
| 9990 | .eraseblocks = { {4 * 1024, 64} }, |
| 9991 | .block_erase = spi_block_erase_20, |
| 9992 | }, { |
| 9993 | .eraseblocks = { {64 * 1024, 4} }, |
| 9994 | .block_erase = spi_block_erase_d8, |
| 9995 | }, { |
| 9996 | .eraseblocks = { {256 * 1024, 1} }, |
| 9997 | .block_erase = spi_block_erase_c7, |
| 9998 | } |
| 9999 | }, |
| 10000 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10001 | .unlock = spi_disable_blockprotect, |
| 10002 | .write = spi_chip_write_256, |
| 10003 | .read = spi_chip_read, |
| 10004 | .voltage = {2700, 3600}, |
| 10005 | }, |
| 10006 | |
| 10007 | { |
| 10008 | .vendor = "Micron/Numonyx/ST", |
| 10009 | .name = "M25PE40", |
| 10010 | .bustype = BUS_SPI, |
| 10011 | .manufacture_id = ST_ID, |
| 10012 | .model_id = ST_M25PE40, |
| 10013 | .total_size = 512, |
| 10014 | .page_size = 256, |
| 10015 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10016 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10017 | .probe = probe_spi_rdid, |
| 10018 | .probe_timing = TIMING_ZERO, |
| 10019 | .block_erasers = |
| 10020 | { |
| 10021 | { |
| 10022 | .eraseblocks = { {4 * 1024, 128} }, |
| 10023 | .block_erase = spi_block_erase_20, |
| 10024 | }, { |
| 10025 | .eraseblocks = { {64 * 1024, 8} }, |
| 10026 | .block_erase = spi_block_erase_d8, |
| 10027 | }, { |
| 10028 | .eraseblocks = { {512 * 1024, 1} }, |
| 10029 | .block_erase = spi_block_erase_c7, |
| 10030 | } |
| 10031 | }, |
| 10032 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10033 | .unlock = spi_disable_blockprotect, |
| 10034 | .write = spi_chip_write_256, |
| 10035 | .read = spi_chip_read, |
| 10036 | .voltage = {2700, 3600}, |
| 10037 | }, |
| 10038 | |
| 10039 | { |
| 10040 | .vendor = "Micron/Numonyx/ST", |
| 10041 | .name = "M25PE80", |
| 10042 | .bustype = BUS_SPI, |
| 10043 | .manufacture_id = ST_ID, |
| 10044 | .model_id = ST_M25PE80, |
| 10045 | .total_size = 1024, |
| 10046 | .page_size = 256, |
| 10047 | .feature_bits = FEATURE_WRSR_WREN, |
| 10048 | .tested = TEST_OK_PREW, |
| 10049 | .probe = probe_spi_rdid, |
| 10050 | .probe_timing = TIMING_ZERO, |
| 10051 | .block_erasers = |
| 10052 | { |
| 10053 | { |
| 10054 | .eraseblocks = { {4 * 1024, 256} }, |
| 10055 | .block_erase = spi_block_erase_20, |
| 10056 | }, { |
| 10057 | .eraseblocks = { {64 * 1024, 16} }, |
| 10058 | .block_erase = spi_block_erase_d8, |
| 10059 | }, { |
| 10060 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10061 | .block_erase = spi_block_erase_c7, |
| 10062 | } |
| 10063 | }, |
| 10064 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10065 | .unlock = spi_disable_blockprotect, |
| 10066 | .write = spi_chip_write_256, |
| 10067 | .read = spi_chip_read, |
| 10068 | .voltage = {2700, 3600}, |
| 10069 | }, |
| 10070 | |
| 10071 | { |
| 10072 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10073 | .name = "M25PX16", |
| 10074 | .bustype = BUS_SPI, |
| 10075 | .manufacture_id = ST_ID, |
| 10076 | .model_id = ST_M25PX16, |
| 10077 | .total_size = 2048, |
| 10078 | .page_size = 256, |
| 10079 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10080 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10081 | .tested = TEST_OK_PREW, |
| 10082 | .probe = probe_spi_rdid, |
| 10083 | .probe_timing = TIMING_ZERO, |
| 10084 | .block_erasers = |
| 10085 | { |
| 10086 | { |
| 10087 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10088 | .block_erase = spi_block_erase_20, |
| 10089 | }, { |
| 10090 | .eraseblocks = { {64 * 1024, 32} }, |
| 10091 | .block_erase = spi_block_erase_d8, |
| 10092 | }, { |
| 10093 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10094 | .block_erase = spi_block_erase_c7, |
| 10095 | } |
| 10096 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10097 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10098 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10099 | .write = spi_chip_write_256, |
| 10100 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10101 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10102 | }, |
| 10103 | |
| 10104 | { |
| 10105 | .vendor = "Micron/Numonyx/ST", |
| 10106 | .name = "M25PX32", |
| 10107 | .bustype = BUS_SPI, |
| 10108 | .manufacture_id = ST_ID, |
| 10109 | .model_id = ST_M25PX32, |
| 10110 | .total_size = 4096, |
| 10111 | .page_size = 256, |
| 10112 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10113 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10114 | .tested = TEST_OK_PRE, |
| 10115 | .probe = probe_spi_rdid, |
| 10116 | .probe_timing = TIMING_ZERO, |
| 10117 | .block_erasers = |
| 10118 | { |
| 10119 | { |
| 10120 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 10121 | .block_erase = spi_block_erase_20, |
| 10122 | }, { |
| 10123 | .eraseblocks = { {64 * 1024, 64} }, |
| 10124 | .block_erase = spi_block_erase_d8, |
| 10125 | }, { |
| 10126 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10127 | .block_erase = spi_block_erase_c7, |
| 10128 | } |
| 10129 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10130 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10131 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10132 | .write = spi_chip_write_256, |
| 10133 | .read = spi_chip_read, |
| 10134 | .voltage = {2700, 3600}, |
| 10135 | }, |
| 10136 | |
| 10137 | { |
| 10138 | .vendor = "Micron/Numonyx/ST", |
| 10139 | .name = "M25PX64", |
| 10140 | .bustype = BUS_SPI, |
| 10141 | .manufacture_id = ST_ID, |
| 10142 | .model_id = ST_M25PX64, |
| 10143 | .total_size = 8192, |
| 10144 | .page_size = 256, |
| 10145 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10146 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10147 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10148 | .probe = probe_spi_rdid, |
| 10149 | .probe_timing = TIMING_ZERO, |
| 10150 | .block_erasers = |
| 10151 | { |
| 10152 | { |
| 10153 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 10154 | .block_erase = spi_block_erase_20, |
| 10155 | }, { |
| 10156 | .eraseblocks = { {64 * 1024, 128} }, |
| 10157 | .block_erase = spi_block_erase_d8, |
| 10158 | }, { |
| 10159 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10160 | .block_erase = spi_block_erase_c7, |
| 10161 | } |
| 10162 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10163 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10164 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10165 | .write = spi_chip_write_256, |
| 10166 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10167 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10168 | }, |
| 10169 | |
| 10170 | { |
| 10171 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10172 | .name = "M25PX80", |
| 10173 | .bustype = BUS_SPI, |
| 10174 | .manufacture_id = ST_ID, |
| 10175 | .model_id = ST_M25PX80, |
| 10176 | .total_size = 1024, |
| 10177 | .page_size = 256, |
| 10178 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10179 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10180 | .tested = TEST_OK_PREW, |
| 10181 | .probe = probe_spi_rdid, |
| 10182 | .probe_timing = TIMING_ZERO, |
| 10183 | .block_erasers = |
| 10184 | { |
| 10185 | { |
| 10186 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 10187 | .block_erase = spi_block_erase_20, |
| 10188 | }, { |
| 10189 | .eraseblocks = { {64 * 1024, 16} }, |
| 10190 | .block_erase = spi_block_erase_d8, |
| 10191 | }, { |
| 10192 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10193 | .block_erase = spi_block_erase_c7, |
| 10194 | } |
| 10195 | }, |
| 10196 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 10197 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10198 | .write = spi_chip_write_256, |
| 10199 | .read = spi_chip_read, |
| 10200 | .voltage = {2700, 3600}, |
| 10201 | }, |
| 10202 | |
| 10203 | { |
| 10204 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10205 | .name = "M45PE10", |
| 10206 | .bustype = BUS_SPI, |
| 10207 | .manufacture_id = ST_ID, |
| 10208 | .model_id = ST_M45PE10, |
| 10209 | .total_size = 128, |
| 10210 | .page_size = 256, |
| 10211 | .tested = TEST_UNTESTED, |
| 10212 | .probe = probe_spi_rdid, |
| 10213 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10214 | .block_erasers = |
| 10215 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10216 | { |
| 10217 | .eraseblocks = { {256, 512} }, |
| 10218 | .block_erase = spi_block_erase_db, |
| 10219 | }, { |
| 10220 | .eraseblocks = { {64 * 1024, 2} }, |
| 10221 | .block_erase = spi_block_erase_d8, |
| 10222 | } |
| 10223 | }, |
| 10224 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10225 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10226 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10227 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10228 | .voltage = {2700, 3600}, |
| 10229 | }, |
| 10230 | |
| 10231 | { |
| 10232 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10233 | .name = "M45PE16", |
| 10234 | .bustype = BUS_SPI, |
| 10235 | .manufacture_id = ST_ID, |
| 10236 | .model_id = ST_M45PE16, |
| 10237 | .total_size = 2048, |
| 10238 | .page_size = 256, |
| 10239 | .tested = TEST_UNTESTED, |
| 10240 | .probe = probe_spi_rdid, |
| 10241 | .probe_timing = TIMING_ZERO, |
| 10242 | .block_erasers = |
| 10243 | { |
| 10244 | { |
| 10245 | .eraseblocks = { {256, 8192} }, |
| 10246 | .block_erase = spi_block_erase_db, |
| 10247 | }, { |
| 10248 | .eraseblocks = { {64 * 1024, 32} }, |
| 10249 | .block_erase = spi_block_erase_d8, |
| 10250 | } |
| 10251 | }, |
| 10252 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10253 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10254 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10255 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10256 | .voltage = {2700, 3600}, |
| 10257 | }, |
| 10258 | |
| 10259 | { |
| 10260 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10261 | .name = "M45PE20", |
| 10262 | .bustype = BUS_SPI, |
| 10263 | .manufacture_id = ST_ID, |
| 10264 | .model_id = ST_M45PE20, |
| 10265 | .total_size = 256, |
| 10266 | .page_size = 256, |
| 10267 | .tested = TEST_UNTESTED, |
| 10268 | .probe = probe_spi_rdid, |
| 10269 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10270 | .block_erasers = |
| 10271 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10272 | { |
| 10273 | .eraseblocks = { {256, 1024} }, |
| 10274 | .block_erase = spi_block_erase_db, |
| 10275 | }, { |
| 10276 | .eraseblocks = { {64 * 1024, 4} }, |
| 10277 | .block_erase = spi_block_erase_d8, |
| 10278 | } |
| 10279 | }, |
| 10280 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10281 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10282 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10283 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10284 | .voltage = {2700, 3600}, |
| 10285 | }, |
| 10286 | |
| 10287 | { |
| 10288 | .vendor = "Micron/Numonyx/ST", |
| 10289 | .name = "M45PE40", |
| 10290 | .bustype = BUS_SPI, |
| 10291 | .manufacture_id = ST_ID, |
| 10292 | .model_id = ST_M45PE40, |
| 10293 | .total_size = 512, |
| 10294 | .page_size = 256, |
| 10295 | .tested = TEST_UNTESTED, |
| 10296 | .probe = probe_spi_rdid, |
| 10297 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10298 | .block_erasers = |
| 10299 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10300 | { |
| 10301 | .eraseblocks = { {256, 2048} }, |
| 10302 | .block_erase = spi_block_erase_db, |
| 10303 | }, { |
| 10304 | .eraseblocks = { {64 * 1024, 8} }, |
| 10305 | .block_erase = spi_block_erase_d8, |
| 10306 | } |
| 10307 | }, |
| 10308 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10309 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10310 | .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] | 10311 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10312 | .voltage = {2700, 3600}, |
| 10313 | }, |
| 10314 | |
| 10315 | { |
| 10316 | .vendor = "Micron/Numonyx/ST", |
| 10317 | .name = "M45PE80", |
| 10318 | .bustype = BUS_SPI, |
| 10319 | .manufacture_id = ST_ID, |
| 10320 | .model_id = ST_M45PE80, |
| 10321 | .total_size = 1024, |
| 10322 | .page_size = 256, |
| 10323 | .tested = TEST_UNTESTED, |
| 10324 | .probe = probe_spi_rdid, |
| 10325 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10326 | .block_erasers = |
| 10327 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10328 | { |
| 10329 | .eraseblocks = { {256, 4096} }, |
| 10330 | .block_erase = spi_block_erase_db, |
| 10331 | }, { |
| 10332 | .eraseblocks = { {64 * 1024, 16} }, |
| 10333 | .block_erase = spi_block_erase_d8, |
| 10334 | } |
| 10335 | }, |
| 10336 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10337 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10338 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10339 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10340 | .voltage = {2700, 3600}, |
| 10341 | }, |
| 10342 | |
| 10343 | { |
| 10344 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10345 | .name = "N25Q016", |
| 10346 | .bustype = BUS_SPI, |
| 10347 | .manufacture_id = ST_ID, |
| 10348 | .model_id = ST_N25Q016__1E, |
| 10349 | .total_size = 2048, |
| 10350 | .page_size = 256, |
| 10351 | /* supports SFDP */ |
| 10352 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10353 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10354 | .tested = TEST_UNTESTED, |
| 10355 | .probe = probe_spi_rdid, |
| 10356 | .probe_timing = TIMING_ZERO, |
| 10357 | .block_erasers = |
| 10358 | { |
| 10359 | { |
| 10360 | .eraseblocks = { {4 * 1024, 512} }, |
| 10361 | .block_erase = spi_block_erase_20, |
| 10362 | }, { |
| 10363 | .eraseblocks = { {32 * 1024, 64} }, |
| 10364 | .block_erase = spi_block_erase_52, |
| 10365 | }, { |
| 10366 | .eraseblocks = { {64 * 1024, 32} }, |
| 10367 | .block_erase = spi_block_erase_d8, |
| 10368 | }, { |
| 10369 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10370 | .block_erase = spi_block_erase_c7, |
| 10371 | } |
| 10372 | }, |
| 10373 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10374 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10375 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10376 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10377 | .voltage = {1700, 2000}, |
| 10378 | }, |
| 10379 | |
| 10380 | { |
| 10381 | .vendor = "Micron/Numonyx/ST", |
| 10382 | .name = "N25Q032..1E", |
| 10383 | .bustype = BUS_SPI, |
| 10384 | .manufacture_id = ST_ID, |
| 10385 | .model_id = ST_N25Q032__1E, |
| 10386 | .total_size = 4096, |
| 10387 | .page_size = 256, |
| 10388 | /* supports SFDP */ |
| 10389 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10390 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10391 | .tested = TEST_UNTESTED, |
| 10392 | .probe = probe_spi_rdid, |
| 10393 | .probe_timing = TIMING_ZERO, |
| 10394 | .block_erasers = |
| 10395 | { |
| 10396 | { |
| 10397 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10398 | .block_erase = spi_block_erase_20, |
| 10399 | }, { |
| 10400 | .eraseblocks = { {64 * 1024, 64} }, |
| 10401 | .block_erase = spi_block_erase_d8, |
| 10402 | }, { |
| 10403 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10404 | .block_erase = spi_block_erase_c7, |
| 10405 | } |
| 10406 | }, |
| 10407 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10408 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10409 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10410 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10411 | .voltage = {1700, 2000}, |
| 10412 | }, |
| 10413 | |
| 10414 | { |
| 10415 | .vendor = "Micron/Numonyx/ST", |
| 10416 | .name = "N25Q032..3E", |
| 10417 | .bustype = BUS_SPI, |
| 10418 | .manufacture_id = ST_ID, |
| 10419 | .model_id = ST_N25Q032__3E, |
| 10420 | .total_size = 4096, |
| 10421 | .page_size = 256, |
| 10422 | /* supports SFDP */ |
| 10423 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10424 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10425 | .tested = TEST_OK_PREW, |
| 10426 | .probe = probe_spi_rdid, |
| 10427 | .probe_timing = TIMING_ZERO, |
| 10428 | .block_erasers = |
| 10429 | { |
| 10430 | { |
| 10431 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10432 | .block_erase = spi_block_erase_20, |
| 10433 | }, { |
| 10434 | .eraseblocks = { {64 * 1024, 64} }, |
| 10435 | .block_erase = spi_block_erase_d8, |
| 10436 | }, { |
| 10437 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10438 | .block_erase = spi_block_erase_c7, |
| 10439 | } |
| 10440 | }, |
| 10441 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10442 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10443 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10444 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10445 | .voltage = {2700, 3600}, |
| 10446 | }, |
| 10447 | |
| 10448 | { |
| 10449 | .vendor = "Micron/Numonyx/ST", |
| 10450 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10451 | .bustype = BUS_SPI, |
| 10452 | .manufacture_id = ST_ID, |
| 10453 | .model_id = ST_N25Q064__1E, |
| 10454 | .total_size = 8192, |
| 10455 | .page_size = 256, |
| 10456 | /* supports SFDP */ |
| 10457 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10458 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10459 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10460 | .probe = probe_spi_rdid, |
| 10461 | .probe_timing = TIMING_ZERO, |
| 10462 | .block_erasers = |
| 10463 | { |
| 10464 | { |
| 10465 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10466 | .block_erase = spi_block_erase_20, |
| 10467 | }, { |
| 10468 | .eraseblocks = { {64 * 1024, 128} }, |
| 10469 | .block_erase = spi_block_erase_d8, |
| 10470 | }, { |
| 10471 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10472 | .block_erase = spi_block_erase_c7, |
| 10473 | } |
| 10474 | }, |
| 10475 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10476 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10477 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10478 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10479 | .voltage = {1700, 2000}, |
| 10480 | }, |
| 10481 | |
| 10482 | { |
| 10483 | .vendor = "Micron/Numonyx/ST", |
| 10484 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10485 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10486 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10487 | .model_id = ST_N25Q064__3E, |
| 10488 | .total_size = 8192, |
| 10489 | .page_size = 256, |
| 10490 | /* supports SFDP */ |
| 10491 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10492 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10493 | .tested = TEST_OK_PREW, |
| 10494 | .probe = probe_spi_rdid, |
| 10495 | .probe_timing = TIMING_ZERO, |
| 10496 | .block_erasers = |
| 10497 | { |
| 10498 | { |
| 10499 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10500 | .block_erase = spi_block_erase_20, |
| 10501 | }, { |
| 10502 | .eraseblocks = { {64 * 1024, 128} }, |
| 10503 | .block_erase = spi_block_erase_d8, |
| 10504 | }, { |
| 10505 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10506 | .block_erase = spi_block_erase_c7, |
| 10507 | } |
| 10508 | }, |
| 10509 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10510 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10511 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10512 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10513 | .voltage = {2700, 3600}, |
| 10514 | }, |
| 10515 | |
| 10516 | { |
| 10517 | .vendor = "Micron/Numonyx/ST", |
| 10518 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10519 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10520 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10521 | .model_id = ST_N25Q128__1E, |
| 10522 | .total_size = 16384, |
| 10523 | .page_size = 256, |
| 10524 | /* supports SFDP */ |
| 10525 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10526 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10527 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10528 | .probe = probe_spi_rdid, |
| 10529 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10530 | .block_erasers = |
| 10531 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10532 | { |
| 10533 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10534 | .block_erase = spi_block_erase_20, |
| 10535 | }, { |
| 10536 | .eraseblocks = { {64 * 1024, 256} }, |
| 10537 | .block_erase = spi_block_erase_d8, |
| 10538 | }, { |
| 10539 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10540 | .block_erase = spi_block_erase_c7, |
| 10541 | } |
| 10542 | }, |
| 10543 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10544 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10545 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10546 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10547 | .voltage = {1700, 2000}, |
| 10548 | }, |
| 10549 | |
| 10550 | { |
| 10551 | .vendor = "Micron/Numonyx/ST", |
| 10552 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10553 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10554 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10555 | .model_id = ST_N25Q128__3E, |
| 10556 | .total_size = 16384, |
| 10557 | .page_size = 256, |
| 10558 | /* supports SFDP */ |
| 10559 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10560 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10561 | .tested = TEST_OK_PREW, |
| 10562 | .probe = probe_spi_rdid, |
| 10563 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10564 | .block_erasers = |
| 10565 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10566 | { |
| 10567 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10568 | .block_erase = spi_block_erase_20, |
| 10569 | }, { |
| 10570 | .eraseblocks = { {64 * 1024, 256} }, |
| 10571 | .block_erase = spi_block_erase_d8, |
| 10572 | }, { |
| 10573 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10574 | .block_erase = spi_block_erase_c7, |
| 10575 | } |
| 10576 | }, |
| 10577 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10578 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10579 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10580 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10581 | .voltage = {2700, 3600}, |
| 10582 | }, |
| 10583 | |
| 10584 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10585 | .vendor = "Micron/Numonyx/ST", |
| 10586 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10587 | .bustype = BUS_SPI, |
| 10588 | .manufacture_id = ST_ID, |
| 10589 | .model_id = ST_N25Q256__3E, |
| 10590 | .total_size = 32768, |
| 10591 | .page_size = 256, |
| 10592 | /* supports SFDP */ |
| 10593 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10594 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10595 | .tested = TEST_UNTESTED, |
| 10596 | .probe = probe_spi_rdid, |
| 10597 | .probe_timing = TIMING_ZERO, |
| 10598 | .block_erasers = |
| 10599 | { |
| 10600 | { |
| 10601 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10602 | .block_erase = spi_block_erase_21, |
| 10603 | }, { |
| 10604 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10605 | .block_erase = spi_block_erase_20, |
| 10606 | }, { |
| 10607 | .eraseblocks = { {64 * 1024, 512} }, |
| 10608 | .block_erase = spi_block_erase_dc, |
| 10609 | }, { |
| 10610 | .eraseblocks = { {64 * 1024, 512} }, |
| 10611 | .block_erase = spi_block_erase_d8, |
| 10612 | }, { |
| 10613 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10614 | .block_erase = spi_block_erase_c7, |
| 10615 | } |
| 10616 | }, |
| 10617 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10618 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10619 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10620 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10621 | .voltage = {2700, 3600}, |
| 10622 | }, |
| 10623 | |
| 10624 | { |
| 10625 | .vendor = "Micron/Numonyx/ST", |
| 10626 | .name = "N25Q512..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10627 | .bustype = BUS_SPI, |
| 10628 | .manufacture_id = ST_ID, |
| 10629 | .model_id = ST_N25Q512__3E, |
| 10630 | .total_size = 65536, |
| 10631 | .page_size = 256, |
| 10632 | /* supports SFDP */ |
| 10633 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10634 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10635 | .tested = TEST_OK_PREW, |
| 10636 | .probe = probe_spi_rdid, |
| 10637 | .probe_timing = TIMING_ZERO, |
| 10638 | .block_erasers = |
| 10639 | { |
| 10640 | { |
| 10641 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10642 | .block_erase = spi_block_erase_21, |
| 10643 | }, { |
| 10644 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10645 | .block_erase = spi_block_erase_20, |
| 10646 | }, { |
| 10647 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10648 | .block_erase = spi_block_erase_dc, |
| 10649 | }, { |
| 10650 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10651 | .block_erase = spi_block_erase_d8, |
| 10652 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 10653 | .eraseblocks = { {32768 * 1024, 2} }, |
| 10654 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10655 | } |
| 10656 | }, |
| 10657 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10658 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10659 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10660 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10661 | .voltage = {2700, 3600}, |
| 10662 | }, |
| 10663 | |
| 10664 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10665 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10666 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10667 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10668 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10669 | .model_id = ST_N25Q256__3E, |
| 10670 | .total_size = 32768, |
| 10671 | .page_size = 256, |
| 10672 | /* supports SFDP */ |
| 10673 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10674 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10675 | .tested = TEST_UNTESTED, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10676 | .probe = probe_spi_rdid, |
| 10677 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10678 | .block_erasers = |
| 10679 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10680 | { |
| 10681 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10682 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10683 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10684 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10685 | .block_erase = spi_block_erase_20, |
| 10686 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 10687 | .eraseblocks = { {32 * 1024, 1024} }, |
| 10688 | .block_erase = spi_block_erase_5c, |
| 10689 | }, { |
| 10690 | .eraseblocks = { {32 * 1024, 1024} }, |
| 10691 | .block_erase = spi_block_erase_52, |
| 10692 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10693 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10694 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10695 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10696 | .eraseblocks = { {64 * 1024, 512} }, |
| 10697 | .block_erase = spi_block_erase_d8, |
| 10698 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10699 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10700 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 10701 | }, { |
| 10702 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10703 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10704 | } |
| 10705 | }, |
| 10706 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10707 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10708 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10709 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10710 | .voltage = {2700, 3600}, |
| 10711 | }, |
| 10712 | |
| 10713 | { |
| 10714 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10715 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10716 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10717 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10718 | .model_id = ST_N25Q512__3E, |
| 10719 | .total_size = 65536, |
| 10720 | .page_size = 256, |
| 10721 | /* supports SFDP */ |
| 10722 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10723 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 10724 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10725 | .probe = probe_spi_rdid, |
| 10726 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10727 | .block_erasers = |
| 10728 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10729 | { |
| 10730 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10731 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10732 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10733 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10734 | .block_erase = spi_block_erase_20, |
| 10735 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 10736 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10737 | .block_erase = spi_block_erase_5c, |
| 10738 | }, { |
| 10739 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10740 | .block_erase = spi_block_erase_52, |
| 10741 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10742 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10743 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10744 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10745 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10746 | .block_erase = spi_block_erase_d8, |
| 10747 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10748 | .eraseblocks = { {65536 * 1024, 1} }, |
| 10749 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 10750 | }, { |
| 10751 | .eraseblocks = { {65536 * 1024, 1} }, |
| 10752 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10753 | } |
| 10754 | }, |
| 10755 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10756 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10757 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10758 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10759 | .voltage = {2700, 3600}, |
| 10760 | }, |
| 10761 | |
| 10762 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10763 | .vendor = "MoselVitelic", |
| 10764 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10765 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10766 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10767 | .model_id = MVC_V29C51000B, |
| 10768 | .total_size = 64, |
| 10769 | .page_size = 512, |
| 10770 | .feature_bits = FEATURE_EITHER_RESET, |
| 10771 | .tested = TEST_UNTESTED, |
| 10772 | .probe = probe_jedec, |
| 10773 | .probe_timing = TIMING_ZERO, |
| 10774 | .block_erasers = |
| 10775 | { |
| 10776 | { |
| 10777 | .eraseblocks = { {512, 128} }, |
| 10778 | .block_erase = erase_sector_jedec, |
| 10779 | }, { |
| 10780 | .eraseblocks = { {64 * 1024, 1} }, |
| 10781 | .block_erase = erase_chip_block_jedec, |
| 10782 | }, |
| 10783 | }, |
| 10784 | .write = write_jedec_1, |
| 10785 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10786 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10787 | }, |
| 10788 | |
| 10789 | { |
| 10790 | .vendor = "MoselVitelic", |
| 10791 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10792 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10793 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10794 | .model_id = MVC_V29C51000T, |
| 10795 | .total_size = 64, |
| 10796 | .page_size = 512, |
| 10797 | .feature_bits = FEATURE_EITHER_RESET, |
| 10798 | .tested = TEST_UNTESTED, |
| 10799 | .probe = probe_jedec, |
| 10800 | .probe_timing = TIMING_ZERO, |
| 10801 | .block_erasers = |
| 10802 | { |
| 10803 | { |
| 10804 | .eraseblocks = { {512, 128} }, |
| 10805 | .block_erase = erase_sector_jedec, |
| 10806 | }, { |
| 10807 | .eraseblocks = { {64 * 1024, 1} }, |
| 10808 | .block_erase = erase_chip_block_jedec, |
| 10809 | }, |
| 10810 | }, |
| 10811 | .write = write_jedec_1, |
| 10812 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10813 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10814 | }, |
| 10815 | |
| 10816 | { |
| 10817 | .vendor = "MoselVitelic", |
| 10818 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10819 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10820 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10821 | .model_id = MVC_V29C51400B, |
| 10822 | .total_size = 512, |
| 10823 | .page_size = 1024, |
| 10824 | .feature_bits = FEATURE_EITHER_RESET, |
| 10825 | .tested = TEST_UNTESTED, |
| 10826 | .probe = probe_jedec, |
| 10827 | .probe_timing = TIMING_ZERO, |
| 10828 | .block_erasers = |
| 10829 | { |
| 10830 | { |
| 10831 | .eraseblocks = { {1024, 512} }, |
| 10832 | .block_erase = erase_sector_jedec, |
| 10833 | }, { |
| 10834 | .eraseblocks = { {512 * 1024, 1} }, |
| 10835 | .block_erase = erase_chip_block_jedec, |
| 10836 | }, |
| 10837 | }, |
| 10838 | .write = write_jedec_1, |
| 10839 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10840 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10841 | }, |
| 10842 | |
| 10843 | { |
| 10844 | .vendor = "MoselVitelic", |
| 10845 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10846 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10847 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10848 | .model_id = MVC_V29C51400T, |
| 10849 | .total_size = 512, |
| 10850 | .page_size = 1024, |
| 10851 | .feature_bits = FEATURE_EITHER_RESET, |
| 10852 | .tested = TEST_UNTESTED, |
| 10853 | .probe = probe_jedec, |
| 10854 | .probe_timing = TIMING_ZERO, |
| 10855 | .block_erasers = |
| 10856 | { |
| 10857 | { |
| 10858 | .eraseblocks = { {1024, 512} }, |
| 10859 | .block_erase = erase_sector_jedec, |
| 10860 | }, { |
| 10861 | .eraseblocks = { {512 * 1024, 1} }, |
| 10862 | .block_erase = erase_chip_block_jedec, |
| 10863 | }, |
| 10864 | }, |
| 10865 | .write = write_jedec_1, |
| 10866 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10867 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10868 | }, |
| 10869 | |
| 10870 | { |
| 10871 | .vendor = "MoselVitelic", |
| 10872 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10873 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10874 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10875 | .model_id = MVC_V29LC51000, |
| 10876 | .total_size = 64, |
| 10877 | .page_size = 512, |
| 10878 | .feature_bits = FEATURE_EITHER_RESET, |
| 10879 | .tested = TEST_UNTESTED, |
| 10880 | .probe = probe_jedec, |
| 10881 | .probe_timing = TIMING_ZERO, |
| 10882 | .block_erasers = |
| 10883 | { |
| 10884 | { |
| 10885 | .eraseblocks = { {512, 128} }, |
| 10886 | .block_erase = erase_sector_jedec, |
| 10887 | }, { |
| 10888 | .eraseblocks = { {64 * 1024, 1} }, |
| 10889 | .block_erase = erase_chip_block_jedec, |
| 10890 | }, |
| 10891 | }, |
| 10892 | .write = write_jedec_1, |
| 10893 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10894 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10895 | }, |
| 10896 | |
| 10897 | { |
| 10898 | .vendor = "MoselVitelic", |
| 10899 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10900 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10901 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10902 | .model_id = MVC_V29LC51001, |
| 10903 | .total_size = 128, |
| 10904 | .page_size = 512, |
| 10905 | .feature_bits = FEATURE_EITHER_RESET, |
| 10906 | .tested = TEST_UNTESTED, |
| 10907 | .probe = probe_jedec, |
| 10908 | .probe_timing = TIMING_ZERO, |
| 10909 | .block_erasers = |
| 10910 | { |
| 10911 | { |
| 10912 | .eraseblocks = { {512, 256} }, |
| 10913 | .block_erase = erase_sector_jedec, |
| 10914 | }, { |
| 10915 | .eraseblocks = { {128 * 1024, 1} }, |
| 10916 | .block_erase = erase_chip_block_jedec, |
| 10917 | }, |
| 10918 | }, |
| 10919 | .write = write_jedec_1, |
| 10920 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10921 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10922 | }, |
| 10923 | |
| 10924 | { |
| 10925 | .vendor = "MoselVitelic", |
| 10926 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10927 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10928 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10929 | .model_id = MVC_V29LC51002, |
| 10930 | .total_size = 256, |
| 10931 | .page_size = 512, |
| 10932 | .feature_bits = FEATURE_EITHER_RESET, |
| 10933 | .tested = TEST_UNTESTED, |
| 10934 | .probe = probe_jedec, |
| 10935 | .probe_timing = TIMING_ZERO, |
| 10936 | .block_erasers = |
| 10937 | { |
| 10938 | { |
| 10939 | .eraseblocks = { {512, 512} }, |
| 10940 | .block_erase = erase_sector_jedec, |
| 10941 | }, { |
| 10942 | .eraseblocks = { {256 * 1024, 1} }, |
| 10943 | .block_erase = erase_chip_block_jedec, |
| 10944 | }, |
| 10945 | }, |
| 10946 | .write = write_jedec_1, |
| 10947 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10948 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10949 | }, |
| 10950 | |
| 10951 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10952 | .vendor = "Nantronics", |
| 10953 | .name = "N25S10", |
| 10954 | .bustype = BUS_SPI, |
| 10955 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10956 | .model_id = NANTRONICS_N25S10, |
| 10957 | .total_size = 128, |
| 10958 | .page_size = 256, |
| 10959 | .feature_bits = FEATURE_WRSR_WREN, |
| 10960 | .tested = TEST_UNTESTED, |
| 10961 | .probe = probe_spi_rdid, |
| 10962 | .probe_timing = TIMING_ZERO, |
| 10963 | .block_erasers = |
| 10964 | { |
| 10965 | { |
| 10966 | .eraseblocks = { {4 * 1024, 32} }, |
| 10967 | .block_erase = spi_block_erase_20, |
| 10968 | }, { |
| 10969 | .eraseblocks = { {4 * 1024, 32} }, |
| 10970 | .block_erase = spi_block_erase_d7, |
| 10971 | }, { |
| 10972 | .eraseblocks = { {32 * 1024, 4} }, |
| 10973 | .block_erase = spi_block_erase_52, |
| 10974 | }, { |
| 10975 | .eraseblocks = { {64 * 1024, 2} }, |
| 10976 | .block_erase = spi_block_erase_d8, |
| 10977 | }, { |
| 10978 | .eraseblocks = { {128 * 1024, 1} }, |
| 10979 | .block_erase = spi_block_erase_60, |
| 10980 | }, { |
| 10981 | .eraseblocks = { {128 * 1024, 1} }, |
| 10982 | .block_erase = spi_block_erase_c7, |
| 10983 | } |
| 10984 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10985 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10986 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10987 | .write = spi_chip_write_256, |
| 10988 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10989 | .voltage = {2700, 3600}, |
| 10990 | }, |
| 10991 | |
| 10992 | { |
| 10993 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10994 | .name = "N25S16", |
| 10995 | .bustype = BUS_SPI, |
| 10996 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10997 | .model_id = NANTRONICS_N25S16, |
| 10998 | .total_size = 2048, |
| 10999 | .page_size = 256, |
| 11000 | .feature_bits = FEATURE_WRSR_WREN, |
| 11001 | .tested = TEST_UNTESTED, |
| 11002 | .probe = probe_spi_rdid, |
| 11003 | .probe_timing = TIMING_ZERO, |
| 11004 | .block_erasers = |
| 11005 | { |
| 11006 | { |
| 11007 | .eraseblocks = { {4 * 1024, 512} }, |
| 11008 | .block_erase = spi_block_erase_20, |
| 11009 | }, { |
| 11010 | .eraseblocks = { {64 * 1024, 32} }, |
| 11011 | .block_erase = spi_block_erase_d8, |
| 11012 | }, { |
| 11013 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11014 | .block_erase = spi_block_erase_60, |
| 11015 | }, { |
| 11016 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11017 | .block_erase = spi_block_erase_c7, |
| 11018 | } |
| 11019 | }, |
| 11020 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 11021 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11022 | .write = spi_chip_write_256, |
| 11023 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11024 | .voltage = {2700, 3600}, |
| 11025 | }, |
| 11026 | |
| 11027 | { |
| 11028 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11029 | .name = "N25S20", |
| 11030 | .bustype = BUS_SPI, |
| 11031 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11032 | .model_id = NANTRONICS_N25S20, |
| 11033 | .total_size = 256, |
| 11034 | .page_size = 256, |
| 11035 | .feature_bits = FEATURE_WRSR_WREN, |
| 11036 | .tested = TEST_UNTESTED, |
| 11037 | .probe = probe_spi_rdid, |
| 11038 | .probe_timing = TIMING_ZERO, |
| 11039 | .block_erasers = |
| 11040 | { |
| 11041 | { |
| 11042 | .eraseblocks = { {4 * 1024, 64} }, |
| 11043 | .block_erase = spi_block_erase_20, |
| 11044 | }, { |
| 11045 | .eraseblocks = { {4 * 1024, 64} }, |
| 11046 | .block_erase = spi_block_erase_d7, |
| 11047 | }, { |
| 11048 | .eraseblocks = { {32 * 1024, 8} }, |
| 11049 | .block_erase = spi_block_erase_52, |
| 11050 | }, { |
| 11051 | .eraseblocks = { {64 * 1024, 4} }, |
| 11052 | .block_erase = spi_block_erase_d8, |
| 11053 | }, { |
| 11054 | .eraseblocks = { {256 * 1024, 1} }, |
| 11055 | .block_erase = spi_block_erase_60, |
| 11056 | }, { |
| 11057 | .eraseblocks = { {256 * 1024, 1} }, |
| 11058 | .block_erase = spi_block_erase_c7, |
| 11059 | } |
| 11060 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11061 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11062 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11063 | .write = spi_chip_write_256, |
| 11064 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11065 | .voltage = {2700, 3600}, |
| 11066 | }, |
| 11067 | |
| 11068 | { |
| 11069 | .vendor = "Nantronics", |
| 11070 | .name = "N25S40", |
| 11071 | .bustype = BUS_SPI, |
| 11072 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11073 | .model_id = NANTRONICS_N25S40, |
| 11074 | .total_size = 512, |
| 11075 | .page_size = 256, |
| 11076 | .feature_bits = FEATURE_WRSR_WREN, |
| 11077 | .tested = TEST_UNTESTED, |
| 11078 | .probe = probe_spi_rdid, |
| 11079 | .probe_timing = TIMING_ZERO, |
| 11080 | .block_erasers = |
| 11081 | { |
| 11082 | { |
| 11083 | .eraseblocks = { {4 * 1024, 128} }, |
| 11084 | .block_erase = spi_block_erase_20, |
| 11085 | }, { |
| 11086 | .eraseblocks = { {4 * 1024, 128} }, |
| 11087 | .block_erase = spi_block_erase_d7, |
| 11088 | }, { |
| 11089 | .eraseblocks = { {32 * 1024, 16} }, |
| 11090 | .block_erase = spi_block_erase_52, |
| 11091 | }, { |
| 11092 | .eraseblocks = { {64 * 1024, 8} }, |
| 11093 | .block_erase = spi_block_erase_d8, |
| 11094 | }, { |
| 11095 | .eraseblocks = { {512 * 1024, 1} }, |
| 11096 | .block_erase = spi_block_erase_60, |
| 11097 | }, { |
| 11098 | .eraseblocks = { {512 * 1024, 1} }, |
| 11099 | .block_erase = spi_block_erase_c7, |
| 11100 | } |
| 11101 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11102 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11103 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11104 | .write = spi_chip_write_256, |
| 11105 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11106 | .voltage = {2700, 3600}, |
| 11107 | }, |
| 11108 | |
| 11109 | { |
| 11110 | .vendor = "Nantronics", |
| 11111 | .name = "N25S80", |
| 11112 | .bustype = BUS_SPI, |
| 11113 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11114 | .model_id = NANTRONICS_N25S80, |
| 11115 | .total_size = 1024, |
| 11116 | .page_size = 256, |
| 11117 | .feature_bits = FEATURE_WRSR_WREN, |
| 11118 | .tested = TEST_UNTESTED, |
| 11119 | .probe = probe_spi_rdid, |
| 11120 | .probe_timing = TIMING_ZERO, |
| 11121 | .block_erasers = |
| 11122 | { |
| 11123 | { |
| 11124 | .eraseblocks = { {4 * 1024, 256} }, |
| 11125 | .block_erase = spi_block_erase_20, |
| 11126 | }, { |
| 11127 | .eraseblocks = { {32 * 1024, 32} }, |
| 11128 | .block_erase = spi_block_erase_52, |
| 11129 | }, { |
| 11130 | .eraseblocks = { {64 * 1024, 16} }, |
| 11131 | .block_erase = spi_block_erase_d8, |
| 11132 | }, { |
| 11133 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11134 | .block_erase = spi_block_erase_60, |
| 11135 | }, { |
| 11136 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11137 | .block_erase = spi_block_erase_c7, |
| 11138 | } |
| 11139 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11140 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11141 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11142 | .write = spi_chip_write_256, |
| 11143 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11144 | .voltage = {2700, 3600}, |
| 11145 | }, |
| 11146 | |
| 11147 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11148 | .vendor = "PMC", |
| 11149 | .name = "Pm25LD010(C)", |
| 11150 | .bustype = BUS_SPI, |
| 11151 | .manufacture_id = PMC_ID, |
| 11152 | .model_id = PMC_PM25LD010, |
| 11153 | .total_size = 128, |
| 11154 | .page_size = 256, |
| 11155 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11156 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11157 | .probe = probe_spi_rdid, |
| 11158 | .probe_timing = TIMING_ZERO, |
| 11159 | .block_erasers = |
| 11160 | { |
| 11161 | { |
| 11162 | .eraseblocks = { {4 * 1024, 32} }, |
| 11163 | .block_erase = spi_block_erase_20, |
| 11164 | }, { |
| 11165 | .eraseblocks = { {4 * 1024, 32} }, |
| 11166 | .block_erase = spi_block_erase_d7, |
| 11167 | }, { |
| 11168 | .eraseblocks = { {32 * 1024, 4} }, |
| 11169 | .block_erase = spi_block_erase_d8, |
| 11170 | }, { |
| 11171 | .eraseblocks = { {128 * 1024, 1} }, |
| 11172 | .block_erase = spi_block_erase_60, |
| 11173 | }, { |
| 11174 | .eraseblocks = { {128 * 1024, 1} }, |
| 11175 | .block_erase = spi_block_erase_c7, |
| 11176 | } |
| 11177 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11178 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11179 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11180 | .write = spi_chip_write_256, |
| 11181 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11182 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 11183 | }, |
| 11184 | |
| 11185 | { |
| 11186 | .vendor = "PMC", |
| 11187 | .name = "Pm25LD020(C)", |
| 11188 | .bustype = BUS_SPI, |
| 11189 | .manufacture_id = PMC_ID, |
| 11190 | .model_id = PMC_PM25LD020, |
| 11191 | .total_size = 256, |
| 11192 | .page_size = 256, |
| 11193 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 11194 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11195 | .probe = probe_spi_rdid, |
| 11196 | .probe_timing = TIMING_ZERO, |
| 11197 | .block_erasers = |
| 11198 | { |
| 11199 | { |
| 11200 | .eraseblocks = { {4 * 1024, 64} }, |
| 11201 | .block_erase = spi_block_erase_20, |
| 11202 | }, { |
| 11203 | .eraseblocks = { {4 * 1024, 64} }, |
| 11204 | .block_erase = spi_block_erase_d7, |
| 11205 | }, { |
| 11206 | .eraseblocks = { {64 * 1024, 4} }, |
| 11207 | .block_erase = spi_block_erase_d8, |
| 11208 | }, { |
| 11209 | .eraseblocks = { {256 * 1024, 1} }, |
| 11210 | .block_erase = spi_block_erase_60, |
| 11211 | }, { |
| 11212 | .eraseblocks = { {256 * 1024, 1} }, |
| 11213 | .block_erase = spi_block_erase_c7, |
| 11214 | } |
| 11215 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11216 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11217 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11218 | .write = spi_chip_write_256, |
| 11219 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11220 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 11221 | }, |
| 11222 | |
| 11223 | { |
| 11224 | .vendor = "PMC", |
| 11225 | .name = "Pm25LD040(C)", |
| 11226 | .bustype = BUS_SPI, |
| 11227 | .manufacture_id = PMC_ID, |
| 11228 | .model_id = PMC_PM25LV040, |
| 11229 | .total_size = 512, |
| 11230 | .page_size = 256, |
| 11231 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 11232 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11233 | .probe = probe_spi_rdid, |
| 11234 | .probe_timing = TIMING_ZERO, |
| 11235 | .block_erasers = |
| 11236 | { |
| 11237 | { |
| 11238 | .eraseblocks = { {4 * 1024, 128} }, |
| 11239 | .block_erase = spi_block_erase_20, |
| 11240 | }, { |
| 11241 | .eraseblocks = { {4 * 1024, 128} }, |
| 11242 | .block_erase = spi_block_erase_d7, |
| 11243 | }, { |
| 11244 | .eraseblocks = { {64 * 1024, 8} }, |
| 11245 | .block_erase = spi_block_erase_d8, |
| 11246 | }, { |
| 11247 | .eraseblocks = { {512 * 1024, 1} }, |
| 11248 | .block_erase = spi_block_erase_60, |
| 11249 | }, { |
| 11250 | .eraseblocks = { {512 * 1024, 1} }, |
| 11251 | .block_erase = spi_block_erase_c7, |
| 11252 | } |
| 11253 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11254 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11255 | .unlock = spi_disable_blockprotect, |
| 11256 | .write = spi_chip_write_256, |
| 11257 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11258 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 11259 | }, |
| 11260 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11261 | { |
| 11262 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11263 | .name = "Pm25LD256C", |
| 11264 | .bustype = BUS_SPI, |
| 11265 | .manufacture_id = PMC_ID, |
| 11266 | .model_id = PMC_PM25LD256C, |
| 11267 | .total_size = 32, |
| 11268 | .page_size = 256, |
| 11269 | .feature_bits = FEATURE_WRSR_WREN, |
| 11270 | .tested = TEST_UNTESTED, |
| 11271 | .probe = probe_spi_rdid, |
| 11272 | .probe_timing = TIMING_ZERO, |
| 11273 | .block_erasers = |
| 11274 | { |
| 11275 | { |
| 11276 | .eraseblocks = { {4 * 1024, 8} }, |
| 11277 | .block_erase = spi_block_erase_20, |
| 11278 | }, { |
| 11279 | .eraseblocks = { {4 * 1024, 8} }, |
| 11280 | .block_erase = spi_block_erase_d7, |
| 11281 | }, { |
| 11282 | .eraseblocks = { {32 * 1024, 1} }, |
| 11283 | .block_erase = spi_block_erase_d8, |
| 11284 | }, { |
| 11285 | .eraseblocks = { {32 * 1024, 1} }, |
| 11286 | .block_erase = spi_block_erase_60, |
| 11287 | }, { |
| 11288 | .eraseblocks = { {32 * 1024, 1} }, |
| 11289 | .block_erase = spi_block_erase_c7, |
| 11290 | } |
| 11291 | }, |
| 11292 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11293 | .unlock = spi_disable_blockprotect, |
| 11294 | .write = spi_chip_write_256, |
| 11295 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11296 | .voltage = {2700, 3600}, |
| 11297 | }, |
| 11298 | |
| 11299 | { |
| 11300 | .vendor = "PMC", |
| 11301 | .name = "Pm25LD512(C)", |
| 11302 | .bustype = BUS_SPI, |
| 11303 | .manufacture_id = PMC_ID, |
| 11304 | .model_id = PMC_PM25LD512, |
| 11305 | .total_size = 64, |
| 11306 | .page_size = 256, |
| 11307 | .feature_bits = FEATURE_WRSR_WREN, |
| 11308 | .tested = TEST_OK_PREW, |
| 11309 | .probe = probe_spi_rdid, |
| 11310 | .probe_timing = TIMING_ZERO, |
| 11311 | .block_erasers = |
| 11312 | { |
| 11313 | { |
| 11314 | .eraseblocks = { {4 * 1024, 16} }, |
| 11315 | .block_erase = spi_block_erase_20, |
| 11316 | }, { |
| 11317 | .eraseblocks = { {4 * 1024, 16} }, |
| 11318 | .block_erase = spi_block_erase_d7, |
| 11319 | }, { |
| 11320 | .eraseblocks = { {32 * 1024, 2} }, |
| 11321 | .block_erase = spi_block_erase_d8, |
| 11322 | }, { |
| 11323 | .eraseblocks = { {64 * 1024, 1} }, |
| 11324 | .block_erase = spi_block_erase_60, |
| 11325 | }, { |
| 11326 | .eraseblocks = { {64 * 1024, 1} }, |
| 11327 | .block_erase = spi_block_erase_c7, |
| 11328 | } |
| 11329 | }, |
| 11330 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11331 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11332 | .write = spi_chip_write_256, |
| 11333 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11334 | .voltage = {2300, 3600}, |
| 11335 | }, |
| 11336 | |
| 11337 | { |
| 11338 | .vendor = "PMC", |
| 11339 | .name = "Pm25LQ016", |
| 11340 | .bustype = BUS_SPI, |
| 11341 | .manufacture_id = PMC_ID, |
| 11342 | .model_id = PMC_PM25LQ016, |
| 11343 | .total_size = 2048, |
| 11344 | .page_size = 256, |
| 11345 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11346 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11347 | .tested = TEST_UNTESTED, |
| 11348 | .probe = probe_spi_rdid, |
| 11349 | .probe_timing = TIMING_ZERO, |
| 11350 | .block_erasers = |
| 11351 | { |
| 11352 | { |
| 11353 | .eraseblocks = { {4 * 1024, 512} }, |
| 11354 | .block_erase = spi_block_erase_20, |
| 11355 | }, { |
| 11356 | .eraseblocks = { {4 * 1024, 512} }, |
| 11357 | .block_erase = spi_block_erase_d7, |
| 11358 | }, { |
| 11359 | .eraseblocks = { {64 * 1024, 32} }, |
| 11360 | .block_erase = spi_block_erase_d8, |
| 11361 | }, { |
| 11362 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11363 | .block_erase = spi_block_erase_60, |
| 11364 | }, { |
| 11365 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11366 | .block_erase = spi_block_erase_c7, |
| 11367 | } |
| 11368 | }, |
| 11369 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11370 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11371 | .write = spi_chip_write_256, |
| 11372 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11373 | .voltage = {2300, 3600}, |
| 11374 | }, |
| 11375 | |
| 11376 | { |
| 11377 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11378 | .name = "Pm25LQ020", |
| 11379 | .bustype = BUS_SPI, |
| 11380 | .manufacture_id = PMC_ID, |
| 11381 | .model_id = PMC_PM25LQ020, |
| 11382 | .total_size = 256, |
| 11383 | .page_size = 256, |
| 11384 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11385 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11386 | .tested = TEST_UNTESTED, |
| 11387 | .probe = probe_spi_rdid, |
| 11388 | .probe_timing = TIMING_ZERO, |
| 11389 | .block_erasers = |
| 11390 | { |
| 11391 | { |
| 11392 | .eraseblocks = { {4 * 1024, 64} }, |
| 11393 | .block_erase = spi_block_erase_20, |
| 11394 | }, { |
| 11395 | .eraseblocks = { {4 * 1024, 64} }, |
| 11396 | .block_erase = spi_block_erase_d7, |
| 11397 | }, { |
| 11398 | .eraseblocks = { {64 * 1024, 4} }, |
| 11399 | .block_erase = spi_block_erase_d8, |
| 11400 | }, { |
| 11401 | .eraseblocks = { {256 * 1024, 1} }, |
| 11402 | .block_erase = spi_block_erase_60, |
| 11403 | }, { |
| 11404 | .eraseblocks = { {256 * 1024, 1} }, |
| 11405 | .block_erase = spi_block_erase_c7, |
| 11406 | } |
| 11407 | }, |
| 11408 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11409 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11410 | .write = spi_chip_write_256, |
| 11411 | .read = spi_chip_read, |
| 11412 | .voltage = {2300, 3600}, |
| 11413 | }, |
| 11414 | |
| 11415 | { |
| 11416 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11417 | .name = "Pm25LQ032C", |
| 11418 | .bustype = BUS_SPI, |
| 11419 | .manufacture_id = PMC_ID, |
| 11420 | .model_id = PMC_PM25LQ032C, |
| 11421 | .total_size = 4096, |
| 11422 | .page_size = 256, |
| 11423 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 11424 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11425 | .tested = TEST_OK_PREW, |
| 11426 | .probe = probe_spi_rdid, |
| 11427 | .probe_timing = TIMING_ZERO, |
| 11428 | .block_erasers = |
| 11429 | { |
| 11430 | { |
| 11431 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11432 | .block_erase = spi_block_erase_20, |
| 11433 | }, { |
| 11434 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11435 | .block_erase = spi_block_erase_d7, |
| 11436 | }, { |
| 11437 | .eraseblocks = { {64 * 1024, 64} }, |
| 11438 | .block_erase = spi_block_erase_d8, |
| 11439 | }, { |
| 11440 | .eraseblocks = { {4096 * 1024, 1} }, |
| 11441 | .block_erase = spi_block_erase_60, |
| 11442 | }, { |
| 11443 | .eraseblocks = { {4096 * 1024, 1} }, |
| 11444 | .block_erase = spi_block_erase_c7, |
| 11445 | } |
| 11446 | }, |
| 11447 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11448 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11449 | .write = spi_chip_write_256, |
| 11450 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11451 | .voltage = {2700, 3600}, |
| 11452 | }, |
| 11453 | |
| 11454 | { |
| 11455 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11456 | .name = "Pm25LQ040", |
| 11457 | .bustype = BUS_SPI, |
| 11458 | .manufacture_id = PMC_ID, |
| 11459 | .model_id = PMC_PM25LQ040, |
| 11460 | .total_size = 512, |
| 11461 | .page_size = 256, |
| 11462 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11463 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11464 | .tested = TEST_UNTESTED, |
| 11465 | .probe = probe_spi_rdid, |
| 11466 | .probe_timing = TIMING_ZERO, |
| 11467 | .block_erasers = |
| 11468 | { |
| 11469 | { |
| 11470 | .eraseblocks = { {4 * 1024, 128} }, |
| 11471 | .block_erase = spi_block_erase_20, |
| 11472 | }, { |
| 11473 | .eraseblocks = { {4 * 1024, 128} }, |
| 11474 | .block_erase = spi_block_erase_d7, |
| 11475 | }, { |
| 11476 | .eraseblocks = { {64 * 1024, 8} }, |
| 11477 | .block_erase = spi_block_erase_d8, |
| 11478 | }, { |
| 11479 | .eraseblocks = { {512 * 1024, 1} }, |
| 11480 | .block_erase = spi_block_erase_60, |
| 11481 | }, { |
| 11482 | .eraseblocks = { {512 * 1024, 1} }, |
| 11483 | .block_erase = spi_block_erase_c7, |
| 11484 | } |
| 11485 | }, |
| 11486 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11487 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11488 | .write = spi_chip_write_256, |
| 11489 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11490 | .voltage = {2300, 3600}, |
| 11491 | }, |
| 11492 | |
| 11493 | { |
| 11494 | .vendor = "PMC", |
| 11495 | .name = "Pm25LQ080", |
| 11496 | .bustype = BUS_SPI, |
| 11497 | .manufacture_id = PMC_ID, |
| 11498 | .model_id = PMC_PM25LQ080, |
| 11499 | .total_size = 1024, |
| 11500 | .page_size = 256, |
| 11501 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 11502 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11503 | .tested = TEST_UNTESTED, |
| 11504 | .probe = probe_spi_rdid, |
| 11505 | .probe_timing = TIMING_ZERO, |
| 11506 | .block_erasers = |
| 11507 | { |
| 11508 | { |
| 11509 | .eraseblocks = { {4 * 1024, 256} }, |
| 11510 | .block_erase = spi_block_erase_20, |
| 11511 | }, { |
| 11512 | .eraseblocks = { {4 * 1024, 256} }, |
| 11513 | .block_erase = spi_block_erase_d7, |
| 11514 | }, { |
| 11515 | .eraseblocks = { {64 * 1024, 16} }, |
| 11516 | .block_erase = spi_block_erase_d8, |
| 11517 | }, { |
| 11518 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11519 | .block_erase = spi_block_erase_60, |
| 11520 | }, { |
| 11521 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11522 | .block_erase = spi_block_erase_c7, |
| 11523 | } |
| 11524 | }, |
| 11525 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11526 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11527 | .write = spi_chip_write_256, |
| 11528 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11529 | .voltage = {2300, 3600}, |
| 11530 | }, |
| 11531 | |
| 11532 | { |
| 11533 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11534 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11535 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 11536 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11537 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11538 | .total_size = 128, |
| 11539 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11540 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 11541 | .tested = TEST_OK_PREW, |
| 11542 | .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] | 11543 | .probe_timing = TIMING_ZERO, |
| 11544 | .block_erasers = |
| 11545 | { |
| 11546 | { |
| 11547 | .eraseblocks = { {4 * 1024, 32} }, |
| 11548 | .block_erase = spi_block_erase_d7, |
| 11549 | }, { |
| 11550 | .eraseblocks = { {32 * 1024, 4} }, |
| 11551 | .block_erase = spi_block_erase_d8, |
| 11552 | }, { |
| 11553 | .eraseblocks = { {128 * 1024, 1} }, |
| 11554 | .block_erase = spi_block_erase_c7, |
| 11555 | } |
| 11556 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11557 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11558 | .unlock = spi_disable_blockprotect, |
| 11559 | .write = spi_chip_write_256, |
| 11560 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11561 | .voltage = {2700, 3600}, |
| 11562 | }, |
| 11563 | |
| 11564 | { |
| 11565 | .vendor = "PMC", |
| 11566 | .name = "Pm25LV010A", |
| 11567 | .bustype = BUS_SPI, |
| 11568 | .manufacture_id = PMC_ID, |
| 11569 | .model_id = PMC_PM25LV010, |
| 11570 | .total_size = 128, |
| 11571 | .page_size = 256, |
| 11572 | .feature_bits = FEATURE_WRSR_WREN, |
| 11573 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11574 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11575 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11576 | .block_erasers = |
| 11577 | { |
| 11578 | { |
| 11579 | .eraseblocks = { {4 * 1024, 32} }, |
| 11580 | .block_erase = spi_block_erase_d7, |
| 11581 | }, { |
| 11582 | .eraseblocks = { {32 * 1024, 4} }, |
| 11583 | .block_erase = spi_block_erase_d8, |
| 11584 | }, { |
| 11585 | .eraseblocks = { {128 * 1024, 1} }, |
| 11586 | .block_erase = spi_block_erase_c7, |
| 11587 | } |
| 11588 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11589 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11590 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11591 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11592 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11593 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11594 | }, |
| 11595 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11596 | { |
| 11597 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11598 | .name = "Pm25LV016B", |
| 11599 | .bustype = BUS_SPI, |
| 11600 | .manufacture_id = PMC_ID, |
| 11601 | .model_id = PMC_PM25LV016B, |
| 11602 | .total_size = 2048, |
| 11603 | .page_size = 256, |
| 11604 | .feature_bits = FEATURE_WRSR_WREN, |
| 11605 | .tested = TEST_UNTESTED, |
| 11606 | .probe = probe_spi_rdid, |
| 11607 | .probe_timing = TIMING_ZERO, |
| 11608 | .block_erasers = |
| 11609 | { |
| 11610 | { |
| 11611 | .eraseblocks = { {4 * 1024, 512} }, |
| 11612 | .block_erase = spi_block_erase_d7, |
| 11613 | }, { |
| 11614 | .eraseblocks = { {4 * 1024, 512} }, |
| 11615 | .block_erase = spi_block_erase_20, |
| 11616 | }, { |
| 11617 | .eraseblocks = { {64 * 1024, 32} }, |
| 11618 | .block_erase = spi_block_erase_d8, |
| 11619 | }, { |
| 11620 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11621 | .block_erase = spi_block_erase_60, |
| 11622 | }, { |
| 11623 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11624 | .block_erase = spi_block_erase_c7, |
| 11625 | } |
| 11626 | }, |
| 11627 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11628 | .unlock = spi_disable_blockprotect, |
| 11629 | .write = spi_chip_write_256, |
| 11630 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11631 | .voltage = {2700, 3600}, |
| 11632 | }, |
| 11633 | |
| 11634 | { |
| 11635 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11636 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11637 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11638 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11639 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11640 | .total_size = 256, |
| 11641 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11642 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11643 | .tested = TEST_UNTESTED, |
| 11644 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11645 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11646 | .block_erasers = |
| 11647 | { |
| 11648 | { |
| 11649 | .eraseblocks = { {4 * 1024, 64} }, |
| 11650 | .block_erase = spi_block_erase_d7, |
| 11651 | }, { |
| 11652 | .eraseblocks = { {64 * 1024, 4} }, |
| 11653 | .block_erase = spi_block_erase_d8, |
| 11654 | }, { |
| 11655 | .eraseblocks = { {256 * 1024, 1} }, |
| 11656 | .block_erase = spi_block_erase_c7, |
| 11657 | } |
| 11658 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11659 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11660 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11661 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11662 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11663 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11664 | }, |
| 11665 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11666 | { |
| 11667 | .vendor = "PMC", |
| 11668 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11669 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11670 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11671 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11672 | .total_size = 512, |
| 11673 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11674 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11675 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11676 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11677 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11678 | .block_erasers = |
| 11679 | { |
| 11680 | { |
| 11681 | .eraseblocks = { {4 * 1024, 128} }, |
| 11682 | .block_erase = spi_block_erase_d7, |
| 11683 | }, { |
| 11684 | .eraseblocks = { {64 * 1024, 8} }, |
| 11685 | .block_erase = spi_block_erase_d8, |
| 11686 | }, { |
| 11687 | .eraseblocks = { {512 * 1024, 1} }, |
| 11688 | .block_erase = spi_block_erase_c7, |
| 11689 | } |
| 11690 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11691 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11692 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11693 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11694 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11695 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11696 | }, |
| 11697 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11698 | { |
| 11699 | .vendor = "PMC", |
| 11700 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11701 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11702 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11703 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11704 | .total_size = 1024, |
| 11705 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11706 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11707 | .tested = TEST_UNTESTED, |
| 11708 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11709 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11710 | .block_erasers = |
| 11711 | { |
| 11712 | { |
| 11713 | .eraseblocks = { {4 * 1024, 256} }, |
| 11714 | .block_erase = spi_block_erase_d7, |
| 11715 | }, { |
| 11716 | .eraseblocks = { {4 * 1024, 256} }, |
| 11717 | .block_erase = spi_block_erase_20, |
| 11718 | }, { |
| 11719 | .eraseblocks = { {64 * 1024, 16} }, |
| 11720 | .block_erase = spi_block_erase_d8, |
| 11721 | }, { |
| 11722 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11723 | .block_erase = spi_block_erase_60, |
| 11724 | }, { |
| 11725 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11726 | .block_erase = spi_block_erase_c7, |
| 11727 | } |
| 11728 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11729 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11730 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11731 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11732 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11733 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11734 | }, |
| 11735 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11736 | { |
| 11737 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11738 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11739 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11740 | .manufacture_id = PMC_ID_NOPREFIX, |
| 11741 | .model_id = PMC_PM25LV512, |
| 11742 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11743 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11744 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11745 | .tested = TEST_OK_PREW, |
| 11746 | .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */ |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11747 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11748 | .block_erasers = |
| 11749 | { |
| 11750 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11751 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11752 | .block_erase = spi_block_erase_d7, |
| 11753 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11754 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11755 | .block_erase = spi_block_erase_d8, |
| 11756 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11757 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11758 | .block_erase = spi_block_erase_c7, |
| 11759 | } |
| 11760 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11761 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11762 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11763 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11764 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11765 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11766 | }, |
| 11767 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11768 | { |
| 11769 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11770 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11771 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11772 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11773 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11774 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11775 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11776 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11777 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11778 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11779 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11780 | .block_erasers = |
| 11781 | { |
| 11782 | { |
| 11783 | .eraseblocks = { |
| 11784 | {16 * 1024, 1}, |
| 11785 | {8 * 1024, 2}, |
| 11786 | {96 * 1024, 1}, |
| 11787 | {128 * 1024, 1}, |
| 11788 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11789 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11790 | }, { |
| 11791 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11792 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11793 | }, |
| 11794 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11795 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11796 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11797 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11798 | }, |
| 11799 | |
| 11800 | { |
| 11801 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11802 | .name = "Pm29F002T", |
| 11803 | .bustype = BUS_PARALLEL, |
| 11804 | .manufacture_id = PMC_ID_NOPREFIX, |
| 11805 | .model_id = PMC_PM29F002T, |
| 11806 | .total_size = 256, |
| 11807 | .page_size = 8 * 1024, |
| 11808 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11809 | .tested = TEST_OK_PREW, |
| 11810 | .probe = probe_jedec, |
| 11811 | .probe_timing = TIMING_FIXME, |
| 11812 | .block_erasers = |
| 11813 | { |
| 11814 | { |
| 11815 | .eraseblocks = { |
| 11816 | {128 * 1024, 1}, |
| 11817 | {96 * 1024, 1}, |
| 11818 | {8 * 1024, 2}, |
| 11819 | {16 * 1024, 1}, |
| 11820 | }, |
| 11821 | .block_erase = erase_sector_jedec, |
| 11822 | }, { |
| 11823 | .eraseblocks = { {256 * 1024, 1} }, |
| 11824 | .block_erase = erase_chip_block_jedec, |
| 11825 | }, |
| 11826 | }, |
| 11827 | .write = write_jedec_1, |
| 11828 | .read = read_memmapped, |
| 11829 | .voltage = {4500, 5500}, |
| 11830 | }, |
| 11831 | |
| 11832 | { |
| 11833 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11834 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11835 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11836 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11837 | .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] | 11838 | .total_size = 128, |
| 11839 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11840 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11841 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11842 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11843 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11844 | .block_erasers = |
| 11845 | { |
| 11846 | { |
| 11847 | .eraseblocks = { {4 * 1024, 32} }, |
| 11848 | .block_erase = erase_sector_jedec, |
| 11849 | }, { |
| 11850 | .eraseblocks = { {64 * 1024, 2} }, |
| 11851 | .block_erase = erase_block_jedec, |
| 11852 | }, { |
| 11853 | .eraseblocks = { {128 * 1024, 1} }, |
| 11854 | .block_erase = erase_chip_block_jedec, |
| 11855 | } |
| 11856 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11857 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11858 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11859 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11860 | }, |
| 11861 | |
| 11862 | { |
| 11863 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11864 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11865 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11866 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11867 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11868 | .total_size = 256, |
| 11869 | .page_size = 4096, |
| 11870 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11871 | .tested = TEST_UNTESTED, |
| 11872 | .probe = probe_jedec, |
| 11873 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11874 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11875 | { |
| 11876 | { |
| 11877 | .eraseblocks = { {4 * 1024, 64} }, |
| 11878 | .block_erase = erase_sector_jedec, |
| 11879 | }, { |
| 11880 | .eraseblocks = { {64 * 1024, 4} }, |
| 11881 | .block_erase = erase_block_jedec, |
| 11882 | }, { |
| 11883 | .eraseblocks = { {256 * 1024, 1} }, |
| 11884 | .block_erase = erase_chip_block_jedec, |
| 11885 | } |
| 11886 | }, |
| 11887 | .write = write_jedec_1, |
| 11888 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11889 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11890 | }, |
| 11891 | |
| 11892 | { |
| 11893 | .vendor = "PMC", |
| 11894 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11895 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11896 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11897 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11898 | .total_size = 512, |
| 11899 | .page_size = 4096, |
| 11900 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11901 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11902 | .probe = probe_jedec, |
| 11903 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11904 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11905 | { |
| 11906 | { |
| 11907 | .eraseblocks = { {4 * 1024, 128} }, |
| 11908 | .block_erase = erase_sector_jedec, |
| 11909 | }, { |
| 11910 | .eraseblocks = { {64 * 1024, 8} }, |
| 11911 | .block_erase = erase_block_jedec, |
| 11912 | }, { |
| 11913 | .eraseblocks = { {512 * 1024, 1} }, |
| 11914 | .block_erase = erase_chip_block_jedec, |
| 11915 | } |
| 11916 | }, |
| 11917 | .write = write_jedec_1, |
| 11918 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11919 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11920 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 11921 | |
| 11922 | { |
| 11923 | .vendor = "PMC", |
| 11924 | .name = "Pm39LV512", |
| 11925 | .bustype = BUS_PARALLEL, |
| 11926 | .manufacture_id = PMC_ID_NOPREFIX, |
| 11927 | .model_id = PMC_PM39LV512, |
| 11928 | .total_size = 64, |
| 11929 | .page_size = 4096, |
| 11930 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11931 | .tested = TEST_OK_PREW, |
| 11932 | .probe = probe_jedec, |
| 11933 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11934 | .block_erasers = |
| 11935 | { |
| 11936 | { |
| 11937 | .eraseblocks = { {4 * 1024, 16} }, |
| 11938 | .block_erase = erase_sector_jedec, |
| 11939 | }, { |
| 11940 | .eraseblocks = { {64 * 1024, 1} }, |
| 11941 | .block_erase = erase_block_jedec, |
| 11942 | }, { |
| 11943 | .eraseblocks = { {64 * 1024, 1} }, |
| 11944 | .block_erase = erase_chip_block_jedec, |
| 11945 | } |
| 11946 | }, |
| 11947 | .write = write_jedec_1, |
| 11948 | .read = read_memmapped, |
| 11949 | .voltage = {2700, 3600}, |
| 11950 | }, |
| 11951 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11952 | { |
| 11953 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11954 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11955 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11956 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11957 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11958 | .total_size = 256, |
| 11959 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11960 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11961 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11962 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11963 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11964 | .block_erasers = |
| 11965 | { |
| 11966 | { |
| 11967 | .eraseblocks = { {4 * 1024, 64} }, |
| 11968 | .block_erase = erase_sector_jedec, |
| 11969 | }, { |
| 11970 | .eraseblocks = { {16 * 1024, 16} }, |
| 11971 | .block_erase = erase_block_jedec, |
| 11972 | }, { |
| 11973 | .eraseblocks = { {256 * 1024, 1} }, |
| 11974 | .block_erase = erase_chip_block_jedec, |
| 11975 | } |
| 11976 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11977 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 11978 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11979 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11980 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11981 | }, |
| 11982 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11983 | { |
| 11984 | .vendor = "PMC", |
| 11985 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11986 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11987 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11988 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11989 | .total_size = 512, |
| 11990 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11991 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 11992 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11993 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 11994 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11995 | .block_erasers = |
| 11996 | { |
| 11997 | { |
| 11998 | .eraseblocks = { {4 * 1024, 128} }, |
| 11999 | .block_erase = erase_sector_jedec, |
| 12000 | }, { |
| 12001 | .eraseblocks = { {64 * 1024, 8} }, |
| 12002 | .block_erase = erase_block_jedec, |
| 12003 | }, { |
| 12004 | .eraseblocks = { {512 * 1024, 1} }, |
| 12005 | .block_erase = erase_chip_block_jedec, |
| 12006 | } |
| 12007 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12008 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 12009 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12010 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12011 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12012 | }, |
| 12013 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12014 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12015 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 12016 | .name = "SST25LF020A", |
| 12017 | .bustype = BUS_SPI, |
| 12018 | .manufacture_id = SST_ID, |
| 12019 | .model_id = SST_SST25VF020_REMS, |
| 12020 | .total_size = 256, |
| 12021 | .page_size = 256, |
| 12022 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12023 | .tested = TEST_OK_PREW, |
| 12024 | .probe = probe_spi_rems, |
| 12025 | .probe_timing = TIMING_ZERO, |
| 12026 | .block_erasers = |
| 12027 | { |
| 12028 | { |
| 12029 | .eraseblocks = { {4 * 1024, 64} }, |
| 12030 | .block_erase = spi_block_erase_20, |
| 12031 | }, { |
| 12032 | .eraseblocks = { {32 * 1024, 8} }, |
| 12033 | .block_erase = spi_block_erase_52, |
| 12034 | }, { |
| 12035 | .eraseblocks = { {256 * 1024, 1} }, |
| 12036 | .block_erase = spi_block_erase_60, |
| 12037 | }, |
| 12038 | }, |
| 12039 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12040 | .unlock = spi_disable_blockprotect, |
| 12041 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12042 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12043 | .voltage = {2700, 3600}, |
| 12044 | }, |
| 12045 | |
| 12046 | { |
| 12047 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12048 | .name = "SST25LF040A", |
| 12049 | .bustype = BUS_SPI, |
| 12050 | .manufacture_id = SST_ID, |
| 12051 | .model_id = SST_SST25VF040_REMS, |
| 12052 | .total_size = 512, |
| 12053 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12054 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 12055 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12056 | .probe = probe_spi_res2, |
| 12057 | .probe_timing = TIMING_ZERO, |
| 12058 | .block_erasers = |
| 12059 | { |
| 12060 | { |
| 12061 | .eraseblocks = { {4 * 1024, 128} }, |
| 12062 | .block_erase = spi_block_erase_20, |
| 12063 | }, { |
| 12064 | .eraseblocks = { {32 * 1024, 16} }, |
| 12065 | .block_erase = spi_block_erase_52, |
| 12066 | }, { |
| 12067 | .eraseblocks = { {512 * 1024, 1} }, |
| 12068 | .block_erase = spi_block_erase_60, |
| 12069 | }, |
| 12070 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12071 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12072 | .unlock = spi_disable_blockprotect, |
| 12073 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12074 | .read = spi_chip_read, |
| 12075 | .voltage = {3000, 3600}, |
| 12076 | }, |
| 12077 | |
| 12078 | { |
| 12079 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12080 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12081 | .bustype = BUS_SPI, |
| 12082 | .manufacture_id = SST_ID, |
| 12083 | .model_id = SST_SST25VF080_REMS, |
| 12084 | .total_size = 1024, |
| 12085 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12086 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12087 | .tested = TEST_UNTESTED, |
| 12088 | .probe = probe_spi_res2, |
| 12089 | .probe_timing = TIMING_ZERO, |
| 12090 | .block_erasers = |
| 12091 | { |
| 12092 | { |
| 12093 | .eraseblocks = { {4 * 1024, 256} }, |
| 12094 | .block_erase = spi_block_erase_20, |
| 12095 | }, { |
| 12096 | .eraseblocks = { {32 * 1024, 32} }, |
| 12097 | .block_erase = spi_block_erase_52, |
| 12098 | }, { |
| 12099 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12100 | .block_erase = spi_block_erase_60, |
| 12101 | }, |
| 12102 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12103 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12104 | .unlock = spi_disable_blockprotect, |
| 12105 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12106 | .read = spi_chip_read, |
| 12107 | .voltage = {3000, 3600}, |
| 12108 | }, |
| 12109 | |
| 12110 | { |
| 12111 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12112 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12113 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12114 | .manufacture_id = SST_ID, |
| 12115 | .model_id = SST_SST25VF010_REMS, |
| 12116 | .total_size = 128, |
| 12117 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12118 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12119 | .tested = TEST_OK_PREW, |
| 12120 | .probe = probe_spi_rems, |
| 12121 | .probe_timing = TIMING_ZERO, |
| 12122 | .block_erasers = |
| 12123 | { |
| 12124 | { |
| 12125 | .eraseblocks = { {4 * 1024, 32} }, |
| 12126 | .block_erase = spi_block_erase_20, |
| 12127 | }, { |
| 12128 | .eraseblocks = { {32 * 1024, 4} }, |
| 12129 | .block_erase = spi_block_erase_52, |
| 12130 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12131 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12132 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12133 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12134 | .eraseblocks = { {128 * 1024, 1} }, |
| 12135 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12136 | }, { |
| 12137 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12138 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12139 | }, |
| 12140 | }, |
| 12141 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12142 | .unlock = spi_disable_blockprotect, |
| 12143 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12144 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12145 | .voltage = {2700, 3600}, |
| 12146 | }, |
| 12147 | |
| 12148 | { |
| 12149 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12150 | .name = "SST25VF016B", |
| 12151 | .bustype = BUS_SPI, |
| 12152 | .manufacture_id = SST_ID, |
| 12153 | .model_id = SST_SST25VF016B, |
| 12154 | .total_size = 2048, |
| 12155 | .page_size = 256, |
| 12156 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12157 | .tested = TEST_OK_PREW, |
| 12158 | .probe = probe_spi_rdid, |
| 12159 | .probe_timing = TIMING_ZERO, |
| 12160 | .block_erasers = |
| 12161 | { |
| 12162 | { |
| 12163 | .eraseblocks = { {4 * 1024, 512} }, |
| 12164 | .block_erase = spi_block_erase_20, |
| 12165 | }, { |
| 12166 | .eraseblocks = { {32 * 1024, 64} }, |
| 12167 | .block_erase = spi_block_erase_52, |
| 12168 | }, { |
| 12169 | .eraseblocks = { {64 * 1024, 32} }, |
| 12170 | .block_erase = spi_block_erase_d8, |
| 12171 | }, { |
| 12172 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12173 | .block_erase = spi_block_erase_60, |
| 12174 | }, { |
| 12175 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12176 | .block_erase = spi_block_erase_c7, |
| 12177 | }, |
| 12178 | }, |
| 12179 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 12180 | .unlock = spi_disable_blockprotect, |
| 12181 | .write = spi_aai_write, |
| 12182 | .read = spi_chip_read, |
| 12183 | .voltage = {2700, 3600}, |
| 12184 | }, |
| 12185 | |
| 12186 | { |
| 12187 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12188 | .name = "SST25VF020", |
| 12189 | .bustype = BUS_SPI, |
| 12190 | .manufacture_id = SST_ID, |
| 12191 | .model_id = SST_SST25VF020_REMS, |
| 12192 | .total_size = 256, |
| 12193 | .page_size = 256, |
| 12194 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12195 | .tested = TEST_UNTESTED, |
| 12196 | .probe = probe_spi_rems, |
| 12197 | .probe_timing = TIMING_ZERO, |
| 12198 | .block_erasers = |
| 12199 | { |
| 12200 | { |
| 12201 | .eraseblocks = { {4 * 1024, 64} }, |
| 12202 | .block_erase = spi_block_erase_20, |
| 12203 | }, { |
| 12204 | .eraseblocks = { {32 * 1024, 8} }, |
| 12205 | .block_erase = spi_block_erase_52, |
| 12206 | }, { |
| 12207 | .eraseblocks = { {256 * 1024, 1} }, |
| 12208 | .block_erase = spi_block_erase_60, |
| 12209 | }, |
| 12210 | }, |
| 12211 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12212 | .unlock = spi_disable_blockprotect, |
| 12213 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12214 | .read = spi_chip_read, /* only */ |
| 12215 | .voltage = {2700, 3600}, |
| 12216 | }, |
| 12217 | |
| 12218 | { |
| 12219 | .vendor = "SST", |
| 12220 | .name = "SST25VF020B", |
| 12221 | .bustype = BUS_SPI, |
| 12222 | .manufacture_id = SST_ID, |
| 12223 | .model_id = SST_SST25VF020B, |
| 12224 | .total_size = 256, |
| 12225 | .page_size = 256, |
| 12226 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12227 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12228 | .probe = probe_spi_rdid, |
| 12229 | .probe_timing = TIMING_ZERO, |
| 12230 | .block_erasers = |
| 12231 | { |
| 12232 | { |
| 12233 | .eraseblocks = { {4 * 1024, 64} }, |
| 12234 | .block_erase = spi_block_erase_20, |
| 12235 | }, { |
| 12236 | .eraseblocks = { {32 * 1024, 8} }, |
| 12237 | .block_erase = spi_block_erase_52, |
| 12238 | }, { |
| 12239 | .eraseblocks = { {64 * 1024, 4} }, |
| 12240 | .block_erase = spi_block_erase_d8, |
| 12241 | }, { |
| 12242 | .eraseblocks = { {256 * 1024, 1} }, |
| 12243 | .block_erase = spi_block_erase_60, |
| 12244 | }, { |
| 12245 | .eraseblocks = { {256 * 1024, 1} }, |
| 12246 | .block_erase = spi_block_erase_c7, |
| 12247 | }, |
| 12248 | }, |
| 12249 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 12250 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 12251 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12252 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12253 | .voltage = {2700, 3600}, |
| 12254 | }, |
| 12255 | |
| 12256 | { |
| 12257 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12258 | .name = "SST25VF032B", |
| 12259 | .bustype = BUS_SPI, |
| 12260 | .manufacture_id = SST_ID, |
| 12261 | .model_id = SST_SST25VF032B, |
| 12262 | .total_size = 4096, |
| 12263 | .page_size = 256, |
| 12264 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12265 | .tested = TEST_OK_PREW, |
| 12266 | .probe = probe_spi_rdid, |
| 12267 | .probe_timing = TIMING_ZERO, |
| 12268 | .block_erasers = |
| 12269 | { |
| 12270 | { |
| 12271 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12272 | .block_erase = spi_block_erase_20, |
| 12273 | }, { |
| 12274 | .eraseblocks = { {32 * 1024, 128} }, |
| 12275 | .block_erase = spi_block_erase_52, |
| 12276 | }, { |
| 12277 | .eraseblocks = { {64 * 1024, 64} }, |
| 12278 | .block_erase = spi_block_erase_d8, |
| 12279 | }, { |
| 12280 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12281 | .block_erase = spi_block_erase_60, |
| 12282 | }, { |
| 12283 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12284 | .block_erase = spi_block_erase_c7, |
| 12285 | }, |
| 12286 | }, |
| 12287 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12288 | .unlock = spi_disable_blockprotect, |
| 12289 | .write = spi_aai_write, |
| 12290 | .read = spi_chip_read, |
| 12291 | .voltage = {2700, 3600}, |
| 12292 | }, |
| 12293 | |
| 12294 | { |
| 12295 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12296 | .name = "SST25VF040", |
| 12297 | .bustype = BUS_SPI, |
| 12298 | .manufacture_id = SST_ID, |
| 12299 | .model_id = SST_SST25VF040_REMS, |
| 12300 | .total_size = 512, |
| 12301 | .page_size = 256, |
| 12302 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12303 | .tested = TEST_OK_PR, |
| 12304 | .probe = probe_spi_rems, |
| 12305 | .probe_timing = TIMING_ZERO, |
| 12306 | .block_erasers = |
| 12307 | { |
| 12308 | { |
| 12309 | .eraseblocks = { {4 * 1024, 128} }, |
| 12310 | .block_erase = spi_block_erase_20, |
| 12311 | }, { |
| 12312 | .eraseblocks = { {32 * 1024, 16} }, |
| 12313 | .block_erase = spi_block_erase_52, |
| 12314 | }, { |
| 12315 | .eraseblocks = { {512 * 1024, 1} }, |
| 12316 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12317 | }, |
| 12318 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12319 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12320 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12321 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12322 | .read = spi_chip_read, |
| 12323 | .voltage = {2700, 3600}, |
| 12324 | }, |
| 12325 | |
| 12326 | { |
| 12327 | .vendor = "SST", |
| 12328 | .name = "SST25VF040B", |
| 12329 | .bustype = BUS_SPI, |
| 12330 | .manufacture_id = SST_ID, |
| 12331 | .model_id = SST_SST25VF040B, |
| 12332 | .total_size = 512, |
| 12333 | .page_size = 256, |
| 12334 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12335 | .tested = TEST_OK_PREW, |
| 12336 | .probe = probe_spi_rdid, |
| 12337 | .probe_timing = TIMING_ZERO, |
| 12338 | .block_erasers = |
| 12339 | { |
| 12340 | { |
| 12341 | .eraseblocks = { {4 * 1024, 128} }, |
| 12342 | .block_erase = spi_block_erase_20, |
| 12343 | }, { |
| 12344 | .eraseblocks = { {32 * 1024, 16} }, |
| 12345 | .block_erase = spi_block_erase_52, |
| 12346 | }, { |
| 12347 | .eraseblocks = { {64 * 1024, 8} }, |
| 12348 | .block_erase = spi_block_erase_d8, |
| 12349 | }, { |
| 12350 | .eraseblocks = { {512 * 1024, 1} }, |
| 12351 | .block_erase = spi_block_erase_60, |
| 12352 | }, { |
| 12353 | .eraseblocks = { {512 * 1024, 1} }, |
| 12354 | .block_erase = spi_block_erase_c7, |
| 12355 | }, |
| 12356 | }, |
| 12357 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12358 | .unlock = spi_disable_blockprotect, |
| 12359 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12360 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12361 | .voltage = {2700, 3600}, |
| 12362 | }, |
| 12363 | |
| 12364 | { |
| 12365 | .vendor = "SST", |
| 12366 | .name = "SST25VF040B.REMS", |
| 12367 | .bustype = BUS_SPI, |
| 12368 | .manufacture_id = SST_ID, |
| 12369 | .model_id = SST_SST25VF040B_REMS, |
| 12370 | .total_size = 512, |
| 12371 | .page_size = 256, |
| 12372 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12373 | .tested = TEST_OK_PREW, |
| 12374 | .probe = probe_spi_rems, |
| 12375 | .probe_timing = TIMING_ZERO, |
| 12376 | .block_erasers = |
| 12377 | { |
| 12378 | { |
| 12379 | .eraseblocks = { {4 * 1024, 128} }, |
| 12380 | .block_erase = spi_block_erase_20, |
| 12381 | }, { |
| 12382 | .eraseblocks = { {32 * 1024, 16} }, |
| 12383 | .block_erase = spi_block_erase_52, |
| 12384 | }, { |
| 12385 | .eraseblocks = { {64 * 1024, 8} }, |
| 12386 | .block_erase = spi_block_erase_d8, |
| 12387 | }, { |
| 12388 | .eraseblocks = { {512 * 1024, 1} }, |
| 12389 | .block_erase = spi_block_erase_60, |
| 12390 | }, { |
| 12391 | .eraseblocks = { {512 * 1024, 1} }, |
| 12392 | .block_erase = spi_block_erase_c7, |
| 12393 | }, |
| 12394 | }, |
| 12395 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12396 | .unlock = spi_disable_blockprotect, |
| 12397 | .write = spi_aai_write, |
| 12398 | .read = spi_chip_read, |
| 12399 | .voltage = {2700, 3600}, |
| 12400 | }, |
| 12401 | |
| 12402 | { |
| 12403 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12404 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12405 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12406 | .manufacture_id = SST_ID, |
| 12407 | .model_id = SST_SST25VF064C, |
| 12408 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12409 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12410 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12411 | .tested = TEST_OK_PREW, |
| 12412 | .probe = probe_spi_rdid, |
| 12413 | .probe_timing = TIMING_ZERO, |
| 12414 | .block_erasers = |
| 12415 | { |
| 12416 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12417 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12418 | .block_erase = spi_block_erase_20, |
| 12419 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12420 | .eraseblocks = { {32 * 1024, 256} }, |
| 12421 | .block_erase = spi_block_erase_52, |
| 12422 | }, { |
| 12423 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12424 | .block_erase = spi_block_erase_d8, |
| 12425 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12426 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12427 | .block_erase = spi_block_erase_60, |
| 12428 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12429 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12430 | .block_erase = spi_block_erase_c7, |
| 12431 | }, |
| 12432 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12433 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12434 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12435 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12436 | .read = spi_chip_read, |
| 12437 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12438 | }, |
| 12439 | |
| 12440 | { |
| 12441 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12442 | .name = "SST25VF080B", |
| 12443 | .bustype = BUS_SPI, |
| 12444 | .manufacture_id = SST_ID, |
| 12445 | .model_id = SST_SST25VF080B, |
| 12446 | .total_size = 1024, |
| 12447 | .page_size = 256, |
| 12448 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12449 | .tested = TEST_OK_PREW, |
| 12450 | .probe = probe_spi_rdid, |
| 12451 | .probe_timing = TIMING_ZERO, |
| 12452 | .block_erasers = |
| 12453 | { |
| 12454 | { |
| 12455 | .eraseblocks = { {4 * 1024, 256} }, |
| 12456 | .block_erase = spi_block_erase_20, |
| 12457 | }, { |
| 12458 | .eraseblocks = { {32 * 1024, 32} }, |
| 12459 | .block_erase = spi_block_erase_52, |
| 12460 | }, { |
| 12461 | .eraseblocks = { {64 * 1024, 16} }, |
| 12462 | .block_erase = spi_block_erase_d8, |
| 12463 | }, { |
| 12464 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12465 | .block_erase = spi_block_erase_60, |
| 12466 | }, { |
| 12467 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12468 | .block_erase = spi_block_erase_c7, |
| 12469 | }, |
| 12470 | }, |
| 12471 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12472 | .unlock = spi_disable_blockprotect, |
| 12473 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12474 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12475 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12476 | }, |
| 12477 | |
| 12478 | { |
| 12479 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12480 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12481 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12482 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12483 | .model_id = SST_SST25VF512_REMS, |
| 12484 | .total_size = 64, |
| 12485 | .page_size = 256, |
| 12486 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12487 | .tested = TEST_OK_PREW, |
| 12488 | .probe = probe_spi_rems, |
| 12489 | .probe_timing = TIMING_ZERO, |
| 12490 | .block_erasers = |
| 12491 | { |
| 12492 | { |
| 12493 | .eraseblocks = { {4 * 1024, 16} }, |
| 12494 | .block_erase = spi_block_erase_20, |
| 12495 | }, { |
| 12496 | .eraseblocks = { {32 * 1024, 2} }, |
| 12497 | .block_erase = spi_block_erase_52, |
| 12498 | }, { |
| 12499 | .eraseblocks = { {32 * 1024, 2} }, |
| 12500 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 12501 | }, { |
| 12502 | .eraseblocks = { {64 * 1024, 1} }, |
| 12503 | .block_erase = spi_block_erase_60, |
| 12504 | }, { |
| 12505 | .eraseblocks = { {64 * 1024, 1} }, |
| 12506 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 12507 | }, |
| 12508 | }, |
| 12509 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12510 | .unlock = spi_disable_blockprotect, |
| 12511 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12512 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 12513 | .voltage = {2700, 3600}, |
| 12514 | }, |
| 12515 | |
| 12516 | { |
| 12517 | .vendor = "SST", |
| 12518 | .name = "SST25WF010", |
| 12519 | .bustype = BUS_SPI, |
| 12520 | .manufacture_id = SST_ID, |
| 12521 | .model_id = SST_SST25WF010, |
| 12522 | .total_size = 128, |
| 12523 | .page_size = 256, |
| 12524 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12525 | .tested = TEST_UNTESTED, |
| 12526 | .probe = probe_spi_rdid, |
| 12527 | .probe_timing = TIMING_ZERO, |
| 12528 | .block_erasers = |
| 12529 | { |
| 12530 | { |
| 12531 | .eraseblocks = { {4 * 1024, 32} }, |
| 12532 | .block_erase = spi_block_erase_20, |
| 12533 | }, { |
| 12534 | .eraseblocks = { {32 * 1024, 4} }, |
| 12535 | .block_erase = spi_block_erase_52, |
| 12536 | }, { |
| 12537 | .eraseblocks = { {1024 * 128, 1} }, |
| 12538 | .block_erase = spi_block_erase_60, |
| 12539 | }, { |
| 12540 | .eraseblocks = { {1024 * 128, 1} }, |
| 12541 | .block_erase = spi_block_erase_c7, |
| 12542 | }, |
| 12543 | }, |
| 12544 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12545 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12546 | .write = spi_aai_write, |
| 12547 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12548 | .voltage = {1650, 1950}, |
| 12549 | }, |
| 12550 | |
| 12551 | { |
| 12552 | .vendor = "SST", |
| 12553 | .name = "SST25WF020", |
| 12554 | .bustype = BUS_SPI, |
| 12555 | .manufacture_id = SST_ID, |
| 12556 | .model_id = SST_SST25WF020, |
| 12557 | .total_size = 256, |
| 12558 | .page_size = 256, |
| 12559 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12560 | .tested = TEST_UNTESTED, |
| 12561 | .probe = probe_spi_rdid, |
| 12562 | .probe_timing = TIMING_ZERO, |
| 12563 | .block_erasers = |
| 12564 | { |
| 12565 | { |
| 12566 | .eraseblocks = { {4 * 1024, 64} }, |
| 12567 | .block_erase = spi_block_erase_20, |
| 12568 | }, { |
| 12569 | .eraseblocks = { {32 * 1024, 8} }, |
| 12570 | .block_erase = spi_block_erase_52, |
| 12571 | }, { |
| 12572 | .eraseblocks = { {64 * 1024, 4} }, |
| 12573 | .block_erase = spi_block_erase_d8, |
| 12574 | }, { |
| 12575 | .eraseblocks = { {1024 * 256, 1} }, |
| 12576 | .block_erase = spi_block_erase_60, |
| 12577 | }, { |
| 12578 | .eraseblocks = { {1024 * 256, 1} }, |
| 12579 | .block_erase = spi_block_erase_c7, |
| 12580 | }, |
| 12581 | }, |
| 12582 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12583 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12584 | .write = spi_aai_write, |
| 12585 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12586 | .voltage = {1650, 1950}, |
| 12587 | }, |
| 12588 | |
| 12589 | { |
| 12590 | .vendor = "SST", |
| 12591 | .name = "SST25WF020A", |
| 12592 | .bustype = BUS_SPI, |
| 12593 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12594 | .model_id = SST_SST25WF020A, |
| 12595 | .total_size = 256, |
| 12596 | .page_size = 256, |
| 12597 | .feature_bits = FEATURE_WRSR_WREN, |
| 12598 | .tested = TEST_UNTESTED, |
| 12599 | .probe = probe_spi_rdid, |
| 12600 | .probe_timing = TIMING_ZERO, |
| 12601 | .block_erasers = |
| 12602 | { |
| 12603 | { |
| 12604 | .eraseblocks = { {4 * 1024, 64} }, |
| 12605 | .block_erase = spi_block_erase_20, |
| 12606 | }, { |
| 12607 | .eraseblocks = { {64 * 1024, 4} }, |
| 12608 | .block_erase = spi_block_erase_d8, |
| 12609 | }, { |
| 12610 | .eraseblocks = { {256 * 1024, 1} }, |
| 12611 | .block_erase = spi_block_erase_60, |
| 12612 | }, { |
| 12613 | .eraseblocks = { {256 * 1024, 1} }, |
| 12614 | .block_erase = spi_block_erase_c7, |
| 12615 | }, |
| 12616 | }, |
| 12617 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12618 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12619 | .write = spi_chip_write_256, |
| 12620 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12621 | .voltage = {1650, 1950}, |
| 12622 | }, |
| 12623 | |
| 12624 | { |
| 12625 | .vendor = "SST", |
| 12626 | .name = "SST25WF040", |
| 12627 | .bustype = BUS_SPI, |
| 12628 | .manufacture_id = SST_ID, |
| 12629 | .model_id = SST_SST25WF040, |
| 12630 | .total_size = 512, |
| 12631 | .page_size = 256, |
| 12632 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12633 | .tested = TEST_UNTESTED, |
| 12634 | .probe = probe_spi_rdid, |
| 12635 | .probe_timing = TIMING_ZERO, |
| 12636 | .block_erasers = |
| 12637 | { |
| 12638 | { |
| 12639 | .eraseblocks = { {4 * 1024, 128} }, |
| 12640 | .block_erase = spi_block_erase_20, |
| 12641 | }, { |
| 12642 | .eraseblocks = { {32 * 1024, 16} }, |
| 12643 | .block_erase = spi_block_erase_52, |
| 12644 | }, { |
| 12645 | .eraseblocks = { {64 * 1024, 8} }, |
| 12646 | .block_erase = spi_block_erase_d8, |
| 12647 | }, { |
| 12648 | .eraseblocks = { {1024 * 512, 1} }, |
| 12649 | .block_erase = spi_block_erase_60, |
| 12650 | }, { |
| 12651 | .eraseblocks = { {1024 * 512, 1} }, |
| 12652 | .block_erase = spi_block_erase_c7, |
| 12653 | }, |
| 12654 | }, |
| 12655 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12656 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12657 | .write = spi_aai_write, |
| 12658 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12659 | .voltage = {1650, 1950}, |
| 12660 | }, |
| 12661 | |
| 12662 | { |
| 12663 | .vendor = "SST", |
| 12664 | .name = "SST25WF040B", |
| 12665 | .bustype = BUS_SPI, |
| 12666 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12667 | .model_id = SST_SST25WF040B, |
| 12668 | .total_size = 512, |
| 12669 | .page_size = 256, |
| 12670 | .feature_bits = FEATURE_WRSR_WREN, |
| 12671 | .tested = TEST_UNTESTED, |
| 12672 | .probe = probe_spi_rdid, |
| 12673 | .probe_timing = TIMING_ZERO, |
| 12674 | .block_erasers = |
| 12675 | { |
| 12676 | { |
| 12677 | .eraseblocks = { {4 * 1024, 128} }, |
| 12678 | .block_erase = spi_block_erase_20, |
| 12679 | }, { |
| 12680 | .eraseblocks = { {64 * 1024, 8} }, |
| 12681 | .block_erase = spi_block_erase_d8, |
| 12682 | }, { |
| 12683 | .eraseblocks = { {512 * 1024, 1} }, |
| 12684 | .block_erase = spi_block_erase_60, |
| 12685 | }, { |
| 12686 | .eraseblocks = { {512 * 1024, 1} }, |
| 12687 | .block_erase = spi_block_erase_c7, |
| 12688 | }, |
| 12689 | }, |
| 12690 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12691 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12692 | .write = spi_chip_write_256, |
| 12693 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 12694 | .voltage = {1650, 1950}, |
| 12695 | }, |
| 12696 | |
| 12697 | { |
| 12698 | .vendor = "SST", |
| 12699 | .name = "SST25WF080", |
| 12700 | .bustype = BUS_SPI, |
| 12701 | .manufacture_id = SST_ID, |
| 12702 | .model_id = SST_SST25WF080, |
| 12703 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12704 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12705 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12706 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12707 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12708 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12709 | .block_erasers = |
| 12710 | { |
| 12711 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12712 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12713 | .block_erase = spi_block_erase_20, |
| 12714 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12715 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12716 | .block_erase = spi_block_erase_52, |
| 12717 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12718 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12719 | .block_erase = spi_block_erase_d8, |
| 12720 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12721 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12722 | .block_erase = spi_block_erase_60, |
| 12723 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12724 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12725 | .block_erase = spi_block_erase_c7, |
| 12726 | }, |
| 12727 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12728 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 12729 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 12730 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12731 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12732 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12733 | }, |
| 12734 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12735 | { |
| 12736 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12737 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12738 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12739 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12740 | .model_id = SST_SST25WF080B, |
| 12741 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12742 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12743 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 12744 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12745 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12746 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12747 | .block_erasers = |
| 12748 | { |
| 12749 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12750 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12751 | .block_erase = spi_block_erase_20, |
| 12752 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12753 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12754 | .block_erase = spi_block_erase_d8, |
| 12755 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12756 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12757 | .block_erase = spi_block_erase_60, |
| 12758 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12759 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12760 | .block_erase = spi_block_erase_c7, |
| 12761 | }, |
| 12762 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12763 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12764 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 12765 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12766 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 12767 | .voltage = {1650, 1950}, |
| 12768 | }, |
| 12769 | |
| 12770 | { |
| 12771 | .vendor = "SST", |
| 12772 | .name = "SST25WF512", |
| 12773 | .bustype = BUS_SPI, |
| 12774 | .manufacture_id = SST_ID, |
| 12775 | .model_id = SST_SST25WF512, |
| 12776 | .total_size = 64, |
| 12777 | .page_size = 256, |
| 12778 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12779 | .tested = TEST_UNTESTED, |
| 12780 | .probe = probe_spi_rdid, |
| 12781 | .probe_timing = TIMING_ZERO, |
| 12782 | .block_erasers = |
| 12783 | { |
| 12784 | { |
| 12785 | .eraseblocks = { {4 * 1024, 16} }, |
| 12786 | .block_erase = spi_block_erase_20, |
| 12787 | }, { |
| 12788 | .eraseblocks = { {32 * 1024, 2} }, |
| 12789 | .block_erase = spi_block_erase_52, |
| 12790 | }, { |
| 12791 | .eraseblocks = { {1024 * 64, 1} }, |
| 12792 | .block_erase = spi_block_erase_60, |
| 12793 | }, { |
| 12794 | .eraseblocks = { {1024 * 64, 1} }, |
| 12795 | .block_erase = spi_block_erase_c7, |
| 12796 | }, |
| 12797 | }, |
| 12798 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12799 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12800 | .write = spi_aai_write, |
| 12801 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12802 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12803 | }, |
| 12804 | |
| 12805 | { |
| 12806 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 12807 | .name = "SST26VF016B(A)", |
| 12808 | .bustype = BUS_SPI, |
| 12809 | .manufacture_id = SST_ID, |
| 12810 | .model_id = SST_SST26VF016B, |
| 12811 | .total_size = 2048, |
| 12812 | .page_size = 256, |
| 12813 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12814 | .tested = TEST_OK_PREW, |
| 12815 | .probe = probe_spi_rdid, |
| 12816 | .probe_timing = TIMING_ZERO, |
| 12817 | .block_erasers = |
| 12818 | { |
| 12819 | { |
| 12820 | .eraseblocks = { {4 * 1024, 512} }, |
| 12821 | .block_erase = spi_block_erase_20, |
| 12822 | }, { |
| 12823 | .eraseblocks = { |
| 12824 | {8 * 1024, 4}, |
| 12825 | {32 * 1024, 1}, |
| 12826 | {64 * 1024, 30}, |
| 12827 | {32 * 1024, 1}, |
| 12828 | {8 * 1024, 4}, |
| 12829 | }, |
| 12830 | .block_erase = spi_block_erase_d8, |
| 12831 | }, { |
| 12832 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12833 | .block_erase = spi_block_erase_c7, |
| 12834 | }, |
| 12835 | }, |
| 12836 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12837 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 12838 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12839 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12840 | .voltage = {2700, 3600}, |
| 12841 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12842 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 12843 | { |
| 12844 | .vendor = "SST", |
| 12845 | .name = "SST26VF032B(A)", |
| 12846 | .bustype = BUS_SPI, |
| 12847 | .manufacture_id = SST_ID, |
| 12848 | .model_id = SST_SST26VF032B, |
| 12849 | .total_size = 4096, |
| 12850 | .page_size = 256, |
| 12851 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12852 | .tested = TEST_UNTESTED, |
| 12853 | .probe = probe_spi_rdid, |
| 12854 | .probe_timing = TIMING_ZERO, |
| 12855 | .block_erasers = |
| 12856 | { |
| 12857 | { |
| 12858 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12859 | .block_erase = spi_block_erase_20, |
| 12860 | }, { |
| 12861 | .eraseblocks = { |
| 12862 | {8 * 1024, 4}, |
| 12863 | {32 * 1024, 1}, |
| 12864 | {64 * 1024, 62}, |
| 12865 | {32 * 1024, 1}, |
| 12866 | {8 * 1024, 4}, |
| 12867 | }, |
| 12868 | .block_erase = spi_block_erase_d8, |
| 12869 | }, { |
| 12870 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12871 | .block_erase = spi_block_erase_c7, |
| 12872 | }, |
| 12873 | }, |
| 12874 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12875 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 12876 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12877 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12878 | .voltage = {2700, 3600}, |
| 12879 | }, |
| 12880 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 12881 | { |
| 12882 | .vendor = "SST", |
| 12883 | .name = "SST26VF064B(A)", |
| 12884 | .bustype = BUS_SPI, |
| 12885 | .manufacture_id = SST_ID, |
| 12886 | .model_id = SST_SST26VF064B, |
| 12887 | .total_size = 8192, |
| 12888 | .page_size = 256, |
| 12889 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12890 | .tested = TEST_OK_PREW, |
| 12891 | .probe = probe_spi_rdid, |
| 12892 | .probe_timing = TIMING_ZERO, |
| 12893 | .block_erasers = |
| 12894 | { |
| 12895 | { |
| 12896 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12897 | .block_erase = spi_block_erase_20, |
| 12898 | }, { |
| 12899 | .eraseblocks = { |
| 12900 | {8 * 1024, 4}, |
| 12901 | {32 * 1024, 1}, |
| 12902 | {64 * 1024, 126}, |
| 12903 | {32 * 1024, 1}, |
| 12904 | {8 * 1024, 4}, |
| 12905 | }, |
| 12906 | .block_erase = spi_block_erase_d8, |
| 12907 | }, { |
| 12908 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12909 | .block_erase = spi_block_erase_c7, |
| 12910 | }, |
| 12911 | }, |
| 12912 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12913 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 12914 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12915 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12916 | .voltage = {2700, 3600}, |
| 12917 | }, |
| 12918 | |
| 12919 | { |
| 12920 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12921 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12922 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12923 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12924 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12925 | .total_size = 512, |
| 12926 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12927 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12928 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12929 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12930 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12931 | .block_erasers = |
| 12932 | { |
| 12933 | { |
| 12934 | .eraseblocks = { {128, 4096} }, |
| 12935 | .block_erase = erase_sector_28sf040, |
| 12936 | }, { |
| 12937 | .eraseblocks = { {512 * 1024, 1} }, |
| 12938 | .block_erase = erase_chip_28sf040, |
| 12939 | } |
| 12940 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12941 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12942 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12943 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12944 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12945 | }, |
| 12946 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12947 | { |
| 12948 | .vendor = "SST", |
| 12949 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12950 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12951 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12952 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12953 | .total_size = 128, |
| 12954 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12955 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 12956 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12957 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12958 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12959 | .block_erasers = |
| 12960 | { |
| 12961 | { |
| 12962 | .eraseblocks = { {128 * 1024, 1} }, |
| 12963 | .block_erase = erase_chip_block_jedec, |
| 12964 | } |
| 12965 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12966 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12967 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12968 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12969 | }, |
| 12970 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12971 | { |
| 12972 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12973 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12974 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12975 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12976 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12977 | .total_size = 256, |
| 12978 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12979 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 12980 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12981 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12982 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12983 | .block_erasers = |
| 12984 | { |
| 12985 | { |
| 12986 | .eraseblocks = { {256 * 1024, 1} }, |
| 12987 | .block_erase = erase_chip_block_jedec, |
| 12988 | } |
| 12989 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12990 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12991 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12992 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12993 | }, |
| 12994 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12995 | { |
| 12996 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12997 | .name = "SST29LE010", |
| 12998 | .bustype = BUS_PARALLEL, |
| 12999 | .manufacture_id = SST_ID, |
| 13000 | .model_id = SST_SST29LE010, |
| 13001 | .total_size = 128, |
| 13002 | .page_size = 128, |
| 13003 | .feature_bits = FEATURE_LONG_RESET, |
| 13004 | .tested = TEST_UNTESTED, |
| 13005 | .probe = probe_jedec, |
| 13006 | .probe_timing = 10, |
| 13007 | .block_erasers = |
| 13008 | { |
| 13009 | { |
| 13010 | .eraseblocks = { {128 * 1024, 1} }, |
| 13011 | .block_erase = erase_chip_block_jedec, |
| 13012 | } |
| 13013 | }, |
| 13014 | .write = write_jedec, |
| 13015 | .read = read_memmapped, |
| 13016 | .voltage = {3000, 3600}, |
| 13017 | }, |
| 13018 | |
| 13019 | { |
| 13020 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13021 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13022 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13023 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13024 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13025 | .total_size = 256, |
| 13026 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13027 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13028 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13029 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13030 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13031 | .block_erasers = |
| 13032 | { |
| 13033 | { |
| 13034 | .eraseblocks = { {256 * 1024, 1} }, |
| 13035 | .block_erase = erase_chip_block_jedec, |
| 13036 | } |
| 13037 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13038 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13039 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13040 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13041 | }, |
| 13042 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13043 | { |
| 13044 | .vendor = "SST", |
| 13045 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13046 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13047 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13048 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13049 | .total_size = 128, |
| 13050 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13051 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13052 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13053 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13054 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13055 | .block_erasers = |
| 13056 | { |
| 13057 | { |
| 13058 | .eraseblocks = { {4 * 1024, 32} }, |
| 13059 | .block_erase = erase_sector_jedec, |
| 13060 | }, { |
| 13061 | .eraseblocks = { {128 * 1024, 1} }, |
| 13062 | .block_erase = erase_chip_block_jedec, |
| 13063 | } |
| 13064 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13065 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13066 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13067 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13068 | }, |
| 13069 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13070 | { |
| 13071 | .vendor = "SST", |
| 13072 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13073 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13074 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13075 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13076 | .total_size = 256, |
| 13077 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13078 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 13079 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13080 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13081 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13082 | .block_erasers = |
| 13083 | { |
| 13084 | { |
| 13085 | .eraseblocks = { {4 * 1024, 64} }, |
| 13086 | .block_erase = erase_sector_jedec, |
| 13087 | }, { |
| 13088 | .eraseblocks = { {256 * 1024, 1} }, |
| 13089 | .block_erase = erase_chip_block_jedec, |
| 13090 | } |
| 13091 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13092 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13093 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13094 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13095 | }, |
| 13096 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13097 | { |
| 13098 | .vendor = "SST", |
| 13099 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13100 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13101 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13102 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13103 | .total_size = 512, |
| 13104 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13105 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 13106 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13107 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13108 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13109 | .block_erasers = |
| 13110 | { |
| 13111 | { |
| 13112 | .eraseblocks = { {4 * 1024, 128} }, |
| 13113 | .block_erase = erase_sector_jedec, |
| 13114 | }, { |
| 13115 | .eraseblocks = { {512 * 1024, 1} }, |
| 13116 | .block_erase = erase_chip_block_jedec, |
| 13117 | } |
| 13118 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13119 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13120 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13121 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13122 | }, |
| 13123 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13124 | { |
| 13125 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13126 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13127 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13128 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13129 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13130 | .total_size = 64, |
| 13131 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13132 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 13133 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13134 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13135 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13136 | .block_erasers = |
| 13137 | { |
| 13138 | { |
| 13139 | .eraseblocks = { {4 * 1024, 16} }, |
| 13140 | .block_erase = erase_sector_jedec, |
| 13141 | }, { |
| 13142 | .eraseblocks = { {64 * 1024, 1} }, |
| 13143 | .block_erase = erase_chip_block_jedec, |
| 13144 | } |
| 13145 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13146 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13147 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13148 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13149 | }, |
| 13150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13151 | { |
| 13152 | .vendor = "SST", |
| 13153 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13154 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13155 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13156 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13157 | .total_size = 128, |
| 13158 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13159 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 13160 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13161 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13162 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13163 | .block_erasers = |
| 13164 | { |
| 13165 | { |
| 13166 | .eraseblocks = { {4 * 1024, 32} }, |
| 13167 | .block_erase = erase_sector_jedec, |
| 13168 | }, { |
| 13169 | .eraseblocks = { {128 * 1024, 1} }, |
| 13170 | .block_erase = erase_chip_block_jedec, |
| 13171 | } |
| 13172 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13174 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13175 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13176 | }, |
| 13177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13178 | { |
| 13179 | .vendor = "SST", |
| 13180 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13181 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13182 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13183 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13184 | .total_size = 256, |
| 13185 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13186 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13187 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13188 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13189 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13190 | .block_erasers = |
| 13191 | { |
| 13192 | { |
| 13193 | .eraseblocks = { {4 * 1024, 64} }, |
| 13194 | .block_erase = erase_sector_jedec, |
| 13195 | }, { |
| 13196 | .eraseblocks = { {256 * 1024, 1} }, |
| 13197 | .block_erase = erase_chip_block_jedec, |
| 13198 | } |
| 13199 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13202 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13203 | }, |
| 13204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13205 | { |
| 13206 | .vendor = "SST", |
| 13207 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13208 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13209 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13210 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13211 | .total_size = 512, |
| 13212 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13213 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13214 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13215 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13216 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13217 | .block_erasers = |
| 13218 | { |
| 13219 | { |
| 13220 | .eraseblocks = { {4 * 1024, 128} }, |
| 13221 | .block_erase = erase_sector_jedec, |
| 13222 | }, { |
| 13223 | .eraseblocks = { {512 * 1024, 1} }, |
| 13224 | .block_erase = erase_chip_block_jedec, |
| 13225 | } |
| 13226 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13227 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13228 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13229 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 13230 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13231 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13232 | { |
| 13233 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13234 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13235 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13236 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13237 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13238 | .total_size = 1024, |
| 13239 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13240 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13241 | .tested = TEST_UNTESTED, |
| 13242 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13243 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13244 | .block_erasers = |
| 13245 | { |
| 13246 | { |
| 13247 | .eraseblocks = { {4 * 1024, 256} }, |
| 13248 | .block_erase = erase_sector_jedec, |
| 13249 | }, { |
| 13250 | .eraseblocks = { {64 * 1024, 16} }, |
| 13251 | .block_erase = erase_block_jedec, |
| 13252 | }, { |
| 13253 | .eraseblocks = { {1024 * 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}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13260 | }, |
| 13261 | |
| 13262 | { |
| 13263 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13264 | .name = "SST39VF512", |
| 13265 | .bustype = BUS_PARALLEL, |
| 13266 | .manufacture_id = SST_ID, |
| 13267 | .model_id = SST_SST39VF512, |
| 13268 | .total_size = 64, |
| 13269 | .page_size = 4096, |
| 13270 | .feature_bits = FEATURE_EITHER_RESET, |
| 13271 | .tested = TEST_OK_PREW, |
| 13272 | .probe = probe_jedec, |
| 13273 | .probe_timing = 1, /* 150 ns */ |
| 13274 | .block_erasers = |
| 13275 | { |
| 13276 | { |
| 13277 | .eraseblocks = { {4 * 1024, 16} }, |
| 13278 | .block_erase = erase_sector_jedec, |
| 13279 | }, { |
| 13280 | .eraseblocks = { {64 * 1024, 1} }, |
| 13281 | .block_erase = erase_chip_block_jedec, |
| 13282 | } |
| 13283 | }, |
| 13284 | .write = write_jedec_1, |
| 13285 | .read = read_memmapped, |
| 13286 | .voltage = {2700, 3600}, |
| 13287 | }, |
| 13288 | |
| 13289 | { |
| 13290 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13291 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13292 | .bustype = BUS_FWH, /* A/A Mux */ |
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_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13295 | .total_size = 256, |
| 13296 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13297 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13298 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13299 | .probe = probe_jedec, |
| 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} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13305 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13306 | }, { |
| 13307 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13308 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13309 | }, { |
| 13310 | .eraseblocks = { {256 * 1024, 1} }, |
| 13311 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13312 | } |
| 13313 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13314 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13315 | .unlock = unlock_sst_fwhub, |
| 13316 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13317 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13318 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13319 | }, |
| 13320 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13321 | { |
| 13322 | .vendor = "SST", |
| 13323 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13324 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13325 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13326 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13327 | .total_size = 384, |
| 13328 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13329 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13330 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13331 | .probe = probe_jedec, |
| 13332 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13333 | .block_erasers = |
| 13334 | { |
| 13335 | { |
| 13336 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13337 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13338 | }, { |
| 13339 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13340 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13341 | }, { |
| 13342 | .eraseblocks = { {384 * 1024, 1} }, |
| 13343 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13344 | } |
| 13345 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13346 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13347 | .unlock = unlock_sst_fwhub, |
| 13348 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13349 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13350 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13351 | }, |
| 13352 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13353 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13354 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 13355 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 13356 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13357 | .vendor = "SST", |
| 13358 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13359 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13360 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13361 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13362 | .total_size = 512, |
| 13363 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13364 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13365 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13366 | .probe = probe_jedec, |
| 13367 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13368 | .block_erasers = |
| 13369 | { |
| 13370 | { |
| 13371 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13372 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13373 | }, { |
| 13374 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13375 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13376 | }, { |
| 13377 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13378 | .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] | 13379 | }, |
| 13380 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13381 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13382 | .unlock = unlock_sst_fwhub, |
| 13383 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13384 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13385 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13386 | }, |
| 13387 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13388 | { |
| 13389 | .vendor = "SST", |
| 13390 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13391 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13392 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13393 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13394 | .total_size = 512, |
| 13395 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13396 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13397 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13398 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13399 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13400 | .block_erasers = |
| 13401 | { |
| 13402 | { |
| 13403 | .eraseblocks = { {4 * 1024, 128} }, |
| 13404 | .block_erase = erase_sector_49lfxxxc, |
| 13405 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13406 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13407 | {64 * 1024, 7}, |
| 13408 | {32 * 1024, 1}, |
| 13409 | {8 * 1024, 2}, |
| 13410 | {16 * 1024, 1}, |
| 13411 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13412 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13413 | } |
| 13414 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13415 | .printlock = printlock_regspace2_block_eraser_1, |
| 13416 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13417 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13418 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13419 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13420 | }, |
| 13421 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13422 | { |
| 13423 | .vendor = "SST", |
| 13424 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13425 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13426 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13427 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13428 | .total_size = 1024, |
| 13429 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13430 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13431 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13432 | .probe = probe_jedec, |
| 13433 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13434 | .block_erasers = |
| 13435 | { |
| 13436 | { |
| 13437 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13438 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13439 | }, { |
| 13440 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13441 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13442 | }, { |
| 13443 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13444 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13445 | } |
| 13446 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13447 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13448 | .unlock = unlock_sst_fwhub, |
| 13449 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13450 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13451 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13452 | }, |
| 13453 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13454 | { |
| 13455 | .vendor = "SST", |
| 13456 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13457 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13458 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13459 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13460 | .total_size = 1024, |
| 13461 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13462 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13463 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13464 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13465 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13466 | .block_erasers = |
| 13467 | { |
| 13468 | { |
| 13469 | .eraseblocks = { {4 * 1024, 256} }, |
| 13470 | .block_erase = erase_sector_49lfxxxc, |
| 13471 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13472 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13473 | {64 * 1024, 15}, |
| 13474 | {32 * 1024, 1}, |
| 13475 | {8 * 1024, 2}, |
| 13476 | {16 * 1024, 1}, |
| 13477 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13478 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13479 | } |
| 13480 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13481 | .printlock = printlock_regspace2_block_eraser_1, |
| 13482 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13483 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13484 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13485 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13486 | }, |
| 13487 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13488 | { |
| 13489 | .vendor = "SST", |
| 13490 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13491 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13492 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13493 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13494 | .total_size = 2048, |
| 13495 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13496 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13497 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13498 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13499 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13500 | .block_erasers = |
| 13501 | { |
| 13502 | { |
| 13503 | .eraseblocks = { {4 * 1024, 512} }, |
| 13504 | .block_erase = erase_sector_49lfxxxc, |
| 13505 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13506 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13507 | {64 * 1024, 31}, |
| 13508 | {32 * 1024, 1}, |
| 13509 | {8 * 1024, 2}, |
| 13510 | {16 * 1024, 1}, |
| 13511 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13512 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13513 | } |
| 13514 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13515 | .printlock = printlock_regspace2_block_eraser_1, |
| 13516 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13517 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13518 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13519 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13520 | }, |
| 13521 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13522 | { |
| 13523 | .vendor = "SST", |
| 13524 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13525 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13526 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13527 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13528 | .total_size = 256, |
| 13529 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13530 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 13531 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13532 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13533 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13534 | .block_erasers = |
| 13535 | { |
| 13536 | { |
| 13537 | .eraseblocks = { {4 * 1024, 64} }, |
| 13538 | .block_erase = erase_sector_jedec, |
| 13539 | }, { |
| 13540 | .eraseblocks = { {16 * 1024, 16} }, |
| 13541 | .block_erase = erase_block_jedec, |
| 13542 | }, { |
| 13543 | .eraseblocks = { {256 * 1024, 1} }, |
| 13544 | .block_erase = NULL, |
| 13545 | } |
| 13546 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13547 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13548 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13549 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 13550 | }, |
| 13551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13552 | { |
| 13553 | .vendor = "SST", |
| 13554 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13555 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13556 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13557 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13558 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 13559 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13560 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13561 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13562 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13563 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13564 | .block_erasers = |
| 13565 | { |
| 13566 | { |
| 13567 | .eraseblocks = { {4 * 1024, 64} }, |
| 13568 | .block_erase = erase_sector_jedec, |
| 13569 | }, { |
| 13570 | .eraseblocks = { {16 * 1024, 16} }, |
| 13571 | .block_erase = erase_block_jedec, |
| 13572 | }, { |
| 13573 | .eraseblocks = { {256 * 1024, 1} }, |
| 13574 | .block_erase = NULL, |
| 13575 | } |
| 13576 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13577 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13578 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13579 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13580 | }, |
| 13581 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13582 | { |
| 13583 | .vendor = "SST", |
| 13584 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13585 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13586 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13587 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13588 | .total_size = 512, |
| 13589 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13590 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13591 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13592 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13593 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13594 | .block_erasers = |
| 13595 | { |
| 13596 | { |
| 13597 | .eraseblocks = { {4 * 1024, 128} }, |
| 13598 | .block_erase = erase_sector_jedec, |
| 13599 | }, { |
| 13600 | .eraseblocks = { {64 * 1024, 8} }, |
| 13601 | .block_erase = erase_block_jedec, |
| 13602 | }, { |
| 13603 | .eraseblocks = { {512 * 1024, 1} }, |
| 13604 | .block_erase = NULL, |
| 13605 | } |
| 13606 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13607 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13608 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13609 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13610 | }, |
| 13611 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13612 | { |
| 13613 | .vendor = "SST", |
| 13614 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13615 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13616 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13617 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13618 | .total_size = 512, |
| 13619 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 13620 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13621 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13622 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13623 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13624 | .block_erasers = |
| 13625 | { |
| 13626 | { |
| 13627 | .eraseblocks = { {4 * 1024, 128} }, |
| 13628 | .block_erase = erase_sector_jedec, |
| 13629 | }, { |
| 13630 | .eraseblocks = { {64 * 1024, 8} }, |
| 13631 | .block_erase = erase_block_jedec, |
| 13632 | }, { |
| 13633 | .eraseblocks = { {512 * 1024, 1} }, |
| 13634 | .block_erase = NULL, |
| 13635 | } |
| 13636 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13637 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13638 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13639 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13640 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13641 | }, |
| 13642 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13643 | { |
| 13644 | .vendor = "SST", |
| 13645 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13646 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13647 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 13648 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13649 | .total_size = 1024, |
| 13650 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13651 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 13652 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13653 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13654 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13655 | .block_erasers = |
| 13656 | { |
| 13657 | { |
| 13658 | .eraseblocks = { {4 * 1024, 256} }, |
| 13659 | .block_erase = erase_sector_jedec, |
| 13660 | }, { |
| 13661 | .eraseblocks = { {64 * 1024, 16} }, |
| 13662 | .block_erase = erase_block_jedec, |
| 13663 | }, { |
| 13664 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13665 | .block_erase = NULL, |
| 13666 | } |
| 13667 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13668 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13669 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13670 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13671 | }, |
| 13672 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13673 | { |
| 13674 | .vendor = "SST", |
| 13675 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13676 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13677 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13678 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13679 | .total_size = 2048, |
| 13680 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13681 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13682 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13683 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13684 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13685 | .block_erasers = |
| 13686 | { |
| 13687 | { |
| 13688 | .eraseblocks = { {4 * 1024, 512} }, |
| 13689 | .block_erase = erase_sector_49lfxxxc, |
| 13690 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13691 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13692 | {64 * 1024, 31}, |
| 13693 | {32 * 1024, 1}, |
| 13694 | {8 * 1024, 2}, |
| 13695 | {16 * 1024, 1}, |
| 13696 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13697 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13698 | } |
| 13699 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13700 | .printlock = printlock_regspace2_block_eraser_1, |
| 13701 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13702 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13703 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13704 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13705 | }, |
| 13706 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13707 | { |
| 13708 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13709 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13710 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13711 | .manufacture_id = ST_ID, |
| 13712 | .model_id = ST_M29F002B, |
| 13713 | .total_size = 256, |
| 13714 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13715 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13716 | .tested = TEST_UNTESTED, |
| 13717 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13718 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13719 | .block_erasers = |
| 13720 | { |
| 13721 | { |
| 13722 | .eraseblocks = { |
| 13723 | {16 * 1024, 1}, |
| 13724 | {8 * 1024, 2}, |
| 13725 | {32 * 1024, 1}, |
| 13726 | {64 * 1024, 3}, |
| 13727 | }, |
| 13728 | .block_erase = erase_sector_jedec, |
| 13729 | }, { |
| 13730 | .eraseblocks = { {256 * 1024, 1} }, |
| 13731 | .block_erase = erase_chip_block_jedec, |
| 13732 | } |
| 13733 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13734 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13735 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13736 | .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] | 13737 | }, |
| 13738 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13739 | { |
| 13740 | .vendor = "ST", |
| 13741 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13742 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13743 | .manufacture_id = ST_ID, |
| 13744 | .model_id = ST_M29F002T, |
| 13745 | .total_size = 256, |
| 13746 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13747 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13748 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13749 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13750 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13751 | .block_erasers = |
| 13752 | { |
| 13753 | { |
| 13754 | .eraseblocks = { |
| 13755 | {64 * 1024, 3}, |
| 13756 | {32 * 1024, 1}, |
| 13757 | {8 * 1024, 2}, |
| 13758 | {16 * 1024, 1}, |
| 13759 | }, |
| 13760 | .block_erase = erase_sector_jedec, |
| 13761 | }, { |
| 13762 | .eraseblocks = { {256 * 1024, 1} }, |
| 13763 | .block_erase = erase_chip_block_jedec, |
| 13764 | } |
| 13765 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13766 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13767 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13768 | .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] | 13769 | }, |
| 13770 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13771 | { |
| 13772 | .vendor = "ST", |
| 13773 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13774 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13775 | .manufacture_id = ST_ID, |
| 13776 | .model_id = ST_M29F040B, |
| 13777 | .total_size = 512, |
| 13778 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13779 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13780 | .tested = TEST_UNTESTED, |
| 13781 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 13782 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13783 | .block_erasers = |
| 13784 | { |
| 13785 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13786 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13787 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13788 | }, { |
| 13789 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13790 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13791 | } |
| 13792 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13793 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13794 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13795 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13796 | }, |
| 13797 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13798 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13799 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13800 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13801 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13802 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13803 | .manufacture_id = ST_ID, |
| 13804 | .model_id = ST_M29F400BB, |
| 13805 | .total_size = 512, |
| 13806 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13807 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13808 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13809 | .probe = probe_jedec, |
| 13810 | .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] | 13811 | .block_erasers = |
| 13812 | { |
| 13813 | { |
| 13814 | .eraseblocks = { |
| 13815 | {16 * 1024, 1}, |
| 13816 | {8 * 1024, 2}, |
| 13817 | {32 * 1024, 1}, |
| 13818 | {64 * 1024, 7}, |
| 13819 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13820 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13821 | }, { |
| 13822 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13823 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13824 | } |
| 13825 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13826 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13827 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13828 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13829 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13830 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13831 | { |
| 13832 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 13833 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13834 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13835 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13836 | .manufacture_id = ST_ID, |
| 13837 | .model_id = ST_M29F400BT, |
| 13838 | .total_size = 512, |
| 13839 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13840 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13841 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13842 | .probe = probe_jedec, |
| 13843 | .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] | 13844 | .block_erasers = |
| 13845 | { |
| 13846 | { |
| 13847 | .eraseblocks = { |
| 13848 | {64 * 1024, 7}, |
| 13849 | {32 * 1024, 1}, |
| 13850 | {8 * 1024, 2}, |
| 13851 | {16 * 1024, 1}, |
| 13852 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13853 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13854 | }, { |
| 13855 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13856 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13857 | } |
| 13858 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13859 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13860 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13861 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13862 | }, |
| 13863 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13864 | { |
| 13865 | .vendor = "ST", |
| 13866 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13867 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13868 | .manufacture_id = ST_ID, |
| 13869 | .model_id = ST_M29W010B, |
| 13870 | .total_size = 128, |
| 13871 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13872 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13873 | .tested = TEST_UNTESTED, |
| 13874 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13875 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13876 | .block_erasers = |
| 13877 | { |
| 13878 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13879 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13880 | .block_erase = erase_sector_jedec, |
| 13881 | }, { |
| 13882 | .eraseblocks = { {128 * 1024, 1} }, |
| 13883 | .block_erase = erase_chip_block_jedec, |
| 13884 | } |
| 13885 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13886 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13887 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13888 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13889 | }, |
| 13890 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13891 | { |
| 13892 | .vendor = "ST", |
| 13893 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13894 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13895 | .manufacture_id = ST_ID, |
| 13896 | .model_id = ST_M29W040B, |
| 13897 | .total_size = 512, |
| 13898 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13899 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13900 | .tested = TEST_UNTESTED, |
| 13901 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13902 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13903 | .block_erasers = |
| 13904 | { |
| 13905 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13906 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13907 | .block_erase = erase_sector_jedec, |
| 13908 | }, { |
| 13909 | .eraseblocks = { {512 * 1024, 1} }, |
| 13910 | .block_erase = erase_chip_block_jedec, |
| 13911 | } |
| 13912 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13913 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13914 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13915 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13916 | }, |
| 13917 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13918 | { |
| 13919 | .vendor = "ST", |
| 13920 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13921 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13922 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13923 | .model_id = ST_M29W512B, |
| 13924 | .total_size = 64, |
| 13925 | .page_size = 64 * 1024, |
| 13926 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13927 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13928 | .probe = probe_jedec, |
| 13929 | .probe_timing = TIMING_ZERO, |
| 13930 | .block_erasers = |
| 13931 | { |
| 13932 | { |
| 13933 | .eraseblocks = { {64 * 1024, 1} }, |
| 13934 | .block_erase = erase_chip_block_jedec, |
| 13935 | } |
| 13936 | }, |
| 13937 | .write = write_jedec_1, |
| 13938 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13939 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13940 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 13941 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13942 | { |
| 13943 | .vendor = "ST", |
| 13944 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13945 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13946 | .manufacture_id = ST_ID, |
| 13947 | .model_id = ST_M50FLW040A, |
| 13948 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13949 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13950 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13951 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13952 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 13953 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13954 | .block_erasers = |
| 13955 | { |
| 13956 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13957 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13958 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13959 | {64 * 1024, 5}, /* block */ |
| 13960 | {4 * 1024, 16}, /* sector */ |
| 13961 | {4 * 1024, 16}, /* sector */ |
| 13962 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 13963 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13964 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13965 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13966 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13967 | } |
| 13968 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13969 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 13970 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13971 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13972 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13973 | }, |
| 13974 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13975 | { |
| 13976 | .vendor = "ST", |
| 13977 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13978 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13979 | .manufacture_id = ST_ID, |
| 13980 | .model_id = ST_M50FLW040B, |
| 13981 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13982 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13983 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13984 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13985 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 13986 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13987 | .block_erasers = |
| 13988 | { |
| 13989 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13990 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13991 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13992 | {4 * 1024, 16}, /* sector */ |
| 13993 | {64 * 1024, 5}, /* block */ |
| 13994 | {4 * 1024, 16}, /* sector */ |
| 13995 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 13996 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13997 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13998 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13999 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14000 | } |
| 14001 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14002 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14003 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14004 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14005 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14006 | }, |
| 14007 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14008 | { |
| 14009 | .vendor = "ST", |
| 14010 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14011 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14012 | .manufacture_id = ST_ID, |
| 14013 | .model_id = ST_M50FLW080A, |
| 14014 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14015 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14016 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14017 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14018 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14019 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14020 | .block_erasers = |
| 14021 | { |
| 14022 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14023 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14024 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14025 | {64 * 1024, 13}, /* block */ |
| 14026 | {4 * 1024, 16}, /* sector */ |
| 14027 | {4 * 1024, 16}, /* sector */ |
| 14028 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14029 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14030 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14031 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14032 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14033 | } |
| 14034 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14035 | .printlock = printlock_regspace2_block_eraser_0, |
| 14036 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14037 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14038 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14039 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14040 | }, |
| 14041 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14042 | { |
| 14043 | .vendor = "ST", |
| 14044 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14045 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14046 | .manufacture_id = ST_ID, |
| 14047 | .model_id = ST_M50FLW080B, |
| 14048 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14049 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14050 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14051 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14052 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14053 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14054 | .block_erasers = |
| 14055 | { |
| 14056 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14057 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14058 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14059 | {4 * 1024, 16}, /* sector */ |
| 14060 | {64 * 1024, 13}, /* block */ |
| 14061 | {4 * 1024, 16}, /* sector */ |
| 14062 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14063 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14064 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14065 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14066 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14067 | } |
| 14068 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14069 | .printlock = printlock_regspace2_block_eraser_0, |
| 14070 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14071 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14072 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14073 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14074 | }, |
| 14075 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14076 | { |
| 14077 | .vendor = "ST", |
| 14078 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14079 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14080 | .manufacture_id = ST_ID, |
| 14081 | .model_id = ST_M50FW002, |
| 14082 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14083 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14084 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14085 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14086 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14087 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14088 | .block_erasers = |
| 14089 | { |
| 14090 | { |
| 14091 | .eraseblocks = { |
| 14092 | {64 * 1024, 3}, |
| 14093 | {32 * 1024, 1}, |
| 14094 | {8 * 1024, 2}, |
| 14095 | {16 * 1024, 1}, |
| 14096 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14097 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14098 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14099 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14100 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14101 | } |
| 14102 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14103 | .printlock = printlock_regspace2_block_eraser_0, |
| 14104 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14105 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14106 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14107 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14108 | }, |
| 14109 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14110 | { |
| 14111 | .vendor = "ST", |
| 14112 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14113 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14114 | .manufacture_id = ST_ID, |
| 14115 | .model_id = ST_M50FW016, |
| 14116 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14117 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14118 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14119 | .tested = TEST_UNTESTED, |
| 14120 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14121 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14122 | .block_erasers = |
| 14123 | { |
| 14124 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14125 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14126 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14127 | } |
| 14128 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14129 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14130 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14131 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14132 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14133 | }, |
| 14134 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14135 | { |
| 14136 | .vendor = "ST", |
| 14137 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14138 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14139 | .manufacture_id = ST_ID, |
| 14140 | .model_id = ST_M50FW040, |
| 14141 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14142 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14143 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14144 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14145 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14146 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14147 | .block_erasers = |
| 14148 | { |
| 14149 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14150 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14151 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14152 | } |
| 14153 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14154 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14155 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14156 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14157 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14158 | }, |
| 14159 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14160 | { |
| 14161 | .vendor = "ST", |
| 14162 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14163 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14164 | .manufacture_id = ST_ID, |
| 14165 | .model_id = ST_M50FW080, |
| 14166 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14167 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14168 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14169 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14170 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14171 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14172 | .block_erasers = |
| 14173 | { |
| 14174 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14175 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14176 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14177 | } |
| 14178 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14179 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14180 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14181 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14182 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14183 | }, |
| 14184 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14185 | { |
| 14186 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14187 | .name = "M50LPW080", |
| 14188 | .bustype = BUS_LPC, /* A/A Mux */ |
| 14189 | .manufacture_id = ST_ID, |
| 14190 | .model_id = ST_M50LPW080, |
| 14191 | .total_size = 1024, |
| 14192 | .page_size = 0, |
| 14193 | .feature_bits = FEATURE_REGISTERMAP, |
| 14194 | .tested = TEST_UNTESTED, |
| 14195 | .probe = probe_82802ab, |
| 14196 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14197 | .block_erasers = |
| 14198 | { |
| 14199 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14200 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14201 | .block_erase = erase_block_82802ab, |
| 14202 | } |
| 14203 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14204 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14205 | .write = write_82802ab, |
| 14206 | .read = read_memmapped, |
| 14207 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 14208 | }, |
| 14209 | |
| 14210 | { |
| 14211 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14212 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14213 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14214 | .manufacture_id = ST_ID, |
| 14215 | .model_id = ST_M50LPW116, |
| 14216 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14217 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14218 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14219 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14220 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14221 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14222 | .block_erasers = |
| 14223 | { |
| 14224 | { |
| 14225 | .eraseblocks = { |
| 14226 | {4 * 1024, 16}, |
| 14227 | {64 * 1024, 30}, |
| 14228 | {32 * 1024, 1}, |
| 14229 | {8 * 1024, 2}, |
| 14230 | {16 * 1024, 1}, |
| 14231 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14232 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14233 | } |
| 14234 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14235 | .printlock = printlock_regspace2_block_eraser_0, |
| 14236 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14237 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14238 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14239 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14240 | }, |
| 14241 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14242 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14243 | .vendor = "Sanyo", |
| 14244 | .name = "LE25FU106B", |
| 14245 | .bustype = BUS_SPI, |
| 14246 | .manufacture_id = SANYO_ID, |
| 14247 | .model_id = SANYO_LE25FU106B, |
| 14248 | .total_size = 128, |
| 14249 | .page_size = 256, |
| 14250 | .feature_bits = FEATURE_WRSR_WREN, |
| 14251 | .tested = TEST_UNTESTED, |
| 14252 | .probe = probe_spi_res2, |
| 14253 | .probe_timing = TIMING_ZERO, |
| 14254 | .block_erasers = |
| 14255 | { |
| 14256 | /* FIXME: Is this correct? |
| 14257 | { |
| 14258 | .eraseblocks = { {2 * 1024, 64} }, |
| 14259 | .block_erase = spi_block_erase_d7, |
| 14260 | },*/ |
| 14261 | { |
| 14262 | .eraseblocks = { {32 * 1024, 4} }, |
| 14263 | .block_erase = spi_block_erase_d8, |
| 14264 | }, { |
| 14265 | .eraseblocks = { {128 * 1024, 1} }, |
| 14266 | .block_erase = spi_block_erase_c7, |
| 14267 | } |
| 14268 | }, |
| 14269 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14270 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14271 | .write = spi_chip_write_256, |
| 14272 | .read = spi_chip_read, |
| 14273 | .voltage = {2300, 3600}, |
| 14274 | }, |
| 14275 | |
| 14276 | { |
| 14277 | .vendor = "Sanyo", |
| 14278 | .name = "LE25FU206", |
| 14279 | .bustype = BUS_SPI, |
| 14280 | .manufacture_id = SANYO_ID, |
| 14281 | .model_id = SANYO_LE25FU206, |
| 14282 | .total_size = 256, |
| 14283 | .page_size = 256, |
| 14284 | .feature_bits = FEATURE_WRSR_WREN, |
| 14285 | .tested = TEST_UNTESTED, |
| 14286 | .probe = probe_spi_res2, |
| 14287 | .probe_timing = TIMING_ZERO, |
| 14288 | .block_erasers = |
| 14289 | { |
| 14290 | { |
| 14291 | .eraseblocks = { {4 * 1024, 64} }, |
| 14292 | .block_erase = spi_block_erase_d7, |
| 14293 | }, { |
| 14294 | .eraseblocks = { {64 * 1024, 4} }, |
| 14295 | .block_erase = spi_block_erase_d8, |
| 14296 | }, { |
| 14297 | .eraseblocks = { {256 * 1024, 1} }, |
| 14298 | .block_erase = spi_block_erase_c7, |
| 14299 | } |
| 14300 | }, |
| 14301 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14302 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14303 | .write = spi_chip_write_256, |
| 14304 | .read = spi_chip_read, |
| 14305 | .voltage = {2300, 3600}, |
| 14306 | }, |
| 14307 | |
| 14308 | { |
| 14309 | .vendor = "Sanyo", |
| 14310 | .name = "LE25FU206A", |
| 14311 | .bustype = BUS_SPI, |
| 14312 | .manufacture_id = SANYO_ID, |
| 14313 | .model_id = SANYO_LE25FU206A, |
| 14314 | .total_size = 256, |
| 14315 | .page_size = 256, |
| 14316 | .tested = TEST_UNTESTED, |
| 14317 | .probe = probe_spi_rdid, |
| 14318 | .probe_timing = TIMING_ZERO, |
| 14319 | .block_erasers = |
| 14320 | { |
| 14321 | { |
| 14322 | .eraseblocks = { {4 * 1024, 64} }, |
| 14323 | .block_erase = spi_block_erase_20, |
| 14324 | }, { |
| 14325 | .eraseblocks = { {4 * 1024, 64} }, |
| 14326 | .block_erase = spi_block_erase_d7, |
| 14327 | }, { |
| 14328 | .eraseblocks = { {64 * 1024, 4} }, |
| 14329 | .block_erase = spi_block_erase_d8, |
| 14330 | }, { |
| 14331 | .eraseblocks = { {256 * 1024, 1} }, |
| 14332 | .block_erase = spi_block_erase_60, |
| 14333 | }, { |
| 14334 | .eraseblocks = { {256 * 1024, 1} }, |
| 14335 | .block_erase = spi_block_erase_c7, |
| 14336 | } |
| 14337 | }, |
| 14338 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14339 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14340 | .write = spi_chip_write_256, |
| 14341 | .read = spi_chip_read, |
| 14342 | .voltage = {2300, 3600}, |
| 14343 | }, |
| 14344 | |
| 14345 | { |
| 14346 | .vendor = "Sanyo", |
| 14347 | .name = "LE25FU406B", |
| 14348 | .bustype = BUS_SPI, |
| 14349 | .manufacture_id = SANYO_ID, |
| 14350 | .model_id = SANYO_LE25FU406B, |
| 14351 | .total_size = 512, |
| 14352 | .page_size = 256, |
| 14353 | .feature_bits = FEATURE_WRSR_WREN, |
| 14354 | .tested = TEST_OK_PREW, |
| 14355 | .probe = probe_spi_res2, |
| 14356 | .probe_timing = TIMING_ZERO, |
| 14357 | .block_erasers = |
| 14358 | { |
| 14359 | { |
| 14360 | .eraseblocks = { {4 * 1024, 128} }, |
| 14361 | .block_erase = spi_block_erase_d7, |
| 14362 | }, { |
| 14363 | .eraseblocks = { {64 * 1024, 8} }, |
| 14364 | .block_erase = spi_block_erase_d8, |
| 14365 | }, { |
| 14366 | .eraseblocks = { {512 * 1024, 1} }, |
| 14367 | .block_erase = spi_block_erase_c7, |
| 14368 | } |
| 14369 | }, |
| 14370 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14371 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14372 | .write = spi_chip_write_256, |
| 14373 | .read = spi_chip_read, |
| 14374 | .voltage = {2300, 3600}, |
| 14375 | }, |
| 14376 | |
| 14377 | { |
| 14378 | .vendor = "Sanyo", |
| 14379 | .name = "LE25FU406C/LE25U40CMC", |
| 14380 | .bustype = BUS_SPI, |
| 14381 | .manufacture_id = SANYO_ID, |
| 14382 | .model_id = SANYO_LE25FU406C, |
| 14383 | .total_size = 512, |
| 14384 | .page_size = 256, |
| 14385 | .feature_bits = FEATURE_WRSR_WREN, |
| 14386 | .tested = TEST_OK_PREW, |
| 14387 | .probe = probe_spi_rdid, |
| 14388 | .probe_timing = TIMING_ZERO, |
| 14389 | .block_erasers = |
| 14390 | { |
| 14391 | { |
| 14392 | .eraseblocks = { {4 * 1024, 128} }, |
| 14393 | .block_erase = spi_block_erase_20, |
| 14394 | }, { |
| 14395 | .eraseblocks = { {4 * 1024, 128} }, |
| 14396 | .block_erase = spi_block_erase_d7, |
| 14397 | }, { |
| 14398 | .eraseblocks = { {64 * 1024, 8} }, |
| 14399 | .block_erase = spi_block_erase_d8, |
| 14400 | }, { |
| 14401 | .eraseblocks = { {512 * 1024, 1} }, |
| 14402 | .block_erase = spi_block_erase_60, |
| 14403 | }, { |
| 14404 | .eraseblocks = { {512 * 1024, 1} }, |
| 14405 | .block_erase = spi_block_erase_c7, |
| 14406 | } |
| 14407 | }, |
| 14408 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14409 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14410 | .write = spi_chip_write_256, |
| 14411 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 14412 | .voltage = {2300, 3600}, |
| 14413 | }, |
| 14414 | |
| 14415 | { |
| 14416 | .vendor = "Sanyo", |
| 14417 | .name = "LE25FW106", |
| 14418 | .bustype = BUS_SPI, |
| 14419 | .manufacture_id = SANYO_ID, |
| 14420 | .model_id = SANYO_LE25FW106, |
| 14421 | .total_size = 128, |
| 14422 | .page_size = 256, |
| 14423 | .feature_bits = FEATURE_WRSR_WREN, |
| 14424 | .tested = TEST_OK_PREW, |
| 14425 | .probe = probe_spi_res2, |
| 14426 | .probe_timing = TIMING_ZERO, |
| 14427 | .block_erasers = |
| 14428 | { |
| 14429 | { |
| 14430 | .eraseblocks = { {2 * 1024, 64} }, |
| 14431 | .block_erase = spi_block_erase_d7, |
| 14432 | }, { |
| 14433 | .eraseblocks = { {32 * 1024, 4} }, |
| 14434 | .block_erase = spi_block_erase_d8, |
| 14435 | }, { |
| 14436 | .eraseblocks = { {128 * 1024, 1} }, |
| 14437 | .block_erase = spi_block_erase_c7, |
| 14438 | } |
| 14439 | }, |
| 14440 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 14441 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14442 | .write = spi_chip_write_256, |
| 14443 | .read = spi_chip_read, |
| 14444 | .voltage = {2700, 3600}, |
| 14445 | }, |
| 14446 | |
| 14447 | { |
| 14448 | .vendor = "Sanyo", |
| 14449 | .name = "LE25FW203A", |
| 14450 | .bustype = BUS_SPI, |
| 14451 | .manufacture_id = SANYO_ID, |
| 14452 | .model_id = SANYO_LE25FW203A, |
| 14453 | .total_size = 256, |
| 14454 | .page_size = 256, |
| 14455 | .tested = TEST_UNTESTED, |
| 14456 | .probe = probe_spi_rdid, |
| 14457 | .probe_timing = TIMING_ZERO, |
| 14458 | .block_erasers = |
| 14459 | { |
| 14460 | { |
| 14461 | .eraseblocks = { {256, 1024} }, |
| 14462 | .block_erase = spi_block_erase_db, |
| 14463 | }, { |
| 14464 | .eraseblocks = { {64 * 1024, 4} }, |
| 14465 | .block_erase = spi_block_erase_d8, |
| 14466 | }, { |
| 14467 | .eraseblocks = { {256 * 1024, 1} }, |
| 14468 | .block_erase = spi_block_erase_c7, |
| 14469 | } |
| 14470 | }, |
| 14471 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 14472 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 14473 | .write = spi_chip_write_256, |
| 14474 | .read = spi_chip_read, |
| 14475 | .voltage = {2700, 3600}, |
| 14476 | }, |
| 14477 | |
| 14478 | { |
| 14479 | .vendor = "Sanyo", |
| 14480 | .name = "LE25FW403A", |
| 14481 | .bustype = BUS_SPI, |
| 14482 | .manufacture_id = SANYO_ID, |
| 14483 | .model_id = SANYO_LE25FW403A, |
| 14484 | .total_size = 512, |
| 14485 | .page_size = 256, |
| 14486 | .tested = TEST_UNTESTED, |
| 14487 | .probe = probe_spi_rdid, |
| 14488 | .probe_timing = TIMING_ZERO, |
| 14489 | .block_erasers = |
| 14490 | { |
| 14491 | { |
| 14492 | .eraseblocks = { {256, 2 * 1024} }, |
| 14493 | .block_erase = spi_block_erase_db, |
| 14494 | }, { |
| 14495 | .eraseblocks = { {64 * 1024, 8} }, |
| 14496 | .block_erase = spi_block_erase_d8, |
| 14497 | }, { |
| 14498 | .eraseblocks = { {512 * 1024, 1} }, |
| 14499 | .block_erase = spi_block_erase_c7, |
| 14500 | } |
| 14501 | }, |
| 14502 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 14503 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 14504 | .write = spi_chip_write_256, |
| 14505 | .read = spi_chip_read, |
| 14506 | .voltage = {2700, 3600}, |
| 14507 | }, |
| 14508 | |
| 14509 | { |
| 14510 | .vendor = "Sanyo", |
| 14511 | .name = "LE25FW406A", |
| 14512 | .bustype = BUS_SPI, |
| 14513 | .manufacture_id = SANYO_ID, |
| 14514 | .model_id = SANYO_LE25FW406A, |
| 14515 | .total_size = 512, |
| 14516 | .page_size = 256, |
| 14517 | .feature_bits = FEATURE_WRSR_WREN, |
| 14518 | .tested = TEST_OK_PREW, |
| 14519 | .probe = probe_spi_res2, |
| 14520 | .probe_timing = TIMING_ZERO, |
| 14521 | .block_erasers = |
| 14522 | { |
| 14523 | { |
| 14524 | .eraseblocks = { {4 * 1024, 128} }, |
| 14525 | .block_erase = spi_block_erase_d7, |
| 14526 | }, { |
| 14527 | .eraseblocks = { {64 * 1024, 8} }, |
| 14528 | .block_erase = spi_block_erase_d8, |
| 14529 | }, { |
| 14530 | .eraseblocks = { {512 * 1024, 1} }, |
| 14531 | .block_erase = spi_block_erase_c7, |
| 14532 | } |
| 14533 | }, |
| 14534 | .printlock = spi_prettyprint_status_register_plain, |
| 14535 | .unlock = spi_disable_blockprotect, |
| 14536 | .write = spi_chip_write_256, |
| 14537 | .read = spi_chip_read, |
| 14538 | .voltage = {2700, 3600}, |
| 14539 | }, |
| 14540 | |
| 14541 | { |
| 14542 | .vendor = "Sanyo", |
| 14543 | .name = "LE25FW418A", |
| 14544 | .bustype = BUS_SPI, |
| 14545 | .manufacture_id = SANYO_ID, |
| 14546 | .model_id = SANYO_LE25FW418A, |
| 14547 | .total_size = 512, |
| 14548 | .page_size = 256, |
| 14549 | .feature_bits = FEATURE_WRSR_WREN, |
| 14550 | .tested = TEST_UNTESTED, |
| 14551 | .probe = probe_spi_res2, |
| 14552 | .probe_timing = TIMING_ZERO, |
| 14553 | .block_erasers = |
| 14554 | { |
| 14555 | { |
| 14556 | .eraseblocks = { {4 * 1024, 128} }, |
| 14557 | .block_erase = spi_block_erase_d7, |
| 14558 | }, { |
| 14559 | .eraseblocks = { {64 * 1024, 8} }, |
| 14560 | .block_erase = spi_block_erase_d8, |
| 14561 | }, { |
| 14562 | .eraseblocks = { {512 * 1024, 1} }, |
| 14563 | .block_erase = spi_block_erase_c7, |
| 14564 | } |
| 14565 | }, |
| 14566 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14567 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14568 | .write = spi_chip_write_256, |
| 14569 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 14570 | .voltage = {2700, 3600}, |
| 14571 | }, |
| 14572 | |
| 14573 | { |
| 14574 | .vendor = "Sanyo", |
| 14575 | .name = "LE25FW806", |
| 14576 | .bustype = BUS_SPI, |
| 14577 | .manufacture_id = SANYO_ID, |
| 14578 | .model_id = SANYO_LE25FW806, |
| 14579 | .total_size = 1024, |
| 14580 | .page_size = 256, |
| 14581 | .feature_bits = FEATURE_WRSR_WREN, |
| 14582 | .tested = TEST_UNTESTED, |
| 14583 | .probe = probe_spi_res2, |
| 14584 | .probe_timing = TIMING_ZERO, |
| 14585 | .block_erasers = |
| 14586 | { |
| 14587 | { |
| 14588 | .eraseblocks = { {4 * 1024, 256} }, |
| 14589 | .block_erase = spi_block_erase_20, |
| 14590 | }, { |
| 14591 | .eraseblocks = { {4 * 1024, 256} }, |
| 14592 | .block_erase = spi_block_erase_d7, |
| 14593 | }, { |
| 14594 | .eraseblocks = { {64 * 1024, 16} }, |
| 14595 | .block_erase = spi_block_erase_d8, |
| 14596 | }, { |
| 14597 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14598 | .block_erase = spi_block_erase_c7, |
| 14599 | } |
| 14600 | }, |
| 14601 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14602 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14603 | .write = spi_chip_write_256, |
| 14604 | .read = spi_chip_read, |
| 14605 | .voltage = {2700, 3600}, |
| 14606 | }, |
| 14607 | |
| 14608 | { |
| 14609 | .vendor = "Sanyo", |
| 14610 | .name = "LE25FW808", |
| 14611 | .bustype = BUS_SPI, |
| 14612 | .manufacture_id = SANYO_ID, |
| 14613 | .model_id = SANYO_LE25FW808, |
| 14614 | .total_size = 1024, |
| 14615 | .page_size = 256, |
| 14616 | .feature_bits = FEATURE_WRSR_WREN, |
| 14617 | .tested = TEST_UNTESTED, |
| 14618 | .probe = probe_spi_res2, |
| 14619 | .probe_timing = TIMING_ZERO, |
| 14620 | .block_erasers = |
| 14621 | { |
| 14622 | { |
| 14623 | .eraseblocks = { {8 * 1024, 128} }, |
| 14624 | .block_erase = spi_block_erase_d7, |
| 14625 | }, { |
| 14626 | .eraseblocks = { {64 * 1024, 16} }, |
| 14627 | .block_erase = spi_block_erase_d8, |
| 14628 | }, { |
| 14629 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14630 | .block_erase = spi_block_erase_c7, |
| 14631 | } |
| 14632 | }, |
| 14633 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14634 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14635 | .write = spi_chip_write_256, |
| 14636 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 14637 | .voltage = {2700, 3600}, |
| 14638 | }, |
| 14639 | |
| 14640 | { |
| 14641 | .vendor = "Sharp", |
| 14642 | .name = "LH28F008BJT-BTLZ1", |
| 14643 | .bustype = BUS_PARALLEL, |
| 14644 | .manufacture_id = SHARP_ID, |
| 14645 | .model_id = SHARP_LH28F008BJ__PB, |
| 14646 | .total_size = 1024, |
| 14647 | .page_size = 64 * 1024, |
| 14648 | .tested = TEST_OK_PREW, |
| 14649 | .probe = probe_82802ab, |
| 14650 | .probe_timing = TIMING_ZERO, |
| 14651 | .block_erasers = |
| 14652 | { |
| 14653 | { |
| 14654 | .eraseblocks = { |
| 14655 | {8 * 1024, 8}, |
| 14656 | {64 * 1024, 15} |
| 14657 | }, |
| 14658 | .block_erase = erase_block_82802ab, |
| 14659 | }, { |
| 14660 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14661 | .block_erase = erase_sector_49lfxxxc, |
| 14662 | } |
| 14663 | }, |
| 14664 | .unlock = unlock_lh28f008bjt, |
| 14665 | .write = write_82802ab, |
| 14666 | .read = read_memmapped, |
| 14667 | .voltage = {2700, 3600}, |
| 14668 | }, |
| 14669 | |
| 14670 | { |
| 14671 | .vendor = "Sharp", |
| 14672 | .name = "LHF00L04", |
| 14673 | .bustype = BUS_FWH, /* A/A Mux */ |
| 14674 | .manufacture_id = SHARP_ID, |
| 14675 | .model_id = SHARP_LHF00L04, |
| 14676 | .total_size = 1024, |
| 14677 | .page_size = 64 * 1024, |
| 14678 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
| 14679 | .tested = TEST_UNTESTED, |
| 14680 | .probe = probe_82802ab, |
| 14681 | .probe_timing = TIMING_ZERO, |
| 14682 | .block_erasers = |
| 14683 | { |
| 14684 | { |
| 14685 | .eraseblocks = { |
| 14686 | {64 * 1024, 15}, |
| 14687 | {8 * 1024, 8} |
| 14688 | }, |
| 14689 | .block_erase = erase_block_82802ab, |
| 14690 | }, { |
| 14691 | .eraseblocks = { |
| 14692 | {1024 * 1024, 1} |
| 14693 | }, |
| 14694 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 14695 | }, |
| 14696 | }, |
| 14697 | .unlock = unlock_regspace2_uniform_64k, |
| 14698 | .write = write_82802ab, |
| 14699 | .read = read_memmapped, |
| 14700 | .voltage = {3000, 3600}, |
| 14701 | }, |
| 14702 | |
| 14703 | { |
| 14704 | .vendor = "Spansion", |
| 14705 | .name = "S25FL004A", |
| 14706 | .bustype = BUS_SPI, |
| 14707 | .manufacture_id = SPANSION_ID, |
| 14708 | .model_id = SPANSION_S25FL004A, |
| 14709 | .total_size = 512, |
| 14710 | .page_size = 256, |
| 14711 | .feature_bits = FEATURE_WRSR_WREN, |
| 14712 | .tested = TEST_UNTESTED, |
| 14713 | .probe = probe_spi_rdid, |
| 14714 | .probe_timing = TIMING_ZERO, |
| 14715 | .block_erasers = |
| 14716 | { |
| 14717 | { |
| 14718 | .eraseblocks = { {64 * 1024, 8} }, |
| 14719 | .block_erase = spi_block_erase_d8, |
| 14720 | }, { |
| 14721 | .eraseblocks = { {512 * 1024, 1} }, |
| 14722 | .block_erase = spi_block_erase_c7, |
| 14723 | } |
| 14724 | }, |
| 14725 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14726 | .unlock = spi_disable_blockprotect, |
| 14727 | .write = spi_chip_write_256, |
| 14728 | .read = spi_chip_read, |
| 14729 | .voltage = {2700, 3600}, |
| 14730 | }, |
| 14731 | |
| 14732 | { |
| 14733 | .vendor = "Spansion", |
| 14734 | .name = "S25FL008A", |
| 14735 | .bustype = BUS_SPI, |
| 14736 | .manufacture_id = SPANSION_ID, |
| 14737 | .model_id = SPANSION_S25FL008A, |
| 14738 | .total_size = 1024, |
| 14739 | .page_size = 256, |
| 14740 | .feature_bits = FEATURE_WRSR_WREN, |
| 14741 | .tested = TEST_OK_PRE, |
| 14742 | .probe = probe_spi_rdid, |
| 14743 | .probe_timing = TIMING_ZERO, |
| 14744 | .block_erasers = |
| 14745 | { |
| 14746 | { |
| 14747 | .eraseblocks = { {64 * 1024, 16} }, |
| 14748 | .block_erase = spi_block_erase_d8, |
| 14749 | }, { |
| 14750 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14751 | .block_erase = spi_block_erase_c7, |
| 14752 | } |
| 14753 | }, |
| 14754 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14755 | .unlock = spi_disable_blockprotect, |
| 14756 | .write = spi_chip_write_256, |
| 14757 | .read = spi_chip_read, |
| 14758 | .voltage = {2700, 3600}, |
| 14759 | }, |
| 14760 | |
| 14761 | { |
| 14762 | .vendor = "Spansion", |
| 14763 | .name = "S25FL016A", |
| 14764 | .bustype = BUS_SPI, |
| 14765 | .manufacture_id = SPANSION_ID, |
| 14766 | .model_id = SPANSION_S25FL016A, |
| 14767 | .total_size = 2048, |
| 14768 | .page_size = 256, |
| 14769 | .feature_bits = FEATURE_WRSR_WREN, |
| 14770 | .tested = TEST_OK_PREW, |
| 14771 | .probe = probe_spi_rdid, |
| 14772 | .probe_timing = TIMING_ZERO, |
| 14773 | .block_erasers = |
| 14774 | { |
| 14775 | { |
| 14776 | .eraseblocks = { {64 * 1024, 32} }, |
| 14777 | .block_erase = spi_block_erase_d8, |
| 14778 | }, { |
| 14779 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14780 | .block_erase = spi_block_erase_c7, |
| 14781 | } |
| 14782 | }, |
| 14783 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14784 | .unlock = spi_disable_blockprotect, |
| 14785 | .write = spi_chip_write_256, |
| 14786 | .read = spi_chip_read, |
| 14787 | .voltage = {2700, 3600}, |
| 14788 | }, |
| 14789 | |
| 14790 | { |
| 14791 | .vendor = "Spansion", |
| 14792 | .name = "S25FL032A/P", |
| 14793 | .bustype = BUS_SPI, |
| 14794 | .manufacture_id = SPANSION_ID, |
| 14795 | .model_id = SPANSION_S25FL032A, |
| 14796 | .total_size = 4096, |
| 14797 | .page_size = 256, |
| 14798 | .feature_bits = FEATURE_WRSR_WREN, |
| 14799 | .tested = TEST_OK_PREW, |
| 14800 | .probe = probe_spi_rdid, |
| 14801 | .probe_timing = TIMING_ZERO, |
| 14802 | .block_erasers = |
| 14803 | { |
| 14804 | { |
| 14805 | .eraseblocks = { {64 * 1024, 64} }, |
| 14806 | .block_erase = spi_block_erase_d8, |
| 14807 | }, { |
| 14808 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14809 | .block_erase = spi_block_erase_c7, |
| 14810 | } |
| 14811 | }, |
| 14812 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14813 | .unlock = spi_disable_blockprotect, |
| 14814 | .write = spi_chip_write_256, |
| 14815 | .read = spi_chip_read, |
| 14816 | .voltage = {2700, 3600}, |
| 14817 | }, |
| 14818 | |
| 14819 | { |
| 14820 | .vendor = "Spansion", |
| 14821 | .name = "S25FL064A/P", |
| 14822 | .bustype = BUS_SPI, |
| 14823 | .manufacture_id = SPANSION_ID, |
| 14824 | .model_id = SPANSION_S25FL064A, |
| 14825 | .total_size = 8192, |
| 14826 | .page_size = 256, |
| 14827 | .feature_bits = FEATURE_WRSR_WREN, |
| 14828 | .tested = TEST_OK_PREW, |
| 14829 | .probe = probe_spi_rdid, |
| 14830 | .probe_timing = TIMING_ZERO, |
| 14831 | .block_erasers = |
| 14832 | { |
| 14833 | { |
| 14834 | .eraseblocks = { {64 * 1024, 128} }, |
| 14835 | .block_erase = spi_block_erase_d8, |
| 14836 | }, { |
| 14837 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14838 | .block_erase = spi_block_erase_c7, |
| 14839 | } |
| 14840 | }, |
| 14841 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14842 | .unlock = spi_disable_blockprotect, |
| 14843 | .write = spi_chip_write_256, |
| 14844 | .read = spi_chip_read, |
| 14845 | .voltage = {2700, 3600}, |
| 14846 | }, |
| 14847 | |
| 14848 | { |
| 14849 | .vendor = "Spansion", |
| 14850 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 14851 | .bustype = BUS_SPI, |
| 14852 | .manufacture_id = SPANSION_ID, |
| 14853 | .model_id = SPANSION_S25FL216, |
| 14854 | .total_size = 2048, |
| 14855 | .page_size = 256, |
| 14856 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 14857 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14858 | .tested = TEST_UNTESTED, |
| 14859 | .probe = probe_spi_rdid, |
| 14860 | .probe_timing = TIMING_ZERO, |
| 14861 | .block_erasers = |
| 14862 | { |
| 14863 | { |
| 14864 | .eraseblocks = { {4 * 1024, 512} }, |
| 14865 | .block_erase = spi_block_erase_20, |
| 14866 | }, { |
| 14867 | .eraseblocks = { {64 * 1024, 32} }, |
| 14868 | .block_erase = spi_block_erase_d8, |
| 14869 | }, { |
| 14870 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 14871 | .block_erase = spi_block_erase_60, |
| 14872 | }, { |
| 14873 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 14874 | .block_erase = spi_block_erase_c7, |
| 14875 | } |
| 14876 | }, |
| 14877 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 14878 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 14879 | .write = spi_chip_write_256, |
| 14880 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 14881 | .voltage = {2700, 3600}, |
| 14882 | }, |
| 14883 | |
| 14884 | { |
| 14885 | .vendor = "Spansion", |
| 14886 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 14887 | .bustype = BUS_SPI, |
| 14888 | .manufacture_id = SPANSION_ID, |
| 14889 | .model_id = SPANSION_S25FL128, |
| 14890 | .total_size = 16384, |
| 14891 | .page_size = 512, |
| 14892 | /* supports 4B addressing */ |
| 14893 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 14894 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14895 | .tested = TEST_UNTESTED, |
| 14896 | .probe = probe_spi_rdid, |
| 14897 | .probe_timing = TIMING_ZERO, |
| 14898 | .block_erasers = |
| 14899 | { |
| 14900 | { |
| 14901 | .eraseblocks = { {256 * 1024, 64} }, |
| 14902 | .block_erase = spi_block_erase_d8, |
| 14903 | }, { |
| 14904 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 14905 | .block_erase = spi_block_erase_60, |
| 14906 | }, { |
| 14907 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 14908 | .block_erase = spi_block_erase_c7, |
| 14909 | } |
| 14910 | }, |
| 14911 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14912 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 14913 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14914 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14915 | .voltage = {2700, 3600}, |
| 14916 | }, |
| 14917 | |
| 14918 | { |
| 14919 | .vendor = "Spansion", |
| 14920 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 14921 | .bustype = BUS_SPI, |
| 14922 | .manufacture_id = SPANSION_ID, |
| 14923 | .model_id = SPANSION_S25FL128, |
| 14924 | .total_size = 16384, |
| 14925 | .page_size = 256, |
| 14926 | /* supports 4B addressing */ |
| 14927 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 14928 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14929 | .tested = TEST_OK_PREW, |
| 14930 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 14931 | .probe = probe_spi_rdid, |
| 14932 | .probe_timing = TIMING_ZERO, |
| 14933 | .block_erasers = |
| 14934 | { |
| 14935 | { |
| 14936 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 14937 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 14938 | * space. Trying to access an address outside these 4kB blocks does have no |
| 14939 | * effect on the memory contents, e.g. |
| 14940 | .eraseblocks = { |
| 14941 | {4 * 1024, 32}, |
| 14942 | {64 * 1024, 254} // inaccessible |
| 14943 | }, |
| 14944 | .block_erase = spi_block_erase_20, |
| 14945 | }, { */ |
| 14946 | .eraseblocks = { { 64 * 1024, 256} }, |
| 14947 | .block_erase = spi_block_erase_d8, |
| 14948 | }, { |
| 14949 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 14950 | .block_erase = spi_block_erase_60, |
| 14951 | }, { |
| 14952 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 14953 | .block_erase = spi_block_erase_c7, |
| 14954 | } |
| 14955 | }, |
| 14956 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14957 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 14958 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14959 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14960 | .voltage = {2700, 3600}, |
| 14961 | }, |
| 14962 | |
| 14963 | { |
| 14964 | .vendor = "Spansion", |
| 14965 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 14966 | .bustype = BUS_SPI, |
| 14967 | .manufacture_id = SPANSION_ID, |
| 14968 | .model_id = SPANSION_S25FL128, |
| 14969 | .total_size = 16384, |
| 14970 | .page_size = 256, |
| 14971 | .feature_bits = FEATURE_WRSR_WREN, |
| 14972 | .tested = TEST_OK_PREW, |
| 14973 | .probe = probe_spi_rdid, |
| 14974 | .probe_timing = TIMING_ZERO, |
| 14975 | .block_erasers = |
| 14976 | { |
| 14977 | { |
| 14978 | .eraseblocks = { {64 * 1024, 256} }, |
| 14979 | .block_erase = spi_block_erase_20, |
| 14980 | }, { |
| 14981 | .eraseblocks = { {64 * 1024, 256} }, |
| 14982 | .block_erase = spi_block_erase_d8, |
| 14983 | }, { |
| 14984 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 14985 | .block_erase = spi_block_erase_60, |
| 14986 | }, { |
| 14987 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 14988 | .block_erase = spi_block_erase_c7, |
| 14989 | } |
| 14990 | }, |
| 14991 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 14992 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 14993 | .write = spi_chip_write_256, |
| 14994 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14995 | .voltage = {2700, 3600}, |
| 14996 | }, |
| 14997 | |
| 14998 | { |
| 14999 | .vendor = "Spansion", |
| 15000 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 15001 | .bustype = BUS_SPI, |
| 15002 | .manufacture_id = SPANSION_ID, |
| 15003 | .model_id = SPANSION_S25FL128, |
| 15004 | .total_size = 16384, |
| 15005 | .page_size = 256, |
| 15006 | .feature_bits = FEATURE_WRSR_WREN, |
| 15007 | .tested = TEST_UNTESTED, |
| 15008 | .probe = probe_spi_rdid, |
| 15009 | .probe_timing = TIMING_ZERO, |
| 15010 | .block_erasers = |
| 15011 | { |
| 15012 | { |
| 15013 | .eraseblocks = { {256 * 1024, 64} }, |
| 15014 | .block_erase = spi_block_erase_d8, |
| 15015 | }, { |
| 15016 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15017 | .block_erase = spi_block_erase_c7, |
| 15018 | } |
| 15019 | }, |
| 15020 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15021 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15022 | .write = spi_chip_write_256, |
| 15023 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15024 | .voltage = {2700, 3600}, |
| 15025 | }, |
| 15026 | |
| 15027 | { |
| 15028 | .vendor = "Spansion", |
| 15029 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15030 | .bustype = BUS_SPI, |
| 15031 | .manufacture_id = SPANSION_ID, |
| 15032 | .model_id = SPANSION_S25FL128, |
| 15033 | .total_size = 16384, |
| 15034 | .page_size = 256, |
| 15035 | /* supports 4B addressing */ |
| 15036 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15037 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15038 | .tested = TEST_OK_PREW, |
| 15039 | .probe = probe_spi_rdid, |
| 15040 | .probe_timing = TIMING_ZERO, |
| 15041 | .block_erasers = |
| 15042 | { |
| 15043 | { |
| 15044 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15045 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 15046 | * have no effect on the memory contents, but sets a flag in the SR. |
| 15047 | .eraseblocks = { |
| 15048 | {4 * 1024, 32}, |
| 15049 | {64 * 1024, 254} // inaccessible |
| 15050 | }, |
| 15051 | .block_erase = spi_block_erase_20, |
| 15052 | }, { */ |
| 15053 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15054 | .block_erase = spi_block_erase_d8, |
| 15055 | }, { |
| 15056 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15057 | .block_erase = spi_block_erase_60, |
| 15058 | }, { |
| 15059 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15060 | .block_erase = spi_block_erase_c7, |
| 15061 | } |
| 15062 | }, |
| 15063 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15064 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15065 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15066 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15067 | .voltage = {2700, 3600}, |
| 15068 | }, |
| 15069 | |
| 15070 | { |
| 15071 | .vendor = "Spansion", |
| 15072 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 15073 | .bustype = BUS_SPI, |
| 15074 | .manufacture_id = SPANSION_ID, |
| 15075 | .model_id = SPANSION_S25FL128, |
| 15076 | .total_size = 16384, |
| 15077 | .page_size = 512, |
| 15078 | /* supports 4B addressing */ |
| 15079 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15080 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15081 | .tested = TEST_UNTESTED, |
| 15082 | .probe = probe_spi_rdid, |
| 15083 | .probe_timing = TIMING_ZERO, |
| 15084 | .block_erasers = |
| 15085 | { |
| 15086 | { |
| 15087 | .eraseblocks = { {256 * 1024, 64} }, |
| 15088 | .block_erase = spi_block_erase_d8, |
| 15089 | }, { |
| 15090 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15091 | .block_erase = spi_block_erase_60, |
| 15092 | }, { |
| 15093 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15094 | .block_erase = spi_block_erase_c7, |
| 15095 | } |
| 15096 | }, |
| 15097 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15098 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15099 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15100 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15101 | .voltage = {2700, 3600}, |
| 15102 | }, |
| 15103 | |
| 15104 | { |
| 15105 | .vendor = "Spansion", |
| 15106 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15107 | .bustype = BUS_SPI, |
| 15108 | .manufacture_id = SPANSION_ID, |
| 15109 | .model_id = SPANSION_S25FL128, |
| 15110 | .total_size = 16384, |
| 15111 | .page_size = 256, |
| 15112 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 15113 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15114 | .tested = TEST_OK_PREW, |
| 15115 | .probe = probe_spi_rdid, |
| 15116 | .probe_timing = TIMING_ZERO, |
| 15117 | .block_erasers = |
| 15118 | { |
| 15119 | { |
| 15120 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15121 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 15122 | * effect on the memory contents, but sets a flag in the SR. |
| 15123 | .eraseblocks = { |
| 15124 | {4 * 1024, 32}, |
| 15125 | {64 * 1024, 254} // inaccessible |
| 15126 | }, |
| 15127 | .block_erase = spi_block_erase_20, |
| 15128 | }, { */ |
| 15129 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 15130 | .eraseblocks = { |
| 15131 | {8 * 1024, 16}, |
| 15132 | {64 * 1024, 254} // inaccessible |
| 15133 | }, |
| 15134 | .block_erase = spi_block_erase_40, |
| 15135 | }, { */ |
| 15136 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15137 | .block_erase = spi_block_erase_d8, |
| 15138 | }, { |
| 15139 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15140 | .block_erase = spi_block_erase_60, |
| 15141 | }, { |
| 15142 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15143 | .block_erase = spi_block_erase_c7, |
| 15144 | } |
| 15145 | }, |
| 15146 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 15147 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15148 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15149 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15150 | .voltage = {2700, 3600}, |
| 15151 | }, |
| 15152 | |
| 15153 | { |
| 15154 | .vendor = "Spansion", |
| 15155 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 15156 | .bustype = BUS_SPI, |
| 15157 | .manufacture_id = SPANSION_ID, |
| 15158 | .model_id = SPANSION_S25FL128, |
| 15159 | .total_size = 16384, |
| 15160 | .page_size = 256, |
| 15161 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 15162 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15163 | .tested = TEST_UNTESTED, |
| 15164 | .probe = probe_spi_rdid, |
| 15165 | .probe_timing = TIMING_ZERO, |
| 15166 | .block_erasers = |
| 15167 | { |
| 15168 | { |
| 15169 | .eraseblocks = { {256 * 1024, 64} }, |
| 15170 | .block_erase = spi_block_erase_d8, |
| 15171 | }, { |
| 15172 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15173 | .block_erase = spi_block_erase_60, |
| 15174 | }, { |
| 15175 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15176 | .block_erase = spi_block_erase_c7, |
| 15177 | } |
| 15178 | }, |
| 15179 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 15180 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15181 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15182 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15183 | .voltage = {2700, 3600}, |
| 15184 | }, |
| 15185 | |
| 15186 | { |
| 15187 | .vendor = "Spansion", |
| 15188 | .name = "S25FL132K", |
| 15189 | .bustype = BUS_SPI, |
| 15190 | .manufacture_id = SPANSION_ID, |
| 15191 | .model_id = SPANSION_S25FL132K, |
| 15192 | .total_size = 4096, |
| 15193 | .page_size = 256, |
| 15194 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 15195 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15196 | .tested = TEST_UNTESTED, |
| 15197 | .probe = probe_spi_rdid, |
| 15198 | .probe_timing = TIMING_ZERO, |
| 15199 | .block_erasers = |
| 15200 | { |
| 15201 | { |
| 15202 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15203 | .block_erase = spi_block_erase_20, |
| 15204 | }, { |
| 15205 | .eraseblocks = { {64 * 1024, 64} }, |
| 15206 | .block_erase = spi_block_erase_d8, |
| 15207 | }, { |
| 15208 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 15209 | .block_erase = spi_block_erase_60, |
| 15210 | }, { |
| 15211 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 15212 | .block_erase = spi_block_erase_c7, |
| 15213 | } |
| 15214 | }, |
| 15215 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 15216 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15217 | .write = spi_chip_write_256, |
| 15218 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15219 | .voltage = {2700, 3600}, |
| 15220 | }, |
| 15221 | |
| 15222 | { |
| 15223 | .vendor = "Spansion", |
| 15224 | .name = "S25FL164K", |
| 15225 | .bustype = BUS_SPI, |
| 15226 | .manufacture_id = SPANSION_ID, |
| 15227 | .model_id = SPANSION_S25FL164K, |
| 15228 | .total_size = 8192, |
| 15229 | .page_size = 256, |
| 15230 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 15231 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15232 | .tested = TEST_OK_PREW, |
| 15233 | .probe = probe_spi_rdid, |
| 15234 | .probe_timing = TIMING_ZERO, |
| 15235 | .block_erasers = |
| 15236 | { |
| 15237 | { |
| 15238 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15239 | .block_erase = spi_block_erase_20, |
| 15240 | }, { |
| 15241 | .eraseblocks = { {64 * 1024, 128} }, |
| 15242 | .block_erase = spi_block_erase_d8, |
| 15243 | }, { |
| 15244 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 15245 | .block_erase = spi_block_erase_60, |
| 15246 | }, { |
| 15247 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 15248 | .block_erase = spi_block_erase_c7, |
| 15249 | } |
| 15250 | }, |
| 15251 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 15252 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15253 | .write = spi_chip_write_256, |
| 15254 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15255 | .voltage = {2700, 3600}, |
| 15256 | }, |
| 15257 | |
| 15258 | { |
| 15259 | .vendor = "Spansion", |
| 15260 | .name = "S25FL204K", |
| 15261 | .bustype = BUS_SPI, |
| 15262 | .manufacture_id = SPANSION_ID, |
| 15263 | .model_id = SPANSION_S25FL204, |
| 15264 | .total_size = 512, |
| 15265 | .page_size = 256, |
| 15266 | .feature_bits = FEATURE_WRSR_WREN, |
| 15267 | .tested = TEST_OK_PR, |
| 15268 | .probe = probe_spi_rdid, |
| 15269 | .probe_timing = TIMING_ZERO, |
| 15270 | .block_erasers = |
| 15271 | { |
| 15272 | { |
| 15273 | .eraseblocks = { {4 * 1024, 128} }, |
| 15274 | .block_erase = spi_block_erase_20, |
| 15275 | }, { |
| 15276 | .eraseblocks = { {64 * 1024, 8} }, |
| 15277 | .block_erase = spi_block_erase_d8, |
| 15278 | }, { |
| 15279 | .eraseblocks = { { 512 * 1024, 1} }, |
| 15280 | .block_erase = spi_block_erase_60, |
| 15281 | }, { |
| 15282 | .eraseblocks = { { 512 * 1024, 1} }, |
| 15283 | .block_erase = spi_block_erase_c7, |
| 15284 | } |
| 15285 | }, |
| 15286 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15287 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15288 | .write = spi_chip_write_256, |
| 15289 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15290 | .voltage = {2700, 3600}, |
| 15291 | }, |
| 15292 | |
| 15293 | { |
| 15294 | .vendor = "Spansion", |
| 15295 | .name = "S25FL208K", |
| 15296 | .bustype = BUS_SPI, |
| 15297 | .manufacture_id = SPANSION_ID, |
| 15298 | .model_id = SPANSION_S25FL208, |
| 15299 | .total_size = 1024, |
| 15300 | .page_size = 256, |
| 15301 | .feature_bits = FEATURE_WRSR_WREN, |
| 15302 | .tested = TEST_OK_PREW, |
| 15303 | .probe = probe_spi_rdid, |
| 15304 | .probe_timing = TIMING_ZERO, |
| 15305 | .block_erasers = |
| 15306 | { |
| 15307 | { |
| 15308 | .eraseblocks = { {4 * 1024, 256} }, |
| 15309 | .block_erase = spi_block_erase_20, |
| 15310 | }, { |
| 15311 | .eraseblocks = { {64 * 1024, 16} }, |
| 15312 | .block_erase = spi_block_erase_d8, |
| 15313 | }, { |
| 15314 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 15315 | .block_erase = spi_block_erase_60, |
| 15316 | }, { |
| 15317 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 15318 | .block_erase = spi_block_erase_c7, |
| 15319 | } |
| 15320 | }, |
| 15321 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15322 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15323 | .write = spi_chip_write_256, |
| 15324 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15325 | .voltage = {2700, 3600}, |
| 15326 | }, |
| 15327 | |
| 15328 | { |
| 15329 | .vendor = "Spansion", |
| 15330 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15331 | .bustype = BUS_SPI, |
| 15332 | .manufacture_id = SPANSION_ID, |
| 15333 | .model_id = SPANSION_S25FL256, |
| 15334 | .total_size = 32768, |
| 15335 | .page_size = 256, |
| 15336 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15337 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7, |
| 15338 | .tested = TEST_OK_PREW, |
| 15339 | .probe = probe_spi_rdid, |
| 15340 | .probe_timing = TIMING_ZERO, |
| 15341 | .block_erasers = |
| 15342 | { |
| 15343 | { |
| 15344 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15345 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 15346 | * have no effect on the memory contents, but sets a flag in the SR. |
| 15347 | .eraseblocks = { |
| 15348 | {4 * 1024, 32}, |
| 15349 | {64 * 1024, 254} // inaccessible |
| 15350 | }, |
| 15351 | .block_erase = spi_block_erase_20, |
| 15352 | }, { */ |
| 15353 | .eraseblocks = { { 64 * 1024, 512} }, |
| 15354 | .block_erase = spi_block_erase_dc, |
| 15355 | }, { |
| 15356 | .eraseblocks = { { 64 * 1024, 512} }, |
| 15357 | .block_erase = spi_block_erase_d8, |
| 15358 | }, { |
| 15359 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 15360 | .block_erase = spi_block_erase_60, |
| 15361 | }, { |
| 15362 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 15363 | .block_erase = spi_block_erase_c7, |
| 15364 | } |
| 15365 | }, |
| 15366 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15367 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15368 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15369 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15370 | .voltage = {2700, 3600}, |
| 15371 | .wrea_override = 0x17, |
| 15372 | }, |
| 15373 | |
| 15374 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15375 | .vendor = "SyncMOS/MoselVitelic", |
| 15376 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15377 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15378 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15379 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15380 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15381 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15382 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15383 | .tested = TEST_UNTESTED, |
| 15384 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15385 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15386 | .block_erasers = |
| 15387 | { |
| 15388 | { |
| 15389 | .eraseblocks = { {512, 256} }, |
| 15390 | .block_erase = erase_sector_jedec, |
| 15391 | }, { |
| 15392 | .eraseblocks = { {128 * 1024, 1} }, |
| 15393 | .block_erase = erase_chip_block_jedec, |
| 15394 | }, |
| 15395 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15396 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15397 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15398 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15399 | }, |
| 15400 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15401 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15402 | .vendor = "SyncMOS/MoselVitelic", |
| 15403 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15404 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15405 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15406 | .model_id = SM_MVC_29C51001T, |
| 15407 | .total_size = 128, |
| 15408 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15409 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15410 | .tested = TEST_UNTESTED, |
| 15411 | .probe = probe_jedec, |
| 15412 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 15413 | .block_erasers = |
| 15414 | { |
| 15415 | { |
| 15416 | .eraseblocks = { {512, 256} }, |
| 15417 | .block_erase = erase_sector_jedec, |
| 15418 | }, { |
| 15419 | .eraseblocks = { {128 * 1024, 1} }, |
| 15420 | .block_erase = erase_chip_block_jedec, |
| 15421 | }, |
| 15422 | }, |
| 15423 | .write = write_jedec_1, |
| 15424 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15425 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15426 | }, |
| 15427 | |
| 15428 | { |
| 15429 | .vendor = "SyncMOS/MoselVitelic", |
| 15430 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15431 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15432 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15433 | .model_id = SM_MVC_29C51002B, |
| 15434 | .total_size = 256, |
| 15435 | .page_size = 512, |
| 15436 | .feature_bits = FEATURE_EITHER_RESET, |
| 15437 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15438 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15439 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15440 | .block_erasers = |
| 15441 | { |
| 15442 | { |
| 15443 | .eraseblocks = { {512, 512} }, |
| 15444 | .block_erase = erase_sector_jedec, |
| 15445 | }, { |
| 15446 | .eraseblocks = { {256 * 1024, 1} }, |
| 15447 | .block_erase = erase_chip_block_jedec, |
| 15448 | }, |
| 15449 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15450 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15451 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15452 | }, |
| 15453 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15454 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15455 | .vendor = "SyncMOS/MoselVitelic", |
| 15456 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15457 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15458 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15459 | .model_id = SM_MVC_29C51002T, |
| 15460 | .total_size = 256, |
| 15461 | .page_size = 512, |
| 15462 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15463 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15464 | .probe = probe_jedec, |
| 15465 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 15466 | .block_erasers = |
| 15467 | { |
| 15468 | { |
| 15469 | .eraseblocks = { {512, 512} }, |
| 15470 | .block_erase = erase_sector_jedec, |
| 15471 | }, { |
| 15472 | .eraseblocks = { {256 * 1024, 1} }, |
| 15473 | .block_erase = erase_chip_block_jedec, |
| 15474 | }, |
| 15475 | }, |
| 15476 | .write = write_jedec_1, |
| 15477 | .read = read_memmapped, |
| 15478 | }, |
| 15479 | |
| 15480 | { |
| 15481 | .vendor = "SyncMOS/MoselVitelic", |
| 15482 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15483 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15484 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15485 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15486 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15487 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15488 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15489 | .tested = TEST_UNTESTED, |
| 15490 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15491 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15492 | .block_erasers = |
| 15493 | { |
| 15494 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15495 | .eraseblocks = { {1024, 512} }, |
| 15496 | .block_erase = erase_sector_jedec, |
| 15497 | }, { |
| 15498 | .eraseblocks = { {512 * 1024, 1} }, |
| 15499 | .block_erase = erase_chip_block_jedec, |
| 15500 | }, |
| 15501 | }, |
| 15502 | .write = write_jedec_1, |
| 15503 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15504 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15505 | }, |
| 15506 | |
| 15507 | { |
| 15508 | .vendor = "SyncMOS/MoselVitelic", |
| 15509 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15510 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15511 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15512 | .model_id = SM_MVC_29C51004T, |
| 15513 | .total_size = 512, |
| 15514 | .page_size = 1024, |
| 15515 | .feature_bits = FEATURE_EITHER_RESET, |
| 15516 | .tested = TEST_UNTESTED, |
| 15517 | .probe = probe_jedec, |
| 15518 | .probe_timing = TIMING_ZERO, |
| 15519 | .block_erasers = |
| 15520 | { |
| 15521 | { |
| 15522 | .eraseblocks = { {1024, 512} }, |
| 15523 | .block_erase = erase_sector_jedec, |
| 15524 | }, { |
| 15525 | .eraseblocks = { {512 * 1024, 1} }, |
| 15526 | .block_erase = erase_chip_block_jedec, |
| 15527 | }, |
| 15528 | }, |
| 15529 | .write = write_jedec_1, |
| 15530 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15531 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15532 | }, |
| 15533 | |
| 15534 | { |
| 15535 | .vendor = "SyncMOS/MoselVitelic", |
| 15536 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15537 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15538 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15539 | .model_id = SM_MVC_29C31004B, |
| 15540 | .total_size = 512, |
| 15541 | .page_size = 1024, |
| 15542 | .feature_bits = FEATURE_EITHER_RESET, |
| 15543 | .tested = TEST_UNTESTED, |
| 15544 | .probe = probe_jedec, |
| 15545 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 15546 | .block_erasers = |
| 15547 | { |
| 15548 | { |
| 15549 | .eraseblocks = { {1024, 512} }, |
| 15550 | .block_erase = erase_sector_jedec, |
| 15551 | }, { |
| 15552 | .eraseblocks = { {512 * 1024, 1} }, |
| 15553 | .block_erase = erase_chip_block_jedec, |
| 15554 | }, |
| 15555 | }, |
| 15556 | .write = write_jedec_1, |
| 15557 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15558 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15559 | }, |
| 15560 | |
| 15561 | { |
| 15562 | .vendor = "SyncMOS/MoselVitelic", |
| 15563 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15564 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15565 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15566 | .model_id = SM_MVC_29C31004T, |
| 15567 | .total_size = 512, |
| 15568 | .page_size = 1024, |
| 15569 | .feature_bits = FEATURE_EITHER_RESET, |
| 15570 | .tested = TEST_UNTESTED, |
| 15571 | .probe = probe_jedec, |
| 15572 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 15573 | .block_erasers = |
| 15574 | { |
| 15575 | { |
| 15576 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15577 | .block_erase = erase_sector_jedec, |
| 15578 | }, { |
| 15579 | .eraseblocks = { {512 * 1024, 1} }, |
| 15580 | .block_erase = erase_chip_block_jedec, |
| 15581 | }, |
| 15582 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15583 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15584 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15585 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15586 | }, |
| 15587 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15588 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 15589 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15590 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15591 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15592 | .manufacture_id = TI_OLD_ID, |
| 15593 | .model_id = TI_TMS29F002RB, |
| 15594 | .total_size = 256, |
| 15595 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15596 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15597 | .tested = TEST_UNTESTED, |
| 15598 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15599 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15600 | .block_erasers = |
| 15601 | { |
| 15602 | { |
| 15603 | .eraseblocks = { |
| 15604 | {16 * 1024, 1}, |
| 15605 | {8 * 1024, 2}, |
| 15606 | {32 * 1024, 1}, |
| 15607 | {64 * 1024, 3}, |
| 15608 | }, |
| 15609 | .block_erase = erase_sector_jedec, |
| 15610 | }, { |
| 15611 | .eraseblocks = { {256 * 1024, 1} }, |
| 15612 | .block_erase = erase_chip_block_jedec, |
| 15613 | }, |
| 15614 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15615 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15616 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15617 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15618 | }, |
| 15619 | |
| 15620 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 15621 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15622 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15623 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15624 | .manufacture_id = TI_OLD_ID, |
| 15625 | .model_id = TI_TMS29F002RT, |
| 15626 | .total_size = 256, |
| 15627 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15628 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15629 | .tested = TEST_UNTESTED, |
| 15630 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15631 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15632 | .block_erasers = |
| 15633 | { |
| 15634 | { |
| 15635 | .eraseblocks = { |
| 15636 | {64 * 1024, 3}, |
| 15637 | {32 * 1024, 1}, |
| 15638 | {8 * 1024, 2}, |
| 15639 | {16 * 1024, 1}, |
| 15640 | }, |
| 15641 | .block_erase = erase_sector_jedec, |
| 15642 | }, { |
| 15643 | .eraseblocks = { {256 * 1024, 1} }, |
| 15644 | .block_erase = erase_chip_block_jedec, |
| 15645 | }, |
| 15646 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15647 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15648 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15649 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15650 | }, |
| 15651 | |
| 15652 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15653 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15654 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 15655 | .bustype = BUS_SPI, |
| 15656 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15657 | .model_id = WINBOND_NEX_W25P16, |
| 15658 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 15659 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15660 | .feature_bits = FEATURE_WRSR_WREN, |
| 15661 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 15662 | .probe = probe_spi_rdid, |
| 15663 | .probe_timing = TIMING_ZERO, |
| 15664 | .block_erasers = |
| 15665 | { |
| 15666 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15667 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 15668 | .block_erase = spi_block_erase_d8, |
| 15669 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15670 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 15671 | .block_erase = spi_block_erase_c7, |
| 15672 | } |
| 15673 | }, |
| 15674 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15675 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15676 | .write = spi_chip_write_256, |
| 15677 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 15678 | .voltage = {2700, 3600}, |
| 15679 | }, |
| 15680 | |
| 15681 | { |
| 15682 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15683 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15684 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15685 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15686 | .model_id = WINBOND_NEX_W25P32, |
| 15687 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15688 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15689 | .feature_bits = FEATURE_WRSR_WREN, |
| 15690 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15691 | .probe = probe_spi_rdid, |
| 15692 | .probe_timing = TIMING_ZERO, |
| 15693 | .block_erasers = |
| 15694 | { |
| 15695 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15696 | .eraseblocks = { {64 * 1024, 64} }, |
| 15697 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15698 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15699 | .eraseblocks = { {4096 * 1024, 1} }, |
| 15700 | .block_erase = spi_block_erase_c7, |
| 15701 | } |
| 15702 | }, |
| 15703 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15704 | .unlock = spi_disable_blockprotect, |
| 15705 | .write = spi_chip_write_256, |
| 15706 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15707 | .voltage = {2700, 3600}, |
| 15708 | }, |
| 15709 | |
| 15710 | { |
| 15711 | .vendor = "Winbond", |
| 15712 | .name = "W25P80", |
| 15713 | .bustype = BUS_SPI, |
| 15714 | .manufacture_id = WINBOND_NEX_ID, |
| 15715 | .model_id = WINBOND_NEX_W25P80, |
| 15716 | .total_size = 1024, |
| 15717 | .page_size = 256, |
| 15718 | .feature_bits = FEATURE_WRSR_WREN, |
| 15719 | .tested = TEST_UNTESTED, |
| 15720 | .probe = probe_spi_rdid, |
| 15721 | .probe_timing = TIMING_ZERO, |
| 15722 | .block_erasers = |
| 15723 | { |
| 15724 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15725 | .eraseblocks = { {64 * 1024, 16} }, |
| 15726 | .block_erase = spi_block_erase_d8, |
| 15727 | }, { |
| 15728 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15729 | .block_erase = spi_block_erase_c7, |
| 15730 | } |
| 15731 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15732 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15733 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15734 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15735 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15736 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 15737 | }, |
| 15738 | |
| 15739 | { |
| 15740 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15741 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15742 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15743 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15744 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15745 | .total_size = 16384, |
| 15746 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15747 | /* supports SFDP */ |
| 15748 | /* 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] | 15749 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15750 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15751 | .probe = probe_spi_rdid, |
| 15752 | .probe_timing = TIMING_ZERO, |
| 15753 | .block_erasers = |
| 15754 | { |
| 15755 | { |
| 15756 | .eraseblocks = { {4 * 1024, 4096} }, |
| 15757 | .block_erase = spi_block_erase_20, |
| 15758 | }, { |
| 15759 | .eraseblocks = { {32 * 1024, 512} }, |
| 15760 | .block_erase = spi_block_erase_52, |
| 15761 | }, { |
| 15762 | .eraseblocks = { {64 * 1024, 256} }, |
| 15763 | .block_erase = spi_block_erase_d8, |
| 15764 | }, { |
| 15765 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15766 | .block_erase = spi_block_erase_60, |
| 15767 | }, { |
| 15768 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15769 | .block_erase = spi_block_erase_c7, |
| 15770 | } |
| 15771 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15772 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15773 | .unlock = spi_disable_blockprotect, |
| 15774 | .write = spi_chip_write_256, |
| 15775 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15776 | .voltage = {2700, 3600}, |
| 15777 | }, |
| 15778 | |
| 15779 | { |
| 15780 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 15781 | .name = "W25Q128.V..M", |
| 15782 | .bustype = BUS_SPI, |
| 15783 | .manufacture_id = WINBOND_NEX_ID, |
| 15784 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 15785 | .total_size = 16384, |
| 15786 | .page_size = 256, |
| 15787 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15788 | .tested = TEST_OK_PREW, |
| 15789 | .probe = probe_spi_rdid, |
| 15790 | .probe_timing = TIMING_ZERO, |
| 15791 | .block_erasers = |
| 15792 | { |
| 15793 | { |
| 15794 | .eraseblocks = { {4 * 1024, 4096} }, |
| 15795 | .block_erase = spi_block_erase_20, |
| 15796 | }, { |
| 15797 | .eraseblocks = { {32 * 1024, 512} }, |
| 15798 | .block_erase = spi_block_erase_52, |
| 15799 | }, { |
| 15800 | .eraseblocks = { {64 * 1024, 256} }, |
| 15801 | .block_erase = spi_block_erase_d8, |
| 15802 | }, { |
| 15803 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15804 | .block_erase = spi_block_erase_60, |
| 15805 | }, { |
| 15806 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15807 | .block_erase = spi_block_erase_c7, |
| 15808 | } |
| 15809 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 15810 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 15811 | .unlock = spi_disable_blockprotect, |
| 15812 | .write = spi_chip_write_256, |
| 15813 | .read = spi_chip_read, |
| 15814 | .voltage = {2700, 3600}, |
| 15815 | }, |
| 15816 | |
| 15817 | { |
| 15818 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15819 | .name = "W25Q128.W", |
| 15820 | .bustype = BUS_SPI, |
| 15821 | .manufacture_id = WINBOND_NEX_ID, |
| 15822 | .model_id = WINBOND_NEX_W25Q128_W, |
| 15823 | .total_size = 16384, |
| 15824 | .page_size = 256, |
| 15825 | /* supports SFDP */ |
| 15826 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15827 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15828 | .tested = TEST_OK_PREW, |
| 15829 | .probe = probe_spi_rdid, |
| 15830 | .probe_timing = TIMING_ZERO, |
| 15831 | .block_erasers = |
| 15832 | { |
| 15833 | { |
| 15834 | .eraseblocks = { {4 * 1024, 4096} }, |
| 15835 | .block_erase = spi_block_erase_20, |
| 15836 | }, { |
| 15837 | .eraseblocks = { {32 * 1024, 512} }, |
| 15838 | .block_erase = spi_block_erase_52, |
| 15839 | }, { |
| 15840 | .eraseblocks = { {64 * 1024, 256} }, |
| 15841 | .block_erase = spi_block_erase_d8, |
| 15842 | }, { |
| 15843 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15844 | .block_erase = spi_block_erase_60, |
| 15845 | }, { |
| 15846 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15847 | .block_erase = spi_block_erase_c7, |
| 15848 | } |
| 15849 | }, |
| 15850 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15851 | .unlock = spi_disable_blockprotect, |
| 15852 | .write = spi_chip_write_256, |
| 15853 | .read = spi_chip_read, |
| 15854 | .voltage = {1650, 1950}, |
| 15855 | }, |
| 15856 | |
| 15857 | { |
| 15858 | .vendor = "Winbond", |
| 15859 | .name = "W25Q16.V", |
| 15860 | .bustype = BUS_SPI, |
| 15861 | .manufacture_id = WINBOND_NEX_ID, |
| 15862 | .model_id = WINBOND_NEX_W25Q16_V, |
| 15863 | .total_size = 2048, |
| 15864 | .page_size = 256, |
| 15865 | /* supports SFDP */ |
| 15866 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15867 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15868 | .tested = TEST_OK_PREW, |
| 15869 | .probe = probe_spi_rdid, |
| 15870 | .probe_timing = TIMING_ZERO, |
| 15871 | .block_erasers = |
| 15872 | { |
| 15873 | { |
| 15874 | .eraseblocks = { {4 * 1024, 512} }, |
| 15875 | .block_erase = spi_block_erase_20, |
| 15876 | }, { |
| 15877 | .eraseblocks = { {32 * 1024, 64} }, |
| 15878 | .block_erase = spi_block_erase_52, |
| 15879 | }, { |
| 15880 | .eraseblocks = { {64 * 1024, 32} }, |
| 15881 | .block_erase = spi_block_erase_d8, |
| 15882 | }, { |
| 15883 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15884 | .block_erase = spi_block_erase_60, |
| 15885 | }, { |
| 15886 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15887 | .block_erase = spi_block_erase_c7, |
| 15888 | } |
| 15889 | }, |
| 15890 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15891 | .unlock = spi_disable_blockprotect, |
| 15892 | .write = spi_chip_write_256, |
| 15893 | .read = spi_chip_read, |
| 15894 | .voltage = {2700, 3600}, |
| 15895 | }, |
| 15896 | |
| 15897 | { |
| 15898 | .vendor = "Winbond", |
| 15899 | .name = "W25Q16.W", |
| 15900 | .bustype = BUS_SPI, |
| 15901 | .manufacture_id = WINBOND_NEX_ID, |
| 15902 | .model_id = WINBOND_NEX_W25Q16_W, |
| 15903 | .total_size = 2048, |
| 15904 | .page_size = 256, |
| 15905 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15906 | /* QPI enable 0x38, disable 0xFF */ |
| 15907 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15908 | .tested = TEST_UNTESTED, |
| 15909 | .probe = probe_spi_rdid, |
| 15910 | .probe_timing = TIMING_ZERO, |
| 15911 | .block_erasers = |
| 15912 | { |
| 15913 | { |
| 15914 | .eraseblocks = { {4 * 1024, 512} }, |
| 15915 | .block_erase = spi_block_erase_20, |
| 15916 | }, { |
| 15917 | .eraseblocks = { {32 * 1024, 64} }, |
| 15918 | .block_erase = spi_block_erase_52, |
| 15919 | }, { |
| 15920 | .eraseblocks = { {64 * 1024, 32} }, |
| 15921 | .block_erase = spi_block_erase_d8, |
| 15922 | }, { |
| 15923 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15924 | .block_erase = spi_block_erase_60, |
| 15925 | }, { |
| 15926 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15927 | .block_erase = spi_block_erase_c7, |
| 15928 | } |
| 15929 | }, |
| 15930 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15931 | .unlock = spi_disable_blockprotect, |
| 15932 | .write = spi_chip_write_256, |
| 15933 | .read = spi_chip_read, |
| 15934 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15935 | }, |
| 15936 | |
| 15937 | { |
| 15938 | .vendor = "Winbond", |
| 15939 | .name = "W25Q20.W", |
| 15940 | .bustype = BUS_SPI, |
| 15941 | .manufacture_id = WINBOND_NEX_ID, |
| 15942 | .model_id = WINBOND_NEX_W25Q20_W, |
| 15943 | .total_size = 256, |
| 15944 | .page_size = 256, |
| 15945 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15946 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15947 | .tested = TEST_UNTESTED, |
| 15948 | .probe = probe_spi_rdid, |
| 15949 | .probe_timing = TIMING_ZERO, |
| 15950 | .block_erasers = |
| 15951 | { |
| 15952 | { |
| 15953 | .eraseblocks = { {4 * 1024, 64} }, |
| 15954 | .block_erase = spi_block_erase_20, |
| 15955 | }, { |
| 15956 | .eraseblocks = { {32 * 1024, 8} }, |
| 15957 | .block_erase = spi_block_erase_52, |
| 15958 | }, { |
| 15959 | .eraseblocks = { {64 * 1024, 4} }, |
| 15960 | .block_erase = spi_block_erase_d8, |
| 15961 | }, { |
| 15962 | .eraseblocks = { {256 * 1024, 1} }, |
| 15963 | .block_erase = spi_block_erase_60, |
| 15964 | }, { |
| 15965 | .eraseblocks = { {256 * 1024, 1} }, |
| 15966 | .block_erase = spi_block_erase_c7, |
| 15967 | } |
| 15968 | }, |
| 15969 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15970 | .unlock = spi_disable_blockprotect, |
| 15971 | .write = spi_chip_write_256, |
| 15972 | .read = spi_chip_read, |
| 15973 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15974 | }, |
| 15975 | |
| 15976 | { |
| 15977 | .vendor = "Winbond", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 15978 | .name = "W25Q256.V", |
| 15979 | .bustype = BUS_SPI, |
| 15980 | .manufacture_id = WINBOND_NEX_ID, |
| 15981 | .model_id = WINBOND_NEX_W25Q256_V, |
| 15982 | .total_size = 32768, |
| 15983 | .page_size = 256, |
| 15984 | /* supports SFDP */ |
| 15985 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15986 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 15987 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 15988 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 15989 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 15990 | .probe = probe_spi_rdid, |
| 15991 | .probe_timing = TIMING_ZERO, |
| 15992 | .block_erasers = |
| 15993 | { |
| 15994 | { |
| 15995 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 15996 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 15997 | }, { |
| 15998 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 15999 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16000 | }, { |
| 16001 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16002 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16003 | }, { |
| 16004 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16005 | .block_erase = spi_block_erase_60, |
| 16006 | }, { |
| 16007 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16008 | .block_erase = spi_block_erase_c7, |
| 16009 | } |
| 16010 | }, |
| 16011 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16012 | .unlock = spi_disable_blockprotect, |
| 16013 | .write = spi_chip_write_256, |
| 16014 | .read = spi_chip_read, |
| 16015 | .voltage = {2700, 3600}, |
| 16016 | }, |
| 16017 | |
| 16018 | { |
| 16019 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 16020 | .name = "W25Q256JV_M", |
| 16021 | .bustype = BUS_SPI, |
| 16022 | .manufacture_id = WINBOND_NEX_ID, |
| 16023 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 16024 | .total_size = 32768, |
| 16025 | .page_size = 256, |
| 16026 | /* supports SFDP */ |
| 16027 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16028 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 16029 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 16030 | .tested = TEST_OK_PREW, |
| 16031 | .probe = probe_spi_rdid, |
| 16032 | .probe_timing = TIMING_ZERO, |
| 16033 | .block_erasers = |
| 16034 | { |
| 16035 | { |
| 16036 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16037 | .block_erase = spi_block_erase_21, |
| 16038 | }, { |
| 16039 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16040 | .block_erase = spi_block_erase_20, |
| 16041 | }, { |
| 16042 | .eraseblocks = { {32 * 1024, 1024} }, |
| 16043 | .block_erase = spi_block_erase_52, |
| 16044 | }, { |
| 16045 | .eraseblocks = { {64 * 1024, 512} }, |
| 16046 | .block_erase = spi_block_erase_dc, |
| 16047 | }, { |
| 16048 | .eraseblocks = { {64 * 1024, 512} }, |
| 16049 | .block_erase = spi_block_erase_d8, |
| 16050 | }, { |
| 16051 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16052 | .block_erase = spi_block_erase_60, |
| 16053 | }, { |
| 16054 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16055 | .block_erase = spi_block_erase_c7, |
| 16056 | } |
| 16057 | }, |
| 16058 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16059 | .unlock = spi_disable_blockprotect, |
| 16060 | .write = spi_chip_write_256, |
| 16061 | .read = spi_chip_read, |
| 16062 | .voltage = {2700, 3600}, |
| 16063 | }, |
| 16064 | |
| 16065 | { |
| 16066 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16067 | .name = "W25Q32.V", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16068 | .bustype = BUS_SPI, |
| 16069 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16070 | .model_id = WINBOND_NEX_W25Q32_V, |
| 16071 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16072 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16073 | /* supports SFDP */ |
| 16074 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16075 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16076 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16077 | .probe = probe_spi_rdid, |
| 16078 | .probe_timing = TIMING_ZERO, |
| 16079 | .block_erasers = |
| 16080 | { |
| 16081 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16082 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16083 | .block_erase = spi_block_erase_20, |
| 16084 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16085 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16086 | .block_erase = spi_block_erase_52, |
| 16087 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16088 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16089 | .block_erase = spi_block_erase_d8, |
| 16090 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16091 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16092 | .block_erase = spi_block_erase_60, |
| 16093 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16094 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16095 | .block_erase = spi_block_erase_c7, |
| 16096 | } |
| 16097 | }, |
| 16098 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16099 | .unlock = spi_disable_blockprotect, |
| 16100 | .write = spi_chip_write_256, |
| 16101 | .read = spi_chip_read, |
| 16102 | .voltage = {2700, 3600}, |
| 16103 | }, |
| 16104 | |
| 16105 | { |
| 16106 | .vendor = "Winbond", |
| 16107 | .name = "W25Q32.W", |
| 16108 | .bustype = BUS_SPI, |
| 16109 | .manufacture_id = WINBOND_NEX_ID, |
| 16110 | .model_id = WINBOND_NEX_W25Q32_W, |
| 16111 | .total_size = 4096, |
| 16112 | .page_size = 256, |
| 16113 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16114 | /* QPI enable 0x38, disable 0xFF */ |
| 16115 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16116 | .tested = TEST_OK_PREW, |
| 16117 | .probe = probe_spi_rdid, |
| 16118 | .probe_timing = TIMING_ZERO, |
| 16119 | .block_erasers = |
| 16120 | { |
| 16121 | { |
| 16122 | .eraseblocks = { {4 * 1024, 1024} }, |
| 16123 | .block_erase = spi_block_erase_20, |
| 16124 | }, { |
| 16125 | .eraseblocks = { {32 * 1024, 128} }, |
| 16126 | .block_erase = spi_block_erase_52, |
| 16127 | }, { |
| 16128 | .eraseblocks = { {64 * 1024, 64} }, |
| 16129 | .block_erase = spi_block_erase_d8, |
| 16130 | }, { |
| 16131 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16132 | .block_erase = spi_block_erase_60, |
| 16133 | }, { |
| 16134 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16135 | .block_erase = spi_block_erase_c7, |
| 16136 | } |
| 16137 | }, |
| 16138 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16139 | .unlock = spi_disable_blockprotect, |
| 16140 | .write = spi_chip_write_256, |
| 16141 | .read = spi_chip_read, |
| 16142 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16143 | }, |
| 16144 | |
| 16145 | { |
| 16146 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16147 | .name = "W25Q40.V", |
| 16148 | .bustype = BUS_SPI, |
| 16149 | .manufacture_id = WINBOND_NEX_ID, |
| 16150 | .model_id = WINBOND_NEX_W25Q40_V, |
| 16151 | .total_size = 512, |
| 16152 | .page_size = 256, |
| 16153 | /* supports SFDP */ |
| 16154 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16155 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16156 | .tested = TEST_OK_PREW, |
| 16157 | .probe = probe_spi_rdid, |
| 16158 | .probe_timing = TIMING_ZERO, |
| 16159 | .block_erasers = |
| 16160 | { |
| 16161 | { |
| 16162 | .eraseblocks = { {4 * 1024, 128} }, |
| 16163 | .block_erase = spi_block_erase_20, |
| 16164 | }, { |
| 16165 | .eraseblocks = { {32 * 1024, 16} }, |
| 16166 | .block_erase = spi_block_erase_52, |
| 16167 | }, { |
| 16168 | .eraseblocks = { {64 * 1024, 8} }, |
| 16169 | .block_erase = spi_block_erase_d8, |
| 16170 | }, { |
| 16171 | .eraseblocks = { {512 * 1024, 1} }, |
| 16172 | .block_erase = spi_block_erase_60, |
| 16173 | }, { |
| 16174 | .eraseblocks = { {512 * 1024, 1} }, |
| 16175 | .block_erase = spi_block_erase_c7, |
| 16176 | } |
| 16177 | }, |
| 16178 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16179 | .unlock = spi_disable_blockprotect, |
| 16180 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16181 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16182 | .voltage = {2700, 3600}, |
| 16183 | }, |
| 16184 | |
| 16185 | { |
| 16186 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16187 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16188 | .bustype = BUS_SPI, |
| 16189 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16190 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16191 | .total_size = 512, |
| 16192 | .page_size = 256, |
| 16193 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16194 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 16195 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16196 | .probe = probe_spi_rdid, |
| 16197 | .probe_timing = TIMING_ZERO, |
| 16198 | .block_erasers = |
| 16199 | { |
| 16200 | { |
| 16201 | .eraseblocks = { {4 * 1024, 128} }, |
| 16202 | .block_erase = spi_block_erase_20, |
| 16203 | }, { |
| 16204 | .eraseblocks = { {32 * 1024, 16} }, |
| 16205 | .block_erase = spi_block_erase_52, |
| 16206 | }, { |
| 16207 | .eraseblocks = { {64 * 1024, 8} }, |
| 16208 | .block_erase = spi_block_erase_d8, |
| 16209 | }, { |
| 16210 | .eraseblocks = { {512 * 1024, 1} }, |
| 16211 | .block_erase = spi_block_erase_60, |
| 16212 | }, { |
| 16213 | .eraseblocks = { {512 * 1024, 1} }, |
| 16214 | .block_erase = spi_block_erase_c7, |
| 16215 | } |
| 16216 | }, |
| 16217 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16218 | .unlock = spi_disable_blockprotect, |
| 16219 | .write = spi_chip_write_256, |
| 16220 | .read = spi_chip_read, |
| 16221 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16222 | }, |
| 16223 | |
| 16224 | { |
| 16225 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16226 | .name = "W25Q40EW", |
| 16227 | .bustype = BUS_SPI, |
| 16228 | .manufacture_id = WINBOND_NEX_ID, |
| 16229 | .model_id = WINBOND_NEX_W25Q40EW, |
| 16230 | .total_size = 512, |
| 16231 | .page_size = 256, |
| 16232 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16233 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 16234 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16235 | .probe = probe_spi_rdid, |
| 16236 | .probe_timing = TIMING_ZERO, |
| 16237 | .block_erasers = |
| 16238 | { |
| 16239 | { |
| 16240 | .eraseblocks = { {4 * 1024, 128} }, |
| 16241 | .block_erase = spi_block_erase_20, |
| 16242 | }, { |
| 16243 | .eraseblocks = { {32 * 1024, 16} }, |
| 16244 | .block_erase = spi_block_erase_52, |
| 16245 | }, { |
| 16246 | .eraseblocks = { {64 * 1024, 8} }, |
| 16247 | .block_erase = spi_block_erase_d8, |
| 16248 | }, { |
| 16249 | .eraseblocks = { {512 * 1024, 1} }, |
| 16250 | .block_erase = spi_block_erase_60, |
| 16251 | }, { |
| 16252 | .eraseblocks = { {512 * 1024, 1} }, |
| 16253 | .block_erase = spi_block_erase_c7, |
| 16254 | } |
| 16255 | }, |
| 16256 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16257 | .unlock = spi_disable_blockprotect, |
| 16258 | .write = spi_chip_write_256, |
| 16259 | .read = spi_chip_read, |
| 16260 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16261 | }, |
| 16262 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16263 | { |
| 16264 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16265 | .name = "W25Q64.V", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16266 | .bustype = BUS_SPI, |
| 16267 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16268 | .model_id = WINBOND_NEX_W25Q64_V, |
| 16269 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16270 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16271 | /* supports SFDP */ |
| 16272 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16273 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16274 | .tested = TEST_OK_PREW, |
| 16275 | .probe = probe_spi_rdid, |
| 16276 | .probe_timing = TIMING_ZERO, |
| 16277 | .block_erasers = |
| 16278 | { |
| 16279 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16280 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16281 | .block_erase = spi_block_erase_20, |
| 16282 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16283 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16284 | .block_erase = spi_block_erase_52, |
| 16285 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16286 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16287 | .block_erase = spi_block_erase_d8, |
| 16288 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16289 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16290 | .block_erase = spi_block_erase_60, |
| 16291 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16292 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16293 | .block_erase = spi_block_erase_c7, |
| 16294 | } |
| 16295 | }, |
| 16296 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16297 | .unlock = spi_disable_blockprotect, |
| 16298 | .write = spi_chip_write_256, |
| 16299 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16300 | .voltage = {2700, 3600}, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16301 | }, |
| 16302 | |
| 16303 | { |
| 16304 | .vendor = "Winbond", |
| 16305 | .name = "W25Q64.W", |
| 16306 | .bustype = BUS_SPI, |
| 16307 | .manufacture_id = WINBOND_NEX_ID, |
| 16308 | .model_id = WINBOND_NEX_W25Q64_W, |
| 16309 | .total_size = 8192, |
| 16310 | .page_size = 256, |
| 16311 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16312 | /* QPI enable 0x38, disable 0xFF */ |
| 16313 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16314 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16315 | .probe = probe_spi_rdid, |
| 16316 | .probe_timing = TIMING_ZERO, |
| 16317 | .block_erasers = |
| 16318 | { |
| 16319 | { |
| 16320 | .eraseblocks = { {4 * 1024, 2048} }, |
| 16321 | .block_erase = spi_block_erase_20, |
| 16322 | }, { |
| 16323 | .eraseblocks = { {32 * 1024, 256} }, |
| 16324 | .block_erase = spi_block_erase_52, |
| 16325 | }, { |
| 16326 | .eraseblocks = { {64 * 1024, 128} }, |
| 16327 | .block_erase = spi_block_erase_d8, |
| 16328 | }, { |
| 16329 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16330 | .block_erase = spi_block_erase_60, |
| 16331 | }, { |
| 16332 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16333 | .block_erase = spi_block_erase_c7, |
| 16334 | } |
| 16335 | }, |
| 16336 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16337 | .unlock = spi_disable_blockprotect, |
| 16338 | .write = spi_chip_write_256, |
| 16339 | .read = spi_chip_read, |
| 16340 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16341 | }, |
| 16342 | |
| 16343 | { |
| 16344 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16345 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16346 | .bustype = BUS_SPI, |
| 16347 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16348 | .model_id = WINBOND_NEX_W25Q80_V, |
| 16349 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16350 | .page_size = 256, |
| 16351 | /* supports SFDP */ |
| 16352 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16353 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 16354 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16355 | .probe = probe_spi_rdid, |
| 16356 | .probe_timing = TIMING_ZERO, |
| 16357 | .block_erasers = |
| 16358 | { |
| 16359 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16360 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16361 | .block_erase = spi_block_erase_20, |
| 16362 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16363 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16364 | .block_erase = spi_block_erase_52, |
| 16365 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16366 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16367 | .block_erase = spi_block_erase_d8, |
| 16368 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16369 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16370 | .block_erase = spi_block_erase_60, |
| 16371 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16372 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16373 | .block_erase = spi_block_erase_c7, |
| 16374 | } |
| 16375 | }, |
| 16376 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16377 | .unlock = spi_disable_blockprotect, |
| 16378 | .write = spi_chip_write_256, |
| 16379 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16380 | .voltage = {2700, 3600}, |
| 16381 | }, |
| 16382 | |
| 16383 | { |
| 16384 | .vendor = "Winbond", |
| 16385 | .name = "W25Q80BW", |
| 16386 | .bustype = BUS_SPI, |
| 16387 | .manufacture_id = WINBOND_NEX_ID, |
| 16388 | .model_id = WINBOND_NEX_W25Q80BW, |
| 16389 | .total_size = 1024, |
| 16390 | .page_size = 256, |
| 16391 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16392 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16393 | .tested = TEST_OK_PREW, |
| 16394 | .probe = probe_spi_rdid, |
| 16395 | .probe_timing = TIMING_ZERO, |
| 16396 | .block_erasers = |
| 16397 | { |
| 16398 | { |
| 16399 | .eraseblocks = { {4 * 1024, 256} }, |
| 16400 | .block_erase = spi_block_erase_20, |
| 16401 | }, { |
| 16402 | .eraseblocks = { {32 * 1024, 32} }, |
| 16403 | .block_erase = spi_block_erase_52, |
| 16404 | }, { |
| 16405 | .eraseblocks = { {64 * 1024, 16} }, |
| 16406 | .block_erase = spi_block_erase_d8, |
| 16407 | }, { |
| 16408 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 16409 | .block_erase = spi_block_erase_60, |
| 16410 | }, { |
| 16411 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 16412 | .block_erase = spi_block_erase_c7, |
| 16413 | } |
| 16414 | }, |
| 16415 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16416 | .unlock = spi_disable_blockprotect, |
| 16417 | .write = spi_chip_write_256, |
| 16418 | .read = spi_chip_read, |
| 16419 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16420 | }, |
| 16421 | |
| 16422 | { |
| 16423 | .vendor = "Winbond", |
| 16424 | .name = "W25Q80EW", |
| 16425 | .bustype = BUS_SPI, |
| 16426 | .manufacture_id = WINBOND_NEX_ID, |
| 16427 | .model_id = WINBOND_NEX_W25Q80EW, |
| 16428 | .total_size = 1024, |
| 16429 | .page_size = 256, |
| 16430 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16431 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16432 | .tested = TEST_OK_PREW, |
| 16433 | .probe = probe_spi_rdid, |
| 16434 | .probe_timing = TIMING_ZERO, |
| 16435 | .block_erasers = |
| 16436 | { |
| 16437 | { |
| 16438 | .eraseblocks = { {4 * 1024, 256} }, |
| 16439 | .block_erase = spi_block_erase_20, |
| 16440 | }, { |
| 16441 | .eraseblocks = { {32 * 1024, 32} }, |
| 16442 | .block_erase = spi_block_erase_52, |
| 16443 | }, { |
| 16444 | .eraseblocks = { {64 * 1024, 16} }, |
| 16445 | .block_erase = spi_block_erase_d8, |
| 16446 | }, { |
| 16447 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 16448 | .block_erase = spi_block_erase_60, |
| 16449 | }, { |
| 16450 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 16451 | .block_erase = spi_block_erase_c7, |
| 16452 | } |
| 16453 | }, |
| 16454 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16455 | .unlock = spi_disable_blockprotect, |
| 16456 | .write = spi_chip_write_256, |
| 16457 | .read = spi_chip_read, |
| 16458 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16459 | }, |
| 16460 | |
| 16461 | { |
| 16462 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16463 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16464 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16465 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16466 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16467 | .total_size = 128, |
| 16468 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 16469 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 16470 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16471 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16472 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16473 | .block_erasers = |
| 16474 | { |
| 16475 | { |
| 16476 | .eraseblocks = { {4 * 1024, 32} }, |
| 16477 | .block_erase = spi_block_erase_20, |
| 16478 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16479 | .eraseblocks = { {64 * 1024, 2} }, |
| 16480 | .block_erase = spi_block_erase_d8, |
| 16481 | }, { |
| 16482 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16483 | .block_erase = spi_block_erase_c7, |
| 16484 | } |
| 16485 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16486 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 16487 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 16488 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16489 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16490 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16491 | }, |
| 16492 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16493 | { |
| 16494 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16495 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16496 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 16497 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16498 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 16499 | .total_size = 2048, |
| 16500 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 16501 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 16502 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 16503 | .probe = probe_spi_rdid, |
| 16504 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16505 | .block_erasers = |
| 16506 | { |
| 16507 | { |
| 16508 | .eraseblocks = { {4 * 1024, 512} }, |
| 16509 | .block_erase = spi_block_erase_20, |
| 16510 | }, { |
| 16511 | .eraseblocks = { {32 * 1024, 64} }, |
| 16512 | .block_erase = spi_block_erase_52, |
| 16513 | }, { |
| 16514 | .eraseblocks = { {64 * 1024, 32} }, |
| 16515 | .block_erase = spi_block_erase_d8, |
| 16516 | }, { |
| 16517 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16518 | .block_erase = spi_block_erase_60, |
| 16519 | }, { |
| 16520 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16521 | .block_erase = spi_block_erase_c7, |
| 16522 | } |
| 16523 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16524 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 16525 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 16526 | .write = spi_chip_write_256, |
| 16527 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16528 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 16529 | }, |
| 16530 | |
| 16531 | { |
| 16532 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16533 | .name = "W25X20", |
| 16534 | .bustype = BUS_SPI, |
| 16535 | .manufacture_id = WINBOND_NEX_ID, |
| 16536 | .model_id = WINBOND_NEX_W25X20, |
| 16537 | .total_size = 256, |
| 16538 | .page_size = 256, |
| 16539 | .feature_bits = FEATURE_WRSR_WREN, |
| 16540 | .tested = TEST_OK_PREW, |
| 16541 | .probe = probe_spi_rdid, |
| 16542 | .probe_timing = TIMING_ZERO, |
| 16543 | .block_erasers = |
| 16544 | { |
| 16545 | { |
| 16546 | .eraseblocks = { {4 * 1024, 64} }, |
| 16547 | .block_erase = spi_block_erase_20, |
| 16548 | }, { |
| 16549 | .eraseblocks = { {64 * 1024, 4} }, |
| 16550 | .block_erase = spi_block_erase_d8, |
| 16551 | }, { |
| 16552 | .eraseblocks = { {256 * 1024, 1} }, |
| 16553 | .block_erase = spi_block_erase_c7, |
| 16554 | } |
| 16555 | }, |
| 16556 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16557 | .unlock = spi_disable_blockprotect, |
| 16558 | .write = spi_chip_write_256, |
| 16559 | .read = spi_chip_read, |
| 16560 | .voltage = {2700, 3600}, |
| 16561 | }, |
| 16562 | |
| 16563 | { |
| 16564 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16565 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16566 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16567 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16568 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16569 | .total_size = 4096, |
| 16570 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 16571 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 16572 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16573 | .probe = probe_spi_rdid, |
| 16574 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16575 | .block_erasers = |
| 16576 | { |
| 16577 | { |
| 16578 | .eraseblocks = { {4 * 1024, 1024} }, |
| 16579 | .block_erase = spi_block_erase_20, |
| 16580 | }, { |
| 16581 | .eraseblocks = { {32 * 1024, 128} }, |
| 16582 | .block_erase = spi_block_erase_52, |
| 16583 | }, { |
| 16584 | .eraseblocks = { {64 * 1024, 64} }, |
| 16585 | .block_erase = spi_block_erase_d8, |
| 16586 | }, { |
| 16587 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16588 | .block_erase = spi_block_erase_60, |
| 16589 | }, { |
| 16590 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16591 | .block_erase = spi_block_erase_c7, |
| 16592 | } |
| 16593 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16594 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 16595 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16596 | .write = spi_chip_write_256, |
| 16597 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16598 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16599 | }, |
| 16600 | |
| 16601 | { |
| 16602 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16603 | .name = "W25X40", |
| 16604 | .bustype = BUS_SPI, |
| 16605 | .manufacture_id = WINBOND_NEX_ID, |
| 16606 | .model_id = WINBOND_NEX_W25X40, |
| 16607 | .total_size = 512, |
| 16608 | .page_size = 256, |
| 16609 | .feature_bits = FEATURE_WRSR_WREN, |
| 16610 | .tested = TEST_OK_PREW, |
| 16611 | .probe = probe_spi_rdid, |
| 16612 | .probe_timing = TIMING_ZERO, |
| 16613 | .block_erasers = |
| 16614 | { |
| 16615 | { |
| 16616 | .eraseblocks = { {4 * 1024, 128} }, |
| 16617 | .block_erase = spi_block_erase_20, |
| 16618 | }, { |
| 16619 | .eraseblocks = { {64 * 1024, 8} }, |
| 16620 | .block_erase = spi_block_erase_d8, |
| 16621 | }, { |
| 16622 | .eraseblocks = { {512 * 1024, 1} }, |
| 16623 | .block_erase = spi_block_erase_c7, |
| 16624 | } |
| 16625 | }, |
| 16626 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16627 | .unlock = spi_disable_blockprotect, |
| 16628 | .write = spi_chip_write_256, |
| 16629 | .read = spi_chip_read, |
| 16630 | .voltage = {2700, 3600}, |
| 16631 | }, |
| 16632 | |
| 16633 | { |
| 16634 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16635 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16636 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16637 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16638 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16639 | .total_size = 8192, |
| 16640 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 16641 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 16642 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16643 | .probe = probe_spi_rdid, |
| 16644 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16645 | .block_erasers = |
| 16646 | { |
| 16647 | { |
| 16648 | .eraseblocks = { {4 * 1024, 2048} }, |
| 16649 | .block_erase = spi_block_erase_20, |
| 16650 | }, { |
| 16651 | .eraseblocks = { {32 * 1024, 256} }, |
| 16652 | .block_erase = spi_block_erase_52, |
| 16653 | }, { |
| 16654 | .eraseblocks = { {64 * 1024, 128} }, |
| 16655 | .block_erase = spi_block_erase_d8, |
| 16656 | }, { |
| 16657 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16658 | .block_erase = spi_block_erase_60, |
| 16659 | }, { |
| 16660 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16661 | .block_erase = spi_block_erase_c7, |
| 16662 | } |
| 16663 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16664 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 16665 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16666 | .write = spi_chip_write_256, |
| 16667 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16668 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 16669 | }, |
| 16670 | |
| 16671 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 16672 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16673 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 16674 | .bustype = BUS_SPI, |
| 16675 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16676 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 16677 | .total_size = 1024, |
| 16678 | .page_size = 256, |
| 16679 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16680 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 16681 | .probe = probe_spi_rdid, |
| 16682 | .probe_timing = TIMING_ZERO, |
| 16683 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 16684 | { |
| 16685 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16686 | .eraseblocks = { {4 * 1024, 256} }, |
| 16687 | .block_erase = spi_block_erase_20, |
| 16688 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 16689 | .eraseblocks = { {64 * 1024, 16} }, |
| 16690 | .block_erase = spi_block_erase_d8, |
| 16691 | }, { |
| 16692 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16693 | .block_erase = spi_block_erase_c7, |
| 16694 | } |
| 16695 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 16696 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16697 | .unlock = spi_disable_blockprotect, |
| 16698 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16699 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 16700 | .voltage = {2700, 3600}, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 16701 | }, |
| 16702 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 16703 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 16704 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 16705 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16706 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16707 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16708 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16709 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16710 | .total_size = 128, |
| 16711 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16712 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 16713 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16714 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16715 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16716 | .block_erasers = |
| 16717 | { |
| 16718 | { |
| 16719 | .eraseblocks = { {128 * 1024, 1} }, |
| 16720 | .block_erase = erase_chip_block_jedec, |
| 16721 | } |
| 16722 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16723 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16724 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16725 | }, |
| 16726 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16727 | { |
| 16728 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16729 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 16730 | .bustype = BUS_PARALLEL, |
| 16731 | .manufacture_id = WINBOND_ID, |
| 16732 | .model_id = WINBOND_W29C010, |
| 16733 | .total_size = 128, |
| 16734 | .page_size = 128, |
| 16735 | .feature_bits = FEATURE_LONG_RESET, |
| 16736 | .tested = TEST_OK_PREW, |
| 16737 | .probe = probe_w29ee011, |
| 16738 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 16739 | .block_erasers = |
| 16740 | { |
| 16741 | { |
| 16742 | .eraseblocks = { {128 * 1024, 1} }, |
| 16743 | .block_erase = erase_chip_block_jedec, |
| 16744 | } |
| 16745 | }, |
| 16746 | .write = write_jedec, |
| 16747 | .read = read_memmapped, |
| 16748 | }, |
| 16749 | |
| 16750 | { |
| 16751 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16752 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16753 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16754 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16755 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16756 | .total_size = 256, |
| 16757 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16758 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16759 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16760 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16761 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16762 | .block_erasers = |
| 16763 | { |
| 16764 | { |
| 16765 | .eraseblocks = { {256 * 1024, 1} }, |
| 16766 | .block_erase = erase_chip_block_jedec, |
| 16767 | } |
| 16768 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16769 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16770 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16771 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16772 | }, |
| 16773 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16774 | { |
| 16775 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16776 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16777 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16778 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16779 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16780 | .total_size = 512, |
| 16781 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16782 | .feature_bits = FEATURE_LONG_RESET, |
| 16783 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16784 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16785 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16786 | .block_erasers = |
| 16787 | { |
| 16788 | { |
| 16789 | .eraseblocks = { {512 * 1024, 1} }, |
| 16790 | .block_erase = erase_chip_block_jedec, |
| 16791 | } |
| 16792 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16793 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16794 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16795 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16796 | }, |
| 16797 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16798 | { |
| 16799 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16800 | .name = "W29C512A/W29EE512", |
| 16801 | .bustype = BUS_PARALLEL, |
| 16802 | .manufacture_id = WINBOND_ID, |
| 16803 | .model_id = WINBOND_W29C512A, |
| 16804 | .total_size = 64, |
| 16805 | .page_size = 128, |
| 16806 | .feature_bits = FEATURE_LONG_RESET, |
| 16807 | .tested = TEST_OK_PREW, |
| 16808 | .probe = probe_jedec, |
| 16809 | .probe_timing = 10, |
| 16810 | .block_erasers = |
| 16811 | { |
| 16812 | { |
| 16813 | .eraseblocks = { {64 * 1024, 1} }, |
| 16814 | .block_erase = erase_chip_block_jedec, |
| 16815 | } |
| 16816 | }, |
| 16817 | .write = write_jedec, |
| 16818 | .read = read_memmapped, |
| 16819 | .voltage = {4500, 5500}, |
| 16820 | }, |
| 16821 | |
| 16822 | { |
| 16823 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 16824 | .name = "W29GL032CB", |
| 16825 | .bustype = BUS_PARALLEL, |
| 16826 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16827 | .model_id = WINBOND_W29GL032CB, |
| 16828 | .total_size = 4096, |
| 16829 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16830 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16831 | .tested = TEST_UNTESTED, |
| 16832 | .probe = probe_jedec_29gl, |
| 16833 | .probe_timing = TIMING_ZERO, |
| 16834 | .block_erasers = |
| 16835 | { |
| 16836 | { |
| 16837 | .eraseblocks = { |
| 16838 | {8 * 1024, 8}, |
| 16839 | {64 * 1024, 63}, |
| 16840 | }, |
| 16841 | .block_erase = erase_sector_jedec, |
| 16842 | }, { |
| 16843 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16844 | .block_erase = erase_chip_block_jedec, |
| 16845 | }, |
| 16846 | }, |
| 16847 | .write = write_jedec_1, |
| 16848 | .read = read_memmapped, |
| 16849 | .voltage = {2700, 3600}, |
| 16850 | }, |
| 16851 | |
| 16852 | { |
| 16853 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16854 | .name = "W29GL032CH/L", |
| 16855 | .bustype = BUS_PARALLEL, |
| 16856 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16857 | .model_id = WINBOND_W29GL032CHL, |
| 16858 | .total_size = 4096, |
| 16859 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16860 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16861 | .tested = TEST_UNTESTED, |
| 16862 | .probe = probe_jedec_29gl, |
| 16863 | .probe_timing = TIMING_ZERO, |
| 16864 | .block_erasers = |
| 16865 | { |
| 16866 | { |
| 16867 | .eraseblocks = { {64 * 1024, 64} }, |
| 16868 | .block_erase = erase_sector_jedec, |
| 16869 | }, { |
| 16870 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16871 | .block_erase = erase_chip_block_jedec, |
| 16872 | }, |
| 16873 | }, |
| 16874 | .write = write_jedec_1, |
| 16875 | .read = read_memmapped, |
| 16876 | .voltage = {2700, 3600}, |
| 16877 | }, |
| 16878 | |
| 16879 | { |
| 16880 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 16881 | .name = "W29GL032CT", |
| 16882 | .bustype = BUS_PARALLEL, |
| 16883 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16884 | .model_id = WINBOND_W29GL032CT, |
| 16885 | .total_size = 4096, |
| 16886 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16887 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16888 | .tested = TEST_UNTESTED, |
| 16889 | .probe = probe_jedec_29gl, |
| 16890 | .probe_timing = TIMING_ZERO, |
| 16891 | .block_erasers = |
| 16892 | { |
| 16893 | { |
| 16894 | .eraseblocks = { |
| 16895 | {64 * 1024, 63}, |
| 16896 | {8 * 1024, 8}, |
| 16897 | }, |
| 16898 | .block_erase = erase_sector_jedec, |
| 16899 | }, { |
| 16900 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16901 | .block_erase = erase_chip_block_jedec, |
| 16902 | }, |
| 16903 | }, |
| 16904 | .write = write_jedec_1, |
| 16905 | .read = read_memmapped, |
| 16906 | .voltage = {2700, 3600}, |
| 16907 | }, |
| 16908 | |
| 16909 | { |
| 16910 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 16911 | .name = "W29GL064CB", |
| 16912 | .bustype = BUS_PARALLEL, |
| 16913 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16914 | .model_id = WINBOND_W29GL064CB, |
| 16915 | .total_size = 8192, |
| 16916 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16917 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16918 | .tested = TEST_UNTESTED, |
| 16919 | .probe = probe_jedec_29gl, |
| 16920 | .probe_timing = TIMING_ZERO, |
| 16921 | .block_erasers = |
| 16922 | { |
| 16923 | { |
| 16924 | .eraseblocks = { |
| 16925 | {8 * 1024, 8}, |
| 16926 | {64 * 1024, 127}, |
| 16927 | }, |
| 16928 | .block_erase = erase_sector_jedec, |
| 16929 | }, { |
| 16930 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16931 | .block_erase = erase_chip_block_jedec, |
| 16932 | }, |
| 16933 | }, |
| 16934 | .write = write_jedec_1, |
| 16935 | .read = read_memmapped, |
| 16936 | .voltage = {2700, 3600}, |
| 16937 | }, |
| 16938 | |
| 16939 | { |
| 16940 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16941 | .name = "W29GL064CH/L", |
| 16942 | .bustype = BUS_PARALLEL, |
| 16943 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16944 | .model_id = WINBOND_W29GL064CHL, |
| 16945 | .total_size = 8192, |
| 16946 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16947 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16948 | .tested = TEST_UNTESTED, |
| 16949 | .probe = probe_jedec_29gl, |
| 16950 | .probe_timing = TIMING_ZERO, |
| 16951 | .block_erasers = |
| 16952 | { |
| 16953 | { |
| 16954 | .eraseblocks = { {64 * 1024, 128} }, |
| 16955 | .block_erase = erase_sector_jedec, |
| 16956 | }, { |
| 16957 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16958 | .block_erase = erase_chip_block_jedec, |
| 16959 | }, |
| 16960 | }, |
| 16961 | .write = write_jedec_1, |
| 16962 | .read = read_memmapped, |
| 16963 | .voltage = {2700, 3600}, |
| 16964 | }, |
| 16965 | |
| 16966 | { |
| 16967 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 16968 | .name = "W29GL064CT", |
| 16969 | .bustype = BUS_PARALLEL, |
| 16970 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16971 | .model_id = WINBOND_W29GL064CT, |
| 16972 | .total_size = 8192, |
| 16973 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16974 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16975 | .tested = TEST_UNTESTED, |
| 16976 | .probe = probe_jedec_29gl, |
| 16977 | .probe_timing = TIMING_ZERO, |
| 16978 | .block_erasers = |
| 16979 | { |
| 16980 | { |
| 16981 | .eraseblocks = { |
| 16982 | {64 * 1024, 127}, |
| 16983 | {8 * 1024, 8}, |
| 16984 | }, |
| 16985 | .block_erase = erase_sector_jedec, |
| 16986 | }, { |
| 16987 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16988 | .block_erase = erase_chip_block_jedec, |
| 16989 | }, |
| 16990 | }, |
| 16991 | .write = write_jedec_1, |
| 16992 | .read = read_memmapped, |
| 16993 | .voltage = {2700, 3600}, |
| 16994 | }, |
| 16995 | |
| 16996 | { |
| 16997 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 16998 | .name = "W29GL128C", |
| 16999 | .bustype = BUS_PARALLEL, |
| 17000 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17001 | .model_id = WINBOND_W29GL128CHL, |
| 17002 | .total_size = 16384, |
| 17003 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17004 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17005 | .tested = TEST_UNTESTED, |
| 17006 | .probe = probe_jedec_29gl, |
| 17007 | .probe_timing = TIMING_ZERO, |
| 17008 | .block_erasers = |
| 17009 | { |
| 17010 | { |
| 17011 | .eraseblocks = { {128 * 1024, 128} }, |
| 17012 | .block_erase = erase_sector_jedec, |
| 17013 | }, { |
| 17014 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17015 | .block_erase = erase_chip_block_jedec, |
| 17016 | }, |
| 17017 | }, |
| 17018 | .write = write_jedec_1, |
| 17019 | .read = read_memmapped, |
| 17020 | .voltage = {2700, 3600}, |
| 17021 | }, |
| 17022 | |
| 17023 | { |
| 17024 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 17025 | .name = "W39F010", |
| 17026 | .bustype = BUS_PARALLEL, |
| 17027 | .manufacture_id = WINBOND_ID, |
| 17028 | .model_id = WINBOND_W39F010, |
| 17029 | .total_size = 128, |
| 17030 | .page_size = 4 * 1024, |
| 17031 | .feature_bits = FEATURE_EITHER_RESET, |
| 17032 | .tested = TEST_OK_PREW, |
| 17033 | .probe = probe_jedec, |
| 17034 | .probe_timing = 10, |
| 17035 | .block_erasers = |
| 17036 | { |
| 17037 | { |
| 17038 | .eraseblocks = { {4 * 1024, 32} }, |
| 17039 | .block_erase = erase_block_jedec, |
| 17040 | }, { |
| 17041 | .eraseblocks = { {128 * 1024, 1} }, |
| 17042 | .block_erase = erase_chip_block_jedec, |
| 17043 | } |
| 17044 | }, |
| 17045 | .printlock = printlock_w39f010, |
| 17046 | .write = write_jedec_1, |
| 17047 | .read = read_memmapped, |
| 17048 | .voltage = {4500, 5500}, |
| 17049 | }, |
| 17050 | |
| 17051 | { |
| 17052 | .vendor = "Winbond", |
| 17053 | .name = "W39L010", |
| 17054 | .bustype = BUS_PARALLEL, |
| 17055 | .manufacture_id = WINBOND_ID, |
| 17056 | .model_id = WINBOND_W39L010, |
| 17057 | .total_size = 128, |
| 17058 | .page_size = 4 * 1024, |
| 17059 | .feature_bits = FEATURE_EITHER_RESET, |
| 17060 | .tested = TEST_UNTESTED, |
| 17061 | .probe = probe_jedec, |
| 17062 | .probe_timing = 10, |
| 17063 | .block_erasers = |
| 17064 | { |
| 17065 | { |
| 17066 | .eraseblocks = { {4 * 1024, 32} }, |
| 17067 | .block_erase = erase_block_jedec, |
| 17068 | }, { |
| 17069 | .eraseblocks = { {128 * 1024, 1} }, |
| 17070 | .block_erase = erase_chip_block_jedec, |
| 17071 | } |
| 17072 | }, |
| 17073 | .printlock = printlock_w39l010, |
| 17074 | .write = write_jedec_1, |
| 17075 | .read = read_memmapped, |
| 17076 | .voltage = {3000, 3600}, |
| 17077 | }, |
| 17078 | |
| 17079 | { |
| 17080 | .vendor = "Winbond", |
| 17081 | .name = "W39L020", |
| 17082 | .bustype = BUS_PARALLEL, |
| 17083 | .manufacture_id = WINBOND_ID, |
| 17084 | .model_id = WINBOND_W39L020, |
| 17085 | .total_size = 256, |
| 17086 | .page_size = 4 * 1024, |
| 17087 | .feature_bits = FEATURE_EITHER_RESET, |
| 17088 | .tested = TEST_UNTESTED, |
| 17089 | .probe = probe_jedec, |
| 17090 | .probe_timing = 10, |
| 17091 | .block_erasers = |
| 17092 | { |
| 17093 | { |
| 17094 | .eraseblocks = { {4 * 1024, 64} }, |
| 17095 | .block_erase = erase_block_jedec, |
| 17096 | }, { |
| 17097 | .eraseblocks = { {64 * 1024, 4} }, |
| 17098 | .block_erase = erase_sector_jedec, |
| 17099 | }, { |
| 17100 | .eraseblocks = { {256 * 1024, 1} }, |
| 17101 | .block_erase = erase_chip_block_jedec, |
| 17102 | } |
| 17103 | }, |
| 17104 | .printlock = printlock_w39l020, |
| 17105 | .write = write_jedec_1, |
| 17106 | .read = read_memmapped, |
| 17107 | .voltage = {3000, 3600}, |
| 17108 | }, |
| 17109 | |
| 17110 | { |
| 17111 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17112 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17113 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17114 | .manufacture_id = WINBOND_ID, |
| 17115 | .model_id = WINBOND_W39L040, |
| 17116 | .total_size = 512, |
| 17117 | .page_size = 64 * 1024, |
| 17118 | .feature_bits = FEATURE_EITHER_RESET, |
| 17119 | .tested = TEST_OK_PR, |
| 17120 | .probe = probe_jedec, |
| 17121 | .probe_timing = 10, |
| 17122 | .block_erasers = |
| 17123 | { |
| 17124 | { |
| 17125 | .eraseblocks = { {4 * 1024, 128} }, |
| 17126 | .block_erase = erase_block_jedec, |
| 17127 | }, { |
| 17128 | .eraseblocks = { {64 * 1024, 8} }, |
| 17129 | .block_erase = erase_sector_jedec, |
| 17130 | }, { |
| 17131 | .eraseblocks = { {512 * 1024, 1} }, |
| 17132 | .block_erase = erase_chip_block_jedec, |
| 17133 | } |
| 17134 | }, |
| 17135 | .printlock = printlock_w39l040, |
| 17136 | .write = write_jedec_1, |
| 17137 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17138 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17139 | }, |
| 17140 | |
| 17141 | { |
| 17142 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17143 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17144 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17145 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17146 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17147 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17148 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17149 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 17150 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17151 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 17152 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17153 | .block_erasers = |
| 17154 | { |
| 17155 | { |
| 17156 | .eraseblocks = { {64 * 1024, 8} }, |
| 17157 | .block_erase = erase_sector_jedec, |
| 17158 | }, { |
| 17159 | .eraseblocks = { {512 * 1024, 1} }, |
| 17160 | .block_erase = erase_chip_block_jedec, |
| 17161 | } |
| 17162 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17163 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17164 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17165 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17166 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17167 | }, |
| 17168 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17169 | { |
| 17170 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17171 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17172 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17173 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17174 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17175 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17176 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17177 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17178 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17179 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17180 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17181 | .block_erasers = |
| 17182 | { |
| 17183 | { |
| 17184 | .eraseblocks = { {64 * 1024, 8} }, |
| 17185 | .block_erase = erase_sector_jedec, |
| 17186 | }, { |
| 17187 | .eraseblocks = { {512 * 1024, 1} }, |
| 17188 | .block_erase = erase_chip_block_jedec, |
| 17189 | } |
| 17190 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17191 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17192 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17193 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17194 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17195 | }, |
| 17196 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17197 | { |
| 17198 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17199 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17200 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17201 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17202 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17203 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17204 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17205 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17206 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17207 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17208 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17209 | .block_erasers = |
| 17210 | { |
| 17211 | { |
| 17212 | .eraseblocks = { {64 * 1024, 8} }, |
| 17213 | .block_erase = erase_sector_jedec, |
| 17214 | }, { |
| 17215 | .eraseblocks = { {512 * 1024, 1} }, |
| 17216 | .block_erase = erase_chip_block_jedec, |
| 17217 | } |
| 17218 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 17219 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17220 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17221 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17222 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17223 | }, |
| 17224 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17225 | { |
| 17226 | .vendor = "Winbond", |
| 17227 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17228 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17229 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17230 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17231 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17232 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 17233 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 17234 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17235 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17236 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17237 | .block_erasers = |
| 17238 | { |
| 17239 | { |
| 17240 | .eraseblocks = { {4 * 1024, 128} }, |
| 17241 | .block_erase = erase_block_jedec, |
| 17242 | }, { |
| 17243 | .eraseblocks = { {64 * 1024, 8} }, |
| 17244 | .block_erase = erase_sector_jedec, |
| 17245 | }, { |
| 17246 | .eraseblocks = { {512 * 1024, 1} }, |
| 17247 | .block_erase = erase_chip_block_jedec, |
| 17248 | } |
| 17249 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17250 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 17251 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17252 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17253 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17254 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17255 | }, |
| 17256 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17257 | { |
| 17258 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17259 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17260 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17261 | .manufacture_id = WINBOND_ID, |
| 17262 | .model_id = WINBOND_W39V040B, |
| 17263 | .total_size = 512, |
| 17264 | .page_size = 64 * 1024, |
| 17265 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 17266 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17267 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 17268 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17269 | .block_erasers = |
| 17270 | { |
| 17271 | { |
| 17272 | .eraseblocks = { {64 * 1024, 8} }, |
| 17273 | .block_erase = erase_sector_jedec, |
| 17274 | }, { |
| 17275 | .eraseblocks = { {512 * 1024, 1} }, |
| 17276 | .block_erase = erase_chip_block_jedec, |
| 17277 | } |
| 17278 | }, |
| 17279 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 17280 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17281 | .write = write_jedec_1, |
| 17282 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17283 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17284 | }, |
| 17285 | |
| 17286 | { |
| 17287 | .vendor = "Winbond", |
| 17288 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17289 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17290 | .manufacture_id = WINBOND_ID, |
| 17291 | .model_id = WINBOND_W39V040C, |
| 17292 | .total_size = 512, |
| 17293 | .page_size = 64 * 1024, |
| 17294 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 17295 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17296 | .probe = probe_jedec, |
| 17297 | .probe_timing = 10, |
| 17298 | .block_erasers = |
| 17299 | { |
| 17300 | { |
| 17301 | .eraseblocks = { {64 * 1024, 8} }, |
| 17302 | .block_erase = erase_sector_jedec, |
| 17303 | }, { |
| 17304 | .eraseblocks = { {512 * 1024, 1} }, |
| 17305 | .block_erase = erase_chip_block_jedec, |
| 17306 | } |
| 17307 | }, |
| 17308 | .printlock = printlock_w39v040fc, |
| 17309 | .write = write_jedec_1, |
| 17310 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17311 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17312 | }, |
| 17313 | |
| 17314 | { |
| 17315 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17316 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17317 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17318 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17319 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17320 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17321 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17322 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 17323 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17324 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 17325 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17326 | .block_erasers = |
| 17327 | { |
| 17328 | { |
| 17329 | .eraseblocks = { {64 * 1024, 16} }, |
| 17330 | .block_erase = erase_sector_jedec, |
| 17331 | }, { |
| 17332 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17333 | .block_erase = erase_chip_block_jedec, |
| 17334 | } |
| 17335 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17336 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17337 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17338 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17339 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17340 | }, |
| 17341 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17342 | { |
| 17343 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17344 | .name = "W39V080FA", |
| 17345 | .bustype = BUS_FWH, |
| 17346 | .manufacture_id = WINBOND_ID, |
| 17347 | .model_id = WINBOND_W39V080FA, |
| 17348 | .total_size = 1024, |
| 17349 | .page_size = 64 * 1024, |
| 17350 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 17351 | .tested = TEST_OK_PREW, |
| 17352 | .probe = probe_jedec, |
| 17353 | .probe_timing = 10, |
| 17354 | .block_erasers = |
| 17355 | { |
| 17356 | { |
| 17357 | .eraseblocks = { {64 * 1024, 16} }, |
| 17358 | .block_erase = erase_sector_jedec, |
| 17359 | }, { |
| 17360 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17361 | .block_erase = erase_chip_block_jedec, |
| 17362 | } |
| 17363 | }, |
| 17364 | .printlock = printlock_w39v080fa, |
| 17365 | .unlock = unlock_regspace2_uniform_64k, |
| 17366 | .write = write_jedec_1, |
| 17367 | .read = read_memmapped, |
| 17368 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 17369 | }, |
| 17370 | |
| 17371 | { |
| 17372 | .vendor = "Winbond", |
| 17373 | .name = "W39V080FA (dual mode)", |
| 17374 | .bustype = BUS_FWH, |
| 17375 | .manufacture_id = WINBOND_ID, |
| 17376 | .model_id = WINBOND_W39V080FA_DM, |
| 17377 | .total_size = 512, |
| 17378 | .page_size = 64 * 1024, |
| 17379 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 17380 | .tested = TEST_UNTESTED, |
| 17381 | .probe = probe_jedec, |
| 17382 | .probe_timing = 10, |
| 17383 | .block_erasers = |
| 17384 | { |
| 17385 | { |
| 17386 | .eraseblocks = { {64 * 1024, 8} }, |
| 17387 | .block_erase = erase_sector_jedec, |
| 17388 | }, { |
| 17389 | .eraseblocks = { {512 * 1024, 1} }, |
| 17390 | .block_erase = erase_chip_block_jedec, |
| 17391 | } |
| 17392 | }, |
| 17393 | .printlock = printlock_w39v080fa_dual, |
| 17394 | .write = write_jedec_1, |
| 17395 | .read = read_memmapped, |
| 17396 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 17397 | }, |
| 17398 | |
| 17399 | { |
| 17400 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17401 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17402 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17403 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17404 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17405 | .total_size = 256, |
| 17406 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17407 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 17408 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17409 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17410 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17411 | .block_erasers = |
| 17412 | { |
| 17413 | { |
| 17414 | .eraseblocks = { |
| 17415 | {128 * 1024, 1}, |
| 17416 | {96 * 1024, 1}, |
| 17417 | {8 * 1024, 2}, |
| 17418 | {16 * 1024, 1}, |
| 17419 | }, |
| 17420 | .block_erase = erase_sector_jedec, |
| 17421 | }, { |
| 17422 | .eraseblocks = { {256 * 1024, 1} }, |
| 17423 | .block_erase = erase_chip_block_jedec, |
| 17424 | } |
| 17425 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17426 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17427 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17428 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17429 | }, |
| 17430 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17431 | { |
| 17432 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 17433 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17434 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 17435 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17436 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 17437 | .total_size = 256, |
| 17438 | .page_size = 128, |
| 17439 | .feature_bits = FEATURE_EITHER_RESET, |
| 17440 | .tested = TEST_OK_PROBE, |
| 17441 | .probe = probe_jedec, |
| 17442 | .probe_timing = 10, |
| 17443 | .block_erasers = |
| 17444 | { |
| 17445 | { |
| 17446 | .eraseblocks = { {256 * 1024, 1} }, |
| 17447 | .block_erase = erase_chip_block_jedec, |
| 17448 | } |
| 17449 | }, |
| 17450 | .write = write_jedec_1, |
| 17451 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17452 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 17453 | }, |
| 17454 | |
| 17455 | { |
| 17456 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17457 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17458 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17459 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17460 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17461 | .total_size = 256, |
| 17462 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17463 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17464 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17465 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17466 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17467 | .block_erasers = |
| 17468 | { |
| 17469 | { |
| 17470 | .eraseblocks = { |
| 17471 | {64 * 1024, 3}, |
| 17472 | {32 * 1024, 1}, |
| 17473 | {8 * 1024, 2}, |
| 17474 | {16 * 1024, 1}, |
| 17475 | }, |
| 17476 | .block_erase = erase_sector_jedec, |
| 17477 | }, { |
| 17478 | .eraseblocks = { {256 * 1024, 1} }, |
| 17479 | .block_erase = erase_chip_block_jedec, |
| 17480 | } |
| 17481 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17482 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17483 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17484 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17485 | }, |
| 17486 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17487 | { |
| 17488 | .vendor = "Winbond", |
| 17489 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17490 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17491 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17492 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17493 | .total_size = 256, |
| 17494 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17495 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 17496 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17497 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17498 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17499 | .block_erasers = |
| 17500 | { |
| 17501 | { |
| 17502 | .eraseblocks = { |
| 17503 | {64 * 1024, 3}, |
| 17504 | {32 * 1024, 1}, |
| 17505 | {8 * 1024, 2}, |
| 17506 | {16 * 1024, 1}, |
| 17507 | }, |
| 17508 | .block_erase = erase_sector_jedec, |
| 17509 | }, { |
| 17510 | .eraseblocks = { {256 * 1024, 1} }, |
| 17511 | .block_erase = erase_chip_block_jedec, |
| 17512 | } |
| 17513 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17514 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17515 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17516 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17517 | }, |
| 17518 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17519 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17520 | .vendor = "Zetta Device", |
| 17521 | .name = "ZD25D20", |
| 17522 | .bustype = BUS_SPI, |
| 17523 | .manufacture_id = ZETTADEVICE_ID, |
| 17524 | .model_id = ZETTADEVICE_ZD25D20, |
| 17525 | .total_size = 256, |
| 17526 | .page_size = 256, |
| 17527 | .feature_bits = FEATURE_WRSR_WREN, |
| 17528 | .tested = TEST_UNTESTED, |
| 17529 | .probe = probe_spi_rdid, |
| 17530 | .probe_timing = TIMING_ZERO, |
| 17531 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 17532 | { |
| 17533 | { |
| 17534 | .eraseblocks = { {4 * 1024, 64} }, |
| 17535 | .block_erase = spi_block_erase_20, |
| 17536 | }, { |
| 17537 | .eraseblocks = { {32 * 1024, 8} }, |
| 17538 | .block_erase = spi_block_erase_52, |
| 17539 | }, { |
| 17540 | .eraseblocks = { {64 * 1024, 4} }, |
| 17541 | .block_erase = spi_block_erase_d8, |
| 17542 | }, { |
| 17543 | .eraseblocks = { {256 * 1024, 1} }, |
| 17544 | .block_erase = spi_block_erase_60, |
| 17545 | }, { |
| 17546 | .eraseblocks = { {256 * 1024, 1} }, |
| 17547 | .block_erase = spi_block_erase_c7, |
| 17548 | } |
| 17549 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17550 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17551 | .unlock = spi_disable_blockprotect, |
| 17552 | .write = spi_chip_write_256, |
| 17553 | .read = spi_chip_read, |
| 17554 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 17555 | }, |
| 17556 | |
| 17557 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17558 | .vendor = "Zetta Device", |
| 17559 | .name = "ZD25D40", |
| 17560 | .bustype = BUS_SPI, |
| 17561 | .manufacture_id = ZETTADEVICE_ID, |
| 17562 | .model_id = ZETTADEVICE_ZD25D40, |
| 17563 | .total_size = 512, |
| 17564 | .page_size = 256, |
| 17565 | .feature_bits = FEATURE_WRSR_WREN, |
| 17566 | .tested = TEST_UNTESTED, |
| 17567 | .probe = probe_spi_rdid, |
| 17568 | .probe_timing = TIMING_ZERO, |
| 17569 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 17570 | { |
| 17571 | { |
| 17572 | .eraseblocks = { {4 * 1024, 128} }, |
| 17573 | .block_erase = spi_block_erase_20, |
| 17574 | }, { |
| 17575 | .eraseblocks = { {32 * 1024, 16} }, |
| 17576 | .block_erase = spi_block_erase_52, |
| 17577 | }, { |
| 17578 | .eraseblocks = { {64 * 1024, 8} }, |
| 17579 | .block_erase = spi_block_erase_d8, |
| 17580 | }, { |
| 17581 | .eraseblocks = { {512 * 1024, 1} }, |
| 17582 | .block_erase = spi_block_erase_60, |
| 17583 | }, { |
| 17584 | .eraseblocks = { {512 * 1024, 1} }, |
| 17585 | .block_erase = spi_block_erase_c7, |
| 17586 | } |
| 17587 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17588 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17589 | .unlock = spi_disable_blockprotect, |
| 17590 | .write = spi_chip_write_256, |
| 17591 | .read = spi_chip_read, |
| 17592 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 17593 | }, |
| 17594 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 17595 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 17596 | .vendor = "Unknown", |
| 17597 | .name = "SFDP-capable chip", |
| 17598 | .bustype = BUS_SPI, |
| 17599 | .manufacture_id = GENERIC_MANUF_ID, |
| 17600 | .model_id = SFDP_DEVICE_ID, |
| 17601 | .total_size = 0, /* set by probing function */ |
| 17602 | .page_size = 0, /* set by probing function */ |
| 17603 | .feature_bits = 0, /* set by probing function */ |
| 17604 | /* We present our own "report this" text hence we do not */ |
| 17605 | /* want the default "This flash part has status UNTESTED..." */ |
| 17606 | /* text to be printed. */ |
| 17607 | .tested = TEST_OK_PREW, |
| 17608 | .probe = probe_spi_sfdp, |
| 17609 | .block_erasers = {}, /* set by probing function */ |
| 17610 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 17611 | .write = NULL, /* set by probing function */ |
| 17612 | .read = spi_chip_read, |
| 17613 | /* FIXME: some vendor extensions define this */ |
| 17614 | .voltage = {0}, |
| 17615 | }, |
| 17616 | |
| 17617 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 17618 | .vendor = "Programmer", |
| 17619 | .name = "Opaque flash chip", |
| 17620 | .bustype = BUS_PROG, |
| 17621 | .manufacture_id = PROGMANUF_ID, |
| 17622 | .model_id = PROGDEV_ID, |
| 17623 | .total_size = 0, |
| 17624 | .page_size = 256, |
| 17625 | /* probe is assumed to work, rest will be filled in by probe */ |
| 17626 | .tested = TEST_OK_PROBE, |
| 17627 | .probe = probe_opaque, |
| 17628 | /* eraseblock sizes will be set by the probing function */ |
| 17629 | .block_erasers = |
| 17630 | { |
| 17631 | { |
| 17632 | .block_erase = erase_opaque, |
| 17633 | } |
| 17634 | }, |
| 17635 | .write = write_opaque, |
| 17636 | .read = read_opaque, |
| 17637 | }, |
| 17638 | |
| 17639 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 17640 | .vendor = "AMIC", |
| 17641 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17642 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 17643 | .manufacture_id = AMIC_ID, |
| 17644 | .model_id = GENERIC_DEVICE_ID, |
| 17645 | .total_size = 0, |
| 17646 | .page_size = 256, |
| 17647 | .tested = TEST_BAD_PREW, |
| 17648 | .probe = probe_spi_rdid4, |
| 17649 | .probe_timing = TIMING_ZERO, |
| 17650 | .write = NULL, |
| 17651 | .read = NULL, |
| 17652 | }, |
| 17653 | |
| 17654 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17655 | .vendor = "Atmel", |
| 17656 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17657 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17658 | .manufacture_id = ATMEL_ID, |
| 17659 | .model_id = GENERIC_DEVICE_ID, |
| 17660 | .total_size = 0, |
| 17661 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 17662 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17663 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17664 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17665 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17666 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17667 | }, |
| 17668 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17669 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 17670 | .vendor = "Eon", |
| 17671 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17672 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17673 | .manufacture_id = EON_ID_NOPREFIX, |
| 17674 | .model_id = GENERIC_DEVICE_ID, |
| 17675 | .total_size = 0, |
| 17676 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 17677 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17678 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17679 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17680 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17681 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17682 | }, |
| 17683 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17684 | { |
| 17685 | .vendor = "Macronix", |
| 17686 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17687 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 17688 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17689 | .model_id = GENERIC_DEVICE_ID, |
| 17690 | .total_size = 0, |
| 17691 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 17692 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17693 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17694 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17695 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17696 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17697 | }, |
| 17698 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17699 | { |
| 17700 | .vendor = "PMC", |
| 17701 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17702 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17703 | .manufacture_id = PMC_ID, |
| 17704 | .model_id = GENERIC_DEVICE_ID, |
| 17705 | .total_size = 0, |
| 17706 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 17707 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17708 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17709 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17710 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17711 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17712 | }, |
| 17713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17714 | { |
| 17715 | .vendor = "SST", |
| 17716 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17717 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17718 | .manufacture_id = SST_ID, |
| 17719 | .model_id = GENERIC_DEVICE_ID, |
| 17720 | .total_size = 0, |
| 17721 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 17722 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17723 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17724 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17725 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17726 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17727 | }, |
| 17728 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17729 | { |
| 17730 | .vendor = "ST", |
| 17731 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17732 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17733 | .manufacture_id = ST_ID, |
| 17734 | .model_id = GENERIC_DEVICE_ID, |
| 17735 | .total_size = 0, |
| 17736 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 17737 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17738 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17739 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17740 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17741 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17742 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 17743 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17744 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 17745 | .vendor = "Sanyo", |
| 17746 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17747 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 17748 | .manufacture_id = SANYO_ID, |
| 17749 | .model_id = GENERIC_DEVICE_ID, |
| 17750 | .total_size = 0, |
| 17751 | .page_size = 256, |
| 17752 | .tested = TEST_BAD_PREW, |
| 17753 | .probe = probe_spi_rdid, |
| 17754 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 17755 | .write = NULL, |
| 17756 | .read = NULL, |
| 17757 | }, |
| 17758 | |
| 17759 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 17760 | .vendor = "Winbond", |
| 17761 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 17762 | .bustype = BUS_SPI, |
| 17763 | .manufacture_id = WINBOND_NEX_ID, |
| 17764 | .model_id = GENERIC_DEVICE_ID, |
| 17765 | .total_size = 0, |
| 17766 | .page_size = 256, |
| 17767 | .tested = TEST_BAD_PREW, |
| 17768 | .probe = probe_spi_rdid, |
| 17769 | .probe_timing = TIMING_ZERO, |
| 17770 | .write = NULL, |
| 17771 | .read = NULL, |
| 17772 | }, |
| 17773 | |
| 17774 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17775 | .vendor = "Generic", |
| 17776 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17777 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17778 | .manufacture_id = GENERIC_MANUF_ID, |
| 17779 | .model_id = GENERIC_DEVICE_ID, |
| 17780 | .total_size = 0, |
| 17781 | .page_size = 256, |
| 17782 | .tested = TEST_BAD_PREW, |
| 17783 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17784 | .write = NULL, |
| 17785 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 17786 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17787 | { |
| 17788 | .vendor = "Generic", |
| 17789 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17790 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17791 | .manufacture_id = GENERIC_MANUF_ID, |
| 17792 | .model_id = GENERIC_DEVICE_ID, |
| 17793 | .total_size = 0, |
| 17794 | .page_size = 256, |
| 17795 | .tested = TEST_BAD_PREW, |
| 17796 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17797 | .write = NULL, |
| 17798 | }, |
| 17799 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 17800 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 17801 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 17802 | |
| 17803 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |