Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 2 | * This file is part of the flashrom project. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | d22a1d4 | 2007-09-09 20:21:05 +0000 | [diff] [blame] | 4 | * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 | * Copyright (C) 2004 Tyan Corp |
Stefan Reinauer | 4c390c8 | 2008-07-02 13:33:09 +0000 | [diff] [blame] | 6 | * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 7 | * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
Sean Nelson | c57a920 | 2010-01-04 17:15:23 +0000 | [diff] [blame] | 8 | * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 9 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 14 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 19 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 26 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 27 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 28 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 29 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 30 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 31 | * |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 32 | * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly |
| 33 | * alphabetically sorted. Within families keep them in order of density. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 34 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 35 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 36 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 37 | /* |
| 38 | * .vendor = Vendor name |
| 39 | * .name = Chip name |
| 40 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 41 | * .manufacture_id = Manufacturer chip ID |
| 42 | * .model_id = Model chip ID |
| 43 | * .total_size = Total size in (binary) kbytes |
| 44 | * .page_size = Page or eraseblock(?) size in bytes |
| 45 | * .tested = Test status |
| 46 | * .probe = Probe function |
| 47 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 48 | * .block_erasers[] = Array of erase layouts and erase functions |
| 49 | * { |
| 50 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 51 | * .block_erase = Block erase function |
| 52 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 53 | * .printlock = Chip lock status function |
| 54 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 55 | * .write = Chip write function |
| 56 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 57 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 58 | */ |
| 59 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 60 | { |
| 61 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 62 | .name = "Am29F010", |
| 63 | .bustype = BUS_PARALLEL, |
| 64 | .manufacture_id = AMD_ID, |
| 65 | .model_id = AMD_AM29F010, |
| 66 | .total_size = 128, |
| 67 | .page_size = 16 * 1024, |
| 68 | .feature_bits = FEATURE_SHORT_RESET, |
| 69 | .tested = TEST_UNTESTED, |
| 70 | .probe = probe_jedec, |
| 71 | .probe_timing = TIMING_ZERO, |
| 72 | .block_erasers = |
| 73 | { |
| 74 | { |
| 75 | .eraseblocks = { {16 * 1024, 8} }, |
| 76 | .block_erase = erase_sector_jedec, |
| 77 | }, { |
| 78 | .eraseblocks = { {128 * 1024, 1} }, |
| 79 | .block_erase = erase_chip_block_jedec, |
| 80 | }, |
| 81 | }, |
| 82 | .write = write_jedec_1, |
| 83 | .read = read_memmapped, |
| 84 | .voltage = {4500, 5500}, |
| 85 | }, |
| 86 | |
| 87 | { |
| 88 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 89 | .name = "Am29F010A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 90 | .bustype = BUS_PARALLEL, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 91 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 92 | .model_id = AMD_AM29F010, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 93 | .total_size = 128, |
| 94 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 95 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 96 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 97 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 98 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 99 | .block_erasers = |
| 100 | { |
| 101 | { |
| 102 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 103 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 104 | }, { |
| 105 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 106 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 107 | }, |
| 108 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 109 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 110 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 111 | .voltage = {4500, 5500}, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 112 | }, |
| 113 | |
| 114 | { |
| 115 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 116 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 117 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 118 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 119 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 120 | .total_size = 256, |
| 121 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 122 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | .tested = TEST_UNTESTED, |
| 124 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 125 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 126 | .block_erasers = |
| 127 | { |
| 128 | { |
| 129 | .eraseblocks = { |
| 130 | {16 * 1024, 1}, |
| 131 | {8 * 1024, 2}, |
| 132 | {32 * 1024, 1}, |
| 133 | {64 * 1024, 3}, |
| 134 | }, |
| 135 | .block_erase = erase_sector_jedec, |
| 136 | }, { |
| 137 | .eraseblocks = { {256 * 1024, 1} }, |
| 138 | .block_erase = erase_chip_block_jedec, |
| 139 | }, |
| 140 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 141 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 142 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 143 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 144 | }, |
| 145 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 146 | { |
| 147 | .vendor = "AMD", |
| 148 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 149 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 150 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 151 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 152 | .total_size = 256, |
| 153 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 154 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 155 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 156 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 157 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 158 | .block_erasers = |
| 159 | { |
| 160 | { |
| 161 | .eraseblocks = { |
| 162 | {64 * 1024, 3}, |
| 163 | {32 * 1024, 1}, |
| 164 | {8 * 1024, 2}, |
| 165 | {16 * 1024, 1}, |
| 166 | }, |
| 167 | .block_erase = erase_sector_jedec, |
| 168 | }, { |
| 169 | .eraseblocks = { {256 * 1024, 1} }, |
| 170 | .block_erase = erase_chip_block_jedec, |
| 171 | }, |
| 172 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 174 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 175 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 176 | }, |
| 177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 178 | { |
| 179 | .vendor = "AMD", |
| 180 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 181 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 182 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 183 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 184 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 185 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 186 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 187 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 188 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | .block_erasers = |
| 191 | { |
| 192 | { |
| 193 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 194 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 195 | }, { |
| 196 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 197 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 198 | }, |
| 199 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 202 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 203 | }, |
| 204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 205 | { |
| 206 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 207 | .name = "Am29F040", |
| 208 | .bustype = BUS_PARALLEL, |
| 209 | .manufacture_id = AMD_ID, |
| 210 | .model_id = AMD_AM29F040, |
| 211 | .total_size = 512, |
| 212 | .page_size = 64 * 1024, |
| 213 | .feature_bits = FEATURE_EITHER_RESET, |
| 214 | .tested = TEST_UNTESTED, |
| 215 | .probe = probe_jedec, |
| 216 | .probe_timing = TIMING_ZERO, |
| 217 | .block_erasers = |
| 218 | { |
| 219 | { |
| 220 | .eraseblocks = { {64 * 1024, 8} }, |
| 221 | .block_erase = erase_sector_jedec, |
| 222 | }, { |
| 223 | .eraseblocks = { {512 * 1024, 1} }, |
| 224 | .block_erase = erase_chip_block_jedec, |
| 225 | }, |
| 226 | }, |
| 227 | .write = write_jedec_1, |
| 228 | .read = read_memmapped, |
| 229 | .voltage = {4500, 5500}, |
| 230 | }, |
| 231 | |
| 232 | { |
| 233 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 234 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 235 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 236 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 237 | .model_id = AMD_AM29F040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 238 | .total_size = 512, |
| 239 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 240 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 241 | .tested = TEST_UNTESTED, |
| 242 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 243 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 244 | .block_erasers = |
| 245 | { |
| 246 | { |
| 247 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 248 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 249 | }, { |
| 250 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 251 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 252 | }, |
| 253 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 254 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 255 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 256 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 257 | }, |
| 258 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 259 | { |
| 260 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 261 | .name = "Am29F080", |
| 262 | .bustype = BUS_PARALLEL, |
| 263 | .manufacture_id = AMD_ID, |
| 264 | .model_id = AMD_AM29F080, |
| 265 | .total_size = 1024, |
| 266 | .page_size = 64 * 1024, |
| 267 | .feature_bits = FEATURE_EITHER_RESET, |
| 268 | .tested = TEST_UNTESTED, |
| 269 | .probe = probe_jedec, |
| 270 | .probe_timing = TIMING_ZERO, |
| 271 | .block_erasers = |
| 272 | { |
| 273 | { |
| 274 | .eraseblocks = { {64 * 1024, 16} }, |
| 275 | .block_erase = erase_sector_jedec, |
| 276 | }, { |
| 277 | .eraseblocks = { {1024 * 1024, 1} }, |
| 278 | .block_erase = erase_chip_block_jedec, |
| 279 | }, |
| 280 | }, |
| 281 | .write = write_jedec_1, |
| 282 | .read = read_memmapped, |
| 283 | .voltage = {4500, 5500}, |
| 284 | }, |
| 285 | |
| 286 | { |
| 287 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 288 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 289 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 290 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 291 | .model_id = AMD_AM29F080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 292 | .total_size = 1024, |
| 293 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 294 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 295 | .tested = TEST_UNTESTED, |
| 296 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 297 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 298 | .block_erasers = |
| 299 | { |
| 300 | { |
| 301 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 302 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 303 | }, { |
| 304 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 305 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 306 | }, |
| 307 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 308 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 309 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 310 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 311 | }, |
| 312 | |
| 313 | { |
| 314 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 315 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 316 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 317 | .manufacture_id = AMD_ID, |
| 318 | .model_id = AMD_AM29LV001BB, |
| 319 | .total_size = 128, |
| 320 | .page_size = 64 * 1024, /* unused */ |
| 321 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 322 | .tested = TEST_OK_PREW, |
| 323 | .probe = probe_jedec, |
| 324 | .probe_timing = TIMING_ZERO, |
| 325 | .block_erasers = |
| 326 | { |
| 327 | { |
| 328 | .eraseblocks = { |
| 329 | {8 * 1024, 1}, |
| 330 | {4 * 1024, 2}, |
| 331 | {16 * 1024, 7}, |
| 332 | }, |
| 333 | .block_erase = erase_sector_jedec, |
| 334 | }, { |
| 335 | .eraseblocks = { {128 * 1024, 1} }, |
| 336 | .block_erase = erase_chip_block_jedec, |
| 337 | }, |
| 338 | }, |
| 339 | .write = write_jedec_1, |
| 340 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 341 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 342 | }, |
| 343 | |
| 344 | { |
| 345 | .vendor = "AMD", |
| 346 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 347 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 348 | .manufacture_id = AMD_ID, |
| 349 | .model_id = AMD_AM29LV001BT, |
| 350 | .total_size = 128, |
| 351 | .page_size = 64 * 1024, /* unused */ |
| 352 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 353 | .tested = TEST_UNTESTED, |
| 354 | .probe = probe_jedec, |
| 355 | .probe_timing = TIMING_ZERO, |
| 356 | .block_erasers = |
| 357 | { |
| 358 | { |
| 359 | .eraseblocks = { |
| 360 | {16 * 1024, 7}, |
| 361 | {4 * 1024, 2}, |
| 362 | {8 * 1024, 1}, |
| 363 | }, |
| 364 | .block_erase = erase_sector_jedec, |
| 365 | }, { |
| 366 | .eraseblocks = { {128 * 1024, 1} }, |
| 367 | .block_erase = erase_chip_block_jedec, |
| 368 | }, |
| 369 | }, |
| 370 | .write = write_jedec_1, |
| 371 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 372 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 373 | }, |
| 374 | |
| 375 | { |
| 376 | .vendor = "AMD", |
| 377 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 378 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 379 | .manufacture_id = AMD_ID, |
| 380 | .model_id = AMD_AM29LV002BB, |
| 381 | .total_size = 256, |
| 382 | .page_size = 64 * 1024, /* unused */ |
| 383 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 384 | .tested = TEST_UNTESTED, |
| 385 | .probe = probe_jedec, |
| 386 | .probe_timing = TIMING_ZERO, |
| 387 | .block_erasers = |
| 388 | { |
| 389 | { |
| 390 | .eraseblocks = { |
| 391 | {16 * 1024, 1}, |
| 392 | {8 * 1024, 2}, |
| 393 | {32 * 1024, 1}, |
| 394 | {64 * 1024, 3}, |
| 395 | }, |
| 396 | .block_erase = erase_sector_jedec, |
| 397 | }, { |
| 398 | .eraseblocks = { {256 * 1024, 1} }, |
| 399 | .block_erase = erase_chip_block_jedec, |
| 400 | }, |
| 401 | }, |
| 402 | .write = write_jedec_1, |
| 403 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 404 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 405 | }, |
| 406 | |
| 407 | { |
| 408 | .vendor = "AMD", |
| 409 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 410 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 411 | .manufacture_id = AMD_ID, |
| 412 | .model_id = AMD_AM29LV002BT, |
| 413 | .total_size = 256, |
| 414 | .page_size = 64 * 1024, /* unused */ |
| 415 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 416 | .tested = TEST_UNTESTED, |
| 417 | .probe = probe_jedec, |
| 418 | .probe_timing = TIMING_ZERO, |
| 419 | .block_erasers = |
| 420 | { |
| 421 | { |
| 422 | .eraseblocks = { |
| 423 | {64 * 1024, 3}, |
| 424 | {32 * 1024, 1}, |
| 425 | {8 * 1024, 2}, |
| 426 | {16 * 1024, 1}, |
| 427 | }, |
| 428 | .block_erase = erase_sector_jedec, |
| 429 | }, { |
| 430 | .eraseblocks = { {256 * 1024, 1} }, |
| 431 | .block_erase = erase_chip_block_jedec, |
| 432 | }, |
| 433 | }, |
| 434 | .write = write_jedec_1, |
| 435 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 436 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 437 | }, |
| 438 | |
| 439 | { |
| 440 | .vendor = "AMD", |
| 441 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 442 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 443 | .manufacture_id = AMD_ID, |
| 444 | .model_id = AMD_AM29LV004BB, |
| 445 | .total_size = 512, |
| 446 | .page_size = 64 * 1024, /* unused */ |
| 447 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 448 | .tested = TEST_UNTESTED, |
| 449 | .probe = probe_jedec, |
| 450 | .probe_timing = TIMING_ZERO, |
| 451 | .block_erasers = |
| 452 | { |
| 453 | { |
| 454 | .eraseblocks = { |
| 455 | {16 * 1024, 1}, |
| 456 | {8 * 1024, 2}, |
| 457 | {32 * 1024, 1}, |
| 458 | {64 * 1024, 7}, |
| 459 | }, |
| 460 | .block_erase = erase_sector_jedec, |
| 461 | }, { |
| 462 | .eraseblocks = { {512 * 1024, 1} }, |
| 463 | .block_erase = erase_chip_block_jedec, |
| 464 | }, |
| 465 | }, |
| 466 | .write = write_jedec_1, |
| 467 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 468 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 469 | }, |
| 470 | |
| 471 | { |
| 472 | .vendor = "AMD", |
| 473 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 474 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 475 | .manufacture_id = AMD_ID, |
| 476 | .model_id = AMD_AM29LV004BT, |
| 477 | .total_size = 512, |
| 478 | .page_size = 64 * 1024, /* unused */ |
| 479 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 480 | .tested = TEST_UNTESTED, |
| 481 | .probe = probe_jedec, |
| 482 | .probe_timing = TIMING_ZERO, |
| 483 | .block_erasers = |
| 484 | { |
| 485 | { |
| 486 | .eraseblocks = { |
| 487 | {64 * 1024, 7}, |
| 488 | {32 * 1024, 1}, |
| 489 | {8 * 1024, 2}, |
| 490 | {16 * 1024, 1}, |
| 491 | }, |
| 492 | .block_erase = erase_sector_jedec, |
| 493 | }, { |
| 494 | .eraseblocks = { {512 * 1024, 1} }, |
| 495 | .block_erase = erase_chip_block_jedec, |
| 496 | }, |
| 497 | }, |
| 498 | .write = write_jedec_1, |
| 499 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 500 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 501 | }, |
| 502 | |
| 503 | { |
| 504 | .vendor = "AMD", |
| 505 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 506 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 507 | .manufacture_id = AMD_ID, |
| 508 | .model_id = AMD_AM29LV008BB, |
| 509 | .total_size = 1024, |
| 510 | .page_size = 64 * 1024, /* unused */ |
| 511 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 512 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 513 | .probe = probe_jedec, |
| 514 | .probe_timing = TIMING_ZERO, |
| 515 | .block_erasers = |
| 516 | { |
| 517 | { |
| 518 | .eraseblocks = { |
| 519 | {16 * 1024, 1}, |
| 520 | {8 * 1024, 2}, |
| 521 | {32 * 1024, 1}, |
| 522 | {64 * 1024, 15}, |
| 523 | }, |
| 524 | .block_erase = erase_sector_jedec, |
| 525 | }, { |
| 526 | .eraseblocks = { {1024 * 1024, 1} }, |
| 527 | .block_erase = erase_chip_block_jedec, |
| 528 | }, |
| 529 | }, |
| 530 | .write = write_jedec_1, |
| 531 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 532 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 533 | }, |
| 534 | |
| 535 | { |
| 536 | .vendor = "AMD", |
| 537 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 538 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 539 | .manufacture_id = AMD_ID, |
| 540 | .model_id = AMD_AM29LV008BT, |
| 541 | .total_size = 1024, |
| 542 | .page_size = 64 * 1024, /* unused */ |
| 543 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 544 | .tested = TEST_UNTESTED, |
| 545 | .probe = probe_jedec, |
| 546 | .probe_timing = TIMING_ZERO, |
| 547 | .block_erasers = |
| 548 | { |
| 549 | { |
| 550 | .eraseblocks = { |
| 551 | {64 * 1024, 15}, |
| 552 | {32 * 1024, 1}, |
| 553 | {8 * 1024, 2}, |
| 554 | {16 * 1024, 1}, |
| 555 | }, |
| 556 | .block_erase = erase_sector_jedec, |
| 557 | }, { |
| 558 | .eraseblocks = { {1024 * 1024, 1} }, |
| 559 | .block_erase = erase_chip_block_jedec, |
| 560 | }, |
| 561 | }, |
| 562 | .write = write_jedec_1, |
| 563 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 564 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 565 | }, |
| 566 | |
| 567 | { |
| 568 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 569 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 570 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 571 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 572 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 573 | .total_size = 512, |
| 574 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 575 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 576 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 577 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 578 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 579 | .block_erasers = |
| 580 | { |
| 581 | { |
| 582 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 583 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 584 | }, { |
| 585 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 586 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 587 | }, |
| 588 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 589 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 590 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 591 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 592 | }, |
| 593 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 594 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 595 | .vendor = "AMD", |
| 596 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 597 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 598 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 599 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 600 | .total_size = 1024, |
| 601 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 602 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 603 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 604 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 605 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 606 | .block_erasers = |
| 607 | { |
| 608 | { |
| 609 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 610 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 611 | }, { |
| 612 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 613 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 614 | }, |
| 615 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 616 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 617 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 618 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 619 | }, |
| 620 | |
| 621 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 622 | .vendor = "AMIC", |
| 623 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 624 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 625 | .manufacture_id = AMIC_ID, |
| 626 | .model_id = AMIC_A25L05PT, |
| 627 | .total_size = 64, |
| 628 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 629 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 630 | .tested = TEST_UNTESTED, |
| 631 | .probe = probe_spi_rdid4, |
| 632 | .probe_timing = TIMING_ZERO, |
| 633 | .block_erasers = |
| 634 | { |
| 635 | { |
| 636 | .eraseblocks = { |
| 637 | {32 * 1024, 1}, |
| 638 | {16 * 1024, 1}, |
| 639 | {8 * 1024, 1}, |
| 640 | {4 * 1024, 2}, |
| 641 | }, |
| 642 | .block_erase = spi_block_erase_d8, |
| 643 | }, { |
| 644 | .eraseblocks = { {64 * 1024, 1} }, |
| 645 | .block_erase = spi_block_erase_c7, |
| 646 | } |
| 647 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 648 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 649 | .unlock = spi_disable_blockprotect, |
| 650 | .write = spi_chip_write_256, |
| 651 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 652 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 653 | }, |
| 654 | |
| 655 | { |
| 656 | .vendor = "AMIC", |
| 657 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 658 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 659 | .manufacture_id = AMIC_ID, |
| 660 | .model_id = AMIC_A25L05PU, |
| 661 | .total_size = 64, |
| 662 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 663 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 664 | .tested = TEST_UNTESTED, |
| 665 | .probe = probe_spi_rdid4, |
| 666 | .probe_timing = TIMING_ZERO, |
| 667 | .block_erasers = |
| 668 | { |
| 669 | { |
| 670 | .eraseblocks = { |
| 671 | {4 * 1024, 2}, |
| 672 | {8 * 1024, 1}, |
| 673 | {16 * 1024, 1}, |
| 674 | {32 * 1024, 1}, |
| 675 | }, |
| 676 | .block_erase = spi_block_erase_d8, |
| 677 | }, { |
| 678 | .eraseblocks = { {64 * 1024, 1} }, |
| 679 | .block_erase = spi_block_erase_c7, |
| 680 | } |
| 681 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 682 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 683 | .unlock = spi_disable_blockprotect, |
| 684 | .write = spi_chip_write_256, |
| 685 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 686 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 687 | }, |
| 688 | |
| 689 | { |
| 690 | .vendor = "AMIC", |
| 691 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 692 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 693 | .manufacture_id = AMIC_ID, |
| 694 | .model_id = AMIC_A25L10PT, |
| 695 | .total_size = 128, |
| 696 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 697 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 698 | .tested = TEST_UNTESTED, |
| 699 | .probe = probe_spi_rdid4, |
| 700 | .probe_timing = TIMING_ZERO, |
| 701 | .block_erasers = |
| 702 | { |
| 703 | { |
| 704 | .eraseblocks = { |
| 705 | {64 * 1024, 1}, |
| 706 | {32 * 1024, 1}, |
| 707 | {16 * 1024, 1}, |
| 708 | {8 * 1024, 1}, |
| 709 | {4 * 1024, 2}, |
| 710 | }, |
| 711 | .block_erase = spi_block_erase_d8, |
| 712 | }, { |
| 713 | .eraseblocks = { {128 * 1024, 1} }, |
| 714 | .block_erase = spi_block_erase_c7, |
| 715 | } |
| 716 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 717 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 718 | .unlock = spi_disable_blockprotect, |
| 719 | .write = spi_chip_write_256, |
| 720 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 721 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 722 | }, |
| 723 | |
| 724 | { |
| 725 | .vendor = "AMIC", |
| 726 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 727 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 728 | .manufacture_id = AMIC_ID, |
| 729 | .model_id = AMIC_A25L10PU, |
| 730 | .total_size = 128, |
| 731 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 732 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 733 | .tested = TEST_UNTESTED, |
| 734 | .probe = probe_spi_rdid4, |
| 735 | .probe_timing = TIMING_ZERO, |
| 736 | .block_erasers = |
| 737 | { |
| 738 | { |
| 739 | .eraseblocks = { |
| 740 | {4 * 1024, 2}, |
| 741 | {8 * 1024, 1}, |
| 742 | {16 * 1024, 1}, |
| 743 | {32 * 1024, 1}, |
| 744 | {64 * 1024, 1}, |
| 745 | }, |
| 746 | .block_erase = spi_block_erase_d8, |
| 747 | }, { |
| 748 | .eraseblocks = { {128 * 1024, 1} }, |
| 749 | .block_erase = spi_block_erase_c7, |
| 750 | } |
| 751 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 752 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 753 | .unlock = spi_disable_blockprotect, |
| 754 | .write = spi_chip_write_256, |
| 755 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 756 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 757 | }, |
| 758 | |
| 759 | { |
| 760 | .vendor = "AMIC", |
| 761 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 762 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 763 | .manufacture_id = AMIC_ID, |
| 764 | .model_id = AMIC_A25L20PT, |
| 765 | .total_size = 256, |
| 766 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 767 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 768 | .tested = TEST_UNTESTED, |
| 769 | .probe = probe_spi_rdid4, |
| 770 | .probe_timing = TIMING_ZERO, |
| 771 | .block_erasers = |
| 772 | { |
| 773 | { |
| 774 | .eraseblocks = { |
| 775 | {64 * 1024, 3}, |
| 776 | {32 * 1024, 1}, |
| 777 | {16 * 1024, 1}, |
| 778 | {8 * 1024, 1}, |
| 779 | {4 * 1024, 2}, |
| 780 | }, |
| 781 | .block_erase = spi_block_erase_d8, |
| 782 | }, { |
| 783 | .eraseblocks = { {256 * 1024, 1} }, |
| 784 | .block_erase = spi_block_erase_c7, |
| 785 | } |
| 786 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 787 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 788 | .unlock = spi_disable_blockprotect, |
| 789 | .write = spi_chip_write_256, |
| 790 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 791 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 792 | }, |
| 793 | |
| 794 | { |
| 795 | .vendor = "AMIC", |
| 796 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 797 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 798 | .manufacture_id = AMIC_ID, |
| 799 | .model_id = AMIC_A25L20PU, |
| 800 | .total_size = 256, |
| 801 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 802 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 803 | .tested = TEST_UNTESTED, |
| 804 | .probe = probe_spi_rdid4, |
| 805 | .probe_timing = TIMING_ZERO, |
| 806 | .block_erasers = |
| 807 | { |
| 808 | { |
| 809 | .eraseblocks = { |
| 810 | {4 * 1024, 2}, |
| 811 | {8 * 1024, 1}, |
| 812 | {16 * 1024, 1}, |
| 813 | {32 * 1024, 1}, |
| 814 | {64 * 1024, 3}, |
| 815 | }, |
| 816 | .block_erase = spi_block_erase_d8, |
| 817 | }, { |
| 818 | .eraseblocks = { {256 * 1024, 1} }, |
| 819 | .block_erase = spi_block_erase_c7, |
| 820 | } |
| 821 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 822 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 823 | .unlock = spi_disable_blockprotect, |
| 824 | .write = spi_chip_write_256, |
| 825 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 826 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 827 | }, |
| 828 | |
| 829 | /* The A25L40P{T,U} chips are distinguished by their |
| 830 | * erase block layouts, but without any distinction in RDID. |
| 831 | * This inexplicable quirk was verified by Rudolf Marek |
| 832 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 833 | */ |
| 834 | { |
| 835 | .vendor = "AMIC", |
| 836 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 837 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 838 | .manufacture_id = AMIC_ID, |
| 839 | .model_id = AMIC_A25L40PT, |
| 840 | .total_size = 512, |
| 841 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 842 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 843 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 844 | .probe = probe_spi_rdid4, |
| 845 | .probe_timing = TIMING_ZERO, |
| 846 | .block_erasers = |
| 847 | { |
| 848 | { |
| 849 | .eraseblocks = { |
| 850 | {64 * 1024, 7}, |
| 851 | {32 * 1024, 1}, |
| 852 | {16 * 1024, 1}, |
| 853 | {8 * 1024, 1}, |
| 854 | {4 * 1024, 2}, |
| 855 | }, |
| 856 | .block_erase = spi_block_erase_d8, |
| 857 | }, { |
| 858 | .eraseblocks = { {512 * 1024, 1} }, |
| 859 | .block_erase = spi_block_erase_c7, |
| 860 | } |
| 861 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 862 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 863 | .unlock = spi_disable_blockprotect, |
| 864 | .write = spi_chip_write_256, |
| 865 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 866 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 867 | }, |
| 868 | |
| 869 | { |
| 870 | .vendor = "AMIC", |
| 871 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 872 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 873 | .manufacture_id = AMIC_ID, |
| 874 | .model_id = AMIC_A25L40PU, |
| 875 | .total_size = 512, |
| 876 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 877 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 878 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 879 | .probe = probe_spi_rdid4, |
| 880 | .probe_timing = TIMING_ZERO, |
| 881 | .block_erasers = |
| 882 | { |
| 883 | { |
| 884 | .eraseblocks = { |
| 885 | {4 * 1024, 2}, |
| 886 | {8 * 1024, 1}, |
| 887 | {16 * 1024, 1}, |
| 888 | {32 * 1024, 1}, |
| 889 | {64 * 1024, 7}, |
| 890 | }, |
| 891 | .block_erase = spi_block_erase_d8, |
| 892 | }, { |
| 893 | .eraseblocks = { {512 * 1024, 1} }, |
| 894 | .block_erase = spi_block_erase_c7, |
| 895 | } |
| 896 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 897 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 898 | .unlock = spi_disable_blockprotect, |
| 899 | .write = spi_chip_write_256, |
| 900 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 901 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 902 | }, |
| 903 | |
| 904 | { |
| 905 | .vendor = "AMIC", |
| 906 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 907 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 908 | .manufacture_id = AMIC_ID, |
| 909 | .model_id = AMIC_A25L80P, |
| 910 | .total_size = 1024, |
| 911 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 912 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 913 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 914 | .probe = probe_spi_rdid4, |
| 915 | .probe_timing = TIMING_ZERO, |
| 916 | .block_erasers = |
| 917 | { |
| 918 | { |
| 919 | .eraseblocks = { |
| 920 | {4 * 1024, 2}, |
| 921 | {8 * 1024, 1}, |
| 922 | {16 * 1024, 1}, |
| 923 | {32 * 1024, 1}, |
| 924 | {64 * 1024, 15}, |
| 925 | }, |
| 926 | .block_erase = spi_block_erase_d8, |
| 927 | }, { |
| 928 | .eraseblocks = { {1024 * 1024, 1} }, |
| 929 | .block_erase = spi_block_erase_c7, |
| 930 | } |
| 931 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 932 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 933 | .unlock = spi_disable_blockprotect, |
| 934 | .write = spi_chip_write_256, |
| 935 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 936 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 937 | }, |
| 938 | |
| 939 | { |
| 940 | .vendor = "AMIC", |
| 941 | .name = "A25L16PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 942 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 943 | .manufacture_id = AMIC_ID, |
| 944 | .model_id = AMIC_A25L16PT, |
| 945 | .total_size = 2048, |
| 946 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 947 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 948 | .tested = TEST_UNTESTED, |
| 949 | .probe = probe_spi_rdid4, |
| 950 | .probe_timing = TIMING_ZERO, |
| 951 | .block_erasers = |
| 952 | { |
| 953 | { |
| 954 | .eraseblocks = { |
| 955 | {64 * 1024, 31}, |
| 956 | {32 * 1024, 1}, |
| 957 | {16 * 1024, 1}, |
| 958 | {8 * 1024, 1}, |
| 959 | {4 * 1024, 2}, |
| 960 | }, |
| 961 | .block_erase = spi_block_erase_d8, |
| 962 | }, { |
| 963 | .eraseblocks = { {2048 * 1024, 1} }, |
| 964 | .block_erase = spi_block_erase_60, |
| 965 | }, { |
| 966 | .eraseblocks = { {2048 * 1024, 1} }, |
| 967 | .block_erase = spi_block_erase_c7, |
| 968 | } |
| 969 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 970 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 971 | .unlock = spi_disable_blockprotect, |
| 972 | .write = spi_chip_write_256, |
| 973 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 974 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 975 | }, |
| 976 | |
| 977 | { |
| 978 | .vendor = "AMIC", |
| 979 | .name = "A25L16PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 980 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 981 | .manufacture_id = AMIC_ID, |
| 982 | .model_id = AMIC_A25L16PU, |
| 983 | .total_size = 2048, |
| 984 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 985 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 986 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 987 | .probe = probe_spi_rdid4, |
| 988 | .probe_timing = TIMING_ZERO, |
| 989 | .block_erasers = |
| 990 | { |
| 991 | { |
| 992 | .eraseblocks = { |
| 993 | {4 * 1024, 2}, |
| 994 | {8 * 1024, 1}, |
| 995 | {16 * 1024, 1}, |
| 996 | {32 * 1024, 1}, |
| 997 | {64 * 1024, 31}, |
| 998 | }, |
| 999 | .block_erase = spi_block_erase_d8, |
| 1000 | }, { |
| 1001 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1002 | .block_erase = spi_block_erase_60, |
| 1003 | }, { |
| 1004 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1005 | .block_erase = spi_block_erase_c7, |
| 1006 | } |
| 1007 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1008 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1009 | .unlock = spi_disable_blockprotect, |
| 1010 | .write = spi_chip_write_256, |
| 1011 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1012 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1013 | }, |
| 1014 | |
| 1015 | { |
| 1016 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1017 | .name = "A25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1018 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1019 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1020 | .model_id = AMIC_A25L512, |
| 1021 | .total_size = 64, |
| 1022 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1023 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1024 | .tested = TEST_UNTESTED, |
| 1025 | .probe = probe_spi_rdid, |
| 1026 | .probe_timing = TIMING_ZERO, |
| 1027 | .block_erasers = |
| 1028 | { |
| 1029 | { |
| 1030 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 1031 | .block_erase = spi_block_erase_20, |
| 1032 | }, { |
| 1033 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1034 | .block_erase = spi_block_erase_d8, |
| 1035 | }, { |
| 1036 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1037 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1038 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1039 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1040 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1041 | .unlock = spi_disable_blockprotect, |
| 1042 | .write = spi_chip_write_256, |
| 1043 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1044 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1045 | }, |
| 1046 | |
| 1047 | { |
| 1048 | .vendor = "AMIC", |
| 1049 | .name = "A25L010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1050 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1051 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1052 | .model_id = AMIC_A25L010, |
| 1053 | .total_size = 128, |
| 1054 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1055 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1056 | .tested = TEST_UNTESTED, |
| 1057 | .probe = probe_spi_rdid, |
| 1058 | .probe_timing = TIMING_ZERO, |
| 1059 | .block_erasers = |
| 1060 | { |
| 1061 | { |
| 1062 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 1063 | .block_erase = spi_block_erase_20, |
| 1064 | }, { |
| 1065 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 1066 | .block_erase = spi_block_erase_d8, |
| 1067 | }, { |
| 1068 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 1069 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1070 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1071 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1072 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1073 | .unlock = spi_disable_blockprotect, |
| 1074 | .write = spi_chip_write_256, |
| 1075 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1076 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1077 | }, |
| 1078 | |
| 1079 | { |
| 1080 | .vendor = "AMIC", |
| 1081 | .name = "A25L020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1082 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1083 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1084 | .model_id = AMIC_A25L020, |
| 1085 | .total_size = 256, |
| 1086 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1087 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1088 | .tested = TEST_UNTESTED, |
| 1089 | .probe = probe_spi_rdid, |
| 1090 | .probe_timing = TIMING_ZERO, |
| 1091 | .block_erasers = |
| 1092 | { |
| 1093 | { |
| 1094 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 1095 | .block_erase = spi_block_erase_20, |
| 1096 | }, { |
| 1097 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 1098 | .block_erase = spi_block_erase_d8, |
| 1099 | }, { |
| 1100 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 1101 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1102 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1103 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1104 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1105 | .unlock = spi_disable_blockprotect, |
| 1106 | .write = spi_chip_write_256, |
| 1107 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1108 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1109 | }, |
| 1110 | |
| 1111 | { |
| 1112 | .vendor = "AMIC", |
| 1113 | .name = "A25L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1114 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1115 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1116 | .model_id = AMIC_A25L040, |
| 1117 | .total_size = 512, |
| 1118 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1119 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1120 | .tested = TEST_UNTESTED, |
| 1121 | .probe = probe_spi_rdid, |
| 1122 | .probe_timing = TIMING_ZERO, |
| 1123 | .block_erasers = |
| 1124 | { |
| 1125 | { |
| 1126 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1127 | .block_erase = spi_block_erase_20, |
| 1128 | }, { |
| 1129 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1130 | .block_erase = spi_block_erase_d8, |
| 1131 | }, { |
| 1132 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1133 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1134 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1135 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1136 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1137 | .unlock = spi_disable_blockprotect, |
| 1138 | .write = spi_chip_write_256, |
| 1139 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1140 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1141 | }, |
| 1142 | |
| 1143 | { |
| 1144 | .vendor = "AMIC", |
| 1145 | .name = "A25L080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1146 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1147 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1148 | .model_id = AMIC_A25L080, |
| 1149 | .total_size = 1024, |
| 1150 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1151 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1152 | .tested = TEST_UNTESTED, |
| 1153 | .probe = probe_spi_rdid, |
| 1154 | .probe_timing = TIMING_ZERO, |
| 1155 | .block_erasers = |
| 1156 | { |
| 1157 | { |
| 1158 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1159 | .block_erase = spi_block_erase_20, |
| 1160 | }, { |
| 1161 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1162 | .block_erase = spi_block_erase_d8, |
| 1163 | }, { |
| 1164 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1165 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1166 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1167 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1168 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1169 | .unlock = spi_disable_blockprotect, |
| 1170 | .write = spi_chip_write_256, |
| 1171 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1172 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1173 | }, |
| 1174 | |
| 1175 | { |
| 1176 | .vendor = "AMIC", |
| 1177 | .name = "A25L016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1178 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1179 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1180 | .model_id = AMIC_A25L016, |
| 1181 | .total_size = 2048, |
| 1182 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1183 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1184 | .tested = TEST_UNTESTED, |
| 1185 | .probe = probe_spi_rdid, |
| 1186 | .probe_timing = TIMING_ZERO, |
| 1187 | .block_erasers = |
| 1188 | { |
| 1189 | { |
| 1190 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1191 | .block_erase = spi_block_erase_20, |
| 1192 | }, { |
| 1193 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1194 | .block_erase = spi_block_erase_d8, |
| 1195 | }, { |
| 1196 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1197 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1198 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1199 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1200 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1201 | .unlock = spi_disable_blockprotect, |
| 1202 | .write = spi_chip_write_256, |
| 1203 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1204 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1205 | }, |
| 1206 | |
| 1207 | { |
| 1208 | .vendor = "AMIC", |
| 1209 | .name = "A25L032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1210 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1211 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1212 | .model_id = AMIC_A25L032, |
| 1213 | .total_size = 4096, |
| 1214 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1215 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1216 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1217 | .tested = TEST_OK_PREW, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1218 | .probe = probe_spi_rdid, |
| 1219 | .probe_timing = TIMING_ZERO, |
| 1220 | .block_erasers = |
| 1221 | { |
| 1222 | { |
| 1223 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1224 | .block_erase = spi_block_erase_20, |
| 1225 | }, { |
| 1226 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1227 | .block_erase = spi_block_erase_52, |
| 1228 | }, { |
| 1229 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1230 | .block_erase = spi_block_erase_d8, |
| 1231 | }, { |
| 1232 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1233 | .block_erase = spi_block_erase_60, |
| 1234 | }, { |
| 1235 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1236 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1237 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1238 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1239 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1240 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1241 | .write = spi_chip_write_256, |
| 1242 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1243 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1244 | }, |
| 1245 | |
| 1246 | { |
| 1247 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1248 | .name = "A25LQ16", |
| 1249 | .bustype = BUS_SPI, |
| 1250 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1251 | .model_id = AMIC_A25LQ16, |
| 1252 | .total_size = 2048, |
| 1253 | .page_size = 256, |
| 1254 | /* supports SFDP */ |
| 1255 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1256 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1257 | .tested = TEST_UNTESTED, |
| 1258 | .probe = probe_spi_rdid, |
| 1259 | .probe_timing = TIMING_ZERO, |
| 1260 | .block_erasers = { |
| 1261 | { |
| 1262 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1263 | .block_erase = spi_block_erase_20, |
| 1264 | }, { |
| 1265 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1266 | .block_erase = spi_block_erase_52, |
| 1267 | }, { |
| 1268 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1269 | .block_erase = spi_block_erase_d8, |
| 1270 | }, { |
| 1271 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1272 | .block_erase = spi_block_erase_60, |
| 1273 | }, { |
| 1274 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1275 | .block_erase = spi_block_erase_c7, |
| 1276 | } |
| 1277 | }, |
| 1278 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1279 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1280 | .write = spi_chip_write_256, |
| 1281 | .read = spi_chip_read, |
| 1282 | .voltage = {2700, 3600}, |
| 1283 | }, |
| 1284 | |
| 1285 | { |
| 1286 | .vendor = "AMIC", |
| 1287 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1288 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1289 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1290 | .model_id = AMIC_A25LQ032, |
| 1291 | .total_size = 4096, |
| 1292 | .page_size = 256, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1293 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1294 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1295 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1296 | .tested = TEST_UNTESTED, |
| 1297 | .probe = probe_spi_rdid, |
| 1298 | .probe_timing = TIMING_ZERO, |
| 1299 | .block_erasers = |
| 1300 | { |
| 1301 | { |
| 1302 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1303 | .block_erase = spi_block_erase_20, |
| 1304 | }, { |
| 1305 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1306 | .block_erase = spi_block_erase_52, |
| 1307 | }, { |
| 1308 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1309 | .block_erase = spi_block_erase_d8, |
| 1310 | }, { |
| 1311 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1312 | .block_erase = spi_block_erase_60, |
| 1313 | }, { |
| 1314 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1315 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1316 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1317 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1318 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1319 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1320 | .write = spi_chip_write_256, |
| 1321 | .read = spi_chip_read, |
| 1322 | .voltage = {2700, 3600}, |
| 1323 | }, |
| 1324 | |
| 1325 | { |
| 1326 | .vendor = "AMIC", |
| 1327 | .name = "A25LQ64", |
| 1328 | .bustype = BUS_SPI, |
| 1329 | .manufacture_id = AMIC_ID_NOPREFIX, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 1330 | .model_id = AMIC_A25LQ64, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1331 | .total_size = 8192, |
| 1332 | .page_size = 256, |
| 1333 | /* supports SFDP */ |
| 1334 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1335 | /* QPI enable 0x35, disable 0xF5 */ |
| 1336 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1337 | .tested = TEST_UNTESTED, |
| 1338 | .probe = probe_spi_rdid, |
| 1339 | .probe_timing = TIMING_ZERO, |
| 1340 | .block_erasers = |
| 1341 | { |
| 1342 | { |
| 1343 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1344 | .block_erase = spi_block_erase_20, |
| 1345 | }, { |
| 1346 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1347 | .block_erase = spi_block_erase_52, |
| 1348 | }, { |
| 1349 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1350 | .block_erase = spi_block_erase_d8, |
| 1351 | }, { |
| 1352 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1353 | .block_erase = spi_block_erase_60, |
| 1354 | }, { |
| 1355 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1356 | .block_erase = spi_block_erase_c7, |
| 1357 | } |
| 1358 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1359 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1360 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1361 | .write = spi_chip_write_256, |
| 1362 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1363 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1364 | }, |
| 1365 | |
| 1366 | { |
| 1367 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1368 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1369 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1370 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1371 | .model_id = AMIC_A29002B, |
| 1372 | .total_size = 256, |
| 1373 | .page_size = 64 * 1024, |
| 1374 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1375 | .tested = TEST_UNTESTED, |
| 1376 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1377 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1378 | .block_erasers = |
| 1379 | { |
| 1380 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1381 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1382 | {16 * 1024, 1}, |
| 1383 | {8 * 1024, 2}, |
| 1384 | {32 * 1024, 1}, |
| 1385 | {64 * 1024, 3}, |
| 1386 | }, |
| 1387 | .block_erase = erase_sector_jedec, |
| 1388 | }, { |
| 1389 | .eraseblocks = { {256 * 1024, 1} }, |
| 1390 | .block_erase = erase_chip_block_jedec, |
| 1391 | }, |
| 1392 | }, |
| 1393 | .write = write_jedec_1, |
| 1394 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1395 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1396 | }, |
| 1397 | |
| 1398 | { |
| 1399 | .vendor = "AMIC", |
| 1400 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1401 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1402 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1403 | .model_id = AMIC_A29002T, |
| 1404 | .total_size = 256, |
| 1405 | .page_size = 64 * 1024, |
| 1406 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1407 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1408 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1409 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1410 | .block_erasers = |
| 1411 | { |
| 1412 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1413 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1414 | {64 * 1024, 3}, |
| 1415 | {32 * 1024, 1}, |
| 1416 | {8 * 1024, 2}, |
| 1417 | {16 * 1024, 1}, |
| 1418 | }, |
| 1419 | .block_erase = erase_sector_jedec, |
| 1420 | }, { |
| 1421 | .eraseblocks = { {256 * 1024, 1} }, |
| 1422 | .block_erase = erase_chip_block_jedec, |
| 1423 | }, |
| 1424 | }, |
| 1425 | .write = write_jedec_1, |
| 1426 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1427 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1428 | }, |
| 1429 | |
| 1430 | { |
| 1431 | .vendor = "AMIC", |
| 1432 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1433 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1434 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1435 | .model_id = AMIC_A29040B, |
| 1436 | .total_size = 512, |
| 1437 | .page_size = 64 * 1024, |
| 1438 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1439 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1440 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1441 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1442 | .block_erasers = |
| 1443 | { |
| 1444 | { |
| 1445 | .eraseblocks = { {64 * 1024, 8} }, |
| 1446 | .block_erase = erase_sector_jedec, |
| 1447 | }, { |
| 1448 | .eraseblocks = { {512 * 1024, 1} }, |
| 1449 | .block_erase = erase_chip_block_jedec, |
| 1450 | }, |
| 1451 | }, |
| 1452 | .write = write_jedec_1, |
| 1453 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1454 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1455 | }, |
| 1456 | |
| 1457 | { |
| 1458 | .vendor = "AMIC", |
| 1459 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1460 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1461 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1462 | .model_id = AMIC_A49LF040A, |
| 1463 | .total_size = 512, |
| 1464 | .page_size = 64 * 1024, |
| 1465 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1466 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1467 | .probe = probe_jedec, |
| 1468 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1469 | .block_erasers = |
| 1470 | { |
| 1471 | { |
| 1472 | .eraseblocks = { {64 * 1024, 8} }, |
| 1473 | .block_erase = erase_block_jedec, |
| 1474 | }, { |
| 1475 | .eraseblocks = { {512 * 1024, 1} }, |
| 1476 | .block_erase = erase_chip_block_jedec, |
| 1477 | } |
| 1478 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1479 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1480 | .write = write_jedec_1, |
| 1481 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1482 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1483 | }, |
| 1484 | |
| 1485 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1486 | .vendor = "Atmel", |
| 1487 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1488 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1489 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1490 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1491 | .total_size = 256, |
| 1492 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1493 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1494 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1495 | .tested = TEST_UNTESTED, |
| 1496 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1498 | .block_erasers = |
| 1499 | { |
| 1500 | { |
| 1501 | .eraseblocks = { {4 * 1024, 64} }, |
| 1502 | .block_erase = spi_block_erase_20, |
| 1503 | }, { |
| 1504 | .eraseblocks = { {32 * 1024, 8} }, |
| 1505 | .block_erase = spi_block_erase_52, |
| 1506 | }, { |
| 1507 | .eraseblocks = { {64 * 1024, 4} }, |
| 1508 | .block_erase = spi_block_erase_d8, |
| 1509 | }, { |
| 1510 | .eraseblocks = { {256 * 1024, 1} }, |
| 1511 | .block_erase = spi_block_erase_60, |
| 1512 | }, { |
| 1513 | .eraseblocks = { {256 * 1024, 1} }, |
| 1514 | .block_erase = spi_block_erase_c7, |
| 1515 | } |
| 1516 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1517 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1518 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1519 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1520 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1521 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1522 | }, |
| 1523 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1524 | { |
| 1525 | .vendor = "Atmel", |
| 1526 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1527 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1528 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1529 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1530 | .total_size = 512, |
| 1531 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1532 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1533 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1534 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1535 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1536 | .block_erasers = |
| 1537 | { |
| 1538 | { |
| 1539 | .eraseblocks = { {4 * 1024, 128} }, |
| 1540 | .block_erase = spi_block_erase_20, |
| 1541 | }, { |
| 1542 | .eraseblocks = { {32 * 1024, 16} }, |
| 1543 | .block_erase = spi_block_erase_52, |
| 1544 | }, { |
| 1545 | .eraseblocks = { {64 * 1024, 8} }, |
| 1546 | .block_erase = spi_block_erase_d8, |
| 1547 | }, { |
| 1548 | .eraseblocks = { {512 * 1024, 1} }, |
| 1549 | .block_erase = spi_block_erase_60, |
| 1550 | }, { |
| 1551 | .eraseblocks = { {512 * 1024, 1} }, |
| 1552 | .block_erase = spi_block_erase_c7, |
| 1553 | } |
| 1554 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1555 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1556 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1557 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1558 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1559 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1560 | }, |
| 1561 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1562 | { |
| 1563 | .vendor = "Atmel", |
| 1564 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1565 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1566 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1567 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1568 | .total_size = 1024, |
| 1569 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1570 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1571 | .tested = TEST_UNTESTED, |
| 1572 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1573 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1574 | .block_erasers = |
| 1575 | { |
| 1576 | { |
| 1577 | .eraseblocks = { {4 * 1024, 256} }, |
| 1578 | .block_erase = spi_block_erase_20, |
| 1579 | }, { |
| 1580 | .eraseblocks = { {32 * 1024, 32} }, |
| 1581 | .block_erase = spi_block_erase_52, |
| 1582 | }, { |
| 1583 | .eraseblocks = { {64 * 1024, 16} }, |
| 1584 | .block_erase = spi_block_erase_d8, |
| 1585 | }, { |
| 1586 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1587 | .block_erase = spi_block_erase_60, |
| 1588 | }, { |
| 1589 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1590 | .block_erase = spi_block_erase_c7, |
| 1591 | } |
| 1592 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1593 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1594 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1595 | .write = spi_chip_write_256, |
| 1596 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1597 | .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */ |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1598 | }, |
| 1599 | |
| 1600 | { |
| 1601 | .vendor = "Atmel", |
| 1602 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1603 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1604 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1605 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1606 | .total_size = 1024, |
| 1607 | .page_size = 256, |
| 1608 | .feature_bits = FEATURE_WRSR_WREN, |
| 1609 | .tested = TEST_UNTESTED, |
| 1610 | .probe = probe_spi_rdid, |
| 1611 | .probe_timing = TIMING_ZERO, |
| 1612 | .block_erasers = |
| 1613 | { |
| 1614 | { |
| 1615 | .eraseblocks = { {4 * 1024, 256} }, |
| 1616 | .block_erase = spi_block_erase_20, |
| 1617 | }, { |
| 1618 | .eraseblocks = { {32 * 1024, 32} }, |
| 1619 | .block_erase = spi_block_erase_52, |
| 1620 | }, { |
| 1621 | .eraseblocks = { {64 * 1024, 16} }, |
| 1622 | .block_erase = spi_block_erase_d8, |
| 1623 | }, { |
| 1624 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1625 | .block_erase = spi_block_erase_60, |
| 1626 | }, { |
| 1627 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1628 | .block_erase = spi_block_erase_c7, |
| 1629 | } |
| 1630 | }, |
| 1631 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1632 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1633 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1634 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1635 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1636 | }, |
| 1637 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1638 | { |
| 1639 | .vendor = "Atmel", |
| 1640 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1641 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1642 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1643 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1644 | .total_size = 2048, |
| 1645 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1646 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 1647 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1648 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1649 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1650 | .block_erasers = |
| 1651 | { |
| 1652 | { |
| 1653 | .eraseblocks = { {4 * 1024, 512} }, |
| 1654 | .block_erase = spi_block_erase_20, |
| 1655 | }, { |
| 1656 | .eraseblocks = { {32 * 1024, 64} }, |
| 1657 | .block_erase = spi_block_erase_52, |
| 1658 | }, { |
| 1659 | .eraseblocks = { {64 * 1024, 32} }, |
| 1660 | .block_erase = spi_block_erase_d8, |
| 1661 | }, { |
| 1662 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1663 | .block_erase = spi_block_erase_60, |
| 1664 | }, { |
| 1665 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1666 | .block_erase = spi_block_erase_c7, |
| 1667 | } |
| 1668 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1669 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1670 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1671 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1672 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1673 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1674 | }, |
| 1675 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1676 | { |
| 1677 | .vendor = "Atmel", |
| 1678 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1679 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1680 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1681 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1682 | .total_size = 4096, |
| 1683 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1684 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1685 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1686 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1687 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1688 | .block_erasers = |
| 1689 | { |
| 1690 | { |
| 1691 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1692 | .block_erase = spi_block_erase_20, |
| 1693 | }, { |
| 1694 | .eraseblocks = { {32 * 1024, 128} }, |
| 1695 | .block_erase = spi_block_erase_52, |
| 1696 | }, { |
| 1697 | .eraseblocks = { {64 * 1024, 64} }, |
| 1698 | .block_erase = spi_block_erase_d8, |
| 1699 | }, { |
| 1700 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1701 | .block_erase = spi_block_erase_60, |
| 1702 | }, { |
| 1703 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1704 | .block_erase = spi_block_erase_c7, |
| 1705 | } |
| 1706 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1707 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1708 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1709 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1710 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1711 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1712 | }, |
| 1713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1714 | { |
| 1715 | .vendor = "Atmel", |
| 1716 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1717 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1718 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1719 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1720 | .total_size = 4096, |
| 1721 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1722 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1723 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1724 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1725 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1726 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1727 | .block_erasers = |
| 1728 | { |
| 1729 | { |
| 1730 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1731 | .block_erase = spi_block_erase_20, |
| 1732 | }, { |
| 1733 | .eraseblocks = { {32 * 1024, 128} }, |
| 1734 | .block_erase = spi_block_erase_52, |
| 1735 | }, { |
| 1736 | .eraseblocks = { {64 * 1024, 64} }, |
| 1737 | .block_erase = spi_block_erase_d8, |
| 1738 | }, { |
| 1739 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1740 | .block_erase = spi_block_erase_60, |
| 1741 | }, { |
| 1742 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1743 | .block_erase = spi_block_erase_c7, |
| 1744 | } |
| 1745 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1746 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1747 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1748 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1749 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1750 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1751 | }, |
| 1752 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1753 | { |
| 1754 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1755 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1756 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1757 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1758 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1759 | .total_size = 8192, |
| 1760 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1761 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1762 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1763 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1764 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1765 | .block_erasers = |
| 1766 | { |
| 1767 | { |
| 1768 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1769 | .block_erase = spi_block_erase_20, |
| 1770 | }, { |
| 1771 | .eraseblocks = { {32 * 1024, 256} }, |
| 1772 | .block_erase = spi_block_erase_52, |
| 1773 | }, { |
| 1774 | .eraseblocks = { {64 * 1024, 128} }, |
| 1775 | .block_erase = spi_block_erase_d8, |
| 1776 | }, { |
| 1777 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1778 | .block_erase = spi_block_erase_60, |
| 1779 | }, { |
| 1780 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1781 | .block_erase = spi_block_erase_c7, |
| 1782 | } |
| 1783 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1784 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1785 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1786 | .write = spi_chip_write_256, |
| 1787 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1788 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1789 | }, |
| 1790 | |
| 1791 | { |
| 1792 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1793 | .name = "AT25DL081", |
| 1794 | .bustype = BUS_SPI, |
| 1795 | .manufacture_id = ATMEL_ID, |
| 1796 | .model_id = ATMEL_AT25DF081, |
| 1797 | .total_size = 1024, |
| 1798 | .page_size = 256, |
| 1799 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1800 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1801 | .tested = TEST_UNTESTED, |
| 1802 | .probe = probe_spi_rdid, |
| 1803 | .probe_timing = TIMING_ZERO, |
| 1804 | .block_erasers = |
| 1805 | { |
| 1806 | { |
| 1807 | .eraseblocks = { {4 * 1024, 256} }, |
| 1808 | .block_erase = spi_block_erase_20, |
| 1809 | }, { |
| 1810 | .eraseblocks = { {32 * 1024, 32} }, |
| 1811 | .block_erase = spi_block_erase_52, |
| 1812 | }, { |
| 1813 | .eraseblocks = { {64 * 1024, 16} }, |
| 1814 | .block_erase = spi_block_erase_d8, |
| 1815 | }, { |
| 1816 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1817 | .block_erase = spi_block_erase_60, |
| 1818 | }, { |
| 1819 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1820 | .block_erase = spi_block_erase_c7, |
| 1821 | } |
| 1822 | }, |
| 1823 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1824 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1825 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1826 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1827 | .voltage = {1650, 1950}, |
| 1828 | }, |
| 1829 | |
| 1830 | { |
| 1831 | .vendor = "Atmel", |
| 1832 | .name = "AT25DL161", |
| 1833 | .bustype = BUS_SPI, |
| 1834 | .manufacture_id = ATMEL_ID, |
| 1835 | .model_id = ATMEL_AT25DL161, |
| 1836 | .total_size = 2048, |
| 1837 | .page_size = 256, |
| 1838 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1839 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1840 | .tested = TEST_UNTESTED, |
| 1841 | .probe = probe_spi_rdid, |
| 1842 | .probe_timing = TIMING_ZERO, |
| 1843 | .block_erasers = |
| 1844 | { |
| 1845 | { |
| 1846 | .eraseblocks = { {4 * 1024, 512} }, |
| 1847 | .block_erase = spi_block_erase_20, |
| 1848 | }, { |
| 1849 | .eraseblocks = { {32 * 1024, 64} }, |
| 1850 | .block_erase = spi_block_erase_52, |
| 1851 | }, { |
| 1852 | .eraseblocks = { {64 * 1024, 32} }, |
| 1853 | .block_erase = spi_block_erase_d8, |
| 1854 | }, { |
| 1855 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1856 | .block_erase = spi_block_erase_60, |
| 1857 | }, { |
| 1858 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1859 | .block_erase = spi_block_erase_c7, |
| 1860 | } |
| 1861 | }, |
| 1862 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1863 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1864 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1865 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1866 | .voltage = {1650, 1950}, |
| 1867 | }, |
| 1868 | |
| 1869 | { |
| 1870 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1871 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1872 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1873 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1874 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1875 | .total_size = 2048, |
| 1876 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1877 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1878 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1879 | .tested = TEST_UNTESTED, |
| 1880 | .probe = probe_spi_rdid, |
| 1881 | .probe_timing = TIMING_ZERO, |
| 1882 | .block_erasers = |
| 1883 | { |
| 1884 | { |
| 1885 | .eraseblocks = { {4 * 1024, 512} }, |
| 1886 | .block_erase = spi_block_erase_20, |
| 1887 | }, { |
| 1888 | .eraseblocks = { {32 * 1024, 64} }, |
| 1889 | .block_erase = spi_block_erase_52, |
| 1890 | }, { |
| 1891 | .eraseblocks = { {64 * 1024, 32} }, |
| 1892 | .block_erase = spi_block_erase_d8, |
| 1893 | }, { |
| 1894 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1895 | .block_erase = spi_block_erase_60, |
| 1896 | }, { |
| 1897 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1898 | .block_erase = spi_block_erase_c7, |
| 1899 | } |
| 1900 | }, |
| 1901 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1902 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1903 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1904 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1905 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1906 | }, |
| 1907 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1908 | { |
| 1909 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1910 | .name = "AT25F512", |
| 1911 | .bustype = BUS_SPI, |
| 1912 | .manufacture_id = ATMEL_ID, |
| 1913 | .model_id = ATMEL_AT25F512, |
| 1914 | .total_size = 64, |
| 1915 | .page_size = 256, |
| 1916 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1917 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1918 | .probe = probe_spi_at25f, |
| 1919 | .probe_timing = TIMING_ZERO, |
| 1920 | .block_erasers = |
| 1921 | { |
| 1922 | { |
| 1923 | .eraseblocks = { {32 * 1024, 2} }, |
| 1924 | .block_erase = spi_block_erase_52, |
| 1925 | }, { |
| 1926 | .eraseblocks = { {64 * 1024, 1} }, |
| 1927 | .block_erase = spi_block_erase_62, |
| 1928 | } |
| 1929 | }, |
| 1930 | .printlock = spi_prettyprint_status_register_at25f, |
| 1931 | .unlock = spi_disable_blockprotect_at25f, |
| 1932 | .write = spi_chip_write_256, |
| 1933 | .read = spi_chip_read, |
| 1934 | .voltage = {2700, 3600}, |
| 1935 | }, |
| 1936 | |
| 1937 | { |
| 1938 | .vendor = "Atmel", |
| 1939 | .name = "AT25F512A", |
| 1940 | .bustype = BUS_SPI, |
| 1941 | .manufacture_id = ATMEL_ID, |
| 1942 | .model_id = ATMEL_AT25F512A, |
| 1943 | .total_size = 64, |
| 1944 | .page_size = 128, |
| 1945 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1946 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1947 | .probe = probe_spi_at25f, |
| 1948 | .probe_timing = TIMING_ZERO, |
| 1949 | .block_erasers = |
| 1950 | { |
| 1951 | { |
| 1952 | .eraseblocks = { {32 * 1024, 2} }, |
| 1953 | .block_erase = spi_block_erase_52, |
| 1954 | }, { |
| 1955 | .eraseblocks = { {64 * 1024, 1} }, |
| 1956 | .block_erase = spi_block_erase_62, |
| 1957 | } |
| 1958 | }, |
| 1959 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 1960 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 1961 | .unlock = spi_disable_blockprotect_at25f512a, |
| 1962 | .write = spi_chip_write_256, |
| 1963 | .read = spi_chip_read, |
| 1964 | .voltage = {2700, 3600}, |
| 1965 | }, |
| 1966 | |
| 1967 | { |
| 1968 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1969 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1970 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1971 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1972 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1973 | .total_size = 64, |
| 1974 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1975 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1976 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1977 | .tested = TEST_UNTESTED, |
| 1978 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1979 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1980 | .block_erasers = |
| 1981 | { |
| 1982 | { |
| 1983 | .eraseblocks = { {4 * 1024, 16} }, |
| 1984 | .block_erase = spi_block_erase_20, |
| 1985 | }, { |
| 1986 | .eraseblocks = { {32 * 1024, 2} }, |
| 1987 | .block_erase = spi_block_erase_52, |
| 1988 | }, { |
| 1989 | .eraseblocks = { {32 * 1024, 2} }, |
| 1990 | .block_erase = spi_block_erase_d8, |
| 1991 | }, { |
| 1992 | .eraseblocks = { {64 * 1024, 1} }, |
| 1993 | .block_erase = spi_block_erase_60, |
| 1994 | }, { |
| 1995 | .eraseblocks = { {64 * 1024, 1} }, |
| 1996 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 1997 | }, { |
| 1998 | .eraseblocks = { {64 * 1024, 1} }, |
| 1999 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2000 | } |
| 2001 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2002 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2003 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2004 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2005 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2006 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2007 | }, |
| 2008 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2009 | { |
| 2010 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2011 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 2012 | * All other properties seem to be the same.*/ |
| 2013 | .name = "AT25F1024(A)", |
| 2014 | .bustype = BUS_SPI, |
| 2015 | .manufacture_id = ATMEL_ID, |
| 2016 | .model_id = ATMEL_AT25F1024, |
| 2017 | .total_size = 128, |
| 2018 | .page_size = 256, |
| 2019 | .feature_bits = FEATURE_WRSR_WREN, |
| 2020 | .tested = TEST_OK_PREW, |
| 2021 | .probe = probe_spi_at25f, |
| 2022 | .probe_timing = TIMING_ZERO, |
| 2023 | .block_erasers = |
| 2024 | { |
| 2025 | { |
| 2026 | .eraseblocks = { {32 * 1024, 4} }, |
| 2027 | .block_erase = spi_block_erase_52, |
| 2028 | }, { |
| 2029 | .eraseblocks = { {128 * 1024, 1} }, |
| 2030 | .block_erase = spi_block_erase_62, |
| 2031 | } |
| 2032 | }, |
| 2033 | .printlock = spi_prettyprint_status_register_at25f, |
| 2034 | .unlock = spi_disable_blockprotect_at25f, |
| 2035 | .write = spi_chip_write_256, |
| 2036 | .read = spi_chip_read, |
| 2037 | .voltage = {2700, 3600}, |
| 2038 | }, |
| 2039 | |
| 2040 | { |
| 2041 | .vendor = "Atmel", |
| 2042 | .name = "AT25F2048", |
| 2043 | .bustype = BUS_SPI, |
| 2044 | .manufacture_id = ATMEL_ID, |
| 2045 | .model_id = ATMEL_AT25F2048, |
| 2046 | .total_size = 256, |
| 2047 | .page_size = 256, |
| 2048 | .feature_bits = FEATURE_WRSR_WREN, |
| 2049 | .tested = TEST_UNTESTED, |
| 2050 | .probe = probe_spi_at25f, |
| 2051 | .probe_timing = TIMING_ZERO, |
| 2052 | .block_erasers = |
| 2053 | { |
| 2054 | { |
| 2055 | .eraseblocks = { {64 * 1024, 4} }, |
| 2056 | .block_erase = spi_block_erase_52, |
| 2057 | }, { |
| 2058 | .eraseblocks = { {256 * 1024, 1} }, |
| 2059 | .block_erase = spi_block_erase_62, |
| 2060 | } |
| 2061 | }, |
| 2062 | .printlock = spi_prettyprint_status_register_at25f, |
| 2063 | .unlock = spi_disable_blockprotect_at25f, |
| 2064 | .write = spi_chip_write_256, |
| 2065 | .read = spi_chip_read, |
| 2066 | .voltage = {2700, 3600}, |
| 2067 | }, |
| 2068 | |
| 2069 | { |
| 2070 | .vendor = "Atmel", |
| 2071 | .name = "AT25F4096", |
| 2072 | .bustype = BUS_SPI, |
| 2073 | .manufacture_id = ATMEL_ID, |
| 2074 | .model_id = ATMEL_AT25F4096, |
| 2075 | .total_size = 512, |
| 2076 | .page_size = 256, |
| 2077 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2078 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2079 | .probe = probe_spi_at25f, |
| 2080 | .probe_timing = TIMING_ZERO, |
| 2081 | .block_erasers = |
| 2082 | { |
| 2083 | { |
| 2084 | .eraseblocks = { {64 * 1024, 8} }, |
| 2085 | .block_erase = spi_block_erase_52, |
| 2086 | }, { |
| 2087 | .eraseblocks = { {512 * 1024, 1} }, |
| 2088 | .block_erase = spi_block_erase_62, |
| 2089 | } |
| 2090 | }, |
| 2091 | .printlock = spi_prettyprint_status_register_at25f4096, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 2092 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2093 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2094 | .write = spi_chip_write_256, |
| 2095 | .read = spi_chip_read, |
| 2096 | .voltage = {2700, 3600}, |
| 2097 | }, |
| 2098 | |
| 2099 | { |
| 2100 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2101 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2102 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2103 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2104 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2105 | .total_size = 128, |
| 2106 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2107 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2108 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2109 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2110 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2111 | .block_erasers = |
| 2112 | { |
| 2113 | { |
| 2114 | .eraseblocks = { {4 * 1024, 32} }, |
| 2115 | .block_erase = spi_block_erase_20, |
| 2116 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2117 | .eraseblocks = { {4 * 1024, 32} }, |
| 2118 | .block_erase = spi_block_erase_d7, |
| 2119 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2120 | .eraseblocks = { {32 * 1024, 4} }, |
| 2121 | .block_erase = spi_block_erase_52, |
| 2122 | }, { |
| 2123 | .eraseblocks = { {32 * 1024, 4} }, |
| 2124 | .block_erase = spi_block_erase_d8, |
| 2125 | }, { |
| 2126 | .eraseblocks = { {128 * 1024, 1} }, |
| 2127 | .block_erase = spi_block_erase_60, |
| 2128 | }, { |
| 2129 | .eraseblocks = { {128 * 1024, 1} }, |
| 2130 | .block_erase = spi_block_erase_c7, |
| 2131 | } |
| 2132 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2133 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2134 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2135 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2136 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2137 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2138 | }, |
| 2139 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2140 | { |
| 2141 | .vendor = "Atmel", |
| 2142 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2143 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2144 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2145 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2146 | .total_size = 512, |
| 2147 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2148 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2149 | .tested = TEST_UNTESTED, |
| 2150 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2151 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2152 | .block_erasers = |
| 2153 | { |
| 2154 | { |
| 2155 | .eraseblocks = { {4 * 1024, 128} }, |
| 2156 | .block_erase = spi_block_erase_20, |
| 2157 | }, { |
| 2158 | .eraseblocks = { {64 * 1024, 8} }, |
| 2159 | .block_erase = spi_block_erase_52, |
| 2160 | }, { |
| 2161 | .eraseblocks = { {64 * 1024, 8} }, |
| 2162 | .block_erase = spi_block_erase_d8, |
| 2163 | }, { |
| 2164 | .eraseblocks = { {512 * 1024, 1} }, |
| 2165 | .block_erase = spi_block_erase_60, |
| 2166 | }, { |
| 2167 | .eraseblocks = { {512 * 1024, 1} }, |
| 2168 | .block_erase = spi_block_erase_c7, |
| 2169 | } |
| 2170 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2171 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2172 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2173 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2174 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2175 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2176 | }, |
| 2177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2178 | { |
| 2179 | .vendor = "Atmel", |
jvm | a3ab6c6 | 2018-03-08 15:43:20 +0100 | [diff] [blame^] | 2180 | .name = "AT25SF041", |
| 2181 | .bustype = BUS_SPI, |
| 2182 | .manufacture_id = ATMEL_ID, |
| 2183 | .model_id = ATMEL_AT25SF041, |
| 2184 | .total_size = 512, |
| 2185 | .page_size = 256, |
| 2186 | .feature_bits = FEATURE_WRSR_WREN, |
| 2187 | .tested = TEST_OK_PREW, |
| 2188 | .probe = probe_spi_rdid, |
| 2189 | .probe_timing = TIMING_ZERO, |
| 2190 | .block_erasers = |
| 2191 | { |
| 2192 | { |
| 2193 | .eraseblocks = { {4 * 1024, 128} }, |
| 2194 | .block_erase = spi_block_erase_20, |
| 2195 | }, { |
| 2196 | .eraseblocks = { {32 * 1024, 16} }, |
| 2197 | .block_erase = spi_block_erase_52, |
| 2198 | }, { |
| 2199 | .eraseblocks = { {64 * 1024, 8} }, |
| 2200 | .block_erase = spi_block_erase_d8, |
| 2201 | }, { |
| 2202 | .eraseblocks = { {512 * 1024, 1} }, |
| 2203 | .block_erase = spi_block_erase_60, |
| 2204 | }, { |
| 2205 | .eraseblocks = { {512 * 1024, 1} }, |
| 2206 | .block_erase = spi_block_erase_c7, |
| 2207 | } |
| 2208 | }, |
| 2209 | .printlock = spi_prettyprint_status_register_plain, |
| 2210 | .unlock = spi_disable_blockprotect, |
| 2211 | .write = spi_chip_write_256, |
| 2212 | .read = spi_chip_read, |
| 2213 | .voltage = {2500, 3600}, |
| 2214 | }, |
| 2215 | |
| 2216 | { |
| 2217 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2218 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2219 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2220 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2221 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2222 | .total_size = 512, |
| 2223 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2224 | /* 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] | 2225 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2226 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2227 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2228 | .block_erasers = |
| 2229 | { |
| 2230 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2231 | .eraseblocks = { {256, 2048} }, |
| 2232 | .block_erase = spi_block_erase_81, |
| 2233 | }, { |
| 2234 | .eraseblocks = { {2 * 1024, 256} }, |
| 2235 | .block_erase = spi_block_erase_50, |
| 2236 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2237 | .eraseblocks = { {4 * 1024, 128} }, |
| 2238 | .block_erase = spi_block_erase_20, |
| 2239 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2240 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2241 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2242 | /* 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] | 2243 | .write = spi_chip_write_1, |
| 2244 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2245 | .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] | 2246 | }, |
| 2247 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2248 | { |
| 2249 | .vendor = "Atmel", |
| 2250 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2251 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2252 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2253 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2254 | .total_size = 1024, |
| 2255 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2256 | .feature_bits = FEATURE_WRSR_WREN, |
| 2257 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2258 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2259 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2260 | .block_erasers = |
| 2261 | { |
| 2262 | { |
| 2263 | .eraseblocks = { {4 * 1024, 256} }, |
| 2264 | .block_erase = spi_block_erase_20, |
| 2265 | }, { |
| 2266 | .eraseblocks = { {32 * 1024, 32} }, |
| 2267 | .block_erase = spi_block_erase_52, |
| 2268 | }, { |
| 2269 | .eraseblocks = { {64 * 1024, 16} }, |
| 2270 | .block_erase = spi_block_erase_d8, |
| 2271 | }, { |
| 2272 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2273 | .block_erase = spi_block_erase_60, |
| 2274 | }, { |
| 2275 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2276 | .block_erase = spi_block_erase_c7, |
| 2277 | } |
| 2278 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2279 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2280 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2281 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2282 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2283 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2284 | }, |
| 2285 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2286 | { |
| 2287 | .vendor = "Atmel", |
| 2288 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2289 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2290 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2291 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2292 | .total_size = 2048, |
| 2293 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2294 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2295 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2296 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2297 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2298 | .block_erasers = |
| 2299 | { |
| 2300 | { |
| 2301 | .eraseblocks = { {4 * 1024, 512} }, |
| 2302 | .block_erase = spi_block_erase_20, |
| 2303 | }, { |
| 2304 | .eraseblocks = { {32 * 1024, 64} }, |
| 2305 | .block_erase = spi_block_erase_52, |
| 2306 | }, { |
| 2307 | .eraseblocks = { {64 * 1024, 32} }, |
| 2308 | .block_erase = spi_block_erase_d8, |
| 2309 | }, { |
| 2310 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2311 | .block_erase = spi_block_erase_60, |
| 2312 | }, { |
| 2313 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2314 | .block_erase = spi_block_erase_c7, |
| 2315 | } |
| 2316 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2317 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2318 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2319 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2320 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2321 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2322 | }, |
| 2323 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2324 | { |
| 2325 | .vendor = "Atmel", |
| 2326 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2327 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2328 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2329 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2330 | .total_size = 2048, |
| 2331 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2332 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2333 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2334 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2335 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2336 | .block_erasers = |
| 2337 | { |
| 2338 | { |
| 2339 | .eraseblocks = { {4 * 1024, 512} }, |
| 2340 | .block_erase = spi_block_erase_20, |
| 2341 | }, { |
| 2342 | .eraseblocks = { {32 * 1024, 64} }, |
| 2343 | .block_erase = spi_block_erase_52, |
| 2344 | }, { |
| 2345 | .eraseblocks = { {64 * 1024, 32} }, |
| 2346 | .block_erase = spi_block_erase_d8, |
| 2347 | }, { |
| 2348 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2349 | .block_erase = spi_block_erase_60, |
| 2350 | }, { |
| 2351 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2352 | .block_erase = spi_block_erase_c7, |
| 2353 | } |
| 2354 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2355 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2356 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2357 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2358 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2359 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2360 | }, |
| 2361 | |
| 2362 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2363 | /*{ |
| 2364 | .vendor = "Atmel", |
| 2365 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2366 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2367 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2368 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2369 | .total_size = 4096, |
| 2370 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2371 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2372 | .tested = TEST_UNTESTED, |
| 2373 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2374 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2375 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2376 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2377 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2378 | .read = spi_chip_read, |
| 2379 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2380 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2381 | { |
| 2382 | .vendor = "Atmel", |
| 2383 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2384 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2385 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2386 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2387 | .total_size = 512, |
| 2388 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 2389 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD }, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2390 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2391 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2392 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2393 | .block_erasers = |
| 2394 | { |
| 2395 | { |
| 2396 | .eraseblocks = { {4 * 1024, 128} }, |
| 2397 | .block_erase = spi_block_erase_20, |
| 2398 | }, { |
| 2399 | .eraseblocks = { {32 * 1024, 16} }, |
| 2400 | .block_erase = spi_block_erase_52, |
| 2401 | }, { |
| 2402 | .eraseblocks = { {64 * 1024, 8} }, |
| 2403 | .block_erase = spi_block_erase_d8, |
| 2404 | }, { |
| 2405 | .eraseblocks = { {512 * 1024, 1} }, |
| 2406 | .block_erase = spi_block_erase_60, |
| 2407 | }, { |
| 2408 | .eraseblocks = { {512 * 1024, 1} }, |
| 2409 | .block_erase = spi_block_erase_c7, |
| 2410 | } |
| 2411 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2412 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2413 | .write = NULL /* Incompatible Page write */, |
| 2414 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2415 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2416 | }, |
| 2417 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2418 | { |
| 2419 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2420 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2421 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2422 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2423 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2424 | .total_size = 64, |
| 2425 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2426 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2427 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2428 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2429 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2430 | .block_erasers = |
| 2431 | { |
| 2432 | { |
| 2433 | .eraseblocks = { {64 * 1024, 1} }, |
| 2434 | .block_erase = erase_chip_block_jedec, |
| 2435 | } |
| 2436 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2437 | .write = write_jedec, |
| 2438 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2439 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2440 | }, |
| 2441 | |
| 2442 | { |
| 2443 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2444 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2445 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2446 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2447 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2448 | .total_size = 128, |
| 2449 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2450 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2451 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2452 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2453 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2454 | .block_erasers = |
| 2455 | { |
| 2456 | { |
| 2457 | .eraseblocks = { {128 * 1024, 1} }, |
| 2458 | .block_erase = erase_chip_block_jedec, |
| 2459 | } |
| 2460 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2461 | .write = write_jedec, /* FIXME */ |
| 2462 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2463 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2464 | }, |
| 2465 | |
| 2466 | { |
| 2467 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2468 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2469 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2470 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2471 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2472 | .total_size = 256, |
| 2473 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2474 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2475 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2476 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2477 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2478 | .block_erasers = |
| 2479 | { |
| 2480 | { |
| 2481 | .eraseblocks = { {256 * 1024, 1} }, |
| 2482 | .block_erase = erase_chip_block_jedec, |
| 2483 | } |
| 2484 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2485 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2486 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2487 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2488 | }, |
| 2489 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2490 | { |
| 2491 | .vendor = "Atmel", |
| 2492 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2493 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2494 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2495 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2496 | .total_size = 512, |
| 2497 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2498 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2499 | .tested = TEST_UNTESTED, |
| 2500 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2501 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2502 | .block_erasers = |
| 2503 | { |
| 2504 | { |
| 2505 | .eraseblocks = { {512 * 1024, 1} }, |
| 2506 | .block_erase = erase_chip_block_jedec, |
| 2507 | } |
| 2508 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2509 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2510 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2511 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2512 | }, |
| 2513 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2514 | { |
| 2515 | .vendor = "Atmel", |
| 2516 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2517 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2518 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2519 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2520 | .total_size = 16896 /* No power of two sizes */, |
| 2521 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2522 | /* 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] | 2523 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2524 | .feature_bits = FEATURE_OTP, |
| 2525 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2526 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2527 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2528 | .block_erasers = |
| 2529 | { |
| 2530 | { |
| 2531 | .eraseblocks = { |
| 2532 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2533 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2534 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2535 | }, |
| 2536 | .block_erase = spi_erase_at45cs_sector, |
| 2537 | } |
| 2538 | }, |
| 2539 | .printlock = spi_prettyprint_status_register_plain, |
| 2540 | .gran = write_gran_1056bytes, |
| 2541 | .write = spi_write_at45db, |
| 2542 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2543 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2544 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2545 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2546 | { |
| 2547 | .vendor = "Atmel", |
| 2548 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2549 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2550 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2551 | .model_id = ATMEL_AT45DB011D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2552 | .total_size = 128 /* or 132, determined from status register */, |
| 2553 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2554 | /* 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] | 2555 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2556 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2557 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2558 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2559 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2560 | .block_erasers = |
| 2561 | { |
| 2562 | { |
| 2563 | .eraseblocks = { {256, 512} }, |
| 2564 | .block_erase = spi_erase_at45db_page, |
| 2565 | }, { |
| 2566 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2567 | .block_erase = spi_erase_at45db_block, |
| 2568 | }, { |
| 2569 | .eraseblocks = { |
| 2570 | {8 * 256, 1}, |
| 2571 | {120 * 256, 1}, |
| 2572 | {128 * 256, 3}, |
| 2573 | }, |
| 2574 | .block_erase = spi_erase_at45db_sector |
| 2575 | }, { |
| 2576 | .eraseblocks = { {128 * 1024, 1} }, |
| 2577 | .block_erase = spi_erase_at45db_chip, |
| 2578 | } |
| 2579 | }, |
| 2580 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2581 | .printlock = spi_prettyprint_status_register_at45db, |
| 2582 | /* granularity will be set by the probing function. */ |
| 2583 | .write = spi_write_at45db, |
| 2584 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2585 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2586 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2587 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2588 | { |
| 2589 | .vendor = "Atmel", |
| 2590 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2591 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2592 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2593 | .model_id = ATMEL_AT45DB021D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2594 | .total_size = 256 /* or 264, determined from status register */, |
| 2595 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2596 | /* 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] | 2597 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2598 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2599 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2600 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2601 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2602 | .block_erasers = |
| 2603 | { |
| 2604 | { |
| 2605 | .eraseblocks = { {256, 1024} }, |
| 2606 | .block_erase = spi_erase_at45db_page, |
| 2607 | }, { |
| 2608 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2609 | .block_erase = spi_erase_at45db_block, |
| 2610 | }, { |
| 2611 | .eraseblocks = { |
| 2612 | {8 * 256, 1}, |
| 2613 | {120 * 256, 1}, |
| 2614 | {128 * 256, 7}, |
| 2615 | }, |
| 2616 | .block_erase = spi_erase_at45db_sector |
| 2617 | }, { |
| 2618 | .eraseblocks = { {256 * 1024, 1} }, |
| 2619 | .block_erase = spi_erase_at45db_chip, |
| 2620 | } |
| 2621 | }, |
| 2622 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2623 | .printlock = spi_prettyprint_status_register_at45db, |
| 2624 | /* granularity will be set by the probing function. */ |
| 2625 | .write = spi_write_at45db, |
| 2626 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2627 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2628 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2629 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2630 | { |
| 2631 | .vendor = "Atmel", |
| 2632 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2633 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2634 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2635 | .model_id = ATMEL_AT45DB041D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2636 | .total_size = 512 /* or 528, determined from status register */, |
| 2637 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2638 | /* 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] | 2639 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2640 | .feature_bits = FEATURE_OTP, |
| 2641 | .tested = TEST_OK_PREW, |
| 2642 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2643 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2644 | .block_erasers = |
| 2645 | { |
| 2646 | { |
| 2647 | .eraseblocks = { {256, 2048} }, |
| 2648 | .block_erase = spi_erase_at45db_page, |
| 2649 | }, { |
| 2650 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2651 | .block_erase = spi_erase_at45db_block, |
| 2652 | }, { |
| 2653 | .eraseblocks = { |
| 2654 | {8 * 256, 1}, |
| 2655 | {248 * 256, 1}, |
| 2656 | {256 * 256, 7}, |
| 2657 | }, |
| 2658 | .block_erase = spi_erase_at45db_sector |
| 2659 | }, { |
| 2660 | .eraseblocks = { {512 * 1024, 1} }, |
| 2661 | .block_erase = spi_erase_at45db_chip, |
| 2662 | } |
| 2663 | }, |
| 2664 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2665 | .printlock = spi_prettyprint_status_register_at45db, |
| 2666 | /* granularity will be set by the probing function. */ |
| 2667 | .write = spi_write_at45db, |
| 2668 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2669 | .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] | 2670 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2671 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2672 | { |
| 2673 | .vendor = "Atmel", |
| 2674 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2675 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2676 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2677 | .model_id = ATMEL_AT45DB081D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2678 | .total_size = 1024 /* or 1056, determined from status register */, |
| 2679 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2680 | /* 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] | 2681 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2682 | .feature_bits = FEATURE_OTP, |
| 2683 | .tested = TEST_UNTESTED, |
| 2684 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2685 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2686 | .block_erasers = |
| 2687 | { |
| 2688 | { |
| 2689 | .eraseblocks = { {256, 4096} }, |
| 2690 | .block_erase = spi_erase_at45db_page, |
| 2691 | }, { |
| 2692 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2693 | .block_erase = spi_erase_at45db_block, |
| 2694 | }, { |
| 2695 | .eraseblocks = { |
| 2696 | {8 * 256, 1}, |
| 2697 | {248 * 256, 1}, |
| 2698 | {256 * 256, 15}, |
| 2699 | }, |
| 2700 | .block_erase = spi_erase_at45db_sector |
| 2701 | }, { |
| 2702 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2703 | .block_erase = spi_erase_at45db_chip, |
| 2704 | } |
| 2705 | }, |
| 2706 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2707 | .printlock = spi_prettyprint_status_register_at45db, |
| 2708 | /* granularity will be set by the probing function. */ |
| 2709 | .write = spi_write_at45db, |
| 2710 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2711 | .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] | 2712 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2714 | { |
| 2715 | .vendor = "Atmel", |
| 2716 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2717 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2718 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2719 | .model_id = ATMEL_AT45DB161D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2720 | .total_size = 2048 /* or 2112, determined from status register */, |
| 2721 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2722 | /* 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] | 2723 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2724 | .feature_bits = FEATURE_OTP, |
| 2725 | .tested = TEST_OK_PREW, |
| 2726 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2727 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2728 | .block_erasers = |
| 2729 | { |
| 2730 | { |
| 2731 | .eraseblocks = { {512, 4096} }, |
| 2732 | .block_erase = spi_erase_at45db_page, |
| 2733 | }, { |
| 2734 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2735 | .block_erase = spi_erase_at45db_block, |
| 2736 | }, { |
| 2737 | .eraseblocks = { |
| 2738 | {8 * 512, 1}, |
| 2739 | {248 * 512, 1}, |
| 2740 | {256 * 512, 15}, |
| 2741 | }, |
| 2742 | .block_erase = spi_erase_at45db_sector |
| 2743 | }, { |
| 2744 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2745 | .block_erase = spi_erase_at45db_chip, |
| 2746 | } |
| 2747 | }, |
| 2748 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2749 | .printlock = spi_prettyprint_status_register_at45db, |
| 2750 | /* granularity will be set by the probing function. */ |
| 2751 | .write = spi_write_at45db, |
| 2752 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2753 | .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] | 2754 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2755 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2756 | { |
| 2757 | .vendor = "Atmel", |
| 2758 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2759 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2760 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2761 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2762 | .total_size = 4224 /* No power of two sizes */, |
| 2763 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2764 | /* 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] | 2765 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2766 | .feature_bits = FEATURE_OTP, |
| 2767 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2768 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2769 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2770 | .block_erasers = |
| 2771 | { |
| 2772 | { |
| 2773 | .eraseblocks = { {528, 8192} }, |
| 2774 | .block_erase = spi_erase_at45db_page, |
| 2775 | }, { |
| 2776 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2777 | .block_erase = spi_erase_at45db_block, |
| 2778 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2779 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2780 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2781 | .eraseblocks = { |
| 2782 | {8 * 528, 1}, |
| 2783 | {120 * 528, 1}, |
| 2784 | {128 * 528, 63}, |
| 2785 | }, |
| 2786 | .block_erase = spi_erase_at45db_sector |
| 2787 | }, */ { |
| 2788 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2789 | .block_erase = spi_erase_at45db_chip, |
| 2790 | } |
| 2791 | }, |
| 2792 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
| 2793 | .gran = write_gran_528bytes, |
| 2794 | .write = spi_write_at45db, |
| 2795 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2796 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2797 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2798 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2799 | { |
| 2800 | .vendor = "Atmel", |
| 2801 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2802 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2803 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2804 | .model_id = ATMEL_AT45DB321D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2805 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2806 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2807 | /* 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] | 2808 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2809 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2810 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2811 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2812 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2813 | .block_erasers = |
| 2814 | { |
| 2815 | { |
| 2816 | .eraseblocks = { {512, 8192} }, |
| 2817 | .block_erase = spi_erase_at45db_page, |
| 2818 | }, { |
| 2819 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2820 | .block_erase = spi_erase_at45db_block, |
| 2821 | }, { |
| 2822 | .eraseblocks = { |
| 2823 | {8 * 512, 1}, |
| 2824 | {120 * 512, 1}, |
| 2825 | {128 * 512, 63}, |
| 2826 | }, |
| 2827 | .block_erase = spi_erase_at45db_sector |
| 2828 | }, { |
| 2829 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2830 | .block_erase = spi_erase_at45db_chip, |
| 2831 | } |
| 2832 | }, |
| 2833 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2834 | .printlock = spi_prettyprint_status_register_at45db, |
| 2835 | /* granularity will be set by the probing function. */ |
| 2836 | .write = spi_write_at45db, |
| 2837 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2838 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2839 | }, |
| 2840 | |
| 2841 | { |
| 2842 | .vendor = "Atmel", |
| 2843 | .name = "AT45DB321E", |
| 2844 | .bustype = BUS_SPI, |
| 2845 | .manufacture_id = ATMEL_ID, |
| 2846 | .model_id = ATMEL_AT45DB321C, |
| 2847 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2848 | .page_size = 512 /* or 528, determined from status register */, |
| 2849 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2850 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2851 | .feature_bits = FEATURE_OTP, |
| 2852 | .tested = TEST_UNTESTED, |
| 2853 | .probe = probe_spi_at45db, |
| 2854 | .probe_timing = TIMING_ZERO, |
| 2855 | .block_erasers = |
| 2856 | { |
| 2857 | { |
| 2858 | .eraseblocks = { {512, 8192} }, |
| 2859 | .block_erase = spi_erase_at45db_page, |
| 2860 | }, { |
| 2861 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2862 | .block_erase = spi_erase_at45db_block, |
| 2863 | }, { |
| 2864 | .eraseblocks = { |
| 2865 | {8 * 512, 1}, |
| 2866 | {120 * 512, 1}, |
| 2867 | {128 * 512, 63}, |
| 2868 | }, |
| 2869 | .block_erase = spi_erase_at45db_sector |
| 2870 | }, { |
| 2871 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2872 | .block_erase = spi_erase_at45db_chip, |
| 2873 | } |
| 2874 | }, |
| 2875 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2876 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
| 2877 | /* granularity will be set by the probing function. */ |
| 2878 | .write = spi_write_at45db, |
| 2879 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2880 | .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] | 2881 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2882 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2883 | { |
| 2884 | .vendor = "Atmel", |
| 2885 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2886 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2887 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2888 | .model_id = ATMEL_AT45DB642D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2889 | .total_size = 8192 /* or 8448, determined from status register */, |
| 2890 | .page_size = 1024 /* or 1056, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2891 | /* 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] | 2892 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2893 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2894 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2895 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2896 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2897 | .block_erasers = |
| 2898 | { |
| 2899 | { |
| 2900 | .eraseblocks = { {1024, 8192} }, |
| 2901 | .block_erase = spi_erase_at45db_page, |
| 2902 | }, { |
| 2903 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 2904 | .block_erase = spi_erase_at45db_block, |
| 2905 | }, { |
| 2906 | .eraseblocks = { |
| 2907 | {8 * 1024, 1}, |
| 2908 | {248 * 1024, 1}, |
| 2909 | {256 * 1024, 31}, |
| 2910 | }, |
| 2911 | .block_erase = spi_erase_at45db_sector |
| 2912 | }, { |
| 2913 | .eraseblocks = { {8192 * 1024, 1} }, |
| 2914 | .block_erase = spi_erase_at45db_chip, |
| 2915 | } |
| 2916 | }, |
| 2917 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2918 | .printlock = spi_prettyprint_status_register_at45db, |
| 2919 | /* granularity will be set by the probing function. */ |
| 2920 | .write = spi_write_at45db, |
| 2921 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2922 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2923 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2924 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2925 | { |
| 2926 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2927 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2928 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2929 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2930 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2931 | .total_size = 64, |
| 2932 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2933 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2934 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2935 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2936 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2937 | .block_erasers = |
| 2938 | { |
| 2939 | { |
| 2940 | .eraseblocks = { {64 * 1024, 1} }, |
| 2941 | .block_erase = erase_chip_block_jedec, |
| 2942 | } |
| 2943 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2944 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2945 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2946 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2947 | }, |
| 2948 | |
| 2949 | { |
| 2950 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2951 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2952 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2953 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2954 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2955 | .total_size = 256, |
| 2956 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2957 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2958 | .tested = TEST_UNTESTED, |
| 2959 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2960 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2961 | .block_erasers = |
| 2962 | { |
| 2963 | { |
| 2964 | .eraseblocks = { |
| 2965 | {16 * 1024, 1}, |
| 2966 | {8 * 1024, 2}, |
| 2967 | {96 * 1024, 1}, |
| 2968 | {128 * 1024, 1}, |
| 2969 | }, |
| 2970 | .block_erase = erase_sector_jedec, |
| 2971 | }, { |
| 2972 | .eraseblocks = { {256 * 1024, 1} }, |
| 2973 | .block_erase = erase_chip_block_jedec, |
| 2974 | } |
| 2975 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2976 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2977 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2978 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2979 | }, |
| 2980 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2981 | { |
| 2982 | .vendor = "Atmel", |
| 2983 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2984 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2985 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2986 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2987 | .total_size = 256, |
| 2988 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2989 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2990 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2991 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2992 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2993 | .block_erasers = |
| 2994 | { |
| 2995 | { |
| 2996 | .eraseblocks = { |
| 2997 | {128 * 1024, 1}, |
| 2998 | {96 * 1024, 1}, |
| 2999 | {8 * 1024, 2}, |
| 3000 | {16 * 1024, 1}, |
| 3001 | }, |
| 3002 | .block_erase = erase_sector_jedec, |
| 3003 | }, { |
| 3004 | .eraseblocks = { {256 * 1024, 1} }, |
| 3005 | .block_erase = erase_chip_block_jedec, |
| 3006 | } |
| 3007 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3008 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3009 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3010 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3011 | }, |
| 3012 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3013 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3014 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3015 | .name = "AT49(H)F010", |
| 3016 | .bustype = BUS_PARALLEL, |
| 3017 | .manufacture_id = ATMEL_ID, |
| 3018 | .model_id = ATMEL_AT49F010, |
| 3019 | .total_size = 128, |
| 3020 | .page_size = 0, /* unused */ |
| 3021 | .feature_bits = FEATURE_EITHER_RESET, |
| 3022 | .tested = TEST_OK_PREW, |
| 3023 | .probe = probe_jedec, |
| 3024 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3025 | .block_erasers = |
| 3026 | { |
| 3027 | { |
| 3028 | .eraseblocks = { {128 * 1024, 1} }, |
| 3029 | .block_erase = erase_chip_block_jedec, |
| 3030 | } |
| 3031 | }, |
| 3032 | .printlock = printlock_at49f, |
| 3033 | .write = write_jedec_1, |
| 3034 | .read = read_memmapped, |
| 3035 | .voltage = {4500, 5500}, |
| 3036 | }, |
| 3037 | |
| 3038 | { |
| 3039 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3040 | .name = "AT49F020", |
| 3041 | .bustype = BUS_PARALLEL, |
| 3042 | .manufacture_id = ATMEL_ID, |
| 3043 | .model_id = ATMEL_AT49F020, |
| 3044 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3045 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3046 | .feature_bits = FEATURE_EITHER_RESET, |
| 3047 | .tested = TEST_OK_PRE, |
| 3048 | .probe = probe_jedec, |
| 3049 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3050 | .block_erasers = |
| 3051 | { |
| 3052 | { |
| 3053 | .eraseblocks = { {256 * 1024, 1} }, |
| 3054 | .block_erase = erase_chip_block_jedec, |
| 3055 | } |
| 3056 | /* Chip features an optional permanent write protection |
| 3057 | * of the first 8 kB. The erase function is the same as |
| 3058 | * above, but 00000H to 01FFFH will not be erased. |
| 3059 | * FIXME: add another eraser when partial erasers are |
| 3060 | * supported. |
| 3061 | */ |
| 3062 | }, |
| 3063 | .printlock = printlock_at49f, |
| 3064 | .write = write_jedec_1, |
| 3065 | .read = read_memmapped, |
| 3066 | .voltage = {4500, 5500}, |
| 3067 | }, |
| 3068 | |
| 3069 | { |
| 3070 | .vendor = "Atmel", |
| 3071 | .name = "AT49F040", |
| 3072 | .bustype = BUS_PARALLEL, |
| 3073 | .manufacture_id = ATMEL_ID, |
| 3074 | .model_id = ATMEL_AT49F040, |
| 3075 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3076 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3077 | .feature_bits = FEATURE_EITHER_RESET, |
| 3078 | .tested = TEST_UNTESTED, |
| 3079 | .probe = probe_jedec, |
| 3080 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3081 | .block_erasers = |
| 3082 | { |
| 3083 | { |
| 3084 | .eraseblocks = { {512 * 1024, 1} }, |
| 3085 | .block_erase = erase_chip_block_jedec, |
| 3086 | } |
| 3087 | /* Chip features an optional permanent write protection |
| 3088 | * of the first 16 kB. The erase function is the same as |
| 3089 | * above, but 00000H to 03FFFH will not be erased. |
| 3090 | * FIXME: add another eraser when partial erasers are |
| 3091 | * supported. |
| 3092 | */ |
| 3093 | }, |
| 3094 | .printlock = printlock_at49f, |
| 3095 | .write = write_jedec_1, |
| 3096 | .read = read_memmapped, |
| 3097 | .voltage = {4500, 5500}, |
| 3098 | }, |
| 3099 | |
| 3100 | { |
| 3101 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3102 | .name = "AT49F080", |
| 3103 | .bustype = BUS_PARALLEL, |
| 3104 | .manufacture_id = ATMEL_ID, |
| 3105 | .model_id = ATMEL_AT49F080, |
| 3106 | .total_size = 1024, |
| 3107 | .page_size = 0, /* unused */ |
| 3108 | .feature_bits = FEATURE_EITHER_RESET, |
| 3109 | .tested = TEST_UNTESTED, |
| 3110 | .probe = probe_jedec, |
| 3111 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3112 | .block_erasers = |
| 3113 | { |
| 3114 | { |
| 3115 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3116 | .block_erase = erase_chip_block_jedec, |
| 3117 | } |
| 3118 | /* Chip features an optional permanent write protection |
| 3119 | * of the first 16 kB. The erase function is the same as |
| 3120 | * above, but 00000H to 03FFFH will not be erased. |
| 3121 | * FIXME: add another eraser when partial erasers are |
| 3122 | * supported. |
| 3123 | */ |
| 3124 | }, |
| 3125 | .printlock = printlock_at49f, |
| 3126 | .write = write_jedec_1, |
| 3127 | .read = read_memmapped, |
| 3128 | .voltage = {4500, 5500}, |
| 3129 | }, |
| 3130 | |
| 3131 | { |
| 3132 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3133 | .vendor = "Atmel", |
| 3134 | .name = "AT49F080T", |
| 3135 | .bustype = BUS_PARALLEL, |
| 3136 | .manufacture_id = ATMEL_ID, |
| 3137 | .model_id = ATMEL_AT49F080T, |
| 3138 | .total_size = 1024, |
| 3139 | .page_size = 0, /* unused */ |
| 3140 | .feature_bits = FEATURE_EITHER_RESET, |
| 3141 | .tested = TEST_UNTESTED, |
| 3142 | .probe = probe_jedec, |
| 3143 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3144 | .block_erasers = |
| 3145 | { |
| 3146 | { |
| 3147 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3148 | .block_erase = erase_chip_block_jedec, |
| 3149 | } |
| 3150 | /* Chip features an optional permanent write protection |
| 3151 | * of the first 16 kB. The erase function is the same as |
| 3152 | * above, but FC000H to FFFFFH will not be erased. |
| 3153 | * FIXME: add another eraser when partial erasers are |
| 3154 | * supported. |
| 3155 | */ |
| 3156 | }, |
| 3157 | .printlock = printlock_at49f, |
| 3158 | .write = write_jedec_1, |
| 3159 | .read = read_memmapped, |
| 3160 | .voltage = {4500, 5500}, |
| 3161 | }, |
| 3162 | |
| 3163 | { |
| 3164 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3165 | .name = "AT49LH002", |
| 3166 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3167 | .manufacture_id = ATMEL_ID, |
| 3168 | .model_id = ATMEL_AT49LH002, |
| 3169 | .total_size = 256, |
| 3170 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3171 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3172 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3173 | .probe = probe_82802ab, |
| 3174 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3175 | .block_erasers = |
| 3176 | { |
| 3177 | { |
| 3178 | .eraseblocks = { |
| 3179 | {64 * 1024, 3}, |
| 3180 | {32 * 1024, 1}, |
| 3181 | {8 * 1024, 2}, |
| 3182 | {16 * 1024, 1}, |
| 3183 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3184 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3185 | }, { |
| 3186 | .eraseblocks = { |
| 3187 | {64 * 1024, 4}, |
| 3188 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3189 | .block_erase = erase_block_82802ab, |
| 3190 | }, |
| 3191 | }, |
| 3192 | .printlock = printlock_regspace2_block_eraser_0, |
| 3193 | .unlock = unlock_regspace2_block_eraser_0, |
| 3194 | .write = write_82802ab, |
| 3195 | .read = read_memmapped, |
| 3196 | .voltage = {3000, 3600}, |
| 3197 | }, |
| 3198 | |
| 3199 | { |
| 3200 | .vendor = "Atmel", |
| 3201 | .name = "AT49LH00B4", |
| 3202 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3203 | .manufacture_id = ATMEL_ID, |
| 3204 | .model_id = ATMEL_AT49LH00B4, |
| 3205 | .total_size = 512, |
| 3206 | .page_size = 0, /* unused */ |
| 3207 | .feature_bits = FEATURE_REGISTERMAP, |
| 3208 | .tested = TEST_UNTESTED, |
| 3209 | .probe = probe_82802ab, |
| 3210 | .probe_timing = TIMING_ZERO, |
| 3211 | .block_erasers = |
| 3212 | { |
| 3213 | { |
| 3214 | .eraseblocks = { |
| 3215 | {8 * 1024, 2}, |
| 3216 | {16 * 1024, 1}, |
| 3217 | {32 * 1024, 1}, |
| 3218 | {64 * 1024, 7}, |
| 3219 | }, |
| 3220 | .block_erase = NULL, /* TODO: Implement. */ |
| 3221 | }, { |
| 3222 | .eraseblocks = { |
| 3223 | {64 * 1024, 8}, |
| 3224 | }, |
| 3225 | .block_erase = erase_block_82802ab, |
| 3226 | }, |
| 3227 | }, |
| 3228 | .printlock = printlock_regspace2_block_eraser_0, |
| 3229 | .unlock = unlock_regspace2_block_eraser_0, |
| 3230 | .write = write_82802ab, |
| 3231 | .read = read_memmapped, |
| 3232 | .voltage = {3000, 3600}, |
| 3233 | }, |
| 3234 | |
| 3235 | { |
| 3236 | .vendor = "Atmel", |
| 3237 | .name = "AT49LH004", |
| 3238 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3239 | .manufacture_id = ATMEL_ID, |
| 3240 | .model_id = ATMEL_AT49LH004, |
| 3241 | .total_size = 512, |
| 3242 | .page_size = 0, /* unused */ |
| 3243 | .feature_bits = FEATURE_REGISTERMAP, |
| 3244 | .tested = TEST_UNTESTED, |
| 3245 | .probe = probe_82802ab, |
| 3246 | .probe_timing = TIMING_ZERO, |
| 3247 | .block_erasers = |
| 3248 | { |
| 3249 | { |
| 3250 | .eraseblocks = { |
| 3251 | {64 * 1024, 7}, |
| 3252 | {32 * 1024, 1}, |
| 3253 | {8 * 1024, 2}, |
| 3254 | {16 * 1024, 1}, |
| 3255 | }, |
| 3256 | .block_erase = erase_block_82802ab, |
| 3257 | }, { |
| 3258 | .eraseblocks = { |
| 3259 | {64 * 1024, 8}, |
| 3260 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3261 | .block_erase = NULL, /* TODO: Implement. */ |
| 3262 | }, |
| 3263 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3264 | .printlock = printlock_regspace2_block_eraser_0, |
| 3265 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3266 | .write = write_82802ab, |
| 3267 | .read = read_memmapped, |
| 3268 | .voltage = {3000, 3600}, |
| 3269 | }, |
| 3270 | |
| 3271 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3272 | .vendor = "Catalyst", |
| 3273 | .name = "CAT28F512", |
| 3274 | .bustype = BUS_PARALLEL, |
| 3275 | .manufacture_id = CATALYST_ID, |
| 3276 | .model_id = CATALYST_CAT28F512, |
| 3277 | .total_size = 64, |
| 3278 | .page_size = 0, /* unused */ |
| 3279 | .feature_bits = 0, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 3280 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD }, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3281 | .probe = probe_jedec, /* FIXME! */ |
| 3282 | .probe_timing = TIMING_ZERO, |
| 3283 | .block_erasers = |
| 3284 | { |
| 3285 | { |
| 3286 | .eraseblocks = { {64 * 1024, 1} }, |
| 3287 | .block_erase = NULL, /* TODO */ |
| 3288 | }, |
| 3289 | }, |
| 3290 | .write = NULL, /* TODO */ |
| 3291 | .read = read_memmapped, |
| 3292 | .voltage = {4500, 5500}, |
| 3293 | }, |
| 3294 | |
| 3295 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3296 | .vendor = "Bright", |
| 3297 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3298 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3299 | .manufacture_id = BRIGHT_ID, |
| 3300 | .model_id = BRIGHT_BM29F040, |
| 3301 | .total_size = 512, |
| 3302 | .page_size = 64 * 1024, |
| 3303 | .feature_bits = FEATURE_EITHER_RESET, |
| 3304 | .tested = TEST_OK_PR, |
| 3305 | .probe = probe_jedec, |
| 3306 | .probe_timing = TIMING_ZERO, |
| 3307 | .block_erasers = |
| 3308 | { |
| 3309 | { |
| 3310 | .eraseblocks = { {64 * 1024, 8} }, |
| 3311 | .block_erase = erase_sector_jedec, |
| 3312 | }, { |
| 3313 | .eraseblocks = { {512 * 1024, 1} }, |
| 3314 | .block_erase = erase_chip_block_jedec, |
| 3315 | }, |
| 3316 | }, |
| 3317 | .write = write_jedec_1, |
| 3318 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3319 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3320 | }, |
| 3321 | |
| 3322 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3323 | .vendor = "ENE", |
| 3324 | .name = "KB9012 (EDI)", |
| 3325 | .bustype = BUS_SPI, |
| 3326 | .spi_cmd_set = SPI_EDI, |
| 3327 | .total_size = 128, |
| 3328 | .page_size = 128, |
| 3329 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3330 | .tested = TEST_OK_PREW, |
| 3331 | .probe = edi_probe_kb9012, |
| 3332 | .probe_timing = TIMING_ZERO, |
| 3333 | .block_erasers = |
| 3334 | { |
| 3335 | { |
| 3336 | .eraseblocks = { {128, 1024} }, |
| 3337 | .block_erase = edi_chip_block_erase, |
| 3338 | }, |
| 3339 | }, |
| 3340 | .gran = write_gran_128bytes, |
| 3341 | .write = edi_chip_write, |
| 3342 | .read = edi_chip_read, |
| 3343 | .voltage = {2700, 3600}, |
| 3344 | }, |
| 3345 | |
| 3346 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3347 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3348 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3349 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3350 | .manufacture_id = ESMT_ID, |
| 3351 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3352 | .total_size = 256, |
| 3353 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3354 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3355 | .tested = TEST_UNTESTED, |
| 3356 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3357 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3358 | .block_erasers = |
| 3359 | { |
| 3360 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3361 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3362 | {128 * 1024, 1}, |
| 3363 | {96 * 1024, 1}, |
| 3364 | {8 * 1024, 2}, |
| 3365 | {16 * 1024, 1}, |
| 3366 | }, |
| 3367 | .block_erase = erase_sector_jedec, |
| 3368 | }, { |
| 3369 | .eraseblocks = { {256 * 1024, 1} }, |
| 3370 | .block_erase = erase_chip_block_jedec, |
| 3371 | } |
| 3372 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3373 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3374 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3375 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3376 | }, |
| 3377 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3378 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3379 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3380 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3381 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3382 | .manufacture_id = ESMT_ID, |
| 3383 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3384 | .total_size = 1024, |
| 3385 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3386 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3387 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3388 | .probe = probe_spi_rdid, |
| 3389 | .probe_timing = TIMING_ZERO, |
| 3390 | .block_erasers = |
| 3391 | { |
| 3392 | { |
| 3393 | .eraseblocks = { {4 * 1024, 256} }, |
| 3394 | .block_erase = spi_block_erase_20, |
| 3395 | }, { |
| 3396 | .eraseblocks = { {64 * 1024, 16} }, |
| 3397 | .block_erase = spi_block_erase_d8, |
| 3398 | }, { |
| 3399 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3400 | .block_erase = spi_block_erase_60, |
| 3401 | }, { |
| 3402 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3403 | .block_erase = spi_block_erase_c7, |
| 3404 | } |
| 3405 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3406 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3407 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3408 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3409 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3410 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3411 | }, |
| 3412 | |
| 3413 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3414 | .vendor = "ESMT", |
| 3415 | .name = "F25L32PA", |
| 3416 | .bustype = BUS_SPI, |
| 3417 | .manufacture_id = ESMT_ID, |
| 3418 | .model_id = ESMT_F25L32PA, |
| 3419 | .total_size = 4096, |
| 3420 | .page_size = 256, |
| 3421 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3422 | .tested = TEST_UNTESTED, |
| 3423 | .probe = probe_spi_rdid, |
| 3424 | .probe_timing = TIMING_ZERO, |
| 3425 | .block_erasers = |
| 3426 | { |
| 3427 | { |
| 3428 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3429 | .block_erase = spi_block_erase_20, |
| 3430 | }, { |
| 3431 | .eraseblocks = { {64 * 1024, 64} }, |
| 3432 | .block_erase = spi_block_erase_d8, |
| 3433 | }, { |
| 3434 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3435 | .block_erase = spi_block_erase_60, |
| 3436 | }, { |
| 3437 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3438 | .block_erase = spi_block_erase_c7, |
| 3439 | } |
| 3440 | }, |
| 3441 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3442 | .unlock = spi_disable_blockprotect, |
| 3443 | .write = spi_chip_write_256, |
| 3444 | .read = spi_chip_read, |
| 3445 | .voltage = {2700, 3600}, |
| 3446 | }, |
| 3447 | |
| 3448 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3449 | .vendor = "Eon", |
| 3450 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3451 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3452 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3453 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3454 | .total_size = 64, |
| 3455 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3456 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3457 | .tested = TEST_UNTESTED, |
| 3458 | .probe = probe_spi_rdid, |
| 3459 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3460 | .block_erasers = |
| 3461 | { |
| 3462 | { |
| 3463 | .eraseblocks = { |
| 3464 | {4 * 1024, 2}, |
| 3465 | {8 * 1024, 1}, |
| 3466 | {16 * 1024, 1}, |
| 3467 | {32 * 1024, 1}, |
| 3468 | }, |
| 3469 | .block_erase = spi_block_erase_d8, |
| 3470 | }, { |
| 3471 | .eraseblocks = { {64 * 1024, 1} }, |
| 3472 | .block_erase = spi_block_erase_c7, |
| 3473 | } |
| 3474 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3475 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3476 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3477 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3478 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3479 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3480 | }, |
| 3481 | |
| 3482 | { |
| 3483 | .vendor = "Eon", |
| 3484 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3485 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3486 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3487 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3488 | .total_size = 64, |
| 3489 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3490 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3491 | .tested = TEST_UNTESTED, |
| 3492 | .probe = probe_spi_rdid, |
| 3493 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3494 | .block_erasers = |
| 3495 | { |
| 3496 | { |
| 3497 | .eraseblocks = { |
| 3498 | {32 * 1024, 1}, |
| 3499 | {16 * 1024, 1}, |
| 3500 | {8 * 1024, 1}, |
| 3501 | {4 * 1024, 2}, |
| 3502 | }, |
| 3503 | .block_erase = spi_block_erase_d8, |
| 3504 | }, { |
| 3505 | .eraseblocks = { {64 * 1024, 1} }, |
| 3506 | .block_erase = spi_block_erase_c7, |
| 3507 | } |
| 3508 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3509 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3510 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3511 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3512 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3513 | .voltage = {2700, 3600}, |
| 3514 | }, |
| 3515 | |
| 3516 | { |
| 3517 | .vendor = "Eon", |
| 3518 | .name = "EN25P05", |
| 3519 | .bustype = BUS_SPI, |
| 3520 | .manufacture_id = EON_ID_NOPREFIX, |
| 3521 | .model_id = EON_EN25B05, |
| 3522 | .total_size = 64, |
| 3523 | .page_size = 256, |
| 3524 | .feature_bits = FEATURE_WRSR_WREN, |
| 3525 | .tested = TEST_UNTESTED, |
| 3526 | .probe = probe_spi_rdid, |
| 3527 | .probe_timing = TIMING_ZERO, |
| 3528 | .block_erasers = |
| 3529 | { |
| 3530 | { |
| 3531 | .eraseblocks = { |
| 3532 | {32 * 1024, 2} }, |
| 3533 | .block_erase = spi_block_erase_d8, |
| 3534 | }, { |
| 3535 | .eraseblocks = { {64 * 1024, 1} }, |
| 3536 | .block_erase = spi_block_erase_c7, |
| 3537 | } |
| 3538 | }, |
| 3539 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3540 | .unlock = spi_disable_blockprotect, |
| 3541 | .write = spi_chip_write_256, |
| 3542 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3543 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3544 | }, |
| 3545 | |
| 3546 | { |
| 3547 | .vendor = "Eon", |
| 3548 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3549 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3550 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3551 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3552 | .total_size = 128, |
| 3553 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3554 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3555 | .tested = TEST_UNTESTED, |
| 3556 | .probe = probe_spi_rdid, |
| 3557 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3558 | .block_erasers = |
| 3559 | { |
| 3560 | { |
| 3561 | .eraseblocks = { |
| 3562 | {4 * 1024, 2}, |
| 3563 | {8 * 1024, 1}, |
| 3564 | {16 * 1024, 1}, |
| 3565 | {32 * 1024, 3}, |
| 3566 | }, |
| 3567 | .block_erase = spi_block_erase_d8, |
| 3568 | }, { |
| 3569 | .eraseblocks = { {128 * 1024, 1} }, |
| 3570 | .block_erase = spi_block_erase_c7, |
| 3571 | } |
| 3572 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3573 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3574 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3575 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3576 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3577 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3578 | }, |
| 3579 | |
| 3580 | { |
| 3581 | .vendor = "Eon", |
| 3582 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3583 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3584 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3585 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3586 | .total_size = 128, |
| 3587 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3588 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3589 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3590 | .probe = probe_spi_rdid, |
| 3591 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3592 | .block_erasers = |
| 3593 | { |
| 3594 | { |
| 3595 | .eraseblocks = { |
| 3596 | {32 * 1024, 3}, |
| 3597 | {16 * 1024, 1}, |
| 3598 | {8 * 1024, 1}, |
| 3599 | {4 * 1024, 2}, |
| 3600 | }, |
| 3601 | .block_erase = spi_block_erase_d8, |
| 3602 | }, { |
| 3603 | .eraseblocks = { {128 * 1024, 1} }, |
| 3604 | .block_erase = spi_block_erase_c7, |
| 3605 | } |
| 3606 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3607 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3608 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3609 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3610 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3611 | .voltage = {2700, 3600}, |
| 3612 | }, |
| 3613 | |
| 3614 | { |
| 3615 | .vendor = "Eon", |
| 3616 | .name = "EN25P10", |
| 3617 | .bustype = BUS_SPI, |
| 3618 | .manufacture_id = EON_ID_NOPREFIX, |
| 3619 | .model_id = EON_EN25B10, |
| 3620 | .total_size = 128, |
| 3621 | .page_size = 256, |
| 3622 | .feature_bits = FEATURE_WRSR_WREN, |
| 3623 | .tested = TEST_UNTESTED, |
| 3624 | .probe = probe_spi_rdid, |
| 3625 | .probe_timing = TIMING_ZERO, |
| 3626 | .block_erasers = |
| 3627 | { |
| 3628 | { |
| 3629 | .eraseblocks = { {32 * 1024, 4} }, |
| 3630 | .block_erase = spi_block_erase_d8, |
| 3631 | }, { |
| 3632 | .eraseblocks = { {128 * 1024, 1} }, |
| 3633 | .block_erase = spi_block_erase_c7, |
| 3634 | } |
| 3635 | }, |
| 3636 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3637 | .unlock = spi_disable_blockprotect, |
| 3638 | .write = spi_chip_write_256, |
| 3639 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3640 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3641 | }, |
| 3642 | |
| 3643 | { |
| 3644 | .vendor = "Eon", |
| 3645 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3646 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3647 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3648 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3649 | .total_size = 256, |
| 3650 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3651 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3652 | .tested = TEST_UNTESTED, |
| 3653 | .probe = probe_spi_rdid, |
| 3654 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3655 | .block_erasers = |
| 3656 | { |
| 3657 | { |
| 3658 | .eraseblocks = { |
| 3659 | {4 * 1024, 2}, |
| 3660 | {8 * 1024, 1}, |
| 3661 | {16 * 1024, 1}, |
| 3662 | {32 * 1024, 1}, |
| 3663 | {64 * 1024, 3} |
| 3664 | }, |
| 3665 | .block_erase = spi_block_erase_d8, |
| 3666 | }, { |
| 3667 | .eraseblocks = { {256 * 1024, 1} }, |
| 3668 | .block_erase = spi_block_erase_c7, |
| 3669 | } |
| 3670 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3671 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3672 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3673 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3674 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3675 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3676 | }, |
| 3677 | |
| 3678 | { |
| 3679 | .vendor = "Eon", |
| 3680 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3681 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3682 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3683 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3684 | .total_size = 256, |
| 3685 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3686 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3687 | .tested = TEST_UNTESTED, |
| 3688 | .probe = probe_spi_rdid, |
| 3689 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3690 | .block_erasers = |
| 3691 | { |
| 3692 | { |
| 3693 | .eraseblocks = { |
| 3694 | {64 * 1024, 3}, |
| 3695 | {32 * 1024, 1}, |
| 3696 | {16 * 1024, 1}, |
| 3697 | {8 * 1024, 1}, |
| 3698 | {4 * 1024, 2}, |
| 3699 | }, |
| 3700 | .block_erase = spi_block_erase_d8, |
| 3701 | }, { |
| 3702 | .eraseblocks = { {256 * 1024, 1} }, |
| 3703 | .block_erase = spi_block_erase_c7, |
| 3704 | } |
| 3705 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3706 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3707 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3708 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3709 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3710 | .voltage = {2700, 3600}, |
| 3711 | }, |
| 3712 | |
| 3713 | { |
| 3714 | .vendor = "Eon", |
| 3715 | .name = "EN25P20", |
| 3716 | .bustype = BUS_SPI, |
| 3717 | .manufacture_id = EON_ID_NOPREFIX, |
| 3718 | .model_id = EON_EN25B20, |
| 3719 | .total_size = 256, |
| 3720 | .page_size = 256, |
| 3721 | .feature_bits = FEATURE_WRSR_WREN, |
| 3722 | .tested = TEST_UNTESTED, |
| 3723 | .probe = probe_spi_rdid, |
| 3724 | .probe_timing = TIMING_ZERO, |
| 3725 | .block_erasers = |
| 3726 | { |
| 3727 | { |
| 3728 | .eraseblocks = { {64 * 1024, 4} }, |
| 3729 | .block_erase = spi_block_erase_d8, |
| 3730 | }, { |
| 3731 | .eraseblocks = { {256 * 1024, 1} }, |
| 3732 | .block_erase = spi_block_erase_c7, |
| 3733 | } |
| 3734 | }, |
| 3735 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3736 | .unlock = spi_disable_blockprotect, |
| 3737 | .write = spi_chip_write_256, |
| 3738 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3739 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3740 | }, |
| 3741 | |
| 3742 | { |
| 3743 | .vendor = "Eon", |
| 3744 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3745 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3746 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3747 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3748 | .total_size = 512, |
| 3749 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3750 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3751 | .tested = TEST_UNTESTED, |
| 3752 | .probe = probe_spi_rdid, |
| 3753 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3754 | .block_erasers = |
| 3755 | { |
| 3756 | { |
| 3757 | .eraseblocks = { |
| 3758 | {4 * 1024, 2}, |
| 3759 | {8 * 1024, 1}, |
| 3760 | {16 * 1024, 1}, |
| 3761 | {32 * 1024, 1}, |
| 3762 | {64 * 1024, 7} |
| 3763 | }, |
| 3764 | .block_erase = spi_block_erase_d8, |
| 3765 | }, { |
| 3766 | .eraseblocks = { {512 * 1024, 1} }, |
| 3767 | .block_erase = spi_block_erase_c7, |
| 3768 | } |
| 3769 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3770 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3771 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3772 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3773 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3774 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3775 | }, |
| 3776 | |
| 3777 | { |
| 3778 | .vendor = "Eon", |
| 3779 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3780 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3781 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3782 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3783 | .total_size = 512, |
| 3784 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3785 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3786 | .tested = TEST_UNTESTED, |
| 3787 | .probe = probe_spi_rdid, |
| 3788 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3789 | .block_erasers = |
| 3790 | { |
| 3791 | { |
| 3792 | .eraseblocks = { |
| 3793 | {64 * 1024, 7}, |
| 3794 | {32 * 1024, 1}, |
| 3795 | {16 * 1024, 1}, |
| 3796 | {8 * 1024, 1}, |
| 3797 | {4 * 1024, 2}, |
| 3798 | }, |
| 3799 | .block_erase = spi_block_erase_d8, |
| 3800 | }, { |
| 3801 | .eraseblocks = { {512 * 1024, 1} }, |
| 3802 | .block_erase = spi_block_erase_c7, |
| 3803 | } |
| 3804 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3805 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3806 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3807 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3808 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3809 | .voltage = {2700, 3600}, |
| 3810 | }, |
| 3811 | |
| 3812 | { |
| 3813 | .vendor = "Eon", |
| 3814 | .name = "EN25P40", |
| 3815 | .bustype = BUS_SPI, |
| 3816 | .manufacture_id = EON_ID_NOPREFIX, |
| 3817 | .model_id = EON_EN25B40, |
| 3818 | .total_size = 512, |
| 3819 | .page_size = 256, |
| 3820 | .feature_bits = FEATURE_WRSR_WREN, |
| 3821 | .tested = TEST_UNTESTED, |
| 3822 | .probe = probe_spi_rdid, |
| 3823 | .probe_timing = TIMING_ZERO, |
| 3824 | .block_erasers = |
| 3825 | { |
| 3826 | { |
| 3827 | .eraseblocks = { {64 * 1024, 8} }, |
| 3828 | .block_erase = spi_block_erase_d8, |
| 3829 | }, { |
| 3830 | .eraseblocks = { {512 * 1024, 1} }, |
| 3831 | .block_erase = spi_block_erase_c7, |
| 3832 | } |
| 3833 | }, |
| 3834 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3835 | .unlock = spi_disable_blockprotect, |
| 3836 | .write = spi_chip_write_256, |
| 3837 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3838 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3839 | }, |
| 3840 | |
| 3841 | { |
| 3842 | .vendor = "Eon", |
| 3843 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3844 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3845 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3846 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3847 | .total_size = 1024, |
| 3848 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3849 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3850 | .tested = TEST_UNTESTED, |
| 3851 | .probe = probe_spi_rdid, |
| 3852 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3853 | .block_erasers = |
| 3854 | { |
| 3855 | { |
| 3856 | .eraseblocks = { |
| 3857 | {4 * 1024, 2}, |
| 3858 | {8 * 1024, 1}, |
| 3859 | {16 * 1024, 1}, |
| 3860 | {32 * 1024, 1}, |
| 3861 | {64 * 1024, 15} |
| 3862 | }, |
| 3863 | .block_erase = spi_block_erase_d8, |
| 3864 | }, { |
| 3865 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3866 | .block_erase = spi_block_erase_c7, |
| 3867 | } |
| 3868 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3869 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3870 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3871 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3872 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3873 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3874 | }, |
| 3875 | |
| 3876 | { |
| 3877 | .vendor = "Eon", |
| 3878 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3879 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3880 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3881 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3882 | .total_size = 1024, |
| 3883 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3884 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3885 | .tested = TEST_UNTESTED, |
| 3886 | .probe = probe_spi_rdid, |
| 3887 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3888 | .block_erasers = |
| 3889 | { |
| 3890 | { |
| 3891 | .eraseblocks = { |
| 3892 | {64 * 1024, 15}, |
| 3893 | {32 * 1024, 1}, |
| 3894 | {16 * 1024, 1}, |
| 3895 | {8 * 1024, 1}, |
| 3896 | {4 * 1024, 2}, |
| 3897 | }, |
| 3898 | .block_erase = spi_block_erase_d8, |
| 3899 | }, { |
| 3900 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3901 | .block_erase = spi_block_erase_c7, |
| 3902 | } |
| 3903 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3904 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3905 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3906 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3907 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3908 | .voltage = {2700, 3600}, |
| 3909 | }, |
| 3910 | |
| 3911 | { |
| 3912 | .vendor = "Eon", |
| 3913 | .name = "EN25P80", |
| 3914 | .bustype = BUS_SPI, |
| 3915 | .manufacture_id = EON_ID_NOPREFIX, |
| 3916 | .model_id = EON_EN25B80, |
| 3917 | .total_size = 1024, |
| 3918 | .page_size = 256, |
| 3919 | .feature_bits = FEATURE_WRSR_WREN, |
| 3920 | .tested = TEST_UNTESTED, |
| 3921 | .probe = probe_spi_rdid, |
| 3922 | .probe_timing = TIMING_ZERO, |
| 3923 | .block_erasers = |
| 3924 | { |
| 3925 | { |
| 3926 | .eraseblocks = { {64 * 1024, 16} }, |
| 3927 | .block_erase = spi_block_erase_d8, |
| 3928 | }, { |
| 3929 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3930 | .block_erase = spi_block_erase_c7, |
| 3931 | } |
| 3932 | }, |
| 3933 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3934 | .unlock = spi_disable_blockprotect, |
| 3935 | .write = spi_chip_write_256, |
| 3936 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3937 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3938 | }, |
| 3939 | |
| 3940 | { |
| 3941 | .vendor = "Eon", |
| 3942 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3943 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3944 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3945 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3946 | .total_size = 2048, |
| 3947 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3948 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3949 | .tested = TEST_UNTESTED, |
| 3950 | .probe = probe_spi_rdid, |
| 3951 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3952 | .block_erasers = |
| 3953 | { |
| 3954 | { |
| 3955 | .eraseblocks = { |
| 3956 | {4 * 1024, 2}, |
| 3957 | {8 * 1024, 1}, |
| 3958 | {16 * 1024, 1}, |
| 3959 | {32 * 1024, 1}, |
| 3960 | {64 * 1024, 31}, |
| 3961 | }, |
| 3962 | .block_erase = spi_block_erase_d8, |
| 3963 | }, { |
| 3964 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3965 | .block_erase = spi_block_erase_c7, |
| 3966 | } |
| 3967 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3968 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3969 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3970 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3971 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3972 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3973 | }, |
| 3974 | |
| 3975 | { |
| 3976 | .vendor = "Eon", |
| 3977 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3978 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3979 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3980 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3981 | .total_size = 2048, |
| 3982 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3983 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3984 | .tested = TEST_UNTESTED, |
| 3985 | .probe = probe_spi_rdid, |
| 3986 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3987 | .block_erasers = |
| 3988 | { |
| 3989 | { |
| 3990 | .eraseblocks = { |
| 3991 | {64 * 1024, 31}, |
| 3992 | {32 * 1024, 1}, |
| 3993 | {16 * 1024, 1}, |
| 3994 | {8 * 1024, 1}, |
| 3995 | {4 * 1024, 2}, |
| 3996 | }, |
| 3997 | .block_erase = spi_block_erase_d8, |
| 3998 | }, { |
| 3999 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4000 | .block_erase = spi_block_erase_c7, |
| 4001 | } |
| 4002 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4003 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4004 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4005 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4006 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4007 | .voltage = {2700, 3600}, |
| 4008 | }, |
| 4009 | |
| 4010 | { |
| 4011 | .vendor = "Eon", |
| 4012 | .name = "EN25P16", |
| 4013 | .bustype = BUS_SPI, |
| 4014 | .manufacture_id = EON_ID_NOPREFIX, |
| 4015 | .model_id = EON_EN25B16, |
| 4016 | .total_size = 2048, |
| 4017 | .page_size = 256, |
| 4018 | .feature_bits = FEATURE_WRSR_WREN, |
| 4019 | .tested = TEST_UNTESTED, |
| 4020 | .probe = probe_spi_rdid, |
| 4021 | .probe_timing = TIMING_ZERO, |
| 4022 | .block_erasers = |
| 4023 | { |
| 4024 | { |
| 4025 | .eraseblocks = { {64 * 1024, 32} }, |
| 4026 | .block_erase = spi_block_erase_d8, |
| 4027 | }, { |
| 4028 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4029 | .block_erase = spi_block_erase_c7, |
| 4030 | } |
| 4031 | }, |
| 4032 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4033 | .unlock = spi_disable_blockprotect, |
| 4034 | .write = spi_chip_write_256, |
| 4035 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4036 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4037 | }, |
| 4038 | |
| 4039 | { |
| 4040 | .vendor = "Eon", |
| 4041 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4042 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4043 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4044 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4045 | .total_size = 4096, |
| 4046 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4047 | /* OTP: 512B total; enter 0x3A */ |
| 4048 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4049 | .tested = TEST_UNTESTED, |
| 4050 | .probe = probe_spi_rdid, |
| 4051 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4052 | .block_erasers = |
| 4053 | { |
| 4054 | { |
| 4055 | .eraseblocks = { |
| 4056 | {4 * 1024, 2}, |
| 4057 | {8 * 1024, 1}, |
| 4058 | {16 * 1024, 1}, |
| 4059 | {32 * 1024, 1}, |
| 4060 | {64 * 1024, 63}, |
| 4061 | }, |
| 4062 | .block_erase = spi_block_erase_d8, |
| 4063 | }, { |
| 4064 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4065 | .block_erase = spi_block_erase_c7, |
| 4066 | } |
| 4067 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4068 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4069 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4070 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4071 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4072 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4073 | }, |
| 4074 | |
| 4075 | { |
| 4076 | .vendor = "Eon", |
| 4077 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4078 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4079 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4080 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4081 | .total_size = 4096, |
| 4082 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4083 | /* OTP: 512B total; enter 0x3A */ |
| 4084 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4085 | .tested = TEST_UNTESTED, |
| 4086 | .probe = probe_spi_rdid, |
| 4087 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4088 | .block_erasers = |
| 4089 | { |
| 4090 | { |
| 4091 | .eraseblocks = { |
| 4092 | {64 * 1024, 63}, |
| 4093 | {32 * 1024, 1}, |
| 4094 | {16 * 1024, 1}, |
| 4095 | {8 * 1024, 1}, |
| 4096 | {4 * 1024, 2}, |
| 4097 | }, |
| 4098 | .block_erase = spi_block_erase_d8, |
| 4099 | }, { |
| 4100 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4101 | .block_erase = spi_block_erase_c7, |
| 4102 | } |
| 4103 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4104 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4105 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4106 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4107 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4108 | .voltage = {2700, 3600}, |
| 4109 | }, |
| 4110 | |
| 4111 | { |
| 4112 | .vendor = "Eon", |
| 4113 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4114 | .bustype = BUS_SPI, |
| 4115 | .manufacture_id = EON_ID_NOPREFIX, |
| 4116 | .model_id = EON_EN25B32, |
| 4117 | .total_size = 4096, |
| 4118 | .page_size = 256, |
| 4119 | /* OTP: 512B total; enter 0x3A */ |
| 4120 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4121 | .tested = TEST_UNTESTED, |
| 4122 | .probe = probe_spi_rdid, |
| 4123 | .probe_timing = TIMING_ZERO, |
| 4124 | .block_erasers = |
| 4125 | { |
| 4126 | { |
| 4127 | .eraseblocks = { {64 * 1024, 64} }, |
| 4128 | .block_erase = spi_block_erase_d8, |
| 4129 | }, { |
| 4130 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4131 | .block_erase = spi_block_erase_c7, |
| 4132 | } |
| 4133 | }, |
| 4134 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4135 | .unlock = spi_disable_blockprotect, |
| 4136 | .write = spi_chip_write_256, |
| 4137 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4138 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4139 | }, |
| 4140 | |
| 4141 | { |
| 4142 | .vendor = "Eon", |
| 4143 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4144 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4145 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4146 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4147 | .total_size = 8192, |
| 4148 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4149 | /* OTP: 512B total; enter 0x3A */ |
| 4150 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4151 | .tested = TEST_UNTESTED, |
| 4152 | .probe = probe_spi_rdid, |
| 4153 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4154 | .block_erasers = |
| 4155 | { |
| 4156 | { |
| 4157 | .eraseblocks = { |
| 4158 | {4 * 1024, 2}, |
| 4159 | {8 * 1024, 1}, |
| 4160 | {16 * 1024, 1}, |
| 4161 | {32 * 1024, 1}, |
| 4162 | {64 * 1024, 127}, |
| 4163 | }, |
| 4164 | .block_erase = spi_block_erase_d8, |
| 4165 | }, { |
| 4166 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4167 | .block_erase = spi_block_erase_c7, |
| 4168 | } |
| 4169 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4170 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4171 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4172 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4173 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4174 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4175 | }, |
| 4176 | |
| 4177 | { |
| 4178 | .vendor = "Eon", |
| 4179 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4180 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4181 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4182 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4183 | .total_size = 8192, |
| 4184 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4185 | /* OTP: 512B total; enter 0x3A */ |
| 4186 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4187 | .tested = TEST_UNTESTED, |
| 4188 | .probe = probe_spi_rdid, |
| 4189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4190 | .block_erasers = |
| 4191 | { |
| 4192 | { |
| 4193 | .eraseblocks = { |
| 4194 | {64 * 1024, 127}, |
| 4195 | {32 * 1024, 1}, |
| 4196 | {16 * 1024, 1}, |
| 4197 | {8 * 1024, 1}, |
| 4198 | {4 * 1024, 2}, |
| 4199 | }, |
| 4200 | .block_erase = spi_block_erase_d8, |
| 4201 | }, { |
| 4202 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4203 | .block_erase = spi_block_erase_c7, |
| 4204 | } |
| 4205 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4206 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4207 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4208 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4209 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4210 | .voltage = {2700, 3600}, |
| 4211 | }, |
| 4212 | |
| 4213 | { |
| 4214 | .vendor = "Eon", |
| 4215 | .name = "EN25P64", |
| 4216 | .bustype = BUS_SPI, |
| 4217 | .manufacture_id = EON_ID_NOPREFIX, |
| 4218 | .model_id = EON_EN25B64, |
| 4219 | .total_size = 8192, |
| 4220 | .page_size = 256, |
| 4221 | /* OTP: 512B total; enter 0x3A */ |
| 4222 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4223 | .tested = TEST_UNTESTED, |
| 4224 | .probe = probe_spi_rdid, |
| 4225 | .probe_timing = TIMING_ZERO, |
| 4226 | .block_erasers = |
| 4227 | { |
| 4228 | { |
| 4229 | .eraseblocks = { {64 * 1024, 128} }, |
| 4230 | .block_erase = spi_block_erase_d8, |
| 4231 | }, { |
| 4232 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4233 | .block_erase = spi_block_erase_c7, |
| 4234 | } |
| 4235 | }, |
| 4236 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4237 | .unlock = spi_disable_blockprotect, |
| 4238 | .write = spi_chip_write_256, |
| 4239 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4240 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4241 | }, |
| 4242 | |
| 4243 | { |
| 4244 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4245 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4246 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4247 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4248 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4249 | .total_size = 64, |
| 4250 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4251 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4252 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4253 | .probe = probe_spi_rdid, |
| 4254 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4255 | .block_erasers = |
| 4256 | { |
| 4257 | { |
| 4258 | .eraseblocks = { {4 * 1024, 16} }, |
| 4259 | .block_erase = spi_block_erase_20, |
| 4260 | }, { |
| 4261 | .eraseblocks = { {32 * 1024, 2} }, |
| 4262 | .block_erase = spi_block_erase_d8, |
| 4263 | }, { |
| 4264 | .eraseblocks = { {32 * 1024, 2} }, |
| 4265 | .block_erase = spi_block_erase_52, |
| 4266 | }, { |
| 4267 | .eraseblocks = { {64 * 1024, 1} }, |
| 4268 | .block_erase = spi_block_erase_60, |
| 4269 | }, { |
| 4270 | .eraseblocks = { {64 * 1024, 1} }, |
| 4271 | .block_erase = spi_block_erase_c7, |
| 4272 | } |
| 4273 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4274 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4275 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4276 | .write = spi_chip_write_256, |
| 4277 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4278 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4279 | }, |
| 4280 | |
| 4281 | { |
| 4282 | .vendor = "Eon", |
| 4283 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4284 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4285 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4286 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4287 | .total_size = 128, |
| 4288 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4289 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4290 | .tested = TEST_UNTESTED, |
| 4291 | .probe = probe_spi_rdid, |
| 4292 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4293 | .block_erasers = |
| 4294 | { |
| 4295 | { |
| 4296 | .eraseblocks = { {4 * 1024, 32} }, |
| 4297 | .block_erase = spi_block_erase_20, |
| 4298 | }, { |
| 4299 | .eraseblocks = { {32 * 1024, 4} }, |
| 4300 | .block_erase = spi_block_erase_d8, |
| 4301 | }, { |
| 4302 | .eraseblocks = { {32 * 1024, 4} }, |
| 4303 | .block_erase = spi_block_erase_52, |
| 4304 | }, { |
| 4305 | .eraseblocks = { {128 * 1024, 1} }, |
| 4306 | .block_erase = spi_block_erase_60, |
| 4307 | }, { |
| 4308 | .eraseblocks = { {128 * 1024, 1} }, |
| 4309 | .block_erase = spi_block_erase_c7, |
| 4310 | } |
| 4311 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4312 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4313 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4314 | .write = spi_chip_write_256, |
| 4315 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4316 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4317 | }, |
| 4318 | |
| 4319 | { |
| 4320 | .vendor = "Eon", |
| 4321 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4322 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4323 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4324 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4325 | .total_size = 256, |
| 4326 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4327 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4328 | .tested = TEST_UNTESTED, |
| 4329 | .probe = probe_spi_rdid, |
| 4330 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4331 | .block_erasers = |
| 4332 | { |
| 4333 | { |
| 4334 | .eraseblocks = { {4 * 1024, 64} }, |
| 4335 | .block_erase = spi_block_erase_20, |
| 4336 | }, { |
| 4337 | .eraseblocks = { {64 * 1024, 4} }, |
| 4338 | .block_erase = spi_block_erase_d8, |
| 4339 | }, { |
| 4340 | .eraseblocks = { {64 * 1024, 4} }, |
| 4341 | .block_erase = spi_block_erase_52, |
| 4342 | }, { |
| 4343 | .eraseblocks = { {256 * 1024, 1} }, |
| 4344 | .block_erase = spi_block_erase_60, |
| 4345 | }, { |
| 4346 | .eraseblocks = { {256 * 1024, 1} }, |
| 4347 | .block_erase = spi_block_erase_c7, |
| 4348 | } |
| 4349 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4350 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4351 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4352 | .write = spi_chip_write_256, |
| 4353 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4354 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4355 | }, |
| 4356 | |
| 4357 | { |
| 4358 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4359 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4360 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4361 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4362 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4363 | .total_size = 512, |
| 4364 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4365 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4366 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4367 | .probe = probe_spi_rdid, |
| 4368 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4369 | .block_erasers = |
| 4370 | { |
| 4371 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4372 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4373 | .block_erase = spi_block_erase_20, |
| 4374 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4375 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4376 | .block_erase = spi_block_erase_d8, |
| 4377 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4378 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4379 | .block_erase = spi_block_erase_60, |
| 4380 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4381 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4382 | .block_erase = spi_block_erase_c7, |
| 4383 | }, |
| 4384 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4385 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4386 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4387 | .write = spi_chip_write_256, |
| 4388 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4389 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4390 | }, |
| 4391 | |
| 4392 | { |
| 4393 | .vendor = "Eon", |
| 4394 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4395 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4396 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4397 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4398 | .total_size = 1024, |
| 4399 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4400 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 4401 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4402 | .probe = probe_spi_rdid, |
| 4403 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4404 | .block_erasers = |
| 4405 | { |
| 4406 | { |
| 4407 | .eraseblocks = { {4 * 1024, 256} }, |
| 4408 | .block_erase = spi_block_erase_20, |
| 4409 | }, { |
| 4410 | .eraseblocks = { {64 * 1024, 16} }, |
| 4411 | .block_erase = spi_block_erase_d8, |
| 4412 | }, { |
| 4413 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4414 | .block_erase = spi_block_erase_60, |
| 4415 | }, { |
| 4416 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4417 | .block_erase = spi_block_erase_c7, |
| 4418 | } |
| 4419 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4420 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4421 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4422 | .write = spi_chip_write_256, |
| 4423 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4424 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4425 | }, |
| 4426 | |
| 4427 | { |
| 4428 | .vendor = "Eon", |
| 4429 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4430 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4431 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4432 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4433 | .total_size = 2048, |
| 4434 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4435 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4436 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4437 | .probe = probe_spi_rdid, |
| 4438 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4439 | .block_erasers = |
| 4440 | { |
| 4441 | { |
| 4442 | .eraseblocks = { {4 * 1024, 512} }, |
| 4443 | .block_erase = spi_block_erase_20, |
| 4444 | }, { |
| 4445 | .eraseblocks = { {64 * 1024, 32} }, |
| 4446 | .block_erase = spi_block_erase_d8, |
| 4447 | }, { |
| 4448 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4449 | .block_erase = spi_block_erase_60, |
| 4450 | }, { |
| 4451 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4452 | .block_erase = spi_block_erase_c7, |
| 4453 | } |
| 4454 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4455 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4456 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4457 | .write = spi_chip_write_256, |
| 4458 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4459 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4460 | }, |
| 4461 | |
| 4462 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4463 | .vendor = "Eon", |
| 4464 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4465 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4466 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4467 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4468 | .total_size = 4096, |
| 4469 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4470 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4471 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4472 | .probe = probe_spi_rdid, |
| 4473 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4474 | .block_erasers = |
| 4475 | { |
| 4476 | { |
| 4477 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4478 | .block_erase = spi_block_erase_20, |
| 4479 | }, { |
| 4480 | .eraseblocks = { {64 * 1024, 64} }, |
| 4481 | .block_erase = spi_block_erase_d8, |
| 4482 | }, { |
| 4483 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4484 | .block_erase = spi_block_erase_60, |
| 4485 | }, { |
| 4486 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4487 | .block_erase = spi_block_erase_c7, |
| 4488 | } |
| 4489 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4490 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4491 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4492 | .write = spi_chip_write_256, |
| 4493 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4494 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4495 | }, |
| 4496 | |
| 4497 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4498 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4499 | .name = "EN25F64", |
| 4500 | .bustype = BUS_SPI, |
| 4501 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4502 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4503 | .total_size = 8192, |
| 4504 | .page_size = 256, |
| 4505 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4506 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4507 | .probe = probe_spi_rdid, |
| 4508 | .probe_timing = TIMING_ZERO, |
| 4509 | .block_erasers = |
| 4510 | { |
| 4511 | { |
| 4512 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4513 | .block_erase = spi_block_erase_20, |
| 4514 | }, { |
| 4515 | .eraseblocks = { {64 * 1024, 128} }, |
| 4516 | .block_erase = spi_block_erase_d8, |
| 4517 | }, { |
| 4518 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4519 | .block_erase = spi_block_erase_60, |
| 4520 | }, { |
| 4521 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4522 | .block_erase = spi_block_erase_c7, |
| 4523 | } |
| 4524 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4525 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4526 | .unlock = spi_disable_blockprotect, |
| 4527 | .write = spi_chip_write_256, |
| 4528 | .read = spi_chip_read, |
| 4529 | .voltage = {2700, 3600}, |
| 4530 | }, |
| 4531 | |
| 4532 | { |
| 4533 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4534 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4535 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4536 | .manufacture_id = EON_ID_NOPREFIX, |
| 4537 | .model_id = EON_EN25Q40, |
| 4538 | .total_size = 512, |
| 4539 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4540 | /* OTP: 256B total; enter 0x3A */ |
| 4541 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4542 | .tested = TEST_UNTESTED, |
| 4543 | .probe = probe_spi_rdid, |
| 4544 | .probe_timing = TIMING_ZERO, |
| 4545 | .block_erasers = |
| 4546 | { |
| 4547 | { |
| 4548 | .eraseblocks = { {4 * 1024, 128} }, |
| 4549 | .block_erase = spi_block_erase_20, |
| 4550 | }, { |
| 4551 | .eraseblocks = { {64 * 1024, 8} }, |
| 4552 | .block_erase = spi_block_erase_d8, |
| 4553 | }, { |
| 4554 | .eraseblocks = { {512 * 1024, 1} }, |
| 4555 | .block_erase = spi_block_erase_60, |
| 4556 | }, { |
| 4557 | .eraseblocks = { {512 * 1024, 1} }, |
| 4558 | .block_erase = spi_block_erase_c7, |
| 4559 | } |
| 4560 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4561 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4562 | .unlock = spi_disable_blockprotect, |
| 4563 | .write = spi_chip_write_256, |
| 4564 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4565 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4566 | }, |
| 4567 | |
| 4568 | { |
| 4569 | .vendor = "Eon", |
| 4570 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4571 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4572 | .manufacture_id = EON_ID_NOPREFIX, |
| 4573 | .model_id = EON_EN25Q80, |
| 4574 | .total_size = 1024, |
| 4575 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4576 | /* OTP: 256B total; enter 0x3A */ |
| 4577 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4578 | .tested = TEST_UNTESTED, |
| 4579 | .probe = probe_spi_rdid, |
| 4580 | .probe_timing = TIMING_ZERO, |
| 4581 | .block_erasers = |
| 4582 | { |
| 4583 | { |
| 4584 | .eraseblocks = { {4 * 1024, 256} }, |
| 4585 | .block_erase = spi_block_erase_20, |
| 4586 | }, { |
| 4587 | .eraseblocks = { {64 * 1024, 16} }, |
| 4588 | .block_erase = spi_block_erase_d8, |
| 4589 | }, { |
| 4590 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4591 | .block_erase = spi_block_erase_60, |
| 4592 | }, { |
| 4593 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4594 | .block_erase = spi_block_erase_c7, |
| 4595 | } |
| 4596 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4597 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4598 | .unlock = spi_disable_blockprotect, |
| 4599 | .write = spi_chip_write_256, |
| 4600 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4601 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4602 | }, |
| 4603 | |
| 4604 | { |
| 4605 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4606 | but has different write protection capabilities */ |
| 4607 | .vendor = "Eon", |
| 4608 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4609 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4610 | .manufacture_id = EON_ID_NOPREFIX, |
| 4611 | .model_id = EON_EN25Q16, |
| 4612 | .total_size = 2048, |
| 4613 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4614 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4615 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4616 | .tested = TEST_UNTESTED, |
| 4617 | .probe = probe_spi_rdid, |
| 4618 | .probe_timing = TIMING_ZERO, |
| 4619 | .block_erasers = |
| 4620 | { |
| 4621 | { |
| 4622 | .eraseblocks = { {4 * 1024, 512} }, |
| 4623 | .block_erase = spi_block_erase_20, |
| 4624 | }, { |
| 4625 | .eraseblocks = { {64 * 1024, 32} }, |
| 4626 | .block_erase = spi_block_erase_d8, |
| 4627 | }, { |
| 4628 | /* not supported by Q16 version */ |
| 4629 | .eraseblocks = { {64 * 1024, 32} }, |
| 4630 | .block_erase = spi_block_erase_52, |
| 4631 | }, { |
| 4632 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4633 | .block_erase = spi_block_erase_60, |
| 4634 | }, { |
| 4635 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4636 | .block_erase = spi_block_erase_c7, |
| 4637 | } |
| 4638 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4639 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4640 | .unlock = spi_disable_blockprotect, |
| 4641 | .write = spi_chip_write_256, |
| 4642 | .read = spi_chip_read, |
| 4643 | .voltage = {2700, 3600}, |
| 4644 | }, |
| 4645 | |
| 4646 | { |
| 4647 | .vendor = "Eon", |
| 4648 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4649 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4650 | .manufacture_id = EON_ID_NOPREFIX, |
| 4651 | .model_id = EON_EN25Q32, |
| 4652 | .total_size = 4096, |
| 4653 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4654 | /* OTP: 512B total; enter 0x3A */ |
| 4655 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4656 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4657 | .probe = probe_spi_rdid, |
| 4658 | .probe_timing = TIMING_ZERO, |
| 4659 | .block_erasers = |
| 4660 | { |
| 4661 | { |
| 4662 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4663 | .block_erase = spi_block_erase_20, |
| 4664 | }, { |
| 4665 | .eraseblocks = { {64 * 1024, 64} }, |
| 4666 | .block_erase = spi_block_erase_d8, |
| 4667 | }, { |
| 4668 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4669 | .block_erase = spi_block_erase_60, |
| 4670 | }, { |
| 4671 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4672 | .block_erase = spi_block_erase_c7, |
| 4673 | } |
| 4674 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4675 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4676 | .unlock = spi_disable_blockprotect, |
| 4677 | .write = spi_chip_write_256, |
| 4678 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4679 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4680 | }, |
| 4681 | |
| 4682 | { |
| 4683 | .vendor = "Eon", |
| 4684 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4685 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4686 | .manufacture_id = EON_ID_NOPREFIX, |
| 4687 | .model_id = EON_EN25Q64, |
| 4688 | .total_size = 8192, |
| 4689 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4690 | /* OTP: 512B total; enter 0x3A */ |
| 4691 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4692 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4693 | .probe = probe_spi_rdid, |
| 4694 | .probe_timing = TIMING_ZERO, |
| 4695 | .block_erasers = |
| 4696 | { |
| 4697 | { |
| 4698 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4699 | .block_erase = spi_block_erase_20, |
| 4700 | }, { |
| 4701 | .eraseblocks = { {64 * 1024, 128} }, |
| 4702 | .block_erase = spi_block_erase_d8, |
| 4703 | }, { |
| 4704 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4705 | .block_erase = spi_block_erase_60, |
| 4706 | }, { |
| 4707 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4708 | .block_erase = spi_block_erase_c7, |
| 4709 | } |
| 4710 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4711 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4712 | .unlock = spi_disable_blockprotect, |
| 4713 | .write = spi_chip_write_256, |
| 4714 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4715 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4716 | }, |
| 4717 | |
| 4718 | { |
| 4719 | .vendor = "Eon", |
| 4720 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4721 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4722 | .manufacture_id = EON_ID_NOPREFIX, |
| 4723 | .model_id = EON_EN25Q128, |
| 4724 | .total_size = 16384, |
| 4725 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4726 | /* OTP: 512B total; enter 0x3A */ |
| 4727 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 4728 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4729 | .probe = probe_spi_rdid, |
| 4730 | .probe_timing = TIMING_ZERO, |
| 4731 | .block_erasers = |
| 4732 | { |
| 4733 | { |
| 4734 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4735 | .block_erase = spi_block_erase_20, |
| 4736 | }, { |
| 4737 | .eraseblocks = { {64 * 1024, 256} }, |
| 4738 | .block_erase = spi_block_erase_d8, |
| 4739 | }, { |
| 4740 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4741 | .block_erase = spi_block_erase_60, |
| 4742 | }, { |
| 4743 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4744 | .block_erase = spi_block_erase_c7, |
| 4745 | } |
| 4746 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4747 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4748 | .unlock = spi_disable_blockprotect, |
| 4749 | .write = spi_chip_write_256, |
| 4750 | .read = spi_chip_read, |
| 4751 | }, |
| 4752 | |
| 4753 | { |
| 4754 | .vendor = "Eon", |
| 4755 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4756 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4757 | .manufacture_id = EON_ID_NOPREFIX, |
| 4758 | .model_id = EON_EN25QH16, |
| 4759 | .total_size = 2048, |
| 4760 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4761 | /* supports SFDP */ |
| 4762 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4763 | /* QPI enable 0x38, disable 0xFF */ |
| 4764 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4765 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4766 | .probe = probe_spi_rdid, |
| 4767 | .probe_timing = TIMING_ZERO, |
| 4768 | .block_erasers = |
| 4769 | { |
| 4770 | { |
| 4771 | .eraseblocks = { {4 * 1024, 512} }, |
| 4772 | .block_erase = spi_block_erase_20, |
| 4773 | }, { |
| 4774 | .eraseblocks = { {64 * 1024, 32} }, |
| 4775 | .block_erase = spi_block_erase_d8, |
| 4776 | }, { |
| 4777 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4778 | .block_erase = spi_block_erase_60, |
| 4779 | }, { |
| 4780 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4781 | .block_erase = spi_block_erase_c7, |
| 4782 | } |
| 4783 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4784 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4785 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4786 | .write = spi_chip_write_256, |
| 4787 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4788 | .voltage = {2700, 3600}, |
| 4789 | }, |
| 4790 | |
| 4791 | { |
| 4792 | .vendor = "Eon", |
| 4793 | .name = "EN25QH32", |
| 4794 | .bustype = BUS_SPI, |
| 4795 | .manufacture_id = EON_ID_NOPREFIX, |
| 4796 | .model_id = EON_EN25QH32, |
| 4797 | .total_size = 4096, |
| 4798 | .page_size = 256, |
| 4799 | /* supports SFDP */ |
| 4800 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4801 | /* QPI enable 0x38, disable 0xFF */ |
| 4802 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 4803 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4804 | .probe = probe_spi_rdid, |
| 4805 | .probe_timing = TIMING_ZERO, |
| 4806 | .block_erasers = |
| 4807 | { |
| 4808 | { |
| 4809 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4810 | .block_erase = spi_block_erase_20, |
| 4811 | }, { |
| 4812 | .eraseblocks = { {64 * 1024, 64} }, |
| 4813 | .block_erase = spi_block_erase_d8, |
| 4814 | }, { |
| 4815 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4816 | .block_erase = spi_block_erase_60, |
| 4817 | }, { |
| 4818 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4819 | .block_erase = spi_block_erase_c7, |
| 4820 | } |
| 4821 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4822 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4823 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4824 | .write = spi_chip_write_256, |
| 4825 | .read = spi_chip_read, |
| 4826 | .voltage = {2700, 3600}, |
| 4827 | }, |
| 4828 | |
| 4829 | { |
| 4830 | .vendor = "Eon", |
| 4831 | .name = "EN25QH64", |
| 4832 | .bustype = BUS_SPI, |
| 4833 | .manufacture_id = EON_ID_NOPREFIX, |
| 4834 | .model_id = EON_EN25QH64, |
| 4835 | .total_size = 8192, |
| 4836 | .page_size = 256, |
| 4837 | /* supports SFDP */ |
| 4838 | /* OTP: 512B total; enter 0x3A */ |
| 4839 | /* QPI enable 0x38, disable 0xFF */ |
| 4840 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 4841 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4842 | .probe = probe_spi_rdid, |
| 4843 | .probe_timing = TIMING_ZERO, |
| 4844 | .block_erasers = { |
| 4845 | { |
| 4846 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4847 | .block_erase = spi_block_erase_20, |
| 4848 | }, { |
| 4849 | .eraseblocks = { {64 * 1024, 128} }, |
| 4850 | .block_erase = spi_block_erase_d8, |
| 4851 | }, { |
| 4852 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4853 | .block_erase = spi_block_erase_60, |
| 4854 | }, { |
| 4855 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4856 | .block_erase = spi_block_erase_c7, |
| 4857 | } |
| 4858 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4859 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4860 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4861 | .write = spi_chip_write_256, |
| 4862 | .read = spi_chip_read, |
| 4863 | .voltage = {2700, 3600}, |
| 4864 | }, |
| 4865 | |
| 4866 | { |
| 4867 | .vendor = "Eon", |
| 4868 | .name = "EN25QH128", |
| 4869 | .bustype = BUS_SPI, |
| 4870 | .manufacture_id = EON_ID_NOPREFIX, |
| 4871 | .model_id = EON_EN25QH128, |
| 4872 | .total_size = 16384, |
| 4873 | .page_size = 256, |
| 4874 | /* supports SFDP */ |
| 4875 | /* OTP: 512B total; enter 0x3A */ |
| 4876 | /* QPI enable 0x38, disable 0xFF */ |
| 4877 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4878 | .tested = TEST_UNTESTED, |
| 4879 | .probe = probe_spi_rdid, |
| 4880 | .probe_timing = TIMING_ZERO, |
| 4881 | .block_erasers = { |
| 4882 | { |
| 4883 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4884 | .block_erase = spi_block_erase_20, |
| 4885 | }, { |
| 4886 | .eraseblocks = { {64 * 1024, 256} }, |
| 4887 | .block_erase = spi_block_erase_d8, |
| 4888 | }, { |
| 4889 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4890 | .block_erase = spi_block_erase_60, |
| 4891 | }, { |
| 4892 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4893 | .block_erase = spi_block_erase_c7, |
| 4894 | } |
| 4895 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4896 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4897 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4898 | .write = spi_chip_write_256, |
| 4899 | .read = spi_chip_read, |
| 4900 | .voltage = {2700, 3600}, |
| 4901 | }, |
| 4902 | |
| 4903 | { |
| 4904 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4905 | .name = "EN25S10", |
| 4906 | .bustype = BUS_SPI, |
| 4907 | .manufacture_id = EON_ID_NOPREFIX, |
| 4908 | .model_id = EON_EN25S10, |
| 4909 | .total_size = 128, |
| 4910 | .page_size = 256, |
| 4911 | /* OTP: 256B total; enter 0x3A */ |
| 4912 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4913 | .tested = TEST_UNTESTED, |
| 4914 | .probe = probe_spi_rdid, |
| 4915 | .probe_timing = TIMING_ZERO, |
| 4916 | .block_erasers = { |
| 4917 | { |
| 4918 | .eraseblocks = { {4 * 1024, 32} }, |
| 4919 | .block_erase = spi_block_erase_20, |
| 4920 | }, { |
| 4921 | .eraseblocks = { {32 * 1024, 4} }, |
| 4922 | .block_erase = spi_block_erase_52, |
| 4923 | }, { |
| 4924 | .eraseblocks = { {128 * 1024, 1} }, |
| 4925 | .block_erase = spi_block_erase_60, |
| 4926 | }, { |
| 4927 | .eraseblocks = { {128 * 1024, 1} }, |
| 4928 | .block_erase = spi_block_erase_c7, |
| 4929 | } |
| 4930 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4931 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4932 | .unlock = spi_disable_blockprotect, |
| 4933 | .write = spi_chip_write_256, |
| 4934 | .read = spi_chip_read, |
| 4935 | .voltage = {1650, 1950}, |
| 4936 | }, |
| 4937 | |
| 4938 | { |
| 4939 | .vendor = "Eon", |
| 4940 | .name = "EN25S20", |
| 4941 | .bustype = BUS_SPI, |
| 4942 | .manufacture_id = EON_ID_NOPREFIX, |
| 4943 | .model_id = EON_EN25S20, |
| 4944 | .total_size = 256, |
| 4945 | .page_size = 256, |
| 4946 | /* OTP: 256B total; enter 0x3A */ |
| 4947 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4948 | .tested = TEST_UNTESTED, |
| 4949 | .probe = probe_spi_rdid, |
| 4950 | .probe_timing = TIMING_ZERO, |
| 4951 | .block_erasers = { |
| 4952 | { |
| 4953 | .eraseblocks = { {4 * 1024, 64} }, |
| 4954 | .block_erase = spi_block_erase_20, |
| 4955 | }, { |
| 4956 | .eraseblocks = { {64 * 1024, 4} }, |
| 4957 | .block_erase = spi_block_erase_d8, |
| 4958 | }, { |
| 4959 | .eraseblocks = { {256 * 1024, 1} }, |
| 4960 | .block_erase = spi_block_erase_60, |
| 4961 | }, { |
| 4962 | .eraseblocks = { {256 * 1024, 1} }, |
| 4963 | .block_erase = spi_block_erase_c7, |
| 4964 | } |
| 4965 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4966 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4967 | .unlock = spi_disable_blockprotect, |
| 4968 | .write = spi_chip_write_256, |
| 4969 | .read = spi_chip_read, |
| 4970 | .voltage = {1650, 1950}, |
| 4971 | }, |
| 4972 | |
| 4973 | { |
| 4974 | .vendor = "Eon", |
| 4975 | .name = "EN25S40", |
| 4976 | .bustype = BUS_SPI, |
| 4977 | .manufacture_id = EON_ID_NOPREFIX, |
| 4978 | .model_id = EON_EN25S40, |
| 4979 | .total_size = 512, |
| 4980 | .page_size = 256, |
| 4981 | /* OTP: 256B total; enter 0x3A */ |
| 4982 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4983 | .tested = TEST_UNTESTED, |
| 4984 | .probe = probe_spi_rdid, |
| 4985 | .probe_timing = TIMING_ZERO, |
| 4986 | .block_erasers = { |
| 4987 | { |
| 4988 | .eraseblocks = { {4 * 1024, 128} }, |
| 4989 | .block_erase = spi_block_erase_20, |
| 4990 | }, { |
| 4991 | .eraseblocks = { {64 * 1024, 8} }, |
| 4992 | .block_erase = spi_block_erase_d8, |
| 4993 | }, { |
| 4994 | .eraseblocks = { {512 * 1024, 1} }, |
| 4995 | .block_erase = spi_block_erase_60, |
| 4996 | }, { |
| 4997 | .eraseblocks = { {512 * 1024, 1} }, |
| 4998 | .block_erase = spi_block_erase_c7, |
| 4999 | } |
| 5000 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5001 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5002 | .unlock = spi_disable_blockprotect, |
| 5003 | .write = spi_chip_write_256, |
| 5004 | .read = spi_chip_read, |
| 5005 | .voltage = {1650, 1950}, |
| 5006 | }, |
| 5007 | |
| 5008 | { |
| 5009 | .vendor = "Eon", |
| 5010 | .name = "EN25S80", |
| 5011 | .bustype = BUS_SPI, |
| 5012 | .manufacture_id = EON_ID_NOPREFIX, |
| 5013 | .model_id = EON_EN25S80, |
| 5014 | .total_size = 1024, |
| 5015 | .page_size = 256, |
| 5016 | /* OTP: 256B total; enter 0x3A */ |
| 5017 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5018 | .tested = TEST_UNTESTED, |
| 5019 | .probe = probe_spi_rdid, |
| 5020 | .probe_timing = TIMING_ZERO, |
| 5021 | .block_erasers = { |
| 5022 | { |
| 5023 | .eraseblocks = { {4 * 1024, 256} }, |
| 5024 | .block_erase = spi_block_erase_20, |
| 5025 | }, { |
| 5026 | .eraseblocks = { {64 * 1024, 16} }, |
| 5027 | .block_erase = spi_block_erase_d8, |
| 5028 | }, { |
| 5029 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5030 | .block_erase = spi_block_erase_60, |
| 5031 | }, { |
| 5032 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5033 | .block_erase = spi_block_erase_c7, |
| 5034 | } |
| 5035 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5036 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5037 | .unlock = spi_disable_blockprotect, |
| 5038 | .write = spi_chip_write_256, |
| 5039 | .read = spi_chip_read, |
| 5040 | .voltage = {1650, 1950}, |
| 5041 | }, |
| 5042 | |
| 5043 | { |
| 5044 | .vendor = "Eon", |
| 5045 | .name = "EN25S16", |
| 5046 | .bustype = BUS_SPI, |
| 5047 | .manufacture_id = EON_ID_NOPREFIX, |
| 5048 | .model_id = EON_EN25S16, |
| 5049 | .total_size = 2048, |
| 5050 | .page_size = 256, |
| 5051 | /* OTP: 512B total; enter 0x3A */ |
| 5052 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5053 | .tested = TEST_UNTESTED, |
| 5054 | .probe = probe_spi_rdid, |
| 5055 | .probe_timing = TIMING_ZERO, |
| 5056 | .block_erasers = { |
| 5057 | { |
| 5058 | .eraseblocks = { {4 * 1024, 512} }, |
| 5059 | .block_erase = spi_block_erase_20, |
| 5060 | }, { |
| 5061 | .eraseblocks = { {64 * 1024, 32} }, |
| 5062 | .block_erase = spi_block_erase_52, |
| 5063 | }, { |
| 5064 | .eraseblocks = { {32 * 1024, 64} }, |
| 5065 | .block_erase = spi_block_erase_d8, |
| 5066 | }, { |
| 5067 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5068 | .block_erase = spi_block_erase_60, |
| 5069 | }, { |
| 5070 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5071 | .block_erase = spi_block_erase_c7, |
| 5072 | } |
| 5073 | }, |
| 5074 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5075 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5076 | .write = spi_chip_write_256, |
| 5077 | .read = spi_chip_read, |
| 5078 | .voltage = {1650, 1950}, |
| 5079 | }, |
| 5080 | |
| 5081 | { |
| 5082 | .vendor = "Eon", |
| 5083 | .name = "EN25S32", |
| 5084 | .bustype = BUS_SPI, |
| 5085 | .manufacture_id = EON_ID_NOPREFIX, |
| 5086 | .model_id = EON_EN25S32, |
| 5087 | .total_size = 4096, |
| 5088 | .page_size = 256, |
| 5089 | /* OTP: 512B total; enter 0x3A */ |
| 5090 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5091 | .tested = TEST_UNTESTED, |
| 5092 | .probe = probe_spi_rdid, |
| 5093 | .probe_timing = TIMING_ZERO, |
| 5094 | .block_erasers = { |
| 5095 | { |
| 5096 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5097 | .block_erase = spi_block_erase_20, |
| 5098 | }, { |
| 5099 | .eraseblocks = { {32 * 1024, 128} }, |
| 5100 | .block_erase = spi_block_erase_52, |
| 5101 | }, { |
| 5102 | .eraseblocks = { {64 * 1024, 64} }, |
| 5103 | .block_erase = spi_block_erase_d8, |
| 5104 | }, { |
| 5105 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5106 | .block_erase = spi_block_erase_60, |
| 5107 | }, { |
| 5108 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5109 | .block_erase = spi_block_erase_c7, |
| 5110 | } |
| 5111 | }, |
| 5112 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5113 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5114 | .write = spi_chip_write_256, |
| 5115 | .read = spi_chip_read, |
| 5116 | .voltage = {1650, 1950}, |
| 5117 | }, |
| 5118 | |
| 5119 | { |
| 5120 | .vendor = "Eon", |
| 5121 | .name = "EN25S64", |
| 5122 | .bustype = BUS_SPI, |
| 5123 | .manufacture_id = EON_ID_NOPREFIX, |
| 5124 | .model_id = EON_EN25S64, |
| 5125 | .total_size = 8192, |
| 5126 | .page_size = 256, |
| 5127 | /* OTP: 512B total; enter 0x3A */ |
| 5128 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5129 | .tested = TEST_UNTESTED, |
| 5130 | .probe = probe_spi_rdid, |
| 5131 | .probe_timing = TIMING_ZERO, |
| 5132 | .block_erasers = { |
| 5133 | { |
| 5134 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5135 | .block_erase = spi_block_erase_20, |
| 5136 | }, { |
| 5137 | .eraseblocks = { {64 * 1024, 128} }, |
| 5138 | .block_erase = spi_block_erase_d8, |
| 5139 | }, { |
| 5140 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5141 | .block_erase = spi_block_erase_60, |
| 5142 | }, { |
| 5143 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5144 | .block_erase = spi_block_erase_c7, |
| 5145 | } |
| 5146 | }, |
| 5147 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5148 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5149 | .write = spi_chip_write_256, |
| 5150 | .read = spi_chip_read, |
| 5151 | .voltage = {1650, 1950}, |
| 5152 | }, |
| 5153 | |
| 5154 | { |
| 5155 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5156 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5157 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5158 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5159 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5160 | .total_size = 128, |
| 5161 | .page_size = 128, |
| 5162 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5163 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5164 | .probe = probe_jedec, |
| 5165 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5166 | .block_erasers = |
| 5167 | { |
| 5168 | { |
| 5169 | .eraseblocks = { {16 * 1024, 8} }, |
| 5170 | .block_erase = erase_sector_jedec, |
| 5171 | }, |
| 5172 | { |
| 5173 | .eraseblocks = { {128 * 1024, 1} }, |
| 5174 | .block_erase = erase_chip_block_jedec, |
| 5175 | }, |
| 5176 | }, |
| 5177 | .write = write_jedec_1, |
| 5178 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5179 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5180 | }, |
| 5181 | |
| 5182 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5183 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5184 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5185 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5186 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5187 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5188 | .total_size = 256, |
| 5189 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5190 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5191 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5192 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5193 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5194 | .block_erasers = |
| 5195 | { |
| 5196 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5197 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5198 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5199 | {8 * 1024, 2}, |
| 5200 | {32 * 1024, 1}, |
| 5201 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5202 | }, |
| 5203 | .block_erase = erase_sector_jedec, |
| 5204 | }, { |
| 5205 | .eraseblocks = { {256 * 1024, 1} }, |
| 5206 | .block_erase = erase_chip_block_jedec, |
| 5207 | }, |
| 5208 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5209 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5210 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5211 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5212 | }, |
| 5213 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5214 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5215 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5216 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5217 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5218 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5219 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5220 | .total_size = 256, |
| 5221 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5222 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5223 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5224 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5225 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5226 | .block_erasers = |
| 5227 | { |
| 5228 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5229 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5230 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5231 | {32 * 1024, 1}, |
| 5232 | {8 * 1024, 2}, |
| 5233 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5234 | }, |
| 5235 | .block_erase = erase_sector_jedec, |
| 5236 | }, { |
| 5237 | .eraseblocks = { {256 * 1024, 1} }, |
| 5238 | .block_erase = erase_chip_block_jedec, |
| 5239 | }, |
| 5240 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5241 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5242 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5243 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5244 | }, |
| 5245 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5246 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5247 | .vendor = "Eon", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5248 | .name = "EN29LV040(A)", |
| 5249 | .bustype = BUS_PARALLEL, |
| 5250 | .manufacture_id = EON_ID, |
| 5251 | .model_id = EON_EN29LV040, |
| 5252 | .total_size = 512, |
| 5253 | .page_size = 4 * 1024, |
| 5254 | .tested = TEST_OK_PREW, |
| 5255 | .probe = probe_jedec, |
| 5256 | .probe_timing = TIMING_ZERO, |
| 5257 | .block_erasers = |
| 5258 | { |
| 5259 | { |
| 5260 | .eraseblocks = { {64 * 1024, 8} }, |
| 5261 | .block_erase = erase_sector_jedec, |
| 5262 | }, |
| 5263 | { |
| 5264 | .eraseblocks = { {512 * 1024, 1} }, |
| 5265 | .block_erase = erase_chip_block_jedec, |
| 5266 | }, |
| 5267 | }, |
| 5268 | .write = write_jedec_1, |
| 5269 | .read = read_memmapped, |
| 5270 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
| 5271 | }, |
| 5272 | |
| 5273 | { |
| 5274 | .vendor = "Eon", |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5275 | .name = "EN29LV640B", |
| 5276 | .bustype = BUS_PARALLEL, |
| 5277 | .manufacture_id = EON_ID, |
| 5278 | .model_id = EON_EN29LV640B, |
| 5279 | .total_size = 8192, |
| 5280 | .page_size = 8192, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5281 | .feature_bits = FEATURE_ADDR_SHIFTED, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5282 | .tested = TEST_OK_PREW, |
| 5283 | .probe = probe_en29lv640b, |
| 5284 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5285 | .block_erasers = |
| 5286 | { |
| 5287 | { |
| 5288 | .eraseblocks = { |
| 5289 | {8 * 1024, 8}, |
| 5290 | {64 * 1024, 127}, |
| 5291 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5292 | .block_erase = erase_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5293 | }, { |
| 5294 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5295 | .block_erase = erase_chip_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5296 | }, |
| 5297 | }, |
| 5298 | .write = write_en29lv640b, |
| 5299 | .read = read_memmapped, |
| 5300 | .voltage = {2700, 3600}, |
| 5301 | }, |
| 5302 | |
| 5303 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5304 | .vendor = "Eon", |
| 5305 | .name = "EN29GL064(A)B", |
| 5306 | .bustype = BUS_PARALLEL, |
| 5307 | .manufacture_id = EON_ID, |
| 5308 | .model_id = EON_EN29GL064B, |
| 5309 | .total_size = 8192, |
| 5310 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5311 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5312 | .tested = TEST_UNTESTED, |
| 5313 | .probe = probe_jedec_29gl, |
| 5314 | .probe_timing = TIMING_ZERO, |
| 5315 | .block_erasers = |
| 5316 | { |
| 5317 | { |
| 5318 | .eraseblocks = { |
| 5319 | {8 * 1024, 8}, |
| 5320 | {64 * 1024, 127}, |
| 5321 | }, |
| 5322 | .block_erase = erase_sector_jedec, |
| 5323 | }, { |
| 5324 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5325 | .block_erase = erase_chip_block_jedec, |
| 5326 | }, |
| 5327 | }, |
| 5328 | .write = write_jedec_1, |
| 5329 | .read = read_memmapped, |
| 5330 | .voltage = {2700, 3600}, |
| 5331 | }, |
| 5332 | |
| 5333 | { |
| 5334 | .vendor = "Eon", |
| 5335 | .name = "EN29GL064(A)T", |
| 5336 | .bustype = BUS_PARALLEL, |
| 5337 | .manufacture_id = EON_ID, |
| 5338 | .model_id = EON_EN29GL064T, |
| 5339 | .total_size = 8192, |
| 5340 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5341 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5342 | .tested = TEST_UNTESTED, |
| 5343 | .probe = probe_jedec_29gl, |
| 5344 | .probe_timing = TIMING_ZERO, |
| 5345 | .block_erasers = |
| 5346 | { |
| 5347 | { |
| 5348 | .eraseblocks = { |
| 5349 | {64 * 1024, 127}, |
| 5350 | {8 * 1024, 8}, |
| 5351 | }, |
| 5352 | .block_erase = erase_sector_jedec, |
| 5353 | }, { |
| 5354 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5355 | .block_erase = erase_chip_block_jedec, |
| 5356 | }, |
| 5357 | }, |
| 5358 | .write = write_jedec_1, |
| 5359 | .read = read_memmapped, |
| 5360 | .voltage = {2700, 3600}, |
| 5361 | }, |
| 5362 | |
| 5363 | { |
| 5364 | .vendor = "Eon", |
| 5365 | .name = "EN29GL064H/L", |
| 5366 | .bustype = BUS_PARALLEL, |
| 5367 | .manufacture_id = EON_ID, |
| 5368 | .model_id = EON_EN29GL064HL, |
| 5369 | .total_size = 8192, |
| 5370 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5371 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5372 | .tested = TEST_UNTESTED, |
| 5373 | .probe = probe_jedec_29gl, |
| 5374 | .probe_timing = TIMING_ZERO, |
| 5375 | .block_erasers = |
| 5376 | { |
| 5377 | { |
| 5378 | .eraseblocks = { {64 * 1024, 128} }, |
| 5379 | .block_erase = erase_sector_jedec, |
| 5380 | }, { |
| 5381 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5382 | .block_erase = erase_chip_block_jedec, |
| 5383 | }, |
| 5384 | }, |
| 5385 | .write = write_jedec_1, |
| 5386 | .read = read_memmapped, |
| 5387 | .voltage = {2700, 3600}, |
| 5388 | }, |
| 5389 | |
| 5390 | { |
| 5391 | .vendor = "Eon", |
| 5392 | .name = "EN29GL128", |
| 5393 | .bustype = BUS_PARALLEL, |
| 5394 | .manufacture_id = EON_ID, |
| 5395 | .model_id = EON_EN29GL128HL, |
| 5396 | .total_size = 16384, |
| 5397 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5398 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5399 | .tested = TEST_UNTESTED, |
| 5400 | .probe = probe_jedec_29gl, |
| 5401 | .probe_timing = TIMING_ZERO, |
| 5402 | .block_erasers = |
| 5403 | { |
| 5404 | { |
| 5405 | .eraseblocks = { {128 * 1024, 128} }, |
| 5406 | .block_erase = erase_sector_jedec, |
| 5407 | }, { |
| 5408 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5409 | .block_erase = erase_chip_block_jedec, |
| 5410 | }, |
| 5411 | }, |
| 5412 | .write = write_jedec_1, |
| 5413 | .read = read_memmapped, |
| 5414 | .voltage = {2700, 3600}, |
| 5415 | }, |
| 5416 | |
| 5417 | { |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5418 | .vendor = "ESI", |
| 5419 | .name = "ES25P40", |
| 5420 | .bustype = BUS_SPI, |
| 5421 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5422 | .model_id = EXCEL_ES25P40, |
| 5423 | .total_size = 512, |
| 5424 | .page_size = 256, |
| 5425 | /* 256-byte paramter page separate from memory array: |
| 5426 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5427 | .feature_bits = FEATURE_WRSR_WREN, |
| 5428 | .tested = TEST_UNTESTED, |
| 5429 | .probe = probe_spi_rdid, |
| 5430 | .probe_timing = TIMING_ZERO, |
| 5431 | .block_erasers = |
| 5432 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5433 | { |
| 5434 | .eraseblocks = { {64 * 1024, 8} }, |
| 5435 | .block_erase = spi_block_erase_d8, |
| 5436 | }, { |
| 5437 | .eraseblocks = { {512 * 1024, 1} }, |
| 5438 | .block_erase = spi_block_erase_c7, |
| 5439 | } |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5440 | }, |
| 5441 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5442 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5443 | .write = spi_chip_write_256, |
| 5444 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5445 | .voltage = {2700, 3600}, |
| 5446 | }, |
| 5447 | |
| 5448 | { |
| 5449 | .vendor = "ESI", |
| 5450 | .name = "ES25P80", |
| 5451 | .bustype = BUS_SPI, |
| 5452 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5453 | .model_id = EXCEL_ES25P80, |
| 5454 | .total_size = 1024, |
| 5455 | .page_size = 256, |
| 5456 | /* 256-byte paramter page separate from memory array: |
| 5457 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5458 | .feature_bits = FEATURE_WRSR_WREN, |
| 5459 | .tested = TEST_UNTESTED, |
| 5460 | .probe = probe_spi_rdid, |
| 5461 | .probe_timing = TIMING_ZERO, |
| 5462 | .block_erasers = |
| 5463 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5464 | { |
| 5465 | .eraseblocks = { {64 * 1024, 16} }, |
| 5466 | .block_erase = spi_block_erase_d8, |
| 5467 | }, { |
| 5468 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5469 | .block_erase = spi_block_erase_c7, |
| 5470 | } |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5471 | }, |
| 5472 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5473 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5474 | .write = spi_chip_write_256, |
| 5475 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5476 | .voltage = {2700, 3600}, |
| 5477 | }, |
| 5478 | |
| 5479 | { |
| 5480 | .vendor = "ESI", |
| 5481 | .name = "ES25P16", |
| 5482 | .bustype = BUS_SPI, |
| 5483 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5484 | .model_id = EXCEL_ES25P16, |
| 5485 | .total_size = 2 * 1024, |
| 5486 | .page_size = 256, |
| 5487 | /* 256-byte paramter page separate from memory array: |
| 5488 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5489 | .feature_bits = FEATURE_WRSR_WREN, |
| 5490 | .tested = TEST_UNTESTED, |
| 5491 | .probe = probe_spi_rdid, |
| 5492 | .probe_timing = TIMING_ZERO, |
| 5493 | .block_erasers = |
| 5494 | { |
| 5495 | { |
| 5496 | .eraseblocks = { {64 * 1024, 32} }, |
| 5497 | .block_erase = spi_block_erase_d8, |
| 5498 | }, { |
| 5499 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5500 | .block_erase = spi_block_erase_c7, |
| 5501 | } |
| 5502 | }, |
| 5503 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5504 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5505 | .write = spi_chip_write_256, |
| 5506 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5507 | .voltage = {2700, 3600}, |
| 5508 | }, |
| 5509 | |
| 5510 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5511 | .vendor = "Fujitsu", |
| 5512 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5513 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5514 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5515 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5516 | .total_size = 512, |
| 5517 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5518 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5519 | .tested = TEST_UNTESTED, |
| 5520 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5521 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5522 | .block_erasers = |
| 5523 | { |
| 5524 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5525 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5526 | {16 * 1024, 1}, |
| 5527 | {8 * 1024, 2}, |
| 5528 | {32 * 1024, 1}, |
| 5529 | {64 * 1024, 7}, |
| 5530 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5531 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5532 | }, { |
| 5533 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5534 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5535 | }, |
| 5536 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5537 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5538 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5539 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5540 | }, |
| 5541 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5542 | { |
| 5543 | .vendor = "Fujitsu", |
| 5544 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5545 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5546 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5547 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5548 | .total_size = 512, |
| 5549 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5550 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5551 | .tested = TEST_UNTESTED, |
| 5552 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5553 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5554 | .block_erasers = |
| 5555 | { |
| 5556 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5557 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5558 | {64 * 1024, 7}, |
| 5559 | {32 * 1024, 1}, |
| 5560 | {8 * 1024, 2}, |
| 5561 | {16 * 1024, 1}, |
| 5562 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5563 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5564 | }, { |
| 5565 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5566 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5567 | }, |
| 5568 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5569 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5570 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5571 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5572 | }, |
| 5573 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5574 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5575 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5576 | .vendor = "Fujitsu", |
| 5577 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5578 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5579 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5580 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5581 | .total_size = 512, |
| 5582 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5583 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5584 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5585 | .probe = probe_jedec, |
| 5586 | .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] | 5587 | .block_erasers = |
| 5588 | { |
| 5589 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5590 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5591 | {16 * 1024, 1}, |
| 5592 | {8 * 1024, 2}, |
| 5593 | {32 * 1024, 1}, |
| 5594 | {64 * 1024, 7}, |
| 5595 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5596 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5597 | }, { |
| 5598 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5599 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5600 | }, |
| 5601 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5602 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5603 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5604 | .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] | 5605 | }, |
| 5606 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5607 | { |
| 5608 | .vendor = "Fujitsu", |
| 5609 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5610 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5611 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5612 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5613 | .total_size = 512, |
| 5614 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5615 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5616 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5617 | .probe = probe_jedec, |
| 5618 | .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] | 5619 | .block_erasers = |
| 5620 | { |
| 5621 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5622 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5623 | {64 * 1024, 7}, |
| 5624 | {32 * 1024, 1}, |
| 5625 | {8 * 1024, 2}, |
| 5626 | {16 * 1024, 1}, |
| 5627 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5628 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5629 | }, { |
| 5630 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5631 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5632 | }, |
| 5633 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5634 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5635 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5636 | .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] | 5637 | }, |
| 5638 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5639 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5640 | .vendor = "Fujitsu", |
| 5641 | .name = "MBM29LV160BE", |
| 5642 | .bustype = BUS_PARALLEL, |
| 5643 | .manufacture_id = FUJITSU_ID, |
| 5644 | .model_id = FUJITSU_MBM29LV160BE, |
| 5645 | .total_size = 2 * 1024, |
| 5646 | .page_size = 0, |
| 5647 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5648 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5649 | .probe = probe_jedec, |
| 5650 | .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] | 5651 | .block_erasers = |
| 5652 | { |
| 5653 | { |
| 5654 | .eraseblocks = { |
| 5655 | {16 * 1024, 1}, |
| 5656 | {8 * 1024, 2}, |
| 5657 | {32 * 1024, 1}, |
| 5658 | {64 * 1024, 31}, |
| 5659 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5660 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5661 | }, { |
| 5662 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5663 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5664 | }, |
| 5665 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5666 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5667 | .read = read_memmapped, |
| 5668 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5669 | }, |
| 5670 | |
| 5671 | { |
| 5672 | .vendor = "Fujitsu", |
| 5673 | .name = "MBM29LV160TE", |
| 5674 | .bustype = BUS_PARALLEL, |
| 5675 | .manufacture_id = FUJITSU_ID, |
| 5676 | .model_id = FUJITSU_MBM29LV160TE, |
| 5677 | .total_size = 2 * 1024, |
| 5678 | .page_size = 0, |
| 5679 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5680 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5681 | .probe = probe_jedec, |
| 5682 | .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] | 5683 | .block_erasers = |
| 5684 | { |
| 5685 | { |
| 5686 | .eraseblocks = { |
| 5687 | {64 * 1024, 31}, |
| 5688 | {32 * 1024, 1}, |
| 5689 | {8 * 1024, 2}, |
| 5690 | {16 * 1024, 1}, |
| 5691 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5692 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5693 | }, { |
| 5694 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5695 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5696 | }, |
| 5697 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5698 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5699 | .read = read_memmapped, |
| 5700 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5701 | }, |
| 5702 | |
| 5703 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5704 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5705 | .name = "GD25LQ40", |
| 5706 | .bustype = BUS_SPI, |
| 5707 | .manufacture_id = GIGADEVICE_ID, |
| 5708 | .model_id = GIGADEVICE_GD25LQ40, |
| 5709 | .total_size = 512, |
| 5710 | .page_size = 256, |
| 5711 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5712 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5713 | .tested = TEST_UNTESTED, |
| 5714 | .probe = probe_spi_rdid, |
| 5715 | .probe_timing = TIMING_ZERO, |
| 5716 | .block_erasers = |
| 5717 | { |
| 5718 | { |
| 5719 | .eraseblocks = { {4 * 1024, 128} }, |
| 5720 | .block_erase = spi_block_erase_20, |
| 5721 | }, { |
| 5722 | .eraseblocks = { {32 * 1024, 16} }, |
| 5723 | .block_erase = spi_block_erase_52, |
| 5724 | }, { |
| 5725 | .eraseblocks = { {64 * 1024, 8} }, |
| 5726 | .block_erase = spi_block_erase_d8, |
| 5727 | }, { |
| 5728 | .eraseblocks = { {512 * 1024, 1} }, |
| 5729 | .block_erase = spi_block_erase_60, |
| 5730 | }, { |
| 5731 | .eraseblocks = { {512 * 1024, 1} }, |
| 5732 | .block_erase = spi_block_erase_c7, |
| 5733 | } |
| 5734 | }, |
| 5735 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5736 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5737 | .write = spi_chip_write_256, |
| 5738 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5739 | .voltage = {1695, 1950}, |
| 5740 | }, |
| 5741 | |
| 5742 | { |
| 5743 | .vendor = "GigaDevice", |
| 5744 | .name = "GD25LQ80", |
| 5745 | .bustype = BUS_SPI, |
| 5746 | .manufacture_id = GIGADEVICE_ID, |
| 5747 | .model_id = GIGADEVICE_GD25LQ80, |
| 5748 | .total_size = 1024, |
| 5749 | .page_size = 256, |
| 5750 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5751 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5752 | .tested = TEST_UNTESTED, |
| 5753 | .probe = probe_spi_rdid, |
| 5754 | .probe_timing = TIMING_ZERO, |
| 5755 | .block_erasers = |
| 5756 | { |
| 5757 | { |
| 5758 | .eraseblocks = { {4 * 1024, 256} }, |
| 5759 | .block_erase = spi_block_erase_20, |
| 5760 | }, { |
| 5761 | .eraseblocks = { {32 * 1024, 32} }, |
| 5762 | .block_erase = spi_block_erase_52, |
| 5763 | }, { |
| 5764 | .eraseblocks = { {64 * 1024, 16} }, |
| 5765 | .block_erase = spi_block_erase_d8, |
| 5766 | }, { |
| 5767 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 5768 | .block_erase = spi_block_erase_60, |
| 5769 | }, { |
| 5770 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 5771 | .block_erase = spi_block_erase_c7, |
| 5772 | } |
| 5773 | }, |
| 5774 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5775 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5776 | .write = spi_chip_write_256, |
| 5777 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5778 | .voltage = {1695, 1950}, |
| 5779 | }, |
| 5780 | |
| 5781 | { |
| 5782 | .vendor = "GigaDevice", |
| 5783 | .name = "GD25LQ16", |
| 5784 | .bustype = BUS_SPI, |
| 5785 | .manufacture_id = GIGADEVICE_ID, |
| 5786 | .model_id = GIGADEVICE_GD25LQ16, |
| 5787 | .total_size = 2048, |
| 5788 | .page_size = 256, |
| 5789 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5790 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5791 | .tested = TEST_UNTESTED, |
| 5792 | .probe = probe_spi_rdid, |
| 5793 | .probe_timing = TIMING_ZERO, |
| 5794 | .block_erasers = |
| 5795 | { |
| 5796 | { |
| 5797 | .eraseblocks = { {4 * 1024, 512} }, |
| 5798 | .block_erase = spi_block_erase_20, |
| 5799 | }, { |
| 5800 | .eraseblocks = { {32 * 1024, 64} }, |
| 5801 | .block_erase = spi_block_erase_52, |
| 5802 | }, { |
| 5803 | .eraseblocks = { {64 * 1024, 32} }, |
| 5804 | .block_erase = spi_block_erase_d8, |
| 5805 | }, { |
| 5806 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5807 | .block_erase = spi_block_erase_60, |
| 5808 | }, { |
| 5809 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5810 | .block_erase = spi_block_erase_c7, |
| 5811 | } |
| 5812 | }, |
| 5813 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5814 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5815 | .write = spi_chip_write_256, |
| 5816 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5817 | .voltage = {1695, 1950}, |
| 5818 | }, |
| 5819 | |
| 5820 | { |
| 5821 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5822 | .name = "GD25LQ32", |
| 5823 | .bustype = BUS_SPI, |
| 5824 | .manufacture_id = GIGADEVICE_ID, |
| 5825 | .model_id = GIGADEVICE_GD25LQ32, |
| 5826 | .total_size = 4096, |
| 5827 | .page_size = 256, |
| 5828 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5829 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5830 | .tested = TEST_OK_PREW, |
| 5831 | .probe = probe_spi_rdid, |
| 5832 | .probe_timing = TIMING_ZERO, |
| 5833 | .block_erasers = |
| 5834 | { |
| 5835 | { |
| 5836 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5837 | .block_erase = spi_block_erase_20, |
| 5838 | }, { |
| 5839 | .eraseblocks = { {32 * 1024, 128} }, |
| 5840 | .block_erase = spi_block_erase_52, |
| 5841 | }, { |
| 5842 | .eraseblocks = { {64 * 1024, 64} }, |
| 5843 | .block_erase = spi_block_erase_d8, |
| 5844 | }, { |
| 5845 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5846 | .block_erase = spi_block_erase_60, |
| 5847 | }, { |
| 5848 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5849 | .block_erase = spi_block_erase_c7, |
| 5850 | } |
| 5851 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5852 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5853 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5854 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5855 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5856 | .voltage = {1695, 1950}, |
| 5857 | }, |
| 5858 | |
| 5859 | { |
| 5860 | .vendor = "GigaDevice", |
| 5861 | .name = "GD25LQ64(B)", |
| 5862 | .bustype = BUS_SPI, |
| 5863 | .manufacture_id = GIGADEVICE_ID, |
| 5864 | .model_id = GIGADEVICE_GD25LQ64, |
| 5865 | .total_size = 8192, |
| 5866 | .page_size = 256, |
| 5867 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5868 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5869 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5870 | .probe = probe_spi_rdid, |
| 5871 | .probe_timing = TIMING_ZERO, |
| 5872 | .block_erasers = |
| 5873 | { |
| 5874 | { |
| 5875 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5876 | .block_erase = spi_block_erase_20, |
| 5877 | }, { |
| 5878 | .eraseblocks = { {32 * 1024, 256} }, |
| 5879 | .block_erase = spi_block_erase_52, |
| 5880 | }, { |
| 5881 | .eraseblocks = { {64 * 1024, 128} }, |
| 5882 | .block_erase = spi_block_erase_d8, |
| 5883 | }, { |
| 5884 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5885 | .block_erase = spi_block_erase_60, |
| 5886 | }, { |
| 5887 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5888 | .block_erase = spi_block_erase_c7, |
| 5889 | } |
| 5890 | }, |
| 5891 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5892 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5893 | .write = spi_chip_write_256, |
| 5894 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5895 | .voltage = {1695, 1950}, |
| 5896 | }, |
| 5897 | |
| 5898 | { |
| 5899 | .vendor = "GigaDevice", |
| 5900 | .name = "GD25LQ128", |
| 5901 | .bustype = BUS_SPI, |
| 5902 | .manufacture_id = GIGADEVICE_ID, |
| 5903 | .model_id = GIGADEVICE_GD25LQ128, |
| 5904 | .total_size = 16384, |
| 5905 | .page_size = 256, |
| 5906 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5907 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5908 | .tested = TEST_UNTESTED, |
| 5909 | .probe = probe_spi_rdid, |
| 5910 | .probe_timing = TIMING_ZERO, |
| 5911 | .block_erasers = |
| 5912 | { |
| 5913 | { |
| 5914 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5915 | .block_erase = spi_block_erase_20, |
| 5916 | }, { |
| 5917 | .eraseblocks = { {32 * 1024, 512} }, |
| 5918 | .block_erase = spi_block_erase_52, |
| 5919 | }, { |
| 5920 | .eraseblocks = { {64 * 1024, 256} }, |
| 5921 | .block_erase = spi_block_erase_d8, |
| 5922 | }, { |
| 5923 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5924 | .block_erase = spi_block_erase_60, |
| 5925 | }, { |
| 5926 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5927 | .block_erase = spi_block_erase_c7, |
| 5928 | } |
| 5929 | }, |
| 5930 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5931 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5932 | .write = spi_chip_write_256, |
| 5933 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5934 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5935 | }, |
| 5936 | |
| 5937 | { |
| 5938 | .vendor = "GigaDevice", |
| 5939 | .name = "GD25Q512", |
| 5940 | .bustype = BUS_SPI, |
| 5941 | .manufacture_id = GIGADEVICE_ID, |
| 5942 | .model_id = GIGADEVICE_GD25Q512, |
| 5943 | .total_size = 64, |
| 5944 | .page_size = 256, |
| 5945 | .feature_bits = FEATURE_WRSR_WREN, |
| 5946 | .tested = TEST_UNTESTED, |
| 5947 | .probe = probe_spi_rdid, |
| 5948 | .probe_timing = TIMING_ZERO, |
| 5949 | .block_erasers = { |
| 5950 | { |
| 5951 | .eraseblocks = { {4 * 1024, 16} }, |
| 5952 | .block_erase = spi_block_erase_20, |
| 5953 | }, { |
| 5954 | .eraseblocks = { {32 * 1024, 2} }, |
| 5955 | .block_erase = spi_block_erase_52, |
| 5956 | }, { |
| 5957 | .eraseblocks = { {64 * 1024, 1} }, |
| 5958 | .block_erase = spi_block_erase_60, |
| 5959 | }, { |
| 5960 | .eraseblocks = { {64 * 1024, 1} }, |
| 5961 | .block_erase = spi_block_erase_c7, |
| 5962 | } |
| 5963 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5964 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5965 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5966 | .write = spi_chip_write_256, |
| 5967 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5968 | .voltage = {2700, 3600}, |
| 5969 | }, |
| 5970 | |
| 5971 | { |
| 5972 | .vendor = "GigaDevice", |
| 5973 | .name = "GD25Q10", |
| 5974 | .bustype = BUS_SPI, |
| 5975 | .manufacture_id = GIGADEVICE_ID, |
| 5976 | .model_id = GIGADEVICE_GD25Q10, |
| 5977 | .total_size = 128, |
| 5978 | .page_size = 256, |
| 5979 | .feature_bits = FEATURE_WRSR_WREN, |
| 5980 | .tested = TEST_UNTESTED, |
| 5981 | .probe = probe_spi_rdid, |
| 5982 | .probe_timing = TIMING_ZERO, |
| 5983 | .block_erasers = { |
| 5984 | { |
| 5985 | .eraseblocks = { {4 * 1024, 32} }, |
| 5986 | .block_erase = spi_block_erase_20, |
| 5987 | }, { |
| 5988 | .eraseblocks = { {32 * 1024, 4} }, |
| 5989 | .block_erase = spi_block_erase_52, |
| 5990 | }, { |
| 5991 | .eraseblocks = { {64 * 1024, 2} }, |
| 5992 | .block_erase = spi_block_erase_d8, |
| 5993 | }, { |
| 5994 | .eraseblocks = { {128 * 1024, 1} }, |
| 5995 | .block_erase = spi_block_erase_60, |
| 5996 | }, { |
| 5997 | .eraseblocks = { {128 * 1024, 1} }, |
| 5998 | .block_erase = spi_block_erase_c7, |
| 5999 | } |
| 6000 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6001 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6002 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6003 | .write = spi_chip_write_256, |
| 6004 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6005 | .voltage = {2700, 3600}, |
| 6006 | }, |
| 6007 | |
| 6008 | { |
| 6009 | .vendor = "GigaDevice", |
| 6010 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6011 | .bustype = BUS_SPI, |
| 6012 | .manufacture_id = GIGADEVICE_ID, |
| 6013 | .model_id = GIGADEVICE_GD25Q20, |
| 6014 | .total_size = 256, |
| 6015 | .page_size = 256, |
| 6016 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 6017 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6018 | .probe = probe_spi_rdid, |
| 6019 | .probe_timing = TIMING_ZERO, |
| 6020 | .block_erasers = |
| 6021 | { |
| 6022 | { |
| 6023 | .eraseblocks = { {4 * 1024, 64} }, |
| 6024 | .block_erase = spi_block_erase_20, |
| 6025 | }, { |
| 6026 | .eraseblocks = { {32 * 1024, 8} }, |
| 6027 | .block_erase = spi_block_erase_52, |
| 6028 | }, { |
| 6029 | .eraseblocks = { {64 * 1024, 4} }, |
| 6030 | .block_erase = spi_block_erase_d8, |
| 6031 | }, { |
| 6032 | .eraseblocks = { {256 * 1024, 1} }, |
| 6033 | .block_erase = spi_block_erase_60, |
| 6034 | }, { |
| 6035 | .eraseblocks = { {256 * 1024, 1} }, |
| 6036 | .block_erase = spi_block_erase_c7, |
| 6037 | } |
| 6038 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6039 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6040 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6041 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6042 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6043 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6044 | }, |
| 6045 | |
| 6046 | { |
| 6047 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6048 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6049 | .bustype = BUS_SPI, |
| 6050 | .manufacture_id = GIGADEVICE_ID, |
| 6051 | .model_id = GIGADEVICE_GD25Q40, |
| 6052 | .total_size = 512, |
| 6053 | .page_size = 256, |
| 6054 | .feature_bits = FEATURE_WRSR_WREN, |
| 6055 | .tested = TEST_UNTESTED, |
| 6056 | .probe = probe_spi_rdid, |
| 6057 | .probe_timing = TIMING_ZERO, |
| 6058 | .block_erasers = |
| 6059 | { |
| 6060 | { |
| 6061 | .eraseblocks = { {4 * 1024, 128} }, |
| 6062 | .block_erase = spi_block_erase_20, |
| 6063 | }, { |
| 6064 | .eraseblocks = { {32 * 1024, 16} }, |
| 6065 | .block_erase = spi_block_erase_52, |
| 6066 | }, { |
| 6067 | .eraseblocks = { {64 * 1024, 8} }, |
| 6068 | .block_erase = spi_block_erase_d8, |
| 6069 | }, { |
| 6070 | .eraseblocks = { {512 * 1024, 1} }, |
| 6071 | .block_erase = spi_block_erase_60, |
| 6072 | }, { |
| 6073 | .eraseblocks = { {512 * 1024, 1} }, |
| 6074 | .block_erase = spi_block_erase_c7, |
| 6075 | } |
| 6076 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6077 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6078 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6079 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6080 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6081 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6082 | }, |
| 6083 | |
| 6084 | { |
| 6085 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6086 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6087 | .bustype = BUS_SPI, |
| 6088 | .manufacture_id = GIGADEVICE_ID, |
| 6089 | .model_id = GIGADEVICE_GD25Q80, |
| 6090 | .total_size = 1024, |
| 6091 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6092 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6093 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6094 | .tested = TEST_OK_PREW, |
| 6095 | .probe = probe_spi_rdid, |
| 6096 | .probe_timing = TIMING_ZERO, |
| 6097 | .block_erasers = |
| 6098 | { |
| 6099 | { |
| 6100 | .eraseblocks = { {4 * 1024, 256} }, |
| 6101 | .block_erase = spi_block_erase_20, |
| 6102 | }, { |
| 6103 | .eraseblocks = { {32 * 1024, 32} }, |
| 6104 | .block_erase = spi_block_erase_52, |
| 6105 | }, { |
| 6106 | .eraseblocks = { {64 * 1024, 16} }, |
| 6107 | .block_erase = spi_block_erase_d8, |
| 6108 | }, { |
| 6109 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6110 | .block_erase = spi_block_erase_60, |
| 6111 | }, { |
| 6112 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6113 | .block_erase = spi_block_erase_c7, |
| 6114 | } |
| 6115 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6116 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6117 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6118 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6119 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6120 | .voltage = {2700, 3600}, |
| 6121 | }, |
| 6122 | |
| 6123 | { |
| 6124 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6125 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6126 | .bustype = BUS_SPI, |
| 6127 | .manufacture_id = GIGADEVICE_ID, |
| 6128 | .model_id = GIGADEVICE_GD25Q16, |
| 6129 | .total_size = 2048, |
| 6130 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6131 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6132 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 6133 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6134 | .probe = probe_spi_rdid, |
| 6135 | .probe_timing = TIMING_ZERO, |
| 6136 | .block_erasers = |
| 6137 | { |
| 6138 | { |
| 6139 | .eraseblocks = { {4 * 1024, 512} }, |
| 6140 | .block_erase = spi_block_erase_20, |
| 6141 | }, { |
| 6142 | .eraseblocks = { {32 * 1024, 64} }, |
| 6143 | .block_erase = spi_block_erase_52, |
| 6144 | }, { |
| 6145 | .eraseblocks = { {64 * 1024, 32} }, |
| 6146 | .block_erase = spi_block_erase_d8, |
| 6147 | }, { |
| 6148 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6149 | .block_erase = spi_block_erase_60, |
| 6150 | }, { |
| 6151 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6152 | .block_erase = spi_block_erase_c7, |
| 6153 | } |
| 6154 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6155 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6156 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6157 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6158 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6159 | .voltage = {2700, 3600}, |
| 6160 | }, |
| 6161 | |
| 6162 | { |
| 6163 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6164 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6165 | .bustype = BUS_SPI, |
| 6166 | .manufacture_id = GIGADEVICE_ID, |
| 6167 | .model_id = GIGADEVICE_GD25Q32, |
| 6168 | .total_size = 4096, |
| 6169 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6170 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6171 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6172 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6173 | .probe = probe_spi_rdid, |
| 6174 | .probe_timing = TIMING_ZERO, |
| 6175 | .block_erasers = |
| 6176 | { |
| 6177 | { |
| 6178 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6179 | .block_erase = spi_block_erase_20, |
| 6180 | }, { |
| 6181 | .eraseblocks = { {32 * 1024, 128} }, |
| 6182 | .block_erase = spi_block_erase_52, |
| 6183 | }, { |
| 6184 | .eraseblocks = { {64 * 1024, 64} }, |
| 6185 | .block_erase = spi_block_erase_d8, |
| 6186 | }, { |
| 6187 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6188 | .block_erase = spi_block_erase_60, |
| 6189 | }, { |
| 6190 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6191 | .block_erase = spi_block_erase_c7, |
| 6192 | } |
| 6193 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6194 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6195 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6196 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6197 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6198 | .voltage = {2700, 3600}, |
| 6199 | }, |
| 6200 | |
| 6201 | { |
| 6202 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6203 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6204 | .bustype = BUS_SPI, |
| 6205 | .manufacture_id = GIGADEVICE_ID, |
| 6206 | .model_id = GIGADEVICE_GD25Q64, |
| 6207 | .total_size = 8192, |
| 6208 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6209 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6210 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6211 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6212 | .probe = probe_spi_rdid, |
| 6213 | .probe_timing = TIMING_ZERO, |
| 6214 | .block_erasers = |
| 6215 | { |
| 6216 | { |
| 6217 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6218 | .block_erase = spi_block_erase_20, |
| 6219 | }, { |
| 6220 | .eraseblocks = { {32 * 1024, 256} }, |
| 6221 | .block_erase = spi_block_erase_52, |
| 6222 | }, { |
| 6223 | .eraseblocks = { {64 * 1024, 128} }, |
| 6224 | .block_erase = spi_block_erase_d8, |
| 6225 | }, { |
| 6226 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6227 | .block_erase = spi_block_erase_60, |
| 6228 | }, { |
| 6229 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6230 | .block_erase = spi_block_erase_c7, |
| 6231 | } |
| 6232 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6233 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6234 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6235 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6236 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6237 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6238 | }, |
| 6239 | |
| 6240 | { |
| 6241 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6242 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6243 | .bustype = BUS_SPI, |
| 6244 | .manufacture_id = GIGADEVICE_ID, |
| 6245 | .model_id = GIGADEVICE_GD25Q128, |
| 6246 | .total_size = 16384, |
| 6247 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6248 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6249 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6250 | .tested = TEST_UNTESTED, |
| 6251 | .probe = probe_spi_rdid, |
| 6252 | .probe_timing = TIMING_ZERO, |
| 6253 | .block_erasers = |
| 6254 | { |
| 6255 | { |
| 6256 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6257 | .block_erase = spi_block_erase_20, |
| 6258 | }, { |
| 6259 | .eraseblocks = { {32 * 1024, 512} }, |
| 6260 | .block_erase = spi_block_erase_52, |
| 6261 | }, { |
| 6262 | .eraseblocks = { {64 * 1024, 256} }, |
| 6263 | .block_erase = spi_block_erase_d8, |
| 6264 | }, { |
| 6265 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6266 | .block_erase = spi_block_erase_60, |
| 6267 | }, { |
| 6268 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6269 | .block_erase = spi_block_erase_c7, |
| 6270 | } |
| 6271 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6272 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6273 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6274 | .write = spi_chip_write_256, |
| 6275 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6276 | .voltage = {2700, 3600}, |
| 6277 | }, |
| 6278 | |
| 6279 | { |
| 6280 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6281 | .name = "GD25Q128C", |
| 6282 | .bustype = BUS_SPI, |
| 6283 | .manufacture_id = GIGADEVICE_ID, |
| 6284 | .model_id = GIGADEVICE_GD25Q128, |
| 6285 | .total_size = 16384, |
| 6286 | .page_size = 256, |
| 6287 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6288 | /* QPI: enable 0x38, disable 0xFF */ |
| 6289 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6290 | .tested = TEST_UNTESTED, |
| 6291 | .probe = probe_spi_rdid, |
| 6292 | .probe_timing = TIMING_ZERO, |
| 6293 | .block_erasers = |
| 6294 | { |
| 6295 | { |
| 6296 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6297 | .block_erase = spi_block_erase_20, |
| 6298 | }, { |
| 6299 | .eraseblocks = { {32 * 1024, 512} }, |
| 6300 | .block_erase = spi_block_erase_52, |
| 6301 | }, { |
| 6302 | .eraseblocks = { {64 * 1024, 256} }, |
| 6303 | .block_erase = spi_block_erase_d8, |
| 6304 | }, { |
| 6305 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6306 | .block_erase = spi_block_erase_60, |
| 6307 | }, { |
| 6308 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6309 | .block_erase = spi_block_erase_c7, |
| 6310 | } |
| 6311 | }, |
| 6312 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6313 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6314 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6315 | .write = spi_chip_write_256, |
| 6316 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6317 | .voltage = {2700, 3600}, |
| 6318 | }, |
| 6319 | |
| 6320 | { |
| 6321 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6322 | .name = "GD25T80", |
| 6323 | .bustype = BUS_SPI, |
| 6324 | .manufacture_id = GIGADEVICE_ID, |
| 6325 | .model_id = GIGADEVICE_GD25T80, |
| 6326 | .total_size = 1024, |
| 6327 | .page_size = 256, |
| 6328 | /* OTP: 256B total; enter 0x3A */ |
| 6329 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6330 | .tested = TEST_UNTESTED, |
| 6331 | .probe = probe_spi_rdid, |
| 6332 | .probe_timing = TIMING_ZERO, |
| 6333 | .block_erasers = { |
| 6334 | { |
| 6335 | .eraseblocks = { {4 * 1024, 256} }, |
| 6336 | .block_erase = spi_block_erase_20, |
| 6337 | }, { |
| 6338 | .eraseblocks = { {64 * 1024, 16} }, |
| 6339 | .block_erase = spi_block_erase_52, |
| 6340 | }, { |
| 6341 | .eraseblocks = { {64 * 1024, 16} }, |
| 6342 | .block_erase = spi_block_erase_d8, |
| 6343 | }, { |
| 6344 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6345 | .block_erase = spi_block_erase_60, |
| 6346 | }, { |
| 6347 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6348 | .block_erase = spi_block_erase_c7, |
| 6349 | } |
| 6350 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6351 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6352 | .unlock = spi_disable_blockprotect, |
| 6353 | .write = spi_chip_write_256, |
| 6354 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6355 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6356 | }, |
| 6357 | |
| 6358 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6359 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6360 | .name = "GD25VQ21B", |
| 6361 | .bustype = BUS_SPI, |
| 6362 | .manufacture_id = GIGADEVICE_ID, |
| 6363 | .model_id = GIGADEVICE_GD25VQ21B, |
| 6364 | .total_size = 256, |
| 6365 | .page_size = 256, |
| 6366 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6367 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6368 | .tested = TEST_UNTESTED, |
| 6369 | .probe = probe_spi_rdid, |
| 6370 | .probe_timing = TIMING_ZERO, |
| 6371 | .block_erasers = |
| 6372 | { |
| 6373 | { |
| 6374 | .eraseblocks = { { 4 * 1024, 64} }, |
| 6375 | .block_erase = spi_block_erase_20, |
| 6376 | }, { |
| 6377 | .eraseblocks = { { 32 * 1024, 8} }, |
| 6378 | .block_erase = spi_block_erase_52, |
| 6379 | }, { |
| 6380 | .eraseblocks = { { 64 * 1024, 4} }, |
| 6381 | .block_erase = spi_block_erase_d8, |
| 6382 | }, { |
| 6383 | .eraseblocks = { {256 * 1024, 1} }, |
| 6384 | .block_erase = spi_block_erase_60, |
| 6385 | }, { |
| 6386 | .eraseblocks = { {256 * 1024, 1} }, |
| 6387 | .block_erase = spi_block_erase_c7, |
| 6388 | } |
| 6389 | }, |
| 6390 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6391 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6392 | .write = spi_chip_write_256, |
| 6393 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6394 | .voltage = {2300, 3600}, |
| 6395 | }, |
| 6396 | |
| 6397 | { |
| 6398 | .vendor = "GigaDevice", |
| 6399 | .name = "GD25VQ40C", |
| 6400 | .bustype = BUS_SPI, |
| 6401 | .manufacture_id = GIGADEVICE_ID, |
| 6402 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6403 | .total_size = 512, |
| 6404 | .page_size = 256, |
| 6405 | /* Supports SFDP */ |
| 6406 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6407 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6408 | .tested = TEST_UNTESTED, |
| 6409 | .probe = probe_spi_rdid, |
| 6410 | .probe_timing = TIMING_ZERO, |
| 6411 | .block_erasers = |
| 6412 | { |
| 6413 | { |
| 6414 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6415 | .block_erase = spi_block_erase_20, |
| 6416 | }, { |
| 6417 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6418 | .block_erase = spi_block_erase_52, |
| 6419 | }, { |
| 6420 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6421 | .block_erase = spi_block_erase_d8, |
| 6422 | }, { |
| 6423 | .eraseblocks = { {512 * 1024, 1} }, |
| 6424 | .block_erase = spi_block_erase_60, |
| 6425 | }, { |
| 6426 | .eraseblocks = { {512 * 1024, 1} }, |
| 6427 | .block_erase = spi_block_erase_c7, |
| 6428 | } |
| 6429 | }, |
| 6430 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6431 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6432 | .write = spi_chip_write_256, |
| 6433 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6434 | .voltage = {2300, 3600}, |
| 6435 | }, |
| 6436 | |
| 6437 | { |
| 6438 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6439 | .name = "GD25VQ41B", |
| 6440 | .bustype = BUS_SPI, |
| 6441 | .manufacture_id = GIGADEVICE_ID, |
| 6442 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6443 | .total_size = 512, |
| 6444 | .page_size = 256, |
| 6445 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6446 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6447 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6448 | .probe = probe_spi_rdid, |
| 6449 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6450 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6451 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6452 | { |
| 6453 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6454 | .block_erase = spi_block_erase_20, |
| 6455 | }, { |
| 6456 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6457 | .block_erase = spi_block_erase_52, |
| 6458 | }, { |
| 6459 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6460 | .block_erase = spi_block_erase_d8, |
| 6461 | }, { |
| 6462 | .eraseblocks = { {512 * 1024, 1} }, |
| 6463 | .block_erase = spi_block_erase_60, |
| 6464 | }, { |
| 6465 | .eraseblocks = { {512 * 1024, 1} }, |
| 6466 | .block_erase = spi_block_erase_c7, |
| 6467 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6468 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6469 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6470 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6471 | .write = spi_chip_write_256, |
| 6472 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6473 | .voltage = {2300, 3600}, |
| 6474 | }, |
| 6475 | |
| 6476 | { |
| 6477 | .vendor = "GigaDevice", |
| 6478 | .name = "GD25VQ80C", |
| 6479 | .bustype = BUS_SPI, |
| 6480 | .manufacture_id = GIGADEVICE_ID, |
| 6481 | .model_id = GIGADEVICE_GD25VQ80C, |
| 6482 | .total_size = 1024, |
| 6483 | .page_size = 256, |
| 6484 | /* Supports SFDP */ |
| 6485 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6486 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6487 | .tested = TEST_UNTESTED, |
| 6488 | .probe = probe_spi_rdid, |
| 6489 | .probe_timing = TIMING_ZERO, |
| 6490 | .block_erasers = |
| 6491 | { |
| 6492 | { |
| 6493 | .eraseblocks = { { 4 * 1024, 256} }, |
| 6494 | .block_erase = spi_block_erase_20, |
| 6495 | }, { |
| 6496 | .eraseblocks = { { 32 * 1024, 32} }, |
| 6497 | .block_erase = spi_block_erase_52, |
| 6498 | }, { |
| 6499 | .eraseblocks = { { 64 * 1024, 16} }, |
| 6500 | .block_erase = spi_block_erase_d8, |
| 6501 | }, { |
| 6502 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6503 | .block_erase = spi_block_erase_60, |
| 6504 | }, { |
| 6505 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6506 | .block_erase = spi_block_erase_c7, |
| 6507 | } |
| 6508 | }, |
| 6509 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6510 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6511 | .write = spi_chip_write_256, |
| 6512 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6513 | .voltage = {2300, 3600}, |
| 6514 | }, |
| 6515 | |
| 6516 | { |
| 6517 | .vendor = "GigaDevice", |
| 6518 | .name = "GD25VQ16C", |
| 6519 | .bustype = BUS_SPI, |
| 6520 | .manufacture_id = GIGADEVICE_ID, |
| 6521 | .model_id = GIGADEVICE_GD25VQ16C, |
| 6522 | .total_size = 2 * 1024, |
| 6523 | .page_size = 256, |
| 6524 | /* Supports SFDP */ |
| 6525 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6526 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6527 | .tested = TEST_UNTESTED, |
| 6528 | .probe = probe_spi_rdid, |
| 6529 | .probe_timing = TIMING_ZERO, |
| 6530 | .block_erasers = |
| 6531 | { |
| 6532 | { |
| 6533 | .eraseblocks = { { 4 * 1024, 512} }, |
| 6534 | .block_erase = spi_block_erase_20, |
| 6535 | }, { |
| 6536 | .eraseblocks = { { 32 * 1024, 64} }, |
| 6537 | .block_erase = spi_block_erase_52, |
| 6538 | }, { |
| 6539 | .eraseblocks = { { 64 * 1024, 32} }, |
| 6540 | .block_erase = spi_block_erase_d8, |
| 6541 | }, { |
| 6542 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6543 | .block_erase = spi_block_erase_60, |
| 6544 | }, { |
| 6545 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6546 | .block_erase = spi_block_erase_c7, |
| 6547 | } |
| 6548 | }, |
| 6549 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6550 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6551 | .write = spi_chip_write_256, |
| 6552 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6553 | .voltage = {2300, 3600}, |
| 6554 | }, |
| 6555 | |
| 6556 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6557 | .vendor = "Hyundai", |
| 6558 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6559 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6560 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6561 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6562 | .total_size = 256, |
| 6563 | .page_size = 256 * 1024, |
| 6564 | .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] | 6565 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6566 | .probe = probe_jedec, |
| 6567 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6568 | .block_erasers = |
| 6569 | { |
| 6570 | { |
| 6571 | .eraseblocks = { |
| 6572 | {64 * 1024, 3}, |
| 6573 | {32 * 1024, 1}, |
| 6574 | {8 * 1024, 2}, |
| 6575 | {16 * 1024, 1}, |
| 6576 | }, |
| 6577 | .block_erase = erase_sector_jedec, |
| 6578 | }, { |
| 6579 | .eraseblocks = { {256 * 1024, 1} }, |
| 6580 | .block_erase = erase_chip_block_jedec, |
| 6581 | }, |
| 6582 | }, |
| 6583 | .write = write_jedec_1, |
| 6584 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6585 | .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] | 6586 | }, |
| 6587 | |
| 6588 | { |
| 6589 | .vendor = "Hyundai", |
| 6590 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6591 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6592 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6593 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6594 | .total_size = 256, |
| 6595 | .page_size = 256 * 1024, |
| 6596 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 6597 | .tested = TEST_UNTESTED, |
| 6598 | .probe = probe_jedec, |
| 6599 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6600 | .block_erasers = |
| 6601 | { |
| 6602 | { |
| 6603 | .eraseblocks = { |
| 6604 | {16 * 1024, 1}, |
| 6605 | {8 * 1024, 2}, |
| 6606 | {32 * 1024, 1}, |
| 6607 | {64 * 1024, 3}, |
| 6608 | }, |
| 6609 | .block_erase = erase_sector_jedec, |
| 6610 | }, { |
| 6611 | .eraseblocks = { {256 * 1024, 1} }, |
| 6612 | .block_erase = erase_chip_block_jedec, |
| 6613 | }, |
| 6614 | }, |
| 6615 | .write = write_jedec_1, |
| 6616 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6617 | .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] | 6618 | }, |
| 6619 | |
| 6620 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6621 | .vendor = "Hyundai", |
| 6622 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6623 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6624 | .manufacture_id = HYUNDAI_ID, |
| 6625 | .model_id = HYUNDAI_HY29F040A, |
| 6626 | .total_size = 512, |
| 6627 | .page_size = 64 * 1024, |
| 6628 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6629 | .tested = TEST_UNTESTED, |
| 6630 | .probe = probe_jedec, |
| 6631 | .probe_timing = TIMING_ZERO, |
| 6632 | .block_erasers = |
| 6633 | { |
| 6634 | { |
| 6635 | .eraseblocks = { {64 * 1024, 8} }, |
| 6636 | .block_erase = erase_sector_jedec, |
| 6637 | }, { |
| 6638 | .eraseblocks = { {512 * 1024, 1} }, |
| 6639 | .block_erase = erase_chip_block_jedec, |
| 6640 | }, |
| 6641 | }, |
| 6642 | .write = write_jedec_1, |
| 6643 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6644 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6645 | }, |
| 6646 | |
| 6647 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6648 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6649 | .name = "25F160S33B8", |
| 6650 | .bustype = BUS_SPI, |
| 6651 | .manufacture_id = INTEL_ID, |
| 6652 | .model_id = INTEL_25F160S33B8, |
| 6653 | .total_size = 2048, |
| 6654 | .page_size = 256, |
| 6655 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6656 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6657 | .tested = TEST_UNTESTED, |
| 6658 | .probe = probe_spi_rdid, |
| 6659 | .probe_timing = TIMING_ZERO, |
| 6660 | .block_erasers = |
| 6661 | { |
| 6662 | { |
| 6663 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6664 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6665 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6666 | .eraseblocks = { |
| 6667 | {8 * 1024, 8}, |
| 6668 | {64 * 1024, 31} // inaccessible |
| 6669 | }, |
| 6670 | .block_erase = spi_block_erase_40, |
| 6671 | }, { */ |
| 6672 | .eraseblocks = { {64 * 1024, 32} }, |
| 6673 | .block_erase = spi_block_erase_d8, |
| 6674 | }, { |
| 6675 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6676 | .block_erase = spi_block_erase_c7, |
| 6677 | } |
| 6678 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6679 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6680 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6681 | .write = spi_chip_write_256, |
| 6682 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6683 | .voltage = {2700, 3600}, |
| 6684 | }, |
| 6685 | |
| 6686 | { |
| 6687 | .vendor = "Intel", |
| 6688 | .name = "25F160S33T8", |
| 6689 | .bustype = BUS_SPI, |
| 6690 | .manufacture_id = INTEL_ID, |
| 6691 | .model_id = INTEL_25F160S33T8, |
| 6692 | .total_size = 2048, |
| 6693 | .page_size = 256, |
| 6694 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6695 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6696 | .tested = TEST_UNTESTED, |
| 6697 | .probe = probe_spi_rdid, |
| 6698 | .probe_timing = TIMING_ZERO, |
| 6699 | .block_erasers = |
| 6700 | { |
| 6701 | { |
| 6702 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6703 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6704 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6705 | .eraseblocks = { |
| 6706 | {64 * 1024, 31}, // inaccessible |
| 6707 | {8 * 1024, 8} |
| 6708 | }, |
| 6709 | .block_erase = spi_block_erase_40, |
| 6710 | }, { */ |
| 6711 | .eraseblocks = { {64 * 1024, 32} }, |
| 6712 | .block_erase = spi_block_erase_d8, |
| 6713 | }, { |
| 6714 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6715 | .block_erase = spi_block_erase_c7, |
| 6716 | } |
| 6717 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6718 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6719 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6720 | .write = spi_chip_write_256, |
| 6721 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6722 | .voltage = {2700, 3600}, |
| 6723 | }, |
| 6724 | |
| 6725 | { |
| 6726 | .vendor = "Intel", |
| 6727 | .name = "25F320S33B8", |
| 6728 | .bustype = BUS_SPI, |
| 6729 | .manufacture_id = INTEL_ID, |
| 6730 | .model_id = INTEL_25F320S33B8, |
| 6731 | .total_size = 4096, |
| 6732 | .page_size = 256, |
| 6733 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6734 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6735 | .tested = TEST_UNTESTED, |
| 6736 | .probe = probe_spi_rdid, |
| 6737 | .probe_timing = TIMING_ZERO, |
| 6738 | .block_erasers = |
| 6739 | { |
| 6740 | { |
| 6741 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6742 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6743 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6744 | .eraseblocks = { |
| 6745 | {8 * 1024, 8}, |
| 6746 | {64 * 1024, 63} // inaccessible |
| 6747 | }, |
| 6748 | .block_erase = spi_block_erase_40, |
| 6749 | }, { */ |
| 6750 | .eraseblocks = { {64 * 1024, 64} }, |
| 6751 | .block_erase = spi_block_erase_d8, |
| 6752 | }, { |
| 6753 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6754 | .block_erase = spi_block_erase_c7, |
| 6755 | } |
| 6756 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6757 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6758 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6759 | .write = spi_chip_write_256, |
| 6760 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6761 | .voltage = {2700, 3600}, |
| 6762 | }, |
| 6763 | |
| 6764 | { |
| 6765 | .vendor = "Intel", |
| 6766 | .name = "25F320S33T8", |
| 6767 | .bustype = BUS_SPI, |
| 6768 | .manufacture_id = INTEL_ID, |
| 6769 | .model_id = INTEL_25F320S33T8, |
| 6770 | .total_size = 4096, |
| 6771 | .page_size = 256, |
| 6772 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6773 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6774 | .tested = TEST_UNTESTED, |
| 6775 | .probe = probe_spi_rdid, |
| 6776 | .probe_timing = TIMING_ZERO, |
| 6777 | .block_erasers = |
| 6778 | { |
| 6779 | { |
| 6780 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6781 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6782 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6783 | .eraseblocks = { |
| 6784 | {64 * 1024, 63}, // inaccessible |
| 6785 | {8 * 1024, 8} |
| 6786 | }, |
| 6787 | .block_erase = spi_block_erase_40, |
| 6788 | }, { */ |
| 6789 | .eraseblocks = { {64 * 1024, 64} }, |
| 6790 | .block_erase = spi_block_erase_d8, |
| 6791 | }, { |
| 6792 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6793 | .block_erase = spi_block_erase_c7, |
| 6794 | } |
| 6795 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6796 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6797 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6798 | .write = spi_chip_write_256, |
| 6799 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6800 | .voltage = {2700, 3600}, |
| 6801 | }, |
| 6802 | |
| 6803 | { |
| 6804 | .vendor = "Intel", |
| 6805 | .name = "25F640S33B8", |
| 6806 | .bustype = BUS_SPI, |
| 6807 | .manufacture_id = INTEL_ID, |
| 6808 | .model_id = INTEL_25F640S33B8, |
| 6809 | .total_size = 8192, |
| 6810 | .page_size = 256, |
| 6811 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6812 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6813 | .tested = TEST_UNTESTED, |
| 6814 | .probe = probe_spi_rdid, |
| 6815 | .probe_timing = TIMING_ZERO, |
| 6816 | .block_erasers = |
| 6817 | { |
| 6818 | { |
| 6819 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6820 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6821 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6822 | .eraseblocks = { |
| 6823 | {8 * 1024, 8}, |
| 6824 | {64 * 1024, 127} // inaccessible |
| 6825 | }, |
| 6826 | .block_erase = spi_block_erase_40, |
| 6827 | }, { */ |
| 6828 | .eraseblocks = { {64 * 1024, 128} }, |
| 6829 | .block_erase = spi_block_erase_d8, |
| 6830 | }, { |
| 6831 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6832 | .block_erase = spi_block_erase_c7, |
| 6833 | } |
| 6834 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6835 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6836 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6837 | .write = spi_chip_write_256, |
| 6838 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6839 | .voltage = {2700, 3600}, |
| 6840 | }, |
| 6841 | |
| 6842 | { |
| 6843 | .vendor = "Intel", |
| 6844 | .name = "25F640S33T8", |
| 6845 | .bustype = BUS_SPI, |
| 6846 | .manufacture_id = INTEL_ID, |
| 6847 | .model_id = INTEL_25F640S33T8, |
| 6848 | .total_size = 8192, |
| 6849 | .page_size = 256, |
| 6850 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6851 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6852 | .tested = TEST_UNTESTED, |
| 6853 | .probe = probe_spi_rdid, |
| 6854 | .probe_timing = TIMING_ZERO, |
| 6855 | .block_erasers = |
| 6856 | { |
| 6857 | { |
| 6858 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6859 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6860 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6861 | .eraseblocks = { |
| 6862 | {64 * 1024, 127}, // inaccessible |
| 6863 | {8 * 1024, 8} |
| 6864 | }, |
| 6865 | .block_erase = spi_block_erase_40, |
| 6866 | }, { */ |
| 6867 | .eraseblocks = { {64 * 1024, 128} }, |
| 6868 | .block_erase = spi_block_erase_d8, |
| 6869 | }, { |
| 6870 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6871 | .block_erase = spi_block_erase_c7, |
| 6872 | } |
| 6873 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6874 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6875 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6876 | .write = spi_chip_write_256, |
| 6877 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6878 | .voltage = {2700, 3600}, |
| 6879 | }, |
| 6880 | |
| 6881 | { |
| 6882 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6883 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6884 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6885 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6886 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6887 | .total_size = 128, |
| 6888 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6889 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6890 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6891 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6892 | .block_erasers = |
| 6893 | { |
| 6894 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6895 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6896 | {8 * 1024, 1}, |
| 6897 | {4 * 1024, 2}, |
| 6898 | {112 * 1024, 1}, |
| 6899 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6900 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6901 | }, |
| 6902 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6903 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6904 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6905 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6906 | }, |
| 6907 | |
| 6908 | { |
| 6909 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6910 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6911 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6912 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6913 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6914 | .total_size = 128, |
| 6915 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 6916 | .tested = TEST_OK_PREW, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6917 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6918 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6919 | .block_erasers = |
| 6920 | { |
| 6921 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6922 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6923 | {112 * 1024, 1}, |
| 6924 | {4 * 1024, 2}, |
| 6925 | {8 * 1024, 1}, |
| 6926 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6927 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6928 | }, |
| 6929 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6930 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6931 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6932 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6933 | }, |
| 6934 | |
| 6935 | { |
| 6936 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6937 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6938 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6939 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6940 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6941 | .total_size = 256, |
| 6942 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6943 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6944 | .probe = probe_82802ab, |
| 6945 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6946 | .block_erasers = |
| 6947 | { |
| 6948 | { |
| 6949 | .eraseblocks = { |
| 6950 | {128 * 1024, 1}, |
| 6951 | {96 * 1024, 1}, |
| 6952 | {8 * 1024, 2}, |
| 6953 | {16 * 1024, 1}, |
| 6954 | }, |
| 6955 | .block_erase = erase_block_82802ab, |
| 6956 | }, |
| 6957 | }, |
| 6958 | .write = write_82802ab, |
| 6959 | .read = read_memmapped, |
| 6960 | }, |
| 6961 | |
| 6962 | { |
| 6963 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6964 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6965 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6966 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6967 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6968 | .total_size = 512, |
| 6969 | .page_size = 256, |
| 6970 | .tested = TEST_UNTESTED, |
| 6971 | .probe = probe_82802ab, |
| 6972 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6973 | .block_erasers = |
| 6974 | { |
| 6975 | { |
| 6976 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6977 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6978 | }, |
| 6979 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6980 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6981 | .write = write_82802ab, |
| 6982 | .read = read_memmapped, |
| 6983 | }, |
| 6984 | |
| 6985 | { |
| 6986 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6987 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6988 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6989 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6990 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6991 | .total_size = 512, |
| 6992 | .page_size = 128 * 1024, /* maximal block size */ |
| 6993 | .tested = TEST_UNTESTED, |
| 6994 | .probe = probe_82802ab, |
| 6995 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6996 | .block_erasers = |
| 6997 | { |
| 6998 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6999 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7000 | {16 * 1024, 1}, |
| 7001 | {8 * 1024, 2}, |
| 7002 | {96 * 1024, 1}, |
| 7003 | {128 * 1024, 3}, |
| 7004 | }, |
| 7005 | .block_erase = erase_block_82802ab, |
| 7006 | }, |
| 7007 | }, |
| 7008 | .write = write_82802ab, |
| 7009 | .read = read_memmapped, |
| 7010 | }, |
| 7011 | |
| 7012 | { |
| 7013 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7014 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7015 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7016 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7017 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7018 | .total_size = 512, |
| 7019 | .page_size = 128 * 1024, /* maximal block size */ |
| 7020 | .tested = TEST_UNTESTED, |
| 7021 | .probe = probe_82802ab, |
| 7022 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7023 | .block_erasers = |
| 7024 | { |
| 7025 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7026 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7027 | {128 * 1024, 3}, |
| 7028 | {96 * 1024, 1}, |
| 7029 | {8 * 1024, 2}, |
| 7030 | {16 * 1024, 1}, |
| 7031 | }, |
| 7032 | .block_erase = erase_block_82802ab, |
| 7033 | }, |
| 7034 | }, |
| 7035 | .write = write_82802ab, |
| 7036 | .read = read_memmapped, |
| 7037 | }, |
| 7038 | |
| 7039 | { |
| 7040 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7041 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7042 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7043 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7044 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7045 | .total_size = 512, |
| 7046 | .page_size = 128 * 1024, /* maximal block size */ |
| 7047 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7048 | .tested = TEST_UNTESTED, |
| 7049 | .probe = probe_82802ab, |
| 7050 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7051 | .block_erasers = |
| 7052 | { |
| 7053 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7054 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7055 | {16 * 1024, 1}, |
| 7056 | {8 * 1024, 2}, |
| 7057 | {96 * 1024, 1}, |
| 7058 | {128 * 1024, 3}, |
| 7059 | }, |
| 7060 | .block_erase = erase_block_82802ab, |
| 7061 | }, |
| 7062 | }, |
| 7063 | .write = write_82802ab, |
| 7064 | .read = read_memmapped, |
| 7065 | }, |
| 7066 | |
| 7067 | { |
| 7068 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7069 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7070 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7071 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7072 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7073 | .total_size = 512, |
| 7074 | .page_size = 128 * 1024, /* maximal block size */ |
| 7075 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7076 | .tested = TEST_UNTESTED, |
| 7077 | .probe = probe_82802ab, |
| 7078 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7079 | .block_erasers = |
| 7080 | { |
| 7081 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7082 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7083 | {128 * 1024, 3}, |
| 7084 | {96 * 1024, 1}, |
| 7085 | {8 * 1024, 2}, |
| 7086 | {16 * 1024, 1}, |
| 7087 | }, |
| 7088 | .block_erase = erase_block_82802ab, |
| 7089 | }, |
| 7090 | }, |
| 7091 | .write = write_82802ab, |
| 7092 | .read = read_memmapped, |
| 7093 | }, |
| 7094 | |
| 7095 | { |
| 7096 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7097 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7098 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7099 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7100 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7101 | .total_size = 512, |
| 7102 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7103 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7104 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7105 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7106 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7107 | .block_erasers = |
| 7108 | { |
| 7109 | { |
| 7110 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7111 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7112 | }, |
| 7113 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7114 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7115 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7116 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7117 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7118 | }, |
| 7119 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7120 | { |
| 7121 | .vendor = "Intel", |
| 7122 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7123 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7124 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7125 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7126 | .total_size = 1024, |
| 7127 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7128 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7129 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7130 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7131 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7132 | .block_erasers = |
| 7133 | { |
| 7134 | { |
| 7135 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7136 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7137 | }, |
| 7138 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7139 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7140 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7141 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7142 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7143 | }, |
| 7144 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7145 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7146 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7147 | .name = "IS25LP128", |
| 7148 | .bustype = BUS_SPI, |
| 7149 | .manufacture_id = ISSI_ID_SPI, |
| 7150 | .model_id = ISSI_IS25LP128, |
| 7151 | .total_size = 16384, |
| 7152 | .page_size = 256, |
| 7153 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7154 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7155 | .tested = TEST_OK_PREW, |
| 7156 | .probe = probe_spi_rdid, |
| 7157 | .probe_timing = TIMING_ZERO, |
| 7158 | .block_erasers = |
| 7159 | { |
| 7160 | { |
| 7161 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7162 | .block_erase = spi_block_erase_20, |
| 7163 | }, { |
| 7164 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7165 | .block_erase = spi_block_erase_d7, |
| 7166 | }, { |
| 7167 | .eraseblocks = { {32 * 1024, 512} }, |
| 7168 | .block_erase = spi_block_erase_52, |
| 7169 | }, { |
| 7170 | .eraseblocks = { {64 * 1024, 256} }, |
| 7171 | .block_erase = spi_block_erase_d8, |
| 7172 | }, { |
| 7173 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7174 | .block_erase = spi_block_erase_60, |
| 7175 | }, { |
| 7176 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7177 | .block_erase = spi_block_erase_c7, |
| 7178 | } |
| 7179 | }, |
| 7180 | .unlock = spi_disable_blockprotect, |
| 7181 | .write = spi_chip_write_256, |
| 7182 | .read = spi_chip_read, |
| 7183 | .voltage = {2300, 3600}, |
| 7184 | }, |
| 7185 | |
| 7186 | { |
| 7187 | .vendor = "ISSI", |
| 7188 | .name = "IS25WP128", |
| 7189 | .bustype = BUS_SPI, |
| 7190 | .manufacture_id = ISSI_ID_SPI, |
| 7191 | .model_id = ISSI_IS25WP128, |
| 7192 | .total_size = 16384, |
| 7193 | .page_size = 256, |
| 7194 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7195 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7196 | .tested = TEST_OK_PREW, |
| 7197 | .probe = probe_spi_rdid, |
| 7198 | .probe_timing = TIMING_ZERO, |
| 7199 | .block_erasers = |
| 7200 | { |
| 7201 | { |
| 7202 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7203 | .block_erase = spi_block_erase_20, |
| 7204 | }, { |
| 7205 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7206 | .block_erase = spi_block_erase_d7, |
| 7207 | }, { |
| 7208 | .eraseblocks = { {32 * 1024, 512} }, |
| 7209 | .block_erase = spi_block_erase_52, |
| 7210 | }, { |
| 7211 | .eraseblocks = { {64 * 1024, 256} }, |
| 7212 | .block_erase = spi_block_erase_d8, |
| 7213 | }, { |
| 7214 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7215 | .block_erase = spi_block_erase_60, |
| 7216 | }, { |
| 7217 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7218 | .block_erase = spi_block_erase_c7, |
| 7219 | } |
| 7220 | }, |
| 7221 | .unlock = spi_disable_blockprotect, |
| 7222 | .write = spi_chip_write_256, |
| 7223 | .read = spi_chip_read, |
| 7224 | .voltage = {1650, 1950}, |
| 7225 | }, |
| 7226 | |
| 7227 | { |
| 7228 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7229 | .name = "IS29GL064B", |
| 7230 | .bustype = BUS_PARALLEL, |
| 7231 | .manufacture_id = ISSI_ID, |
| 7232 | .model_id = ISSI_PMC_IS29GL064B, |
| 7233 | .total_size = 8192, |
| 7234 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7235 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7236 | .tested = TEST_UNTESTED, |
| 7237 | .probe = probe_jedec_29gl, |
| 7238 | .probe_timing = TIMING_ZERO, |
| 7239 | .block_erasers = |
| 7240 | { |
| 7241 | { |
| 7242 | .eraseblocks = { |
| 7243 | {8 * 1024, 8}, |
| 7244 | {64 * 1024, 127}, |
| 7245 | }, |
| 7246 | .block_erase = erase_sector_jedec, |
| 7247 | }, { |
| 7248 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7249 | .block_erase = erase_chip_block_jedec, |
| 7250 | }, |
| 7251 | }, |
| 7252 | .write = write_jedec_1, |
| 7253 | .read = read_memmapped, |
| 7254 | .voltage = {2700, 3600}, |
| 7255 | }, |
| 7256 | |
| 7257 | { |
| 7258 | .vendor = "ISSI", |
| 7259 | .name = "IS29GL064T", |
| 7260 | .bustype = BUS_PARALLEL, |
| 7261 | .manufacture_id = ISSI_ID, |
| 7262 | .model_id = ISSI_PMC_IS29GL064T, |
| 7263 | .total_size = 8192, |
| 7264 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7265 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7266 | .tested = TEST_UNTESTED, |
| 7267 | .probe = probe_jedec_29gl, |
| 7268 | .probe_timing = TIMING_ZERO, |
| 7269 | .block_erasers = |
| 7270 | { |
| 7271 | { |
| 7272 | .eraseblocks = { |
| 7273 | {64 * 1024, 127}, |
| 7274 | {8 * 1024, 8}, |
| 7275 | }, |
| 7276 | .block_erase = erase_sector_jedec, |
| 7277 | }, { |
| 7278 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7279 | .block_erase = erase_chip_block_jedec, |
| 7280 | }, |
| 7281 | }, |
| 7282 | .write = write_jedec_1, |
| 7283 | .read = read_memmapped, |
| 7284 | .voltage = {2700, 3600}, |
| 7285 | }, |
| 7286 | |
| 7287 | { |
| 7288 | .vendor = "ISSI", |
| 7289 | .name = "IS29GL064H/L", |
| 7290 | .bustype = BUS_PARALLEL, |
| 7291 | .manufacture_id = ISSI_ID, |
| 7292 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7293 | .total_size = 8192, |
| 7294 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7295 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7296 | .tested = TEST_UNTESTED, |
| 7297 | .probe = probe_jedec_29gl, |
| 7298 | .probe_timing = TIMING_ZERO, |
| 7299 | .block_erasers = |
| 7300 | { |
| 7301 | { |
| 7302 | .eraseblocks = { {64 * 1024, 128} }, |
| 7303 | .block_erase = erase_sector_jedec, |
| 7304 | }, { |
| 7305 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7306 | .block_erase = erase_chip_block_jedec, |
| 7307 | }, |
| 7308 | }, |
| 7309 | .write = write_jedec_1, |
| 7310 | .read = read_memmapped, |
| 7311 | .voltage = {2700, 3600}, |
| 7312 | }, |
| 7313 | |
| 7314 | { |
| 7315 | .vendor = "ISSI", |
| 7316 | .name = "IS29GL128H/L", |
| 7317 | .bustype = BUS_PARALLEL, |
| 7318 | .manufacture_id = ISSI_ID, |
| 7319 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7320 | .total_size = 16384, |
| 7321 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7322 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7323 | .tested = TEST_UNTESTED, |
| 7324 | .probe = probe_jedec_29gl, |
| 7325 | .probe_timing = TIMING_ZERO, |
| 7326 | .block_erasers = |
| 7327 | { |
| 7328 | { |
| 7329 | .eraseblocks = { {128 * 1024, 128} }, |
| 7330 | .block_erase = erase_sector_jedec, |
| 7331 | }, { |
| 7332 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7333 | .block_erase = erase_chip_block_jedec, |
| 7334 | }, |
| 7335 | }, |
| 7336 | .write = write_jedec_1, |
| 7337 | .read = read_memmapped, |
| 7338 | .voltage = {2700, 3600}, |
| 7339 | }, |
| 7340 | |
| 7341 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7342 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7343 | .name = "MX23L1654", |
| 7344 | .bustype = BUS_SPI, |
| 7345 | .manufacture_id = MACRONIX_ID, |
| 7346 | .model_id = MACRONIX_MX23L1654, |
| 7347 | .total_size = 2048, |
| 7348 | .page_size = 256, |
| 7349 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7350 | .probe = probe_spi_rdid, |
| 7351 | .probe_timing = TIMING_ZERO, |
| 7352 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 7353 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7354 | .voltage = {3000, 3600}, |
| 7355 | }, |
| 7356 | |
| 7357 | { |
| 7358 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7359 | .name = "MX23L3254", |
| 7360 | .bustype = BUS_SPI, |
| 7361 | .manufacture_id = MACRONIX_ID, |
| 7362 | .model_id = MACRONIX_MX23L3254, |
| 7363 | .total_size = 4096, |
| 7364 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 7365 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7366 | .probe = probe_spi_rdid, |
| 7367 | .probe_timing = TIMING_ZERO, |
| 7368 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 7369 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7370 | .voltage = {3000, 3600}, |
| 7371 | }, |
| 7372 | |
| 7373 | { |
| 7374 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7375 | .name = "MX23L6454", |
| 7376 | .bustype = BUS_SPI, |
| 7377 | .manufacture_id = MACRONIX_ID, |
| 7378 | .model_id = MACRONIX_MX23L6454, |
| 7379 | .total_size = 8192, |
| 7380 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7381 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7382 | .probe = probe_spi_rdid, |
| 7383 | .probe_timing = TIMING_ZERO, |
| 7384 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 7385 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7386 | .voltage = {3000, 3600}, |
| 7387 | }, |
| 7388 | |
| 7389 | { |
| 7390 | .vendor = "Macronix", |
| 7391 | .name = "MX23L12854", |
| 7392 | .bustype = BUS_SPI, |
| 7393 | .manufacture_id = MACRONIX_ID, |
| 7394 | .model_id = MACRONIX_MX23L12854, |
| 7395 | .total_size = 16384, |
| 7396 | .page_size = 256, |
| 7397 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7398 | .probe = probe_spi_rdid, |
| 7399 | .probe_timing = TIMING_ZERO, |
| 7400 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 7401 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7402 | .voltage = {3000, 3600}, |
| 7403 | }, |
| 7404 | |
| 7405 | { |
| 7406 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7407 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7408 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7409 | .manufacture_id = MACRONIX_ID, |
| 7410 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7411 | .total_size = 64, |
| 7412 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7413 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7414 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7415 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7416 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7417 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7418 | .block_erasers = |
| 7419 | { |
| 7420 | { |
| 7421 | .eraseblocks = { {4 * 1024, 16} }, |
| 7422 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7423 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7424 | .eraseblocks = { {64 * 1024, 1} }, |
| 7425 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7426 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7427 | .eraseblocks = { {64 * 1024, 1} }, |
| 7428 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7429 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7430 | .eraseblocks = { {64 * 1024, 1} }, |
| 7431 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7432 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7433 | .eraseblocks = { {64 * 1024, 1} }, |
| 7434 | .block_erase = spi_block_erase_c7, |
| 7435 | }, |
| 7436 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7437 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7438 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7439 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7440 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 7441 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7442 | }, |
| 7443 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7444 | { |
| 7445 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7446 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7447 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7448 | .manufacture_id = MACRONIX_ID, |
| 7449 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7450 | .total_size = 128, |
| 7451 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7452 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7453 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 7454 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7455 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7456 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7457 | .block_erasers = |
| 7458 | { |
| 7459 | { |
| 7460 | .eraseblocks = { {4 * 1024, 32} }, |
| 7461 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7462 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7463 | .eraseblocks = { {64 * 1024, 2} }, |
| 7464 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7465 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7466 | .eraseblocks = { {128 * 1024, 1} }, |
| 7467 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7468 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7469 | .eraseblocks = { {128 * 1024, 1} }, |
| 7470 | .block_erase = spi_block_erase_c7, |
| 7471 | }, |
| 7472 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7473 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7474 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7475 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7476 | .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] | 7477 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7478 | }, |
| 7479 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7480 | { |
| 7481 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7482 | .name = "MX25L2005(C)/MX25L2006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7483 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7484 | .manufacture_id = MACRONIX_ID, |
| 7485 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7486 | .total_size = 256, |
| 7487 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7488 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7489 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7490 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7491 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7492 | .block_erasers = |
| 7493 | { |
| 7494 | { |
| 7495 | .eraseblocks = { {4 * 1024, 64} }, |
| 7496 | .block_erase = spi_block_erase_20, |
| 7497 | }, { |
| 7498 | .eraseblocks = { {64 * 1024, 4} }, |
| 7499 | .block_erase = spi_block_erase_52, |
| 7500 | }, { |
| 7501 | .eraseblocks = { {64 * 1024, 4} }, |
| 7502 | .block_erase = spi_block_erase_d8, |
| 7503 | }, { |
| 7504 | .eraseblocks = { {256 * 1024, 1} }, |
| 7505 | .block_erase = spi_block_erase_60, |
| 7506 | }, { |
| 7507 | .eraseblocks = { {256 * 1024, 1} }, |
| 7508 | .block_erase = spi_block_erase_c7, |
| 7509 | }, |
| 7510 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7511 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7512 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7513 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7514 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7515 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7516 | }, |
| 7517 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7518 | { |
| 7519 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7520 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7521 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7522 | .manufacture_id = MACRONIX_ID, |
| 7523 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7524 | .total_size = 512, |
| 7525 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7526 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7527 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7528 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7529 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7530 | .block_erasers = |
| 7531 | { |
| 7532 | { |
| 7533 | .eraseblocks = { {4 * 1024, 128} }, |
| 7534 | .block_erase = spi_block_erase_20, |
| 7535 | }, { |
| 7536 | .eraseblocks = { {64 * 1024, 8} }, |
| 7537 | .block_erase = spi_block_erase_52, |
| 7538 | }, { |
| 7539 | .eraseblocks = { {64 * 1024, 8} }, |
| 7540 | .block_erase = spi_block_erase_d8, |
| 7541 | }, { |
| 7542 | .eraseblocks = { {512 * 1024, 1} }, |
| 7543 | .block_erase = spi_block_erase_60, |
| 7544 | }, { |
| 7545 | .eraseblocks = { {512 * 1024, 1} }, |
| 7546 | .block_erase = spi_block_erase_c7, |
| 7547 | }, |
| 7548 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7549 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7550 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7551 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7552 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7553 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7554 | }, |
| 7555 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7556 | { |
| 7557 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7558 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7559 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7560 | .manufacture_id = MACRONIX_ID, |
| 7561 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7562 | .total_size = 1024, |
| 7563 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7564 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 7565 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7566 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 7567 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7568 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7569 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7570 | .block_erasers = |
| 7571 | { |
| 7572 | { |
| 7573 | .eraseblocks = { {4 * 1024, 256} }, |
| 7574 | .block_erase = spi_block_erase_20, |
| 7575 | }, { |
| 7576 | .eraseblocks = { {64 * 1024, 16} }, |
| 7577 | .block_erase = spi_block_erase_52, |
| 7578 | }, { |
| 7579 | .eraseblocks = { {64 * 1024, 16} }, |
| 7580 | .block_erase = spi_block_erase_d8, |
| 7581 | }, { |
| 7582 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7583 | .block_erase = spi_block_erase_60, |
| 7584 | }, { |
| 7585 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7586 | .block_erase = spi_block_erase_c7, |
| 7587 | }, |
| 7588 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7589 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7590 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7591 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7592 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7593 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7594 | }, |
| 7595 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7596 | { |
| 7597 | .vendor = "Macronix", |
| 7598 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7599 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7600 | .manufacture_id = MACRONIX_ID, |
| 7601 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7602 | .total_size = 2048, |
| 7603 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7604 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 7605 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7606 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7607 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7608 | .block_erasers = |
| 7609 | { |
| 7610 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7611 | .eraseblocks = { {64 * 1024, 32} }, |
| 7612 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7613 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7614 | .eraseblocks = { {64 * 1024, 32} }, |
| 7615 | .block_erase = spi_block_erase_d8, |
| 7616 | }, { |
| 7617 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7618 | .block_erase = spi_block_erase_60, |
| 7619 | }, { |
| 7620 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7621 | .block_erase = spi_block_erase_c7, |
| 7622 | }, |
| 7623 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7624 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7625 | .unlock = spi_disable_blockprotect, |
| 7626 | .write = spi_chip_write_256, |
| 7627 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7628 | .voltage = {2700, 3600}, |
| 7629 | }, |
| 7630 | |
| 7631 | { |
| 7632 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7633 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7634 | .bustype = BUS_SPI, |
| 7635 | .manufacture_id = MACRONIX_ID, |
| 7636 | .model_id = MACRONIX_MX25L1605, |
| 7637 | .total_size = 2048, |
| 7638 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7639 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7640 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7641 | .tested = TEST_OK_PREW, |
| 7642 | .probe = probe_spi_rdid, |
| 7643 | .probe_timing = TIMING_ZERO, |
| 7644 | .block_erasers = |
| 7645 | { |
| 7646 | { |
| 7647 | .eraseblocks = { {4 * 1024, 512} }, |
| 7648 | .block_erase = spi_block_erase_20, |
| 7649 | }, { |
| 7650 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7651 | .block_erase = spi_block_erase_52, |
| 7652 | }, { |
| 7653 | .eraseblocks = { {64 * 1024, 32} }, |
| 7654 | .block_erase = spi_block_erase_d8, |
| 7655 | }, { |
| 7656 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7657 | .block_erase = spi_block_erase_60, |
| 7658 | }, { |
| 7659 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7660 | .block_erase = spi_block_erase_c7, |
| 7661 | }, |
| 7662 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7663 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7664 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7665 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7666 | .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] | 7667 | .voltage = {2700, 3600}, |
| 7668 | }, |
| 7669 | |
| 7670 | { |
| 7671 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7672 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7673 | .bustype = BUS_SPI, |
| 7674 | .manufacture_id = MACRONIX_ID, |
| 7675 | .model_id = MACRONIX_MX25L1605, |
| 7676 | .total_size = 2048, |
| 7677 | .page_size = 256, |
| 7678 | .feature_bits = FEATURE_WRSR_WREN, |
| 7679 | .tested = TEST_OK_PREW, |
| 7680 | .probe = probe_spi_rdid, |
| 7681 | .probe_timing = TIMING_ZERO, |
| 7682 | .block_erasers = |
| 7683 | { |
| 7684 | { |
| 7685 | .eraseblocks = { {4 * 1024, 512} }, |
| 7686 | .block_erase = spi_block_erase_20, |
| 7687 | }, { |
| 7688 | .eraseblocks = { {64 * 1024, 32} }, |
| 7689 | .block_erase = spi_block_erase_d8, |
| 7690 | }, { |
| 7691 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7692 | .block_erase = spi_block_erase_60, |
| 7693 | }, { |
| 7694 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7695 | .block_erase = spi_block_erase_c7, |
| 7696 | }, |
| 7697 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7698 | .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] | 7699 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7700 | .write = spi_chip_write_256, |
| 7701 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7702 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7703 | }, |
| 7704 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7705 | { |
| 7706 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7707 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7708 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7709 | .manufacture_id = MACRONIX_ID, |
| 7710 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7711 | .total_size = 2048, |
| 7712 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7713 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7714 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7715 | .tested = TEST_UNTESTED, |
| 7716 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7717 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7718 | .block_erasers = |
| 7719 | { |
| 7720 | { |
| 7721 | .eraseblocks = { {4 * 1024, 512} }, |
| 7722 | .block_erase = spi_block_erase_20, |
| 7723 | }, { |
| 7724 | .eraseblocks = { {64 * 1024, 32} }, |
| 7725 | .block_erase = spi_block_erase_d8, |
| 7726 | }, { |
| 7727 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7728 | .block_erase = spi_block_erase_60, |
| 7729 | }, { |
| 7730 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7731 | .block_erase = spi_block_erase_c7, |
| 7732 | } |
| 7733 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7734 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7735 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7736 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7737 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7738 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7739 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 7740 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7741 | { |
| 7742 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7743 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7744 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7745 | .manufacture_id = MACRONIX_ID, |
| 7746 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7747 | .total_size = 2048, |
| 7748 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7749 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7750 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7751 | .tested = TEST_UNTESTED, |
| 7752 | .probe = probe_spi_rdid, |
| 7753 | .probe_timing = TIMING_ZERO, |
| 7754 | .block_erasers = |
| 7755 | { |
| 7756 | { |
| 7757 | .eraseblocks = { {4 * 1024, 512} }, |
| 7758 | .block_erase = spi_block_erase_20, |
| 7759 | }, { |
| 7760 | .eraseblocks = { {64 * 1024, 32} }, |
| 7761 | .block_erase = spi_block_erase_d8, |
| 7762 | }, { |
| 7763 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7764 | .block_erase = spi_block_erase_60, |
| 7765 | }, { |
| 7766 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7767 | .block_erase = spi_block_erase_c7, |
| 7768 | } |
| 7769 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7770 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7771 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7772 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7773 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7774 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7775 | }, |
| 7776 | |
| 7777 | { |
| 7778 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7779 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7780 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7781 | .manufacture_id = MACRONIX_ID, |
| 7782 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7783 | .total_size = 4096, |
| 7784 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7785 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 7786 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7787 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7788 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7789 | .block_erasers = |
| 7790 | { |
| 7791 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7792 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7793 | .block_erase = spi_block_erase_20, |
| 7794 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7795 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7796 | .block_erase = spi_block_erase_d8, |
| 7797 | }, { |
| 7798 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7799 | .block_erase = spi_block_erase_60, |
| 7800 | }, { |
| 7801 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7802 | .block_erase = spi_block_erase_c7, |
| 7803 | }, |
| 7804 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7805 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7806 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7807 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7808 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7809 | .voltage = {2700, 3600}, |
| 7810 | }, |
| 7811 | |
| 7812 | { |
| 7813 | .vendor = "Macronix", |
| 7814 | .name = "MX25L3205D/MX25L3208D", |
| 7815 | .bustype = BUS_SPI, |
| 7816 | .manufacture_id = MACRONIX_ID, |
| 7817 | .model_id = MACRONIX_MX25L3205, |
| 7818 | .total_size = 4096, |
| 7819 | .page_size = 256, |
| 7820 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7821 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7822 | .tested = TEST_OK_PREW, |
| 7823 | .probe = probe_spi_rdid, |
| 7824 | .probe_timing = TIMING_ZERO, |
| 7825 | .block_erasers = |
| 7826 | { |
| 7827 | { |
| 7828 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7829 | .block_erase = spi_block_erase_20, |
| 7830 | }, { |
| 7831 | .eraseblocks = { {64 * 1024, 64} }, |
| 7832 | .block_erase = spi_block_erase_d8, |
| 7833 | }, { |
| 7834 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7835 | .block_erase = spi_block_erase_60, |
| 7836 | }, { |
| 7837 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7838 | .block_erase = spi_block_erase_c7, |
| 7839 | }, |
| 7840 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7841 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7842 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7843 | .write = spi_chip_write_256, |
| 7844 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7845 | .voltage = {2700, 3600}, |
| 7846 | }, |
| 7847 | |
| 7848 | { |
| 7849 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7850 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7851 | .bustype = BUS_SPI, |
| 7852 | .manufacture_id = MACRONIX_ID, |
| 7853 | .model_id = MACRONIX_MX25L3205, |
| 7854 | .total_size = 4096, |
| 7855 | .page_size = 256, |
| 7856 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7857 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7858 | .tested = TEST_OK_PREW, |
| 7859 | .probe = probe_spi_rdid, |
| 7860 | .probe_timing = TIMING_ZERO, |
| 7861 | .block_erasers = |
| 7862 | { |
| 7863 | { |
| 7864 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7865 | .block_erase = spi_block_erase_20, |
| 7866 | }, { |
| 7867 | .eraseblocks = { {64 * 1024, 64} }, |
| 7868 | .block_erase = spi_block_erase_d8, |
| 7869 | }, { |
| 7870 | .eraseblocks = { {64 * 1024, 64} }, |
| 7871 | .block_erase = spi_block_erase_52, |
| 7872 | }, { |
| 7873 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7874 | .block_erase = spi_block_erase_60, |
| 7875 | }, { |
| 7876 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7877 | .block_erase = spi_block_erase_c7, |
| 7878 | }, |
| 7879 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7880 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7881 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7882 | .write = spi_chip_write_256, |
| 7883 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7884 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7885 | }, |
| 7886 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7887 | { |
| 7888 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7889 | .name = "MX25L3273E", |
| 7890 | .bustype = BUS_SPI, |
| 7891 | .manufacture_id = MACRONIX_ID, |
| 7892 | .model_id = MACRONIX_MX25L3205, |
| 7893 | .total_size = 4096, |
| 7894 | .page_size = 256, |
| 7895 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7897 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7898 | .probe = probe_spi_rdid, |
| 7899 | .probe_timing = TIMING_ZERO, |
| 7900 | .block_erasers = |
| 7901 | { |
| 7902 | { |
| 7903 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7904 | .block_erase = spi_block_erase_20, |
| 7905 | }, { |
| 7906 | .eraseblocks = { {32 * 1024, 128} }, |
| 7907 | .block_erase = spi_block_erase_52, |
| 7908 | }, { |
| 7909 | .eraseblocks = { {64 * 1024, 64} }, |
| 7910 | .block_erase = spi_block_erase_d8, |
| 7911 | }, { |
| 7912 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7913 | .block_erase = spi_block_erase_60, |
| 7914 | }, { |
| 7915 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7916 | .block_erase = spi_block_erase_c7, |
| 7917 | }, |
| 7918 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7919 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7920 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7921 | .write = spi_chip_write_256, |
| 7922 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7923 | .voltage = {2700, 3600}, |
| 7924 | }, |
| 7925 | |
| 7926 | { |
| 7927 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7928 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7929 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7930 | .manufacture_id = MACRONIX_ID, |
| 7931 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7932 | .total_size = 4096, |
| 7933 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7934 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 7935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7936 | .tested = TEST_UNTESTED, |
| 7937 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7938 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7939 | .block_erasers = |
| 7940 | { |
| 7941 | { |
| 7942 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7943 | .block_erase = spi_block_erase_20, |
| 7944 | }, { |
| 7945 | .eraseblocks = { {64 * 1024, 64} }, |
| 7946 | .block_erase = spi_block_erase_d8, |
| 7947 | }, { |
| 7948 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7949 | .block_erase = spi_block_erase_60, |
| 7950 | }, { |
| 7951 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7952 | .block_erase = spi_block_erase_c7, |
| 7953 | } |
| 7954 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7955 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7956 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7957 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7958 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7959 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7960 | }, |
| 7961 | |
| 7962 | { |
| 7963 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7964 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7965 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7966 | .manufacture_id = MACRONIX_ID, |
| 7967 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7968 | .total_size = 8192, |
| 7969 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7970 | /* Has an additional 512B EEPROM sector */ |
| 7971 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 7972 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7973 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7974 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7975 | .block_erasers = |
| 7976 | { |
| 7977 | { |
| 7978 | .eraseblocks = { {64 * 1024, 128} }, |
| 7979 | .block_erase = spi_block_erase_20, |
| 7980 | }, { |
| 7981 | .eraseblocks = { {64 * 1024, 128} }, |
| 7982 | .block_erase = spi_block_erase_d8, |
| 7983 | }, { |
| 7984 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7985 | .block_erase = spi_block_erase_60, |
| 7986 | }, { |
| 7987 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7988 | .block_erase = spi_block_erase_c7, |
| 7989 | } |
| 7990 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7991 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7992 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7993 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7994 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7995 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7996 | }, |
| 7997 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7998 | { |
| 7999 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8000 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8001 | .bustype = BUS_SPI, |
| 8002 | .manufacture_id = MACRONIX_ID, |
| 8003 | .model_id = MACRONIX_MX25L6405, |
| 8004 | .total_size = 8192, |
| 8005 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8006 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8007 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8008 | .tested = TEST_OK_PREW, |
| 8009 | .probe = probe_spi_rdid, |
| 8010 | .probe_timing = TIMING_ZERO, |
| 8011 | .block_erasers = |
| 8012 | { |
| 8013 | { |
| 8014 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8015 | .block_erase = spi_block_erase_20, |
| 8016 | }, { |
| 8017 | .eraseblocks = { {64 * 1024, 128} }, |
| 8018 | .block_erase = spi_block_erase_d8, |
| 8019 | }, { |
| 8020 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8021 | .block_erase = spi_block_erase_60, |
| 8022 | }, { |
| 8023 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8024 | .block_erase = spi_block_erase_c7, |
| 8025 | } |
| 8026 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8027 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8028 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8029 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8030 | .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] | 8031 | .voltage = {2700, 3600}, |
| 8032 | }, |
| 8033 | |
| 8034 | { |
| 8035 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8036 | .name = "MX25L6406E/MX25L6408E", |
| 8037 | .bustype = BUS_SPI, |
| 8038 | .manufacture_id = MACRONIX_ID, |
| 8039 | .model_id = MACRONIX_MX25L6405, |
| 8040 | .total_size = 8192, |
| 8041 | .page_size = 256, |
| 8042 | /* MX25L6406E supports SFDP */ |
| 8043 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 8044 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8045 | .tested = TEST_OK_PREW, |
| 8046 | .probe = probe_spi_rdid, |
| 8047 | .probe_timing = TIMING_ZERO, |
| 8048 | .block_erasers = |
| 8049 | { |
| 8050 | { |
| 8051 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8052 | .block_erase = spi_block_erase_20, |
| 8053 | }, { |
| 8054 | .eraseblocks = { {64 * 1024, 128} }, |
| 8055 | .block_erase = spi_block_erase_52, |
| 8056 | }, { |
| 8057 | .eraseblocks = { {64 * 1024, 128} }, |
| 8058 | .block_erase = spi_block_erase_d8, |
| 8059 | }, { |
| 8060 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8061 | .block_erase = spi_block_erase_60, |
| 8062 | }, { |
| 8063 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8064 | .block_erase = spi_block_erase_c7, |
| 8065 | } |
| 8066 | }, |
| 8067 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8068 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8069 | .write = spi_chip_write_256, |
| 8070 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 8071 | .voltage = {2700, 3600}, |
| 8072 | }, |
| 8073 | |
| 8074 | { |
| 8075 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 8076 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8077 | .bustype = BUS_SPI, |
| 8078 | .manufacture_id = MACRONIX_ID, |
| 8079 | .model_id = MACRONIX_MX25L6405, |
| 8080 | .total_size = 8192, |
| 8081 | .page_size = 256, |
| 8082 | /* supports SFDP */ |
| 8083 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8084 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8085 | .tested = TEST_OK_PREW, |
| 8086 | .probe = probe_spi_rdid, |
| 8087 | .probe_timing = TIMING_ZERO, |
| 8088 | .block_erasers = |
| 8089 | { |
| 8090 | { |
| 8091 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8092 | .block_erase = spi_block_erase_20, |
| 8093 | }, { |
| 8094 | .eraseblocks = { {32 * 1024, 256} }, |
| 8095 | .block_erase = spi_block_erase_52, |
| 8096 | }, { |
| 8097 | .eraseblocks = { {64 * 1024, 128} }, |
| 8098 | .block_erase = spi_block_erase_d8, |
| 8099 | }, { |
| 8100 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8101 | .block_erase = spi_block_erase_60, |
| 8102 | }, { |
| 8103 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8104 | .block_erase = spi_block_erase_c7, |
| 8105 | } |
| 8106 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8107 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8108 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8109 | .write = spi_chip_write_256, |
| 8110 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8111 | .voltage = {2700, 3600}, |
| 8112 | }, |
| 8113 | |
| 8114 | { |
| 8115 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8116 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8117 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8118 | .manufacture_id = MACRONIX_ID, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8119 | .model_id = MACRONIX_MX25L12805D, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8120 | .total_size = 16384, |
| 8121 | .page_size = 256, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8122 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8123 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8124 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8125 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8126 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8127 | .block_erasers = |
| 8128 | { |
| 8129 | { |
| 8130 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8131 | .block_erase = spi_block_erase_20, |
| 8132 | }, { |
| 8133 | .eraseblocks = { {64 * 1024, 256} }, |
| 8134 | .block_erase = spi_block_erase_d8, |
| 8135 | }, { |
| 8136 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8137 | .block_erase = spi_block_erase_60, |
| 8138 | }, { |
| 8139 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8140 | .block_erase = spi_block_erase_c7, |
| 8141 | } |
| 8142 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8143 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8144 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8145 | .write = spi_chip_write_256, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8146 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8147 | .voltage = {2700, 3600}, |
| 8148 | }, |
| 8149 | |
| 8150 | { |
| 8151 | .vendor = "Macronix", |
| 8152 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
| 8153 | .bustype = BUS_SPI, |
| 8154 | .manufacture_id = MACRONIX_ID, |
| 8155 | .model_id = MACRONIX_MX25L12805D, |
| 8156 | .total_size = 16384, |
| 8157 | .page_size = 256, |
| 8158 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8159 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8160 | .tested = TEST_OK_PREW, |
| 8161 | .probe = probe_spi_rdid, |
| 8162 | .probe_timing = TIMING_ZERO, |
| 8163 | .block_erasers = |
| 8164 | { |
| 8165 | { |
| 8166 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8167 | .block_erase = spi_block_erase_20, |
| 8168 | }, { |
| 8169 | .eraseblocks = { {32 * 1024, 512} }, |
| 8170 | .block_erase = spi_block_erase_52, |
| 8171 | }, { |
| 8172 | .eraseblocks = { {64 * 1024, 256} }, |
| 8173 | .block_erase = spi_block_erase_d8, |
| 8174 | }, { |
| 8175 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8176 | .block_erase = spi_block_erase_60, |
| 8177 | }, { |
| 8178 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8179 | .block_erase = spi_block_erase_c7, |
| 8180 | } |
| 8181 | }, |
| 8182 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8183 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8184 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8185 | .write = spi_chip_write_256, |
| 8186 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8187 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8188 | }, |
| 8189 | |
| 8190 | { |
| 8191 | .vendor = "Macronix", |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8192 | .name = "MX25L25635F", |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8193 | .bustype = BUS_SPI, |
| 8194 | .manufacture_id = MACRONIX_ID, |
| 8195 | .model_id = MACRONIX_MX25L25635F, |
| 8196 | .total_size = 32768, |
| 8197 | .page_size = 256, |
| 8198 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8199 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8200 | .tested = TEST_UNTESTED, |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8201 | .probe = probe_spi_rdid, |
| 8202 | .probe_timing = TIMING_ZERO, |
| 8203 | .block_erasers = |
| 8204 | { |
| 8205 | { |
| 8206 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8207 | .block_erase = spi_block_erase_21, |
| 8208 | }, { |
| 8209 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8210 | .block_erase = spi_block_erase_20, |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8211 | }, { |
| 8212 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8213 | .block_erase = spi_block_erase_5c, |
| 8214 | }, { |
| 8215 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8216 | .block_erase = spi_block_erase_52, |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8217 | }, { |
| 8218 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8219 | .block_erase = spi_block_erase_dc, |
| 8220 | }, { |
| 8221 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8222 | .block_erase = spi_block_erase_d8, |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8223 | }, { |
| 8224 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8225 | .block_erase = spi_block_erase_60, |
| 8226 | }, { |
| 8227 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8228 | .block_erase = spi_block_erase_c7, |
| 8229 | } |
| 8230 | }, |
| 8231 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8232 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8233 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8234 | .write = spi_chip_write_256, |
| 8235 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8236 | .voltage = {2700, 3600}, |
| 8237 | }, |
| 8238 | |
| 8239 | { |
| 8240 | .vendor = "Macronix", |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8241 | .name = "MX66L51235F", |
| 8242 | .bustype = BUS_SPI, |
| 8243 | .manufacture_id = MACRONIX_ID, |
| 8244 | .model_id = MACRONIX_MX66L51235F, |
| 8245 | .total_size = 65536, |
| 8246 | .page_size = 256, |
| 8247 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8248 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8249 | .tested = TEST_UNTESTED, |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8250 | .probe = probe_spi_rdid, |
| 8251 | .probe_timing = TIMING_ZERO, |
| 8252 | .block_erasers = |
| 8253 | { |
| 8254 | { |
| 8255 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8256 | .block_erase = spi_block_erase_21, |
| 8257 | }, { |
| 8258 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8259 | .block_erase = spi_block_erase_20, |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8260 | }, { |
| 8261 | .eraseblocks = { {32 * 1024, 2048} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8262 | .block_erase = spi_block_erase_5c, |
| 8263 | }, { |
| 8264 | .eraseblocks = { {32 * 1024, 2048} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8265 | .block_erase = spi_block_erase_52, |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8266 | }, { |
| 8267 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8268 | .block_erase = spi_block_erase_dc, |
| 8269 | }, { |
| 8270 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8271 | .block_erase = spi_block_erase_d8, |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8272 | }, { |
| 8273 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8274 | .block_erase = spi_block_erase_60, |
| 8275 | }, { |
| 8276 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8277 | .block_erase = spi_block_erase_c7, |
| 8278 | } |
| 8279 | }, |
| 8280 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8281 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8282 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8283 | .write = spi_chip_write_256, |
| 8284 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8285 | .voltage = {2700, 3600}, |
| 8286 | }, |
| 8287 | |
| 8288 | { |
| 8289 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8290 | .name = "MX25U1635E", |
| 8291 | .bustype = BUS_SPI, |
| 8292 | .manufacture_id = MACRONIX_ID, |
| 8293 | .model_id = MACRONIX_MX25U1635E, |
| 8294 | .total_size = 2048, |
| 8295 | .page_size = 256, |
| 8296 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8297 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8298 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8299 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8300 | .probe = probe_spi_rdid, |
| 8301 | .probe_timing = TIMING_ZERO, |
| 8302 | .block_erasers = |
| 8303 | { |
| 8304 | { |
| 8305 | .eraseblocks = { {4 * 1024, 512} }, |
| 8306 | .block_erase = spi_block_erase_20, |
| 8307 | }, { |
| 8308 | .eraseblocks = { {32 * 1024, 64} }, |
| 8309 | .block_erase = spi_block_erase_52, |
| 8310 | }, { |
| 8311 | .eraseblocks = { {64 * 1024, 32} }, |
| 8312 | .block_erase = spi_block_erase_d8, |
| 8313 | }, { |
| 8314 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8315 | .block_erase = spi_block_erase_60, |
| 8316 | }, { |
| 8317 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8318 | .block_erase = spi_block_erase_c7, |
| 8319 | } |
| 8320 | }, |
| 8321 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8322 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8323 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8324 | .write = spi_chip_write_256, |
| 8325 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8326 | .voltage = {1650, 2000}, |
| 8327 | }, |
| 8328 | |
| 8329 | { |
| 8330 | .vendor = "Macronix", |
| 8331 | .name = "MX25U3235E/F", |
| 8332 | .bustype = BUS_SPI, |
| 8333 | .manufacture_id = MACRONIX_ID, |
| 8334 | .model_id = MACRONIX_MX25U3235E, |
| 8335 | .total_size = 4096, |
| 8336 | .page_size = 256, |
| 8337 | /* F model supports SFDP */ |
| 8338 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8339 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8340 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8341 | .tested = TEST_OK_PREW, |
| 8342 | .probe = probe_spi_rdid, |
| 8343 | .probe_timing = TIMING_ZERO, |
| 8344 | .block_erasers = |
| 8345 | { |
| 8346 | { |
| 8347 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8348 | .block_erase = spi_block_erase_20, |
| 8349 | }, { |
| 8350 | .eraseblocks = { {32 * 1024, 128} }, |
| 8351 | .block_erase = spi_block_erase_52, |
| 8352 | }, { |
| 8353 | .eraseblocks = { {64 * 1024, 64} }, |
| 8354 | .block_erase = spi_block_erase_d8, |
| 8355 | }, { |
| 8356 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8357 | .block_erase = spi_block_erase_60, |
| 8358 | }, { |
| 8359 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8360 | .block_erase = spi_block_erase_c7, |
| 8361 | } |
| 8362 | }, |
| 8363 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8364 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8365 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8366 | .write = spi_chip_write_256, |
| 8367 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8368 | .voltage = {1650, 2000}, |
| 8369 | }, |
| 8370 | |
| 8371 | { |
| 8372 | .vendor = "Macronix", |
| 8373 | .name = "MX25U6435E/F", |
| 8374 | .bustype = BUS_SPI, |
| 8375 | .manufacture_id = MACRONIX_ID, |
| 8376 | .model_id = MACRONIX_MX25U6435E, |
| 8377 | .total_size = 8192, |
| 8378 | .page_size = 256, |
| 8379 | /* F model supports SFDP */ |
| 8380 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8381 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8382 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8383 | .tested = TEST_OK_PREW, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8384 | .probe = probe_spi_rdid, |
| 8385 | .probe_timing = TIMING_ZERO, |
| 8386 | .block_erasers = |
| 8387 | { |
| 8388 | { |
| 8389 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8390 | .block_erase = spi_block_erase_20, |
| 8391 | }, { |
| 8392 | .eraseblocks = { {32 * 1024, 256} }, |
| 8393 | .block_erase = spi_block_erase_52, |
| 8394 | }, { |
| 8395 | .eraseblocks = { {64 * 1024, 128} }, |
| 8396 | .block_erase = spi_block_erase_d8, |
| 8397 | }, { |
| 8398 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8399 | .block_erase = spi_block_erase_60, |
| 8400 | }, { |
| 8401 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8402 | .block_erase = spi_block_erase_c7, |
| 8403 | } |
| 8404 | }, |
| 8405 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8406 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8407 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8408 | .write = spi_chip_write_256, |
| 8409 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8410 | .voltage = {1650, 2000}, |
| 8411 | }, |
| 8412 | |
| 8413 | { |
| 8414 | .vendor = "Macronix", |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 8415 | .name = "MX25U12835F", |
| 8416 | .bustype = BUS_SPI, |
| 8417 | .manufacture_id = MACRONIX_ID, |
| 8418 | .model_id = MACRONIX_MX25U12835E, |
| 8419 | .total_size = 16384, |
| 8420 | .page_size = 256, |
| 8421 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8422 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8423 | .tested = TEST_UNTESTED, |
| 8424 | .probe = probe_spi_rdid, |
| 8425 | .probe_timing = TIMING_ZERO, |
| 8426 | .block_erasers = |
| 8427 | { |
| 8428 | { |
| 8429 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8430 | .block_erase = spi_block_erase_20, |
| 8431 | }, { |
| 8432 | .eraseblocks = { {32 * 1024, 512} }, |
| 8433 | .block_erase = spi_block_erase_52, |
| 8434 | }, { |
| 8435 | .eraseblocks = { {64 * 1024, 256} }, |
| 8436 | .block_erase = spi_block_erase_d8, |
| 8437 | }, { |
| 8438 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8439 | .block_erase = spi_block_erase_60, |
| 8440 | }, { |
| 8441 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8442 | .block_erase = spi_block_erase_c7, |
| 8443 | } |
| 8444 | }, |
| 8445 | /* TODO: security register */ |
| 8446 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8447 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8448 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8449 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8450 | .voltage = {1650, 2000}, |
| 8451 | }, |
| 8452 | |
| 8453 | { |
Stefan Tauner | a4617f7 | 2015-01-10 15:59:54 +0000 | [diff] [blame] | 8454 | .vendor = "Macronix", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8455 | .name = "MX25L6495F", |
| 8456 | .bustype = BUS_SPI, |
| 8457 | .manufacture_id = MACRONIX_ID, |
| 8458 | .model_id = MACRONIX_MX25L6495F, |
| 8459 | .total_size = 8192, |
| 8460 | .page_size = 256, |
| 8461 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8462 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8463 | .tested = TEST_OK_PREW, |
| 8464 | .probe = probe_spi_rdid, |
| 8465 | .probe_timing = TIMING_ZERO, |
| 8466 | .block_erasers = |
| 8467 | { |
| 8468 | { |
| 8469 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8470 | .block_erase = spi_block_erase_20, |
| 8471 | }, { |
| 8472 | .eraseblocks = { {64 * 1024, 128} }, |
| 8473 | .block_erase = spi_block_erase_d8, |
| 8474 | }, { |
| 8475 | .eraseblocks = { {32 * 1024, 256} }, |
| 8476 | .block_erase = spi_block_erase_52, |
| 8477 | }, { |
| 8478 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8479 | .block_erase = spi_block_erase_60, |
| 8480 | }, { |
| 8481 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8482 | .block_erase = spi_block_erase_c7, |
| 8483 | } |
| 8484 | }, |
| 8485 | .unlock = spi_disable_blockprotect, |
| 8486 | .write = spi_chip_write_256, |
| 8487 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8488 | .voltage = {2700, 3600}, |
| 8489 | }, |
| 8490 | |
| 8491 | { |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 8492 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8493 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8494 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8495 | .manufacture_id = MACRONIX_ID, |
| 8496 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8497 | .total_size = 128, |
| 8498 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8499 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8500 | .tested = TEST_UNTESTED, |
| 8501 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8502 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8503 | .block_erasers = |
| 8504 | { |
| 8505 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8506 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8507 | {8 * 1024, 1}, |
| 8508 | {4 * 1024, 2}, |
| 8509 | {8 * 1024, 2}, |
| 8510 | {32 * 1024, 1}, |
| 8511 | {64 * 1024, 1}, |
| 8512 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8513 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8514 | }, { |
| 8515 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8516 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8517 | } |
| 8518 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8519 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8520 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8521 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8522 | }, |
| 8523 | |
| 8524 | { |
| 8525 | .vendor = "Macronix", |
| 8526 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8527 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8528 | .manufacture_id = MACRONIX_ID, |
| 8529 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8530 | .total_size = 128, |
| 8531 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8532 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 8533 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8534 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8535 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8536 | .block_erasers = |
| 8537 | { |
| 8538 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8539 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8540 | {64 * 1024, 1}, |
| 8541 | {32 * 1024, 1}, |
| 8542 | {8 * 1024, 2}, |
| 8543 | {4 * 1024, 2}, |
| 8544 | {8 * 1024, 1}, |
| 8545 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8546 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8547 | }, { |
| 8548 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8549 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8550 | } |
| 8551 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8552 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8553 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8554 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8555 | }, |
| 8556 | |
| 8557 | { |
| 8558 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8559 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8560 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8561 | .manufacture_id = MACRONIX_ID, |
| 8562 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8563 | .total_size = 256, |
| 8564 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8565 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8566 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8567 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8568 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8569 | .block_erasers = |
| 8570 | { |
| 8571 | { |
| 8572 | .eraseblocks = { |
| 8573 | {16 * 1024, 1}, |
| 8574 | {8 * 1024, 2}, |
| 8575 | {32 * 1024, 1}, |
| 8576 | {64 * 1024, 3}, |
| 8577 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8578 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8579 | }, { |
| 8580 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8581 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8582 | }, |
| 8583 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8584 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8585 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8586 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8587 | }, |
| 8588 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8589 | { |
| 8590 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8591 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8592 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8593 | .manufacture_id = MACRONIX_ID, |
| 8594 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8595 | .total_size = 256, |
| 8596 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8597 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8598 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8599 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8600 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8601 | .block_erasers = |
| 8602 | { |
| 8603 | { |
| 8604 | .eraseblocks = { |
| 8605 | {64 * 1024, 3}, |
| 8606 | {32 * 1024, 1}, |
| 8607 | {8 * 1024, 2}, |
| 8608 | {16 * 1024, 1}, |
| 8609 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8610 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8611 | }, { |
| 8612 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8613 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8614 | }, |
| 8615 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8616 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8617 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8618 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8619 | }, |
| 8620 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8621 | { |
| 8622 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 8623 | .name = "MX29F022(N)B", |
| 8624 | .bustype = BUS_PARALLEL, |
| 8625 | .manufacture_id = MACRONIX_ID, |
| 8626 | .model_id = MACRONIX_MX29F022B, |
| 8627 | .total_size = 256, |
| 8628 | .page_size = 0, /* unused */ |
| 8629 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8630 | .tested = TEST_UNTESTED, |
| 8631 | .probe = probe_jedec, |
| 8632 | .probe_timing = TIMING_ZERO, |
| 8633 | .block_erasers = |
| 8634 | { |
| 8635 | { |
| 8636 | .eraseblocks = { |
| 8637 | {16 * 1024, 1}, |
| 8638 | {8 * 1024, 2}, |
| 8639 | {32 * 1024, 1}, |
| 8640 | {64 * 1024, 3}, |
| 8641 | }, |
| 8642 | .block_erase = erase_sector_jedec, |
| 8643 | }, { |
| 8644 | .eraseblocks = { {256 * 1024, 1} }, |
| 8645 | .block_erase = erase_chip_block_jedec, |
| 8646 | } |
| 8647 | }, |
| 8648 | .write = write_jedec_1, |
| 8649 | .read = read_memmapped, |
| 8650 | .voltage = {4500, 5500}, |
| 8651 | }, |
| 8652 | |
| 8653 | { |
| 8654 | .vendor = "Macronix", |
| 8655 | .name = "MX29F022(N)T", |
| 8656 | .bustype = BUS_PARALLEL, |
| 8657 | .manufacture_id = MACRONIX_ID, |
| 8658 | .model_id = MACRONIX_MX29F022T, |
| 8659 | .total_size = 256, |
| 8660 | .page_size = 0, /* unused */ |
| 8661 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8662 | .tested = TEST_OK_PREW, |
| 8663 | .probe = probe_jedec, |
| 8664 | .probe_timing = TIMING_ZERO, |
| 8665 | .block_erasers = |
| 8666 | { |
| 8667 | { |
| 8668 | .eraseblocks = { |
| 8669 | {64 * 1024, 3}, |
| 8670 | {32 * 1024, 1}, |
| 8671 | {8 * 1024, 2}, |
| 8672 | {16 * 1024, 1}, |
| 8673 | }, |
| 8674 | .block_erase = erase_sector_jedec, |
| 8675 | }, { |
| 8676 | .eraseblocks = { {256 * 1024, 1} }, |
| 8677 | .block_erase = erase_chip_block_jedec, |
| 8678 | } |
| 8679 | }, |
| 8680 | .write = write_jedec_1, |
| 8681 | .read = read_memmapped, |
| 8682 | .voltage = {4500, 5500}, |
| 8683 | }, |
| 8684 | |
| 8685 | { |
| 8686 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8687 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8688 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8689 | .manufacture_id = MACRONIX_ID, |
| 8690 | .model_id = MACRONIX_MX29F040, |
| 8691 | .total_size = 512, |
| 8692 | .page_size = 64 * 1024, |
| 8693 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8694 | .tested = TEST_UNTESTED, |
| 8695 | .probe = probe_jedec, |
| 8696 | .probe_timing = TIMING_ZERO, |
| 8697 | .block_erasers = |
| 8698 | { |
| 8699 | { |
| 8700 | .eraseblocks = { {64 * 1024, 8} }, |
| 8701 | .block_erase = erase_sector_jedec, |
| 8702 | }, { |
| 8703 | .eraseblocks = { {512 * 1024, 1} }, |
| 8704 | .block_erase = erase_chip_block_jedec, |
| 8705 | }, |
| 8706 | }, |
| 8707 | .write = write_jedec_1, |
| 8708 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8709 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8710 | }, |
| 8711 | |
| 8712 | { |
| 8713 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8714 | .name = "MX29GL320EB", |
| 8715 | .bustype = BUS_PARALLEL, |
| 8716 | .manufacture_id = MACRONIX_ID, |
| 8717 | .model_id = MACRONIX_MX29GL320EB, |
| 8718 | .total_size = 4096, |
| 8719 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8720 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8721 | .tested = TEST_UNTESTED, |
| 8722 | .probe = probe_jedec_29gl, |
| 8723 | .probe_timing = TIMING_ZERO, |
| 8724 | .block_erasers = |
| 8725 | { |
| 8726 | { |
| 8727 | .eraseblocks = { |
| 8728 | {8 * 1024, 8}, |
| 8729 | {64 * 1024, 63}, |
| 8730 | }, |
| 8731 | .block_erase = erase_sector_jedec, |
| 8732 | }, { |
| 8733 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8734 | .block_erase = erase_chip_block_jedec, |
| 8735 | }, |
| 8736 | }, |
| 8737 | .write = write_jedec_1, |
| 8738 | .read = read_memmapped, |
| 8739 | .voltage = {2700, 3600}, |
| 8740 | }, |
| 8741 | |
| 8742 | { |
| 8743 | .vendor = "Macronix", |
| 8744 | .name = "MX29GL320ET", |
| 8745 | .bustype = BUS_PARALLEL, |
| 8746 | .manufacture_id = MACRONIX_ID, |
| 8747 | .model_id = MACRONIX_MX29GL320ET, |
| 8748 | .total_size = 4096, |
| 8749 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8750 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8751 | .tested = TEST_UNTESTED, |
| 8752 | .probe = probe_jedec_29gl, |
| 8753 | .probe_timing = TIMING_ZERO, |
| 8754 | .block_erasers = |
| 8755 | { |
| 8756 | { |
| 8757 | .eraseblocks = { |
| 8758 | {64 * 1024, 63}, |
| 8759 | {8 * 1024, 8}, |
| 8760 | }, |
| 8761 | .block_erase = erase_sector_jedec, |
| 8762 | }, { |
| 8763 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8764 | .block_erase = erase_chip_block_jedec, |
| 8765 | }, |
| 8766 | }, |
| 8767 | .write = write_jedec_1, |
| 8768 | .read = read_memmapped, |
| 8769 | .voltage = {2700, 3600}, |
| 8770 | }, |
| 8771 | |
| 8772 | { |
| 8773 | .vendor = "Macronix", |
| 8774 | .name = "MX29GL320EH/L", |
| 8775 | .bustype = BUS_PARALLEL, |
| 8776 | .manufacture_id = MACRONIX_ID, |
| 8777 | .model_id = MACRONIX_MX29GL320EHL, |
| 8778 | .total_size = 4096, |
| 8779 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8780 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8781 | .tested = TEST_UNTESTED, |
| 8782 | .probe = probe_jedec_29gl, |
| 8783 | .probe_timing = TIMING_ZERO, |
| 8784 | .block_erasers = |
| 8785 | { |
| 8786 | { |
| 8787 | .eraseblocks = { {64 * 1024, 64} }, |
| 8788 | .block_erase = erase_sector_jedec, |
| 8789 | }, { |
| 8790 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8791 | .block_erase = erase_chip_block_jedec, |
| 8792 | }, |
| 8793 | }, |
| 8794 | .write = write_jedec_1, |
| 8795 | .read = read_memmapped, |
| 8796 | .voltage = {2700, 3600}, |
| 8797 | }, |
| 8798 | |
| 8799 | { |
| 8800 | .vendor = "Macronix", |
| 8801 | .name = "MX29GL640EB", |
| 8802 | .bustype = BUS_PARALLEL, |
| 8803 | .manufacture_id = MACRONIX_ID, |
| 8804 | .model_id = MACRONIX_MX29GL640EB, |
| 8805 | .total_size = 8192, |
| 8806 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8807 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8808 | .tested = TEST_UNTESTED, |
| 8809 | .probe = probe_jedec_29gl, |
| 8810 | .probe_timing = TIMING_ZERO, |
| 8811 | .block_erasers = |
| 8812 | { |
| 8813 | { |
| 8814 | .eraseblocks = { |
| 8815 | {8 * 1024, 8}, |
| 8816 | {64 * 1024, 127}, |
| 8817 | }, |
| 8818 | .block_erase = erase_sector_jedec, |
| 8819 | }, { |
| 8820 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8821 | .block_erase = erase_chip_block_jedec, |
| 8822 | }, |
| 8823 | }, |
| 8824 | .write = write_jedec_1, |
| 8825 | .read = read_memmapped, |
| 8826 | .voltage = {2700, 3600}, |
| 8827 | }, |
| 8828 | |
| 8829 | { |
| 8830 | .vendor = "Macronix", |
| 8831 | .name = "MX29GL640ET", |
| 8832 | .bustype = BUS_PARALLEL, |
| 8833 | .manufacture_id = MACRONIX_ID, |
| 8834 | .model_id = MACRONIX_MX29GL640ET, |
| 8835 | .total_size = 8192, |
| 8836 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8837 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8838 | .tested = TEST_UNTESTED, |
| 8839 | .probe = probe_jedec_29gl, |
| 8840 | .probe_timing = TIMING_ZERO, |
| 8841 | .block_erasers = |
| 8842 | { |
| 8843 | { |
| 8844 | .eraseblocks = { |
| 8845 | {64 * 1024, 127}, |
| 8846 | {8 * 1024, 8}, |
| 8847 | }, |
| 8848 | .block_erase = erase_sector_jedec, |
| 8849 | }, { |
| 8850 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8851 | .block_erase = erase_chip_block_jedec, |
| 8852 | }, |
| 8853 | }, |
| 8854 | .write = write_jedec_1, |
| 8855 | .read = read_memmapped, |
| 8856 | .voltage = {2700, 3600}, |
| 8857 | }, |
| 8858 | |
| 8859 | { |
| 8860 | .vendor = "Macronix", |
| 8861 | .name = "MX29GL640EH/L", |
| 8862 | .bustype = BUS_PARALLEL, |
| 8863 | .manufacture_id = MACRONIX_ID, |
| 8864 | .model_id = MACRONIX_MX29GL640EHL, |
| 8865 | .total_size = 8192, |
| 8866 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8867 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8868 | .tested = TEST_UNTESTED, |
| 8869 | .probe = probe_jedec_29gl, |
| 8870 | .probe_timing = TIMING_ZERO, |
| 8871 | .block_erasers = |
| 8872 | { |
| 8873 | { |
| 8874 | .eraseblocks = { {64 * 1024, 128} }, |
| 8875 | .block_erase = erase_sector_jedec, |
| 8876 | }, { |
| 8877 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8878 | .block_erase = erase_chip_block_jedec, |
| 8879 | }, |
| 8880 | }, |
| 8881 | .write = write_jedec_1, |
| 8882 | .read = read_memmapped, |
| 8883 | .voltage = {2700, 3600}, |
| 8884 | }, |
| 8885 | |
| 8886 | { |
| 8887 | .vendor = "Macronix", |
| 8888 | .name = "MX29GL128F", |
| 8889 | .bustype = BUS_PARALLEL, |
| 8890 | .manufacture_id = MACRONIX_ID, |
| 8891 | .model_id = MACRONIX_MX29GL128F, |
| 8892 | .total_size = 16384, |
| 8893 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8894 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8895 | .tested = TEST_UNTESTED, |
| 8896 | .probe = probe_jedec_29gl, |
| 8897 | .probe_timing = TIMING_ZERO, |
| 8898 | .block_erasers = |
| 8899 | { |
| 8900 | { |
| 8901 | .eraseblocks = { {128 * 1024, 128} }, |
| 8902 | .block_erase = erase_sector_jedec, |
| 8903 | }, { |
| 8904 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8905 | .block_erase = erase_chip_block_jedec, |
| 8906 | }, |
| 8907 | }, |
| 8908 | .write = write_jedec_1, |
| 8909 | .read = read_memmapped, |
| 8910 | .voltage = {2700, 3600}, |
| 8911 | }, |
| 8912 | |
| 8913 | { |
| 8914 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 8915 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8916 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8917 | .manufacture_id = MACRONIX_ID, |
| 8918 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8919 | .total_size = 512, |
| 8920 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8921 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8922 | .tested = TEST_UNTESTED, |
| 8923 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8924 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8925 | .block_erasers = |
| 8926 | { |
| 8927 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 8928 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8929 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8930 | }, { |
| 8931 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8932 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8933 | }, |
| 8934 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8935 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8936 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8937 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 8938 | }, |
| 8939 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8940 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8941 | .vendor = "Micron/Numonyx/ST", |
| 8942 | .name = "M25P05-A", |
| 8943 | .bustype = BUS_SPI, |
| 8944 | .manufacture_id = ST_ID, |
| 8945 | .model_id = ST_M25P05A, |
| 8946 | .total_size = 64, |
| 8947 | .page_size = 256, |
| 8948 | .feature_bits = FEATURE_WRSR_WREN, |
| 8949 | .tested = TEST_OK_PREW, |
| 8950 | .probe = probe_spi_rdid, |
| 8951 | .probe_timing = TIMING_ZERO, |
| 8952 | .block_erasers = |
| 8953 | { |
| 8954 | { |
| 8955 | .eraseblocks = { {32 * 1024, 2} }, |
| 8956 | .block_erase = spi_block_erase_d8, |
| 8957 | }, { |
| 8958 | .eraseblocks = { {64 * 1024, 1} }, |
| 8959 | .block_erase = spi_block_erase_c7, |
| 8960 | } |
| 8961 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8962 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8963 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8964 | .write = spi_chip_write_256, |
| 8965 | .read = spi_chip_read, |
| 8966 | .voltage = {2700, 3600}, |
| 8967 | }, |
| 8968 | |
| 8969 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 8970 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 8971 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 8972 | * only is successful if RDID does not work. |
| 8973 | */ |
| 8974 | { |
| 8975 | .vendor = "Micron/Numonyx/ST", |
| 8976 | .name = "M25P05", |
| 8977 | .bustype = BUS_SPI, |
| 8978 | .manufacture_id = 0, /* Not used. */ |
| 8979 | .model_id = ST_M25P05_RES, |
| 8980 | .total_size = 64, |
| 8981 | .page_size = 256, |
| 8982 | .feature_bits = FEATURE_WRSR_WREN, |
| 8983 | .tested = TEST_UNTESTED, |
| 8984 | .probe = probe_spi_res1, |
| 8985 | .probe_timing = TIMING_ZERO, |
| 8986 | .block_erasers = |
| 8987 | { |
| 8988 | { |
| 8989 | .eraseblocks = { {32 * 1024, 2} }, |
| 8990 | .block_erase = spi_block_erase_d8, |
| 8991 | }, { |
| 8992 | .eraseblocks = { {64 * 1024, 1} }, |
| 8993 | .block_erase = spi_block_erase_c7, |
| 8994 | } |
| 8995 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8996 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8997 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8998 | .write = spi_chip_write_1, /* 128 */ |
| 8999 | .read = spi_chip_read, |
| 9000 | .voltage = {2700, 3600}, |
| 9001 | }, |
| 9002 | |
| 9003 | { |
| 9004 | .vendor = "Micron/Numonyx/ST", |
| 9005 | .name = "M25P10-A", |
| 9006 | .bustype = BUS_SPI, |
| 9007 | .manufacture_id = ST_ID, |
| 9008 | .model_id = ST_M25P10A, |
| 9009 | .total_size = 128, |
| 9010 | .page_size = 256, |
| 9011 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9012 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9013 | .probe = probe_spi_rdid, |
| 9014 | .probe_timing = TIMING_ZERO, |
| 9015 | .block_erasers = |
| 9016 | { |
| 9017 | { |
| 9018 | .eraseblocks = { {32 * 1024, 4} }, |
| 9019 | .block_erase = spi_block_erase_d8, |
| 9020 | }, { |
| 9021 | .eraseblocks = { {128 * 1024, 1} }, |
| 9022 | .block_erase = spi_block_erase_c7, |
| 9023 | } |
| 9024 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9025 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9026 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9027 | .write = spi_chip_write_256, |
| 9028 | .read = spi_chip_read, |
| 9029 | .voltage = {2700, 3600}, |
| 9030 | }, |
| 9031 | |
| 9032 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 9033 | { |
| 9034 | .vendor = "Micron/Numonyx/ST", |
| 9035 | .name = "M25P10", |
| 9036 | .bustype = BUS_SPI, |
| 9037 | .manufacture_id = 0, /* Not used. */ |
| 9038 | .model_id = ST_M25P10_RES, |
| 9039 | .total_size = 128, |
| 9040 | .page_size = 256, |
| 9041 | .feature_bits = FEATURE_WRSR_WREN, |
| 9042 | .tested = TEST_UNTESTED, |
| 9043 | .probe = probe_spi_res1, |
| 9044 | .probe_timing = TIMING_ZERO, |
| 9045 | .block_erasers = |
| 9046 | { |
| 9047 | { |
| 9048 | .eraseblocks = { {32 * 1024, 4} }, |
| 9049 | .block_erase = spi_block_erase_d8, |
| 9050 | }, { |
| 9051 | .eraseblocks = { {128 * 1024, 1} }, |
| 9052 | .block_erase = spi_block_erase_c7, |
| 9053 | } |
| 9054 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9055 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9056 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9057 | .write = spi_chip_write_1, /* 128 */ |
| 9058 | .read = spi_chip_read, |
| 9059 | .voltage = {2700, 3600}, |
| 9060 | }, |
| 9061 | |
| 9062 | { |
| 9063 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9064 | .name = "M25P20", |
| 9065 | .bustype = BUS_SPI, |
| 9066 | .manufacture_id = ST_ID, |
| 9067 | .model_id = ST_M25P20, |
| 9068 | .total_size = 256, |
| 9069 | .page_size = 256, |
| 9070 | .feature_bits = FEATURE_WRSR_WREN, |
| 9071 | .tested = TEST_UNTESTED, |
| 9072 | .probe = probe_spi_rdid, |
| 9073 | .probe_timing = TIMING_ZERO, |
| 9074 | .block_erasers = |
| 9075 | { |
| 9076 | { |
| 9077 | .eraseblocks = { {64 * 1024, 4} }, |
| 9078 | .block_erase = spi_block_erase_d8, |
| 9079 | }, { |
| 9080 | .eraseblocks = { {256 * 1024, 1} }, |
| 9081 | .block_erase = spi_block_erase_c7, |
| 9082 | } |
| 9083 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9084 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9085 | .unlock = spi_disable_blockprotect, |
| 9086 | .write = spi_chip_write_256, |
| 9087 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9088 | .voltage = {2700, 3600}, |
| 9089 | }, |
| 9090 | |
| 9091 | { |
| 9092 | .vendor = "Micron/Numonyx/ST", |
| 9093 | .name = "M25P20-old", |
| 9094 | .bustype = BUS_SPI, |
| 9095 | .manufacture_id = 0, /* Not used. */ |
| 9096 | .model_id = ST_M25P20_RES, |
| 9097 | .total_size = 256, |
| 9098 | .page_size = 256, |
| 9099 | .feature_bits = FEATURE_WRSR_WREN, |
| 9100 | .tested = TEST_OK_PREW, |
| 9101 | .probe = probe_spi_res1, |
| 9102 | .probe_timing = TIMING_ZERO, |
| 9103 | .block_erasers = |
| 9104 | { |
| 9105 | { |
| 9106 | .eraseblocks = { {64 * 1024, 4} }, |
| 9107 | .block_erase = spi_block_erase_d8, |
| 9108 | }, { |
| 9109 | .eraseblocks = { {256 * 1024, 1} }, |
| 9110 | .block_erase = spi_block_erase_c7, |
| 9111 | } |
| 9112 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9113 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9114 | .unlock = spi_disable_blockprotect, |
| 9115 | .write = spi_chip_write_256, |
| 9116 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9117 | .voltage = {2700, 3600}, |
| 9118 | }, |
| 9119 | |
| 9120 | { |
| 9121 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9122 | .name = "M25P40", |
| 9123 | .bustype = BUS_SPI, |
| 9124 | .manufacture_id = ST_ID, |
| 9125 | .model_id = ST_M25P40, |
| 9126 | .total_size = 512, |
| 9127 | .page_size = 256, |
| 9128 | .feature_bits = FEATURE_WRSR_WREN, |
| 9129 | .tested = TEST_OK_PREW, |
| 9130 | .probe = probe_spi_rdid, |
| 9131 | .probe_timing = TIMING_ZERO, |
| 9132 | .block_erasers = |
| 9133 | { |
| 9134 | { |
| 9135 | .eraseblocks = { {64 * 1024, 8} }, |
| 9136 | .block_erase = spi_block_erase_d8, |
| 9137 | }, { |
| 9138 | .eraseblocks = { {512 * 1024, 1} }, |
| 9139 | .block_erase = spi_block_erase_c7, |
| 9140 | } |
| 9141 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9142 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9143 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9144 | .write = spi_chip_write_256, |
| 9145 | .read = spi_chip_read, |
| 9146 | .voltage = {2700, 3600}, |
| 9147 | }, |
| 9148 | |
| 9149 | { |
| 9150 | .vendor = "Micron/Numonyx/ST", |
| 9151 | .name = "M25P40-old", |
| 9152 | .bustype = BUS_SPI, |
| 9153 | .manufacture_id = 0, /* Not used. */ |
| 9154 | .model_id = ST_M25P40_RES, |
| 9155 | .total_size = 512, |
| 9156 | .page_size = 256, |
| 9157 | .feature_bits = FEATURE_WRSR_WREN, |
| 9158 | .tested = TEST_UNTESTED, |
| 9159 | .probe = probe_spi_res1, |
| 9160 | .probe_timing = TIMING_ZERO, |
| 9161 | .block_erasers = |
| 9162 | { |
| 9163 | { |
| 9164 | .eraseblocks = { {64 * 1024, 8} }, |
| 9165 | .block_erase = spi_block_erase_d8, |
| 9166 | }, { |
| 9167 | .eraseblocks = { {512 * 1024, 1} }, |
| 9168 | .block_erase = spi_block_erase_c7, |
| 9169 | } |
| 9170 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9171 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9172 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9173 | .write = spi_chip_write_256, |
| 9174 | .read = spi_chip_read, |
| 9175 | }, |
| 9176 | |
| 9177 | { |
| 9178 | .vendor = "Micron/Numonyx/ST", |
| 9179 | .name = "M25P80", |
| 9180 | .bustype = BUS_SPI, |
| 9181 | .manufacture_id = ST_ID, |
| 9182 | .model_id = ST_M25P80, |
| 9183 | .total_size = 1024, |
| 9184 | .page_size = 256, |
| 9185 | .feature_bits = FEATURE_WRSR_WREN, |
| 9186 | .tested = TEST_OK_PREW, |
| 9187 | .probe = probe_spi_rdid, |
| 9188 | .probe_timing = TIMING_ZERO, |
| 9189 | .block_erasers = |
| 9190 | { |
| 9191 | { |
| 9192 | .eraseblocks = { {64 * 1024, 16} }, |
| 9193 | .block_erase = spi_block_erase_d8, |
| 9194 | }, { |
| 9195 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9196 | .block_erase = spi_block_erase_c7, |
| 9197 | } |
| 9198 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9199 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9200 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9201 | .write = spi_chip_write_256, |
| 9202 | .read = spi_chip_read, |
| 9203 | .voltage = {2700, 3600}, |
| 9204 | }, |
| 9205 | |
| 9206 | { |
| 9207 | .vendor = "Micron/Numonyx/ST", |
| 9208 | .name = "M25P16", |
| 9209 | .bustype = BUS_SPI, |
| 9210 | .manufacture_id = ST_ID, |
| 9211 | .model_id = ST_M25P16, |
| 9212 | .total_size = 2048, |
| 9213 | .page_size = 256, |
| 9214 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9215 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9216 | .probe = probe_spi_rdid, |
| 9217 | .probe_timing = TIMING_ZERO, |
| 9218 | .block_erasers = |
| 9219 | { |
| 9220 | { |
| 9221 | .eraseblocks = { {64 * 1024, 32} }, |
| 9222 | .block_erase = spi_block_erase_d8, |
| 9223 | }, { |
| 9224 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9225 | .block_erase = spi_block_erase_c7, |
| 9226 | } |
| 9227 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9228 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9229 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9230 | .write = spi_chip_write_256, |
| 9231 | .read = spi_chip_read, |
| 9232 | .voltage = {2700, 3600}, |
| 9233 | }, |
| 9234 | |
| 9235 | { |
| 9236 | .vendor = "Micron/Numonyx/ST", |
| 9237 | .name = "M25P32", |
| 9238 | .bustype = BUS_SPI, |
| 9239 | .manufacture_id = ST_ID, |
| 9240 | .model_id = ST_M25P32, |
| 9241 | .total_size = 4096, |
| 9242 | .page_size = 256, |
| 9243 | .feature_bits = FEATURE_WRSR_WREN, |
| 9244 | .tested = TEST_OK_PREW, |
| 9245 | .probe = probe_spi_rdid, |
| 9246 | .probe_timing = TIMING_ZERO, |
| 9247 | .block_erasers = |
| 9248 | { |
| 9249 | { |
| 9250 | .eraseblocks = { {64 * 1024, 64} }, |
| 9251 | .block_erase = spi_block_erase_d8, |
| 9252 | }, { |
| 9253 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9254 | .block_erase = spi_block_erase_c7, |
| 9255 | } |
| 9256 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9257 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9258 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9259 | .write = spi_chip_write_256, |
| 9260 | .read = spi_chip_read, |
| 9261 | .voltage = {2700, 3600}, |
| 9262 | }, |
| 9263 | |
| 9264 | { |
| 9265 | .vendor = "Micron/Numonyx/ST", |
| 9266 | .name = "M25P64", |
| 9267 | .bustype = BUS_SPI, |
| 9268 | .manufacture_id = ST_ID, |
| 9269 | .model_id = ST_M25P64, |
| 9270 | .total_size = 8192, |
| 9271 | .page_size = 256, |
| 9272 | .feature_bits = FEATURE_WRSR_WREN, |
| 9273 | .tested = TEST_OK_PREW, |
| 9274 | .probe = probe_spi_rdid, |
| 9275 | .probe_timing = TIMING_ZERO, |
| 9276 | .block_erasers = |
| 9277 | { |
| 9278 | { |
| 9279 | .eraseblocks = { {64 * 1024, 128} }, |
| 9280 | .block_erase = spi_block_erase_d8, |
| 9281 | }, { |
| 9282 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9283 | .block_erase = spi_block_erase_c7, |
| 9284 | } |
| 9285 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9286 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9287 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9288 | .write = spi_chip_write_256, |
| 9289 | .read = spi_chip_read, |
| 9290 | .voltage = {2700, 3600}, |
| 9291 | }, |
| 9292 | |
| 9293 | { |
| 9294 | .vendor = "Micron/Numonyx/ST", |
| 9295 | .name = "M25P128", |
| 9296 | .bustype = BUS_SPI, |
| 9297 | .manufacture_id = ST_ID, |
| 9298 | .model_id = ST_M25P128, |
| 9299 | .total_size = 16384, |
| 9300 | .page_size = 256, |
| 9301 | .feature_bits = FEATURE_WRSR_WREN, |
| 9302 | .tested = TEST_OK_PREW, |
| 9303 | .probe = probe_spi_rdid, |
| 9304 | .probe_timing = TIMING_ZERO, |
| 9305 | .block_erasers = |
| 9306 | { |
| 9307 | { |
| 9308 | .eraseblocks = { {256 * 1024, 64} }, |
| 9309 | .block_erase = spi_block_erase_d8, |
| 9310 | }, { |
| 9311 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9312 | .block_erase = spi_block_erase_c7, |
| 9313 | } |
| 9314 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9315 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9316 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9317 | .write = spi_chip_write_256, |
| 9318 | .read = spi_chip_read, |
| 9319 | .voltage = {2700, 3600}, |
| 9320 | }, |
| 9321 | |
| 9322 | { |
| 9323 | .vendor = "Micron/Numonyx/ST", |
| 9324 | .name = "M25PE10", |
| 9325 | .bustype = BUS_SPI, |
| 9326 | .manufacture_id = ST_ID, |
| 9327 | .model_id = ST_M25PE10, |
| 9328 | .total_size = 128, |
| 9329 | .page_size = 256, |
| 9330 | .feature_bits = FEATURE_WRSR_WREN, |
| 9331 | .tested = TEST_UNTESTED, |
| 9332 | .probe = probe_spi_rdid, |
| 9333 | .probe_timing = TIMING_ZERO, |
| 9334 | .block_erasers = |
| 9335 | { |
| 9336 | { |
| 9337 | .eraseblocks = { {4 * 1024, 32} }, |
| 9338 | .block_erase = spi_block_erase_20, |
| 9339 | }, { |
| 9340 | .eraseblocks = { {64 * 1024, 2} }, |
| 9341 | .block_erase = spi_block_erase_d8, |
| 9342 | }, { |
| 9343 | .eraseblocks = { {128 * 1024, 1} }, |
| 9344 | .block_erase = spi_block_erase_c7, |
| 9345 | } |
| 9346 | }, |
| 9347 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9348 | .unlock = spi_disable_blockprotect, |
| 9349 | .write = spi_chip_write_256, |
| 9350 | .read = spi_chip_read, |
| 9351 | .voltage = {2700, 3600}, |
| 9352 | }, |
| 9353 | |
| 9354 | { |
| 9355 | .vendor = "Micron/Numonyx/ST", |
| 9356 | .name = "M25PE20", |
| 9357 | .bustype = BUS_SPI, |
| 9358 | .manufacture_id = ST_ID, |
| 9359 | .model_id = ST_M25PE20, |
| 9360 | .total_size = 256, |
| 9361 | .page_size = 256, |
| 9362 | .feature_bits = FEATURE_WRSR_WREN, |
| 9363 | .tested = TEST_UNTESTED, |
| 9364 | .probe = probe_spi_rdid, |
| 9365 | .probe_timing = TIMING_ZERO, |
| 9366 | .block_erasers = |
| 9367 | { |
| 9368 | { |
| 9369 | .eraseblocks = { {4 * 1024, 64} }, |
| 9370 | .block_erase = spi_block_erase_20, |
| 9371 | }, { |
| 9372 | .eraseblocks = { {64 * 1024, 4} }, |
| 9373 | .block_erase = spi_block_erase_d8, |
| 9374 | }, { |
| 9375 | .eraseblocks = { {256 * 1024, 1} }, |
| 9376 | .block_erase = spi_block_erase_c7, |
| 9377 | } |
| 9378 | }, |
| 9379 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9380 | .unlock = spi_disable_blockprotect, |
| 9381 | .write = spi_chip_write_256, |
| 9382 | .read = spi_chip_read, |
| 9383 | .voltage = {2700, 3600}, |
| 9384 | }, |
| 9385 | |
| 9386 | { |
| 9387 | .vendor = "Micron/Numonyx/ST", |
| 9388 | .name = "M25PE40", |
| 9389 | .bustype = BUS_SPI, |
| 9390 | .manufacture_id = ST_ID, |
| 9391 | .model_id = ST_M25PE40, |
| 9392 | .total_size = 512, |
| 9393 | .page_size = 256, |
| 9394 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9395 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9396 | .probe = probe_spi_rdid, |
| 9397 | .probe_timing = TIMING_ZERO, |
| 9398 | .block_erasers = |
| 9399 | { |
| 9400 | { |
| 9401 | .eraseblocks = { {4 * 1024, 128} }, |
| 9402 | .block_erase = spi_block_erase_20, |
| 9403 | }, { |
| 9404 | .eraseblocks = { {64 * 1024, 8} }, |
| 9405 | .block_erase = spi_block_erase_d8, |
| 9406 | }, { |
| 9407 | .eraseblocks = { {512 * 1024, 1} }, |
| 9408 | .block_erase = spi_block_erase_c7, |
| 9409 | } |
| 9410 | }, |
| 9411 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9412 | .unlock = spi_disable_blockprotect, |
| 9413 | .write = spi_chip_write_256, |
| 9414 | .read = spi_chip_read, |
| 9415 | .voltage = {2700, 3600}, |
| 9416 | }, |
| 9417 | |
| 9418 | { |
| 9419 | .vendor = "Micron/Numonyx/ST", |
| 9420 | .name = "M25PE80", |
| 9421 | .bustype = BUS_SPI, |
| 9422 | .manufacture_id = ST_ID, |
| 9423 | .model_id = ST_M25PE80, |
| 9424 | .total_size = 1024, |
| 9425 | .page_size = 256, |
| 9426 | .feature_bits = FEATURE_WRSR_WREN, |
| 9427 | .tested = TEST_OK_PREW, |
| 9428 | .probe = probe_spi_rdid, |
| 9429 | .probe_timing = TIMING_ZERO, |
| 9430 | .block_erasers = |
| 9431 | { |
| 9432 | { |
| 9433 | .eraseblocks = { {4 * 1024, 256} }, |
| 9434 | .block_erase = spi_block_erase_20, |
| 9435 | }, { |
| 9436 | .eraseblocks = { {64 * 1024, 16} }, |
| 9437 | .block_erase = spi_block_erase_d8, |
| 9438 | }, { |
| 9439 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9440 | .block_erase = spi_block_erase_c7, |
| 9441 | } |
| 9442 | }, |
| 9443 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9444 | .unlock = spi_disable_blockprotect, |
| 9445 | .write = spi_chip_write_256, |
| 9446 | .read = spi_chip_read, |
| 9447 | .voltage = {2700, 3600}, |
| 9448 | }, |
| 9449 | |
| 9450 | { |
| 9451 | .vendor = "Micron/Numonyx/ST", |
| 9452 | .name = "M25PE16", |
| 9453 | .bustype = BUS_SPI, |
| 9454 | .manufacture_id = ST_ID, |
| 9455 | .model_id = ST_M25PE16, |
| 9456 | .total_size = 2048, |
| 9457 | .page_size = 256, |
| 9458 | .feature_bits = FEATURE_WRSR_WREN, |
| 9459 | .tested = TEST_UNTESTED, |
| 9460 | .probe = probe_spi_rdid, |
| 9461 | .probe_timing = TIMING_ZERO, |
| 9462 | .block_erasers = |
| 9463 | { |
| 9464 | { |
| 9465 | .eraseblocks = { {4 * 1024, 512} }, |
| 9466 | .block_erase = spi_block_erase_20, |
| 9467 | }, { |
| 9468 | .eraseblocks = { {64 * 1024, 32} }, |
| 9469 | .block_erase = spi_block_erase_d8, |
| 9470 | }, { |
| 9471 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9472 | .block_erase = spi_block_erase_c7, |
| 9473 | } |
| 9474 | }, |
| 9475 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9476 | .unlock = spi_disable_blockprotect, |
| 9477 | .write = spi_chip_write_256, |
| 9478 | .read = spi_chip_read, |
| 9479 | .voltage = {2700, 3600}, |
| 9480 | }, |
| 9481 | |
| 9482 | { |
| 9483 | .vendor = "Micron/Numonyx/ST", |
| 9484 | .name = "M25PX80", |
| 9485 | .bustype = BUS_SPI, |
| 9486 | .manufacture_id = ST_ID, |
| 9487 | .model_id = ST_M25PX80, |
| 9488 | .total_size = 1024, |
| 9489 | .page_size = 256, |
| 9490 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9491 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9492 | .tested = TEST_OK_PREW, |
| 9493 | .probe = probe_spi_rdid, |
| 9494 | .probe_timing = TIMING_ZERO, |
| 9495 | .block_erasers = { |
| 9496 | { |
| 9497 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 9498 | .block_erase = spi_block_erase_20, |
| 9499 | }, { |
| 9500 | .eraseblocks = { {64 * 1024, 16} }, |
| 9501 | .block_erase = spi_block_erase_d8, |
| 9502 | }, { |
| 9503 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9504 | .block_erase = spi_block_erase_c7, |
| 9505 | } |
| 9506 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9507 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9508 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9509 | .write = spi_chip_write_256, |
| 9510 | .read = spi_chip_read, |
| 9511 | .voltage = {2700, 3600}, |
| 9512 | }, |
| 9513 | |
| 9514 | { |
| 9515 | .vendor = "Micron/Numonyx/ST", |
| 9516 | .name = "M25PX16", |
| 9517 | .bustype = BUS_SPI, |
| 9518 | .manufacture_id = ST_ID, |
| 9519 | .model_id = ST_M25PX16, |
| 9520 | .total_size = 2048, |
| 9521 | .page_size = 256, |
| 9522 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9523 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9524 | .tested = TEST_OK_PREW, |
| 9525 | .probe = probe_spi_rdid, |
| 9526 | .probe_timing = TIMING_ZERO, |
| 9527 | .block_erasers = |
| 9528 | { |
| 9529 | { |
| 9530 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 9531 | .block_erase = spi_block_erase_20, |
| 9532 | }, { |
| 9533 | .eraseblocks = { {64 * 1024, 32} }, |
| 9534 | .block_erase = spi_block_erase_d8, |
| 9535 | }, { |
| 9536 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9537 | .block_erase = spi_block_erase_c7, |
| 9538 | } |
| 9539 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9540 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9541 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9542 | .write = spi_chip_write_256, |
| 9543 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9544 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9545 | }, |
| 9546 | |
| 9547 | { |
| 9548 | .vendor = "Micron/Numonyx/ST", |
| 9549 | .name = "M25PX32", |
| 9550 | .bustype = BUS_SPI, |
| 9551 | .manufacture_id = ST_ID, |
| 9552 | .model_id = ST_M25PX32, |
| 9553 | .total_size = 4096, |
| 9554 | .page_size = 256, |
| 9555 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9556 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9557 | .tested = TEST_OK_PRE, |
| 9558 | .probe = probe_spi_rdid, |
| 9559 | .probe_timing = TIMING_ZERO, |
| 9560 | .block_erasers = |
| 9561 | { |
| 9562 | { |
| 9563 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 9564 | .block_erase = spi_block_erase_20, |
| 9565 | }, { |
| 9566 | .eraseblocks = { {64 * 1024, 64} }, |
| 9567 | .block_erase = spi_block_erase_d8, |
| 9568 | }, { |
| 9569 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9570 | .block_erase = spi_block_erase_c7, |
| 9571 | } |
| 9572 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9573 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9574 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9575 | .write = spi_chip_write_256, |
| 9576 | .read = spi_chip_read, |
| 9577 | .voltage = {2700, 3600}, |
| 9578 | }, |
| 9579 | |
| 9580 | { |
| 9581 | .vendor = "Micron/Numonyx/ST", |
| 9582 | .name = "M25PX64", |
| 9583 | .bustype = BUS_SPI, |
| 9584 | .manufacture_id = ST_ID, |
| 9585 | .model_id = ST_M25PX64, |
| 9586 | .total_size = 8192, |
| 9587 | .page_size = 256, |
| 9588 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9589 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9590 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9591 | .probe = probe_spi_rdid, |
| 9592 | .probe_timing = TIMING_ZERO, |
| 9593 | .block_erasers = |
| 9594 | { |
| 9595 | { |
| 9596 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 9597 | .block_erase = spi_block_erase_20, |
| 9598 | }, { |
| 9599 | .eraseblocks = { {64 * 1024, 128} }, |
| 9600 | .block_erase = spi_block_erase_d8, |
| 9601 | }, { |
| 9602 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9603 | .block_erase = spi_block_erase_c7, |
| 9604 | } |
| 9605 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9606 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9607 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9608 | .write = spi_chip_write_256, |
| 9609 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9610 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9611 | }, |
| 9612 | |
| 9613 | { |
| 9614 | .vendor = "Micron/Numonyx/ST", |
| 9615 | .name = "M45PE10", |
| 9616 | .bustype = BUS_SPI, |
| 9617 | .manufacture_id = ST_ID, |
| 9618 | .model_id = ST_M45PE10, |
| 9619 | .total_size = 128, |
| 9620 | .page_size = 256, |
| 9621 | .tested = TEST_UNTESTED, |
| 9622 | .probe = probe_spi_rdid, |
| 9623 | .probe_timing = TIMING_ZERO, |
| 9624 | .block_erasers = { |
| 9625 | { |
| 9626 | .eraseblocks = { {256, 512} }, |
| 9627 | .block_erase = spi_block_erase_db, |
| 9628 | }, { |
| 9629 | .eraseblocks = { {64 * 1024, 2} }, |
| 9630 | .block_erase = spi_block_erase_d8, |
| 9631 | } |
| 9632 | }, |
| 9633 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9634 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9635 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9636 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9637 | .voltage = {2700, 3600}, |
| 9638 | }, |
| 9639 | |
| 9640 | { |
| 9641 | .vendor = "Micron/Numonyx/ST", |
| 9642 | .name = "M45PE20", |
| 9643 | .bustype = BUS_SPI, |
| 9644 | .manufacture_id = ST_ID, |
| 9645 | .model_id = ST_M45PE20, |
| 9646 | .total_size = 256, |
| 9647 | .page_size = 256, |
| 9648 | .tested = TEST_UNTESTED, |
| 9649 | .probe = probe_spi_rdid, |
| 9650 | .probe_timing = TIMING_ZERO, |
| 9651 | .block_erasers = { |
| 9652 | { |
| 9653 | .eraseblocks = { {256, 1024} }, |
| 9654 | .block_erase = spi_block_erase_db, |
| 9655 | }, { |
| 9656 | .eraseblocks = { {64 * 1024, 4} }, |
| 9657 | .block_erase = spi_block_erase_d8, |
| 9658 | } |
| 9659 | }, |
| 9660 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9661 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9662 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9663 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9664 | .voltage = {2700, 3600}, |
| 9665 | }, |
| 9666 | |
| 9667 | { |
| 9668 | .vendor = "Micron/Numonyx/ST", |
| 9669 | .name = "M45PE40", |
| 9670 | .bustype = BUS_SPI, |
| 9671 | .manufacture_id = ST_ID, |
| 9672 | .model_id = ST_M45PE40, |
| 9673 | .total_size = 512, |
| 9674 | .page_size = 256, |
| 9675 | .tested = TEST_UNTESTED, |
| 9676 | .probe = probe_spi_rdid, |
| 9677 | .probe_timing = TIMING_ZERO, |
| 9678 | .block_erasers = { |
| 9679 | { |
| 9680 | .eraseblocks = { {256, 2048} }, |
| 9681 | .block_erase = spi_block_erase_db, |
| 9682 | }, { |
| 9683 | .eraseblocks = { {64 * 1024, 8} }, |
| 9684 | .block_erase = spi_block_erase_d8, |
| 9685 | } |
| 9686 | }, |
| 9687 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9688 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9689 | .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] | 9690 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9691 | .voltage = {2700, 3600}, |
| 9692 | }, |
| 9693 | |
| 9694 | { |
| 9695 | .vendor = "Micron/Numonyx/ST", |
| 9696 | .name = "M45PE80", |
| 9697 | .bustype = BUS_SPI, |
| 9698 | .manufacture_id = ST_ID, |
| 9699 | .model_id = ST_M45PE80, |
| 9700 | .total_size = 1024, |
| 9701 | .page_size = 256, |
| 9702 | .tested = TEST_UNTESTED, |
| 9703 | .probe = probe_spi_rdid, |
| 9704 | .probe_timing = TIMING_ZERO, |
| 9705 | .block_erasers = { |
| 9706 | { |
| 9707 | .eraseblocks = { {256, 4096} }, |
| 9708 | .block_erase = spi_block_erase_db, |
| 9709 | }, { |
| 9710 | .eraseblocks = { {64 * 1024, 16} }, |
| 9711 | .block_erase = spi_block_erase_d8, |
| 9712 | } |
| 9713 | }, |
| 9714 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9715 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9716 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9717 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9718 | .voltage = {2700, 3600}, |
| 9719 | }, |
| 9720 | |
| 9721 | { |
| 9722 | .vendor = "Micron/Numonyx/ST", |
| 9723 | .name = "M45PE16", |
| 9724 | .bustype = BUS_SPI, |
| 9725 | .manufacture_id = ST_ID, |
| 9726 | .model_id = ST_M45PE16, |
| 9727 | .total_size = 2048, |
| 9728 | .page_size = 256, |
| 9729 | .tested = TEST_UNTESTED, |
| 9730 | .probe = probe_spi_rdid, |
| 9731 | .probe_timing = TIMING_ZERO, |
| 9732 | .block_erasers = { |
| 9733 | { |
| 9734 | .eraseblocks = { {256, 8192} }, |
| 9735 | .block_erase = spi_block_erase_db, |
| 9736 | }, { |
| 9737 | .eraseblocks = { {64 * 1024, 32} }, |
| 9738 | .block_erase = spi_block_erase_d8, |
| 9739 | } |
| 9740 | }, |
| 9741 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9742 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9743 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9744 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9745 | .voltage = {2700, 3600}, |
| 9746 | }, |
| 9747 | |
| 9748 | { |
| 9749 | .vendor = "Micron/Numonyx/ST", |
| 9750 | .name = "N25Q016", |
| 9751 | .bustype = BUS_SPI, |
| 9752 | .manufacture_id = ST_ID, |
| 9753 | .model_id = ST_N25Q016__1E, |
| 9754 | .total_size = 2048, |
| 9755 | .page_size = 256, |
| 9756 | /* supports SFDP */ |
| 9757 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9758 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9759 | .tested = TEST_UNTESTED, |
| 9760 | .probe = probe_spi_rdid, |
| 9761 | .probe_timing = TIMING_ZERO, |
| 9762 | .block_erasers = |
| 9763 | { |
| 9764 | { |
| 9765 | .eraseblocks = { {4 * 1024, 512} }, |
| 9766 | .block_erase = spi_block_erase_20, |
| 9767 | }, { |
| 9768 | .eraseblocks = { {32 * 1024, 64} }, |
| 9769 | .block_erase = spi_block_erase_52, |
| 9770 | }, { |
| 9771 | .eraseblocks = { {64 * 1024, 32} }, |
| 9772 | .block_erase = spi_block_erase_d8, |
| 9773 | }, { |
| 9774 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9775 | .block_erase = spi_block_erase_c7, |
| 9776 | } |
| 9777 | }, |
| 9778 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9779 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9780 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9781 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9782 | .voltage = {1700, 2000}, |
| 9783 | }, |
| 9784 | |
| 9785 | { |
| 9786 | .vendor = "Micron/Numonyx/ST", |
| 9787 | .name = "N25Q032..1E", |
| 9788 | .bustype = BUS_SPI, |
| 9789 | .manufacture_id = ST_ID, |
| 9790 | .model_id = ST_N25Q032__1E, |
| 9791 | .total_size = 4096, |
| 9792 | .page_size = 256, |
| 9793 | /* supports SFDP */ |
| 9794 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9795 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9796 | .tested = TEST_UNTESTED, |
| 9797 | .probe = probe_spi_rdid, |
| 9798 | .probe_timing = TIMING_ZERO, |
| 9799 | .block_erasers = |
| 9800 | { |
| 9801 | { |
| 9802 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9803 | .block_erase = spi_block_erase_20, |
| 9804 | }, { |
| 9805 | .eraseblocks = { {64 * 1024, 64} }, |
| 9806 | .block_erase = spi_block_erase_d8, |
| 9807 | }, { |
| 9808 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9809 | .block_erase = spi_block_erase_c7, |
| 9810 | } |
| 9811 | }, |
| 9812 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9813 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9814 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9815 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9816 | .voltage = {1700, 2000}, |
| 9817 | }, |
| 9818 | |
| 9819 | { |
| 9820 | .vendor = "Micron/Numonyx/ST", |
| 9821 | .name = "N25Q032..3E", |
| 9822 | .bustype = BUS_SPI, |
| 9823 | .manufacture_id = ST_ID, |
| 9824 | .model_id = ST_N25Q032__3E, |
| 9825 | .total_size = 4096, |
| 9826 | .page_size = 256, |
| 9827 | /* supports SFDP */ |
| 9828 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9829 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9830 | .tested = TEST_OK_PREW, |
| 9831 | .probe = probe_spi_rdid, |
| 9832 | .probe_timing = TIMING_ZERO, |
| 9833 | .block_erasers = |
| 9834 | { |
| 9835 | { |
| 9836 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9837 | .block_erase = spi_block_erase_20, |
| 9838 | }, { |
| 9839 | .eraseblocks = { {64 * 1024, 64} }, |
| 9840 | .block_erase = spi_block_erase_d8, |
| 9841 | }, { |
| 9842 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9843 | .block_erase = spi_block_erase_c7, |
| 9844 | } |
| 9845 | }, |
| 9846 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9847 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9848 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9849 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9850 | .voltage = {2700, 3600}, |
| 9851 | }, |
| 9852 | |
| 9853 | { |
| 9854 | .vendor = "Micron/Numonyx/ST", |
| 9855 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 9856 | .bustype = BUS_SPI, |
| 9857 | .manufacture_id = ST_ID, |
| 9858 | .model_id = ST_N25Q064__1E, |
| 9859 | .total_size = 8192, |
| 9860 | .page_size = 256, |
| 9861 | /* supports SFDP */ |
| 9862 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9863 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9864 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9865 | .probe = probe_spi_rdid, |
| 9866 | .probe_timing = TIMING_ZERO, |
| 9867 | .block_erasers = |
| 9868 | { |
| 9869 | { |
| 9870 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 9871 | .block_erase = spi_block_erase_20, |
| 9872 | }, { |
| 9873 | .eraseblocks = { {64 * 1024, 128} }, |
| 9874 | .block_erase = spi_block_erase_d8, |
| 9875 | }, { |
| 9876 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9877 | .block_erase = spi_block_erase_c7, |
| 9878 | } |
| 9879 | }, |
| 9880 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9881 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9882 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9883 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9884 | .voltage = {1700, 2000}, |
| 9885 | }, |
| 9886 | |
| 9887 | { |
| 9888 | .vendor = "Micron/Numonyx/ST", |
| 9889 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9890 | .bustype = BUS_SPI, |
| 9891 | .manufacture_id = ST_ID, |
| 9892 | .model_id = ST_N25Q064__3E, |
| 9893 | .total_size = 8192, |
| 9894 | .page_size = 256, |
| 9895 | /* supports SFDP */ |
| 9896 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9897 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9898 | .tested = TEST_OK_PREW, |
| 9899 | .probe = probe_spi_rdid, |
| 9900 | .probe_timing = TIMING_ZERO, |
| 9901 | .block_erasers = |
| 9902 | { |
| 9903 | { |
| 9904 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 9905 | .block_erase = spi_block_erase_20, |
| 9906 | }, { |
| 9907 | .eraseblocks = { {64 * 1024, 128} }, |
| 9908 | .block_erase = spi_block_erase_d8, |
| 9909 | }, { |
| 9910 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9911 | .block_erase = spi_block_erase_c7, |
| 9912 | } |
| 9913 | }, |
| 9914 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9915 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9916 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9917 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9918 | .voltage = {2700, 3600}, |
| 9919 | }, |
| 9920 | |
| 9921 | { |
| 9922 | .vendor = "Micron/Numonyx/ST", |
| 9923 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 9924 | .bustype = BUS_SPI, |
| 9925 | .manufacture_id = ST_ID, |
| 9926 | .model_id = ST_N25Q128__1E, |
| 9927 | .total_size = 16384, |
| 9928 | .page_size = 256, |
| 9929 | /* supports SFDP */ |
| 9930 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9931 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9932 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9933 | .probe = probe_spi_rdid, |
| 9934 | .probe_timing = TIMING_ZERO, |
| 9935 | .block_erasers = { |
| 9936 | { |
| 9937 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 9938 | .block_erase = spi_block_erase_20, |
| 9939 | }, { |
| 9940 | .eraseblocks = { {64 * 1024, 256} }, |
| 9941 | .block_erase = spi_block_erase_d8, |
| 9942 | }, { |
| 9943 | .eraseblocks = { {16384 * 1024, 1} }, |
| 9944 | .block_erase = spi_block_erase_c7, |
| 9945 | } |
| 9946 | }, |
| 9947 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9948 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9949 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9950 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9951 | .voltage = {1700, 2000}, |
| 9952 | }, |
| 9953 | |
| 9954 | { |
| 9955 | .vendor = "Micron/Numonyx/ST", |
| 9956 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9957 | .bustype = BUS_SPI, |
| 9958 | .manufacture_id = ST_ID, |
| 9959 | .model_id = ST_N25Q128__3E, |
| 9960 | .total_size = 16384, |
| 9961 | .page_size = 256, |
| 9962 | /* supports SFDP */ |
| 9963 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9964 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9965 | .tested = TEST_OK_PREW, |
| 9966 | .probe = probe_spi_rdid, |
| 9967 | .probe_timing = TIMING_ZERO, |
| 9968 | .block_erasers = { |
| 9969 | { |
| 9970 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 9971 | .block_erase = spi_block_erase_20, |
| 9972 | }, { |
| 9973 | .eraseblocks = { {64 * 1024, 256} }, |
| 9974 | .block_erase = spi_block_erase_d8, |
| 9975 | }, { |
| 9976 | .eraseblocks = { {16384 * 1024, 1} }, |
| 9977 | .block_erase = spi_block_erase_c7, |
| 9978 | } |
| 9979 | }, |
| 9980 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9981 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9982 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9983 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9984 | .voltage = {2700, 3600}, |
| 9985 | }, |
| 9986 | |
| 9987 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 9988 | .vendor = "Micron", |
| 9989 | .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9990 | .bustype = BUS_SPI, |
| 9991 | .manufacture_id = ST_ID, |
| 9992 | .model_id = ST_N25Q256__3E, |
| 9993 | .total_size = 32768, |
| 9994 | .page_size = 256, |
| 9995 | /* supports SFDP */ |
| 9996 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 9997 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 9998 | .tested = TEST_UNTESTED, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 9999 | .probe = probe_spi_rdid, |
| 10000 | .probe_timing = TIMING_ZERO, |
| 10001 | .block_erasers = { |
| 10002 | { |
| 10003 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10004 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10005 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10006 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10007 | .block_erase = spi_block_erase_20, |
| 10008 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10009 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10010 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10011 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10012 | .eraseblocks = { {64 * 1024, 512} }, |
| 10013 | .block_erase = spi_block_erase_d8, |
| 10014 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10015 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10016 | .block_erase = spi_block_erase_c7, |
| 10017 | } |
| 10018 | }, |
| 10019 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10020 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10021 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10022 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10023 | .voltage = {2700, 3600}, |
| 10024 | }, |
| 10025 | |
| 10026 | { |
| 10027 | .vendor = "Micron", |
| 10028 | .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10029 | .bustype = BUS_SPI, |
| 10030 | .manufacture_id = ST_ID, |
| 10031 | .model_id = ST_N25Q512__3E, |
| 10032 | .total_size = 65536, |
| 10033 | .page_size = 256, |
| 10034 | /* supports SFDP */ |
| 10035 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10036 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10037 | .tested = TEST_UNTESTED, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10038 | .probe = probe_spi_rdid, |
| 10039 | .probe_timing = TIMING_ZERO, |
| 10040 | .block_erasers = { |
| 10041 | { |
| 10042 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10043 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10044 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10045 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10046 | .block_erase = spi_block_erase_20, |
| 10047 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10048 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10049 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10050 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10051 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10052 | .block_erase = spi_block_erase_d8, |
| 10053 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10054 | .eraseblocks = { {65536 * 1024, 1} }, |
| 10055 | .block_erase = spi_block_erase_c7, |
| 10056 | } |
| 10057 | }, |
| 10058 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10059 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10060 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10061 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10062 | .voltage = {2700, 3600}, |
| 10063 | }, |
| 10064 | |
| 10065 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10066 | .vendor = "MoselVitelic", |
| 10067 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10068 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10069 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10070 | .model_id = MVC_V29C51000B, |
| 10071 | .total_size = 64, |
| 10072 | .page_size = 512, |
| 10073 | .feature_bits = FEATURE_EITHER_RESET, |
| 10074 | .tested = TEST_UNTESTED, |
| 10075 | .probe = probe_jedec, |
| 10076 | .probe_timing = TIMING_ZERO, |
| 10077 | .block_erasers = |
| 10078 | { |
| 10079 | { |
| 10080 | .eraseblocks = { {512, 128} }, |
| 10081 | .block_erase = erase_sector_jedec, |
| 10082 | }, { |
| 10083 | .eraseblocks = { {64 * 1024, 1} }, |
| 10084 | .block_erase = erase_chip_block_jedec, |
| 10085 | }, |
| 10086 | }, |
| 10087 | .write = write_jedec_1, |
| 10088 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10089 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10090 | }, |
| 10091 | |
| 10092 | { |
| 10093 | .vendor = "MoselVitelic", |
| 10094 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10095 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10096 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10097 | .model_id = MVC_V29C51000T, |
| 10098 | .total_size = 64, |
| 10099 | .page_size = 512, |
| 10100 | .feature_bits = FEATURE_EITHER_RESET, |
| 10101 | .tested = TEST_UNTESTED, |
| 10102 | .probe = probe_jedec, |
| 10103 | .probe_timing = TIMING_ZERO, |
| 10104 | .block_erasers = |
| 10105 | { |
| 10106 | { |
| 10107 | .eraseblocks = { {512, 128} }, |
| 10108 | .block_erase = erase_sector_jedec, |
| 10109 | }, { |
| 10110 | .eraseblocks = { {64 * 1024, 1} }, |
| 10111 | .block_erase = erase_chip_block_jedec, |
| 10112 | }, |
| 10113 | }, |
| 10114 | .write = write_jedec_1, |
| 10115 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10116 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10117 | }, |
| 10118 | |
| 10119 | { |
| 10120 | .vendor = "MoselVitelic", |
| 10121 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10122 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10123 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10124 | .model_id = MVC_V29C51400B, |
| 10125 | .total_size = 512, |
| 10126 | .page_size = 1024, |
| 10127 | .feature_bits = FEATURE_EITHER_RESET, |
| 10128 | .tested = TEST_UNTESTED, |
| 10129 | .probe = probe_jedec, |
| 10130 | .probe_timing = TIMING_ZERO, |
| 10131 | .block_erasers = |
| 10132 | { |
| 10133 | { |
| 10134 | .eraseblocks = { {1024, 512} }, |
| 10135 | .block_erase = erase_sector_jedec, |
| 10136 | }, { |
| 10137 | .eraseblocks = { {512 * 1024, 1} }, |
| 10138 | .block_erase = erase_chip_block_jedec, |
| 10139 | }, |
| 10140 | }, |
| 10141 | .write = write_jedec_1, |
| 10142 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10143 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10144 | }, |
| 10145 | |
| 10146 | { |
| 10147 | .vendor = "MoselVitelic", |
| 10148 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10149 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10150 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10151 | .model_id = MVC_V29C51400T, |
| 10152 | .total_size = 512, |
| 10153 | .page_size = 1024, |
| 10154 | .feature_bits = FEATURE_EITHER_RESET, |
| 10155 | .tested = TEST_UNTESTED, |
| 10156 | .probe = probe_jedec, |
| 10157 | .probe_timing = TIMING_ZERO, |
| 10158 | .block_erasers = |
| 10159 | { |
| 10160 | { |
| 10161 | .eraseblocks = { {1024, 512} }, |
| 10162 | .block_erase = erase_sector_jedec, |
| 10163 | }, { |
| 10164 | .eraseblocks = { {512 * 1024, 1} }, |
| 10165 | .block_erase = erase_chip_block_jedec, |
| 10166 | }, |
| 10167 | }, |
| 10168 | .write = write_jedec_1, |
| 10169 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10170 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10171 | }, |
| 10172 | |
| 10173 | { |
| 10174 | .vendor = "MoselVitelic", |
| 10175 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10176 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10177 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10178 | .model_id = MVC_V29LC51000, |
| 10179 | .total_size = 64, |
| 10180 | .page_size = 512, |
| 10181 | .feature_bits = FEATURE_EITHER_RESET, |
| 10182 | .tested = TEST_UNTESTED, |
| 10183 | .probe = probe_jedec, |
| 10184 | .probe_timing = TIMING_ZERO, |
| 10185 | .block_erasers = |
| 10186 | { |
| 10187 | { |
| 10188 | .eraseblocks = { {512, 128} }, |
| 10189 | .block_erase = erase_sector_jedec, |
| 10190 | }, { |
| 10191 | .eraseblocks = { {64 * 1024, 1} }, |
| 10192 | .block_erase = erase_chip_block_jedec, |
| 10193 | }, |
| 10194 | }, |
| 10195 | .write = write_jedec_1, |
| 10196 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10197 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10198 | }, |
| 10199 | |
| 10200 | { |
| 10201 | .vendor = "MoselVitelic", |
| 10202 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10203 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10204 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10205 | .model_id = MVC_V29LC51001, |
| 10206 | .total_size = 128, |
| 10207 | .page_size = 512, |
| 10208 | .feature_bits = FEATURE_EITHER_RESET, |
| 10209 | .tested = TEST_UNTESTED, |
| 10210 | .probe = probe_jedec, |
| 10211 | .probe_timing = TIMING_ZERO, |
| 10212 | .block_erasers = |
| 10213 | { |
| 10214 | { |
| 10215 | .eraseblocks = { {512, 256} }, |
| 10216 | .block_erase = erase_sector_jedec, |
| 10217 | }, { |
| 10218 | .eraseblocks = { {128 * 1024, 1} }, |
| 10219 | .block_erase = erase_chip_block_jedec, |
| 10220 | }, |
| 10221 | }, |
| 10222 | .write = write_jedec_1, |
| 10223 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10224 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10225 | }, |
| 10226 | |
| 10227 | { |
| 10228 | .vendor = "MoselVitelic", |
| 10229 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10230 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10231 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10232 | .model_id = MVC_V29LC51002, |
| 10233 | .total_size = 256, |
| 10234 | .page_size = 512, |
| 10235 | .feature_bits = FEATURE_EITHER_RESET, |
| 10236 | .tested = TEST_UNTESTED, |
| 10237 | .probe = probe_jedec, |
| 10238 | .probe_timing = TIMING_ZERO, |
| 10239 | .block_erasers = |
| 10240 | { |
| 10241 | { |
| 10242 | .eraseblocks = { {512, 512} }, |
| 10243 | .block_erase = erase_sector_jedec, |
| 10244 | }, { |
| 10245 | .eraseblocks = { {256 * 1024, 1} }, |
| 10246 | .block_erase = erase_chip_block_jedec, |
| 10247 | }, |
| 10248 | }, |
| 10249 | .write = write_jedec_1, |
| 10250 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10251 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10252 | }, |
| 10253 | |
| 10254 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10255 | .vendor = "Nantronics", |
| 10256 | .name = "N25S10", |
| 10257 | .bustype = BUS_SPI, |
| 10258 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10259 | .model_id = NANTRONICS_N25S10, |
| 10260 | .total_size = 128, |
| 10261 | .page_size = 256, |
| 10262 | .feature_bits = FEATURE_WRSR_WREN, |
| 10263 | .tested = TEST_UNTESTED, |
| 10264 | .probe = probe_spi_rdid, |
| 10265 | .probe_timing = TIMING_ZERO, |
| 10266 | .block_erasers = |
| 10267 | { |
| 10268 | { |
| 10269 | .eraseblocks = { {4 * 1024, 32} }, |
| 10270 | .block_erase = spi_block_erase_20, |
| 10271 | }, { |
| 10272 | .eraseblocks = { {4 * 1024, 32} }, |
| 10273 | .block_erase = spi_block_erase_d7, |
| 10274 | }, { |
| 10275 | .eraseblocks = { {32 * 1024, 4} }, |
| 10276 | .block_erase = spi_block_erase_52, |
| 10277 | }, { |
| 10278 | .eraseblocks = { {64 * 1024, 2} }, |
| 10279 | .block_erase = spi_block_erase_d8, |
| 10280 | }, { |
| 10281 | .eraseblocks = { {128 * 1024, 1} }, |
| 10282 | .block_erase = spi_block_erase_60, |
| 10283 | }, { |
| 10284 | .eraseblocks = { {128 * 1024, 1} }, |
| 10285 | .block_erase = spi_block_erase_c7, |
| 10286 | } |
| 10287 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10288 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10289 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10290 | .write = spi_chip_write_256, |
| 10291 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10292 | .voltage = {2700, 3600}, |
| 10293 | }, |
| 10294 | |
| 10295 | { |
| 10296 | .vendor = "Nantronics", |
| 10297 | .name = "N25S20", |
| 10298 | .bustype = BUS_SPI, |
| 10299 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10300 | .model_id = NANTRONICS_N25S20, |
| 10301 | .total_size = 256, |
| 10302 | .page_size = 256, |
| 10303 | .feature_bits = FEATURE_WRSR_WREN, |
| 10304 | .tested = TEST_UNTESTED, |
| 10305 | .probe = probe_spi_rdid, |
| 10306 | .probe_timing = TIMING_ZERO, |
| 10307 | .block_erasers = |
| 10308 | { |
| 10309 | { |
| 10310 | .eraseblocks = { {4 * 1024, 64} }, |
| 10311 | .block_erase = spi_block_erase_20, |
| 10312 | }, { |
| 10313 | .eraseblocks = { {4 * 1024, 64} }, |
| 10314 | .block_erase = spi_block_erase_d7, |
| 10315 | }, { |
| 10316 | .eraseblocks = { {32 * 1024, 8} }, |
| 10317 | .block_erase = spi_block_erase_52, |
| 10318 | }, { |
| 10319 | .eraseblocks = { {64 * 1024, 4} }, |
| 10320 | .block_erase = spi_block_erase_d8, |
| 10321 | }, { |
| 10322 | .eraseblocks = { {256 * 1024, 1} }, |
| 10323 | .block_erase = spi_block_erase_60, |
| 10324 | }, { |
| 10325 | .eraseblocks = { {256 * 1024, 1} }, |
| 10326 | .block_erase = spi_block_erase_c7, |
| 10327 | } |
| 10328 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10329 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10330 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10331 | .write = spi_chip_write_256, |
| 10332 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10333 | .voltage = {2700, 3600}, |
| 10334 | }, |
| 10335 | |
| 10336 | { |
| 10337 | .vendor = "Nantronics", |
| 10338 | .name = "N25S40", |
| 10339 | .bustype = BUS_SPI, |
| 10340 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10341 | .model_id = NANTRONICS_N25S40, |
| 10342 | .total_size = 512, |
| 10343 | .page_size = 256, |
| 10344 | .feature_bits = FEATURE_WRSR_WREN, |
| 10345 | .tested = TEST_UNTESTED, |
| 10346 | .probe = probe_spi_rdid, |
| 10347 | .probe_timing = TIMING_ZERO, |
| 10348 | .block_erasers = |
| 10349 | { |
| 10350 | { |
| 10351 | .eraseblocks = { {4 * 1024, 128} }, |
| 10352 | .block_erase = spi_block_erase_20, |
| 10353 | }, { |
| 10354 | .eraseblocks = { {4 * 1024, 128} }, |
| 10355 | .block_erase = spi_block_erase_d7, |
| 10356 | }, { |
| 10357 | .eraseblocks = { {32 * 1024, 16} }, |
| 10358 | .block_erase = spi_block_erase_52, |
| 10359 | }, { |
| 10360 | .eraseblocks = { {64 * 1024, 8} }, |
| 10361 | .block_erase = spi_block_erase_d8, |
| 10362 | }, { |
| 10363 | .eraseblocks = { {512 * 1024, 1} }, |
| 10364 | .block_erase = spi_block_erase_60, |
| 10365 | }, { |
| 10366 | .eraseblocks = { {512 * 1024, 1} }, |
| 10367 | .block_erase = spi_block_erase_c7, |
| 10368 | } |
| 10369 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10370 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10371 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10372 | .write = spi_chip_write_256, |
| 10373 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10374 | .voltage = {2700, 3600}, |
| 10375 | }, |
| 10376 | |
| 10377 | { |
| 10378 | .vendor = "Nantronics", |
| 10379 | .name = "N25S80", |
| 10380 | .bustype = BUS_SPI, |
| 10381 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10382 | .model_id = NANTRONICS_N25S80, |
| 10383 | .total_size = 1024, |
| 10384 | .page_size = 256, |
| 10385 | .feature_bits = FEATURE_WRSR_WREN, |
| 10386 | .tested = TEST_UNTESTED, |
| 10387 | .probe = probe_spi_rdid, |
| 10388 | .probe_timing = TIMING_ZERO, |
| 10389 | .block_erasers = |
| 10390 | { |
| 10391 | { |
| 10392 | .eraseblocks = { {4 * 1024, 256} }, |
| 10393 | .block_erase = spi_block_erase_20, |
| 10394 | }, { |
| 10395 | .eraseblocks = { {32 * 1024, 32} }, |
| 10396 | .block_erase = spi_block_erase_52, |
| 10397 | }, { |
| 10398 | .eraseblocks = { {64 * 1024, 16} }, |
| 10399 | .block_erase = spi_block_erase_d8, |
| 10400 | }, { |
| 10401 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10402 | .block_erase = spi_block_erase_60, |
| 10403 | }, { |
| 10404 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10405 | .block_erase = spi_block_erase_c7, |
| 10406 | } |
| 10407 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10408 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10409 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10410 | .write = spi_chip_write_256, |
| 10411 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10412 | .voltage = {2700, 3600}, |
| 10413 | }, |
| 10414 | |
| 10415 | { |
| 10416 | .vendor = "Nantronics", |
| 10417 | .name = "N25S16", |
| 10418 | .bustype = BUS_SPI, |
| 10419 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10420 | .model_id = NANTRONICS_N25S16, |
| 10421 | .total_size = 2048, |
| 10422 | .page_size = 256, |
| 10423 | .feature_bits = FEATURE_WRSR_WREN, |
| 10424 | .tested = TEST_UNTESTED, |
| 10425 | .probe = probe_spi_rdid, |
| 10426 | .probe_timing = TIMING_ZERO, |
| 10427 | .block_erasers = |
| 10428 | { |
| 10429 | { |
| 10430 | .eraseblocks = { {4 * 1024, 512} }, |
| 10431 | .block_erase = spi_block_erase_20, |
| 10432 | }, { |
| 10433 | .eraseblocks = { {64 * 1024, 32} }, |
| 10434 | .block_erase = spi_block_erase_d8, |
| 10435 | }, { |
| 10436 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10437 | .block_erase = spi_block_erase_60, |
| 10438 | }, { |
| 10439 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10440 | .block_erase = spi_block_erase_c7, |
| 10441 | } |
| 10442 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10443 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10444 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10445 | .write = spi_chip_write_256, |
| 10446 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10447 | .voltage = {2700, 3600}, |
| 10448 | }, |
| 10449 | |
| 10450 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10451 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10452 | .name = "Pm25LD256C", |
| 10453 | .bustype = BUS_SPI, |
| 10454 | .manufacture_id = PMC_ID, |
| 10455 | .model_id = PMC_PM25LD256C, |
| 10456 | .total_size = 32, |
| 10457 | .page_size = 256, |
| 10458 | .feature_bits = FEATURE_WRSR_WREN, |
| 10459 | .tested = TEST_UNTESTED, |
| 10460 | .probe = probe_spi_rdid, |
| 10461 | .probe_timing = TIMING_ZERO, |
| 10462 | .block_erasers = |
| 10463 | { |
| 10464 | { |
| 10465 | .eraseblocks = { {4 * 1024, 8} }, |
| 10466 | .block_erase = spi_block_erase_20, |
| 10467 | }, { |
| 10468 | .eraseblocks = { {4 * 1024, 8} }, |
| 10469 | .block_erase = spi_block_erase_d7, |
| 10470 | }, { |
| 10471 | .eraseblocks = { {32 * 1024, 1} }, |
| 10472 | .block_erase = spi_block_erase_d8, |
| 10473 | }, { |
| 10474 | .eraseblocks = { {32 * 1024, 1} }, |
| 10475 | .block_erase = spi_block_erase_60, |
| 10476 | }, { |
| 10477 | .eraseblocks = { {32 * 1024, 1} }, |
| 10478 | .block_erase = spi_block_erase_c7, |
| 10479 | } |
| 10480 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10481 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10482 | .unlock = spi_disable_blockprotect, |
| 10483 | .write = spi_chip_write_256, |
| 10484 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10485 | .voltage = {2700, 3600}, |
| 10486 | }, |
| 10487 | { |
| 10488 | .vendor = "PMC", |
| 10489 | .name = "Pm25LD512(C)", |
| 10490 | .bustype = BUS_SPI, |
| 10491 | .manufacture_id = PMC_ID, |
| 10492 | .model_id = PMC_PM25LD512, |
| 10493 | .total_size = 64, |
| 10494 | .page_size = 256, |
| 10495 | .feature_bits = FEATURE_WRSR_WREN, |
| 10496 | .tested = TEST_OK_PREW, |
| 10497 | .probe = probe_spi_rdid, |
| 10498 | .probe_timing = TIMING_ZERO, |
| 10499 | .block_erasers = |
| 10500 | { |
| 10501 | { |
| 10502 | .eraseblocks = { {4 * 1024, 16} }, |
| 10503 | .block_erase = spi_block_erase_20, |
| 10504 | }, { |
| 10505 | .eraseblocks = { {4 * 1024, 16} }, |
| 10506 | .block_erase = spi_block_erase_d7, |
| 10507 | }, { |
| 10508 | .eraseblocks = { {32 * 1024, 2} }, |
| 10509 | .block_erase = spi_block_erase_d8, |
| 10510 | }, { |
| 10511 | .eraseblocks = { {64 * 1024, 1} }, |
| 10512 | .block_erase = spi_block_erase_60, |
| 10513 | }, { |
| 10514 | .eraseblocks = { {64 * 1024, 1} }, |
| 10515 | .block_erase = spi_block_erase_c7, |
| 10516 | } |
| 10517 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10518 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10519 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10520 | .write = spi_chip_write_256, |
| 10521 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10522 | .voltage = {2300, 3600}, |
| 10523 | }, |
| 10524 | |
| 10525 | { |
| 10526 | .vendor = "PMC", |
| 10527 | .name = "Pm25LD010(C)", |
| 10528 | .bustype = BUS_SPI, |
| 10529 | .manufacture_id = PMC_ID, |
| 10530 | .model_id = PMC_PM25LD010, |
| 10531 | .total_size = 128, |
| 10532 | .page_size = 256, |
| 10533 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10534 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10535 | .probe = probe_spi_rdid, |
| 10536 | .probe_timing = TIMING_ZERO, |
| 10537 | .block_erasers = |
| 10538 | { |
| 10539 | { |
| 10540 | .eraseblocks = { {4 * 1024, 32} }, |
| 10541 | .block_erase = spi_block_erase_20, |
| 10542 | }, { |
| 10543 | .eraseblocks = { {4 * 1024, 32} }, |
| 10544 | .block_erase = spi_block_erase_d7, |
| 10545 | }, { |
| 10546 | .eraseblocks = { {32 * 1024, 4} }, |
| 10547 | .block_erase = spi_block_erase_d8, |
| 10548 | }, { |
| 10549 | .eraseblocks = { {128 * 1024, 1} }, |
| 10550 | .block_erase = spi_block_erase_60, |
| 10551 | }, { |
| 10552 | .eraseblocks = { {128 * 1024, 1} }, |
| 10553 | .block_erase = spi_block_erase_c7, |
| 10554 | } |
| 10555 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10556 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10557 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10558 | .write = spi_chip_write_256, |
| 10559 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10560 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 10561 | }, |
| 10562 | |
| 10563 | { |
| 10564 | .vendor = "PMC", |
| 10565 | .name = "Pm25LD020(C)", |
| 10566 | .bustype = BUS_SPI, |
| 10567 | .manufacture_id = PMC_ID, |
| 10568 | .model_id = PMC_PM25LD020, |
| 10569 | .total_size = 256, |
| 10570 | .page_size = 256, |
| 10571 | .feature_bits = FEATURE_WRSR_WREN, |
| 10572 | .tested = TEST_UNTESTED, |
| 10573 | .probe = probe_spi_rdid, |
| 10574 | .probe_timing = TIMING_ZERO, |
| 10575 | .block_erasers = |
| 10576 | { |
| 10577 | { |
| 10578 | .eraseblocks = { {4 * 1024, 64} }, |
| 10579 | .block_erase = spi_block_erase_20, |
| 10580 | }, { |
| 10581 | .eraseblocks = { {4 * 1024, 64} }, |
| 10582 | .block_erase = spi_block_erase_d7, |
| 10583 | }, { |
| 10584 | .eraseblocks = { {64 * 1024, 4} }, |
| 10585 | .block_erase = spi_block_erase_d8, |
| 10586 | }, { |
| 10587 | .eraseblocks = { {256 * 1024, 1} }, |
| 10588 | .block_erase = spi_block_erase_60, |
| 10589 | }, { |
| 10590 | .eraseblocks = { {256 * 1024, 1} }, |
| 10591 | .block_erase = spi_block_erase_c7, |
| 10592 | } |
| 10593 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10594 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10595 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10596 | .write = spi_chip_write_256, |
| 10597 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10598 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 10599 | }, |
| 10600 | |
| 10601 | { |
| 10602 | .vendor = "PMC", |
| 10603 | .name = "Pm25LD040(C)", |
| 10604 | .bustype = BUS_SPI, |
| 10605 | .manufacture_id = PMC_ID, |
| 10606 | .model_id = PMC_PM25LV040, |
| 10607 | .total_size = 512, |
| 10608 | .page_size = 256, |
| 10609 | .feature_bits = FEATURE_WRSR_WREN, |
| 10610 | .tested = TEST_UNTESTED, |
| 10611 | .probe = probe_spi_rdid, |
| 10612 | .probe_timing = TIMING_ZERO, |
| 10613 | .block_erasers = |
| 10614 | { |
| 10615 | { |
| 10616 | .eraseblocks = { {4 * 1024, 128} }, |
| 10617 | .block_erase = spi_block_erase_20, |
| 10618 | }, { |
| 10619 | .eraseblocks = { {4 * 1024, 128} }, |
| 10620 | .block_erase = spi_block_erase_d7, |
| 10621 | }, { |
| 10622 | .eraseblocks = { {64 * 1024, 8} }, |
| 10623 | .block_erase = spi_block_erase_d8, |
| 10624 | }, { |
| 10625 | .eraseblocks = { {512 * 1024, 1} }, |
| 10626 | .block_erase = spi_block_erase_60, |
| 10627 | }, { |
| 10628 | .eraseblocks = { {512 * 1024, 1} }, |
| 10629 | .block_erase = spi_block_erase_c7, |
| 10630 | } |
| 10631 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10632 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10633 | .unlock = spi_disable_blockprotect, |
| 10634 | .write = spi_chip_write_256, |
| 10635 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10636 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 10637 | }, |
| 10638 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 10639 | { |
| 10640 | .vendor = "PMC", |
| 10641 | .name = "Pm25LQ020", |
| 10642 | .bustype = BUS_SPI, |
| 10643 | .manufacture_id = PMC_ID, |
| 10644 | .model_id = PMC_PM25LQ020, |
| 10645 | .total_size = 256, |
| 10646 | .page_size = 256, |
| 10647 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10648 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10649 | .tested = TEST_UNTESTED, |
| 10650 | .probe = probe_spi_rdid, |
| 10651 | .probe_timing = TIMING_ZERO, |
| 10652 | .block_erasers = |
| 10653 | { |
| 10654 | { |
| 10655 | .eraseblocks = { {4 * 1024, 64} }, |
| 10656 | .block_erase = spi_block_erase_20, |
| 10657 | }, { |
| 10658 | .eraseblocks = { {4 * 1024, 64} }, |
| 10659 | .block_erase = spi_block_erase_d7, |
| 10660 | }, { |
| 10661 | .eraseblocks = { {64 * 1024, 4} }, |
| 10662 | .block_erase = spi_block_erase_d8, |
| 10663 | }, { |
| 10664 | .eraseblocks = { {256 * 1024, 1} }, |
| 10665 | .block_erase = spi_block_erase_60, |
| 10666 | }, { |
| 10667 | .eraseblocks = { {256 * 1024, 1} }, |
| 10668 | .block_erase = spi_block_erase_c7, |
| 10669 | } |
| 10670 | }, |
| 10671 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10672 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10673 | .write = spi_chip_write_256, |
| 10674 | .read = spi_chip_read, |
| 10675 | .voltage = {2300, 3600}, |
| 10676 | }, |
| 10677 | |
| 10678 | { |
| 10679 | .vendor = "PMC", |
| 10680 | .name = "Pm25LQ040", |
| 10681 | .bustype = BUS_SPI, |
| 10682 | .manufacture_id = PMC_ID, |
| 10683 | .model_id = PMC_PM25LQ040, |
| 10684 | .total_size = 512, |
| 10685 | .page_size = 256, |
| 10686 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10687 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10688 | .tested = TEST_UNTESTED, |
| 10689 | .probe = probe_spi_rdid, |
| 10690 | .probe_timing = TIMING_ZERO, |
| 10691 | .block_erasers = |
| 10692 | { |
| 10693 | { |
| 10694 | .eraseblocks = { {4 * 1024, 128} }, |
| 10695 | .block_erase = spi_block_erase_20, |
| 10696 | }, { |
| 10697 | .eraseblocks = { {4 * 1024, 128} }, |
| 10698 | .block_erase = spi_block_erase_d7, |
| 10699 | }, { |
| 10700 | .eraseblocks = { {64 * 1024, 8} }, |
| 10701 | .block_erase = spi_block_erase_d8, |
| 10702 | }, { |
| 10703 | .eraseblocks = { {512 * 1024, 1} }, |
| 10704 | .block_erase = spi_block_erase_60, |
| 10705 | }, { |
| 10706 | .eraseblocks = { {512 * 1024, 1} }, |
| 10707 | .block_erase = spi_block_erase_c7, |
| 10708 | } |
| 10709 | }, |
| 10710 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10711 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10712 | .write = spi_chip_write_256, |
| 10713 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10714 | .voltage = {2300, 3600}, |
| 10715 | }, |
| 10716 | |
| 10717 | { |
| 10718 | .vendor = "PMC", |
| 10719 | .name = "Pm25LQ080", |
| 10720 | .bustype = BUS_SPI, |
| 10721 | .manufacture_id = PMC_ID, |
| 10722 | .model_id = PMC_PM25LQ080, |
| 10723 | .total_size = 1024, |
| 10724 | .page_size = 256, |
| 10725 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 10726 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10727 | .tested = TEST_UNTESTED, |
| 10728 | .probe = probe_spi_rdid, |
| 10729 | .probe_timing = TIMING_ZERO, |
| 10730 | .block_erasers = |
| 10731 | { |
| 10732 | { |
| 10733 | .eraseblocks = { {4 * 1024, 256} }, |
| 10734 | .block_erase = spi_block_erase_20, |
| 10735 | }, { |
| 10736 | .eraseblocks = { {4 * 1024, 256} }, |
| 10737 | .block_erase = spi_block_erase_d7, |
| 10738 | }, { |
| 10739 | .eraseblocks = { {64 * 1024, 16} }, |
| 10740 | .block_erase = spi_block_erase_d8, |
| 10741 | }, { |
| 10742 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10743 | .block_erase = spi_block_erase_60, |
| 10744 | }, { |
| 10745 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10746 | .block_erase = spi_block_erase_c7, |
| 10747 | } |
| 10748 | }, |
| 10749 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10750 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10751 | .write = spi_chip_write_256, |
| 10752 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10753 | .voltage = {2300, 3600}, |
| 10754 | }, |
| 10755 | |
| 10756 | { |
| 10757 | .vendor = "PMC", |
| 10758 | .name = "Pm25LQ016", |
| 10759 | .bustype = BUS_SPI, |
| 10760 | .manufacture_id = PMC_ID, |
| 10761 | .model_id = PMC_PM25LQ016, |
| 10762 | .total_size = 2048, |
| 10763 | .page_size = 256, |
| 10764 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10765 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10766 | .tested = TEST_UNTESTED, |
| 10767 | .probe = probe_spi_rdid, |
| 10768 | .probe_timing = TIMING_ZERO, |
| 10769 | .block_erasers = |
| 10770 | { |
| 10771 | { |
| 10772 | .eraseblocks = { {4 * 1024, 512} }, |
| 10773 | .block_erase = spi_block_erase_20, |
| 10774 | }, { |
| 10775 | .eraseblocks = { {4 * 1024, 512} }, |
| 10776 | .block_erase = spi_block_erase_d7, |
| 10777 | }, { |
| 10778 | .eraseblocks = { {64 * 1024, 32} }, |
| 10779 | .block_erase = spi_block_erase_d8, |
| 10780 | }, { |
| 10781 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10782 | .block_erase = spi_block_erase_60, |
| 10783 | }, { |
| 10784 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10785 | .block_erase = spi_block_erase_c7, |
| 10786 | } |
| 10787 | }, |
| 10788 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10789 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10790 | .write = spi_chip_write_256, |
| 10791 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10792 | .voltage = {2300, 3600}, |
| 10793 | }, |
| 10794 | |
| 10795 | { |
| 10796 | .vendor = "PMC", |
| 10797 | .name = "Pm25LQ032C", |
| 10798 | .bustype = BUS_SPI, |
| 10799 | .manufacture_id = PMC_ID, |
| 10800 | .model_id = PMC_PM25LQ032C, |
| 10801 | .total_size = 4096, |
| 10802 | .page_size = 256, |
| 10803 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 10804 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10805 | .tested = TEST_OK_PREW, |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 10806 | .probe = probe_spi_rdid, |
| 10807 | .probe_timing = TIMING_ZERO, |
| 10808 | .block_erasers = |
| 10809 | { |
| 10810 | { |
| 10811 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10812 | .block_erase = spi_block_erase_20, |
| 10813 | }, { |
| 10814 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10815 | .block_erase = spi_block_erase_d7, |
| 10816 | }, { |
| 10817 | .eraseblocks = { {64 * 1024, 64} }, |
| 10818 | .block_erase = spi_block_erase_d8, |
| 10819 | }, { |
| 10820 | .eraseblocks = { {4096 * 1024, 1} }, |
| 10821 | .block_erase = spi_block_erase_60, |
| 10822 | }, { |
| 10823 | .eraseblocks = { {4096 * 1024, 1} }, |
| 10824 | .block_erase = spi_block_erase_c7, |
| 10825 | } |
| 10826 | }, |
| 10827 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10828 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10829 | .write = spi_chip_write_256, |
| 10830 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10831 | .voltage = {2700, 3600}, |
| 10832 | }, |
| 10833 | |
| 10834 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10835 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10836 | .name = "Pm25LV512(A)", |
| 10837 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10838 | .manufacture_id = PMC_ID_NOPREFIX, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10839 | .model_id = PMC_PM25LV512, |
| 10840 | .total_size = 64, |
| 10841 | .page_size = 256, |
| 10842 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10843 | .tested = TEST_OK_PREW, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10844 | .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] | 10845 | .probe_timing = TIMING_ZERO, |
| 10846 | .block_erasers = |
| 10847 | { |
| 10848 | { |
| 10849 | .eraseblocks = { {4 * 1024, 16} }, |
| 10850 | .block_erase = spi_block_erase_d7, |
| 10851 | }, { |
| 10852 | .eraseblocks = { {32 * 1024, 2} }, |
| 10853 | .block_erase = spi_block_erase_d8, |
| 10854 | }, { |
| 10855 | .eraseblocks = { {64 * 1024, 1} }, |
| 10856 | .block_erase = spi_block_erase_c7, |
| 10857 | } |
| 10858 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10859 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10860 | .unlock = spi_disable_blockprotect, |
| 10861 | .write = spi_chip_write_256, |
| 10862 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10863 | .voltage = {2700, 3600}, |
| 10864 | }, |
| 10865 | |
| 10866 | { |
| 10867 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10868 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10869 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10870 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10871 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10872 | .total_size = 128, |
| 10873 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10874 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10875 | .tested = TEST_OK_PREW, |
| 10876 | .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] | 10877 | .probe_timing = TIMING_ZERO, |
| 10878 | .block_erasers = |
| 10879 | { |
| 10880 | { |
| 10881 | .eraseblocks = { {4 * 1024, 32} }, |
| 10882 | .block_erase = spi_block_erase_d7, |
| 10883 | }, { |
| 10884 | .eraseblocks = { {32 * 1024, 4} }, |
| 10885 | .block_erase = spi_block_erase_d8, |
| 10886 | }, { |
| 10887 | .eraseblocks = { {128 * 1024, 1} }, |
| 10888 | .block_erase = spi_block_erase_c7, |
| 10889 | } |
| 10890 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10891 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10892 | .unlock = spi_disable_blockprotect, |
| 10893 | .write = spi_chip_write_256, |
| 10894 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10895 | .voltage = {2700, 3600}, |
| 10896 | }, |
| 10897 | |
| 10898 | { |
| 10899 | .vendor = "PMC", |
| 10900 | .name = "Pm25LV010A", |
| 10901 | .bustype = BUS_SPI, |
| 10902 | .manufacture_id = PMC_ID, |
| 10903 | .model_id = PMC_PM25LV010, |
| 10904 | .total_size = 128, |
| 10905 | .page_size = 256, |
| 10906 | .feature_bits = FEATURE_WRSR_WREN, |
| 10907 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10908 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10909 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10910 | .block_erasers = |
| 10911 | { |
| 10912 | { |
| 10913 | .eraseblocks = { {4 * 1024, 32} }, |
| 10914 | .block_erase = spi_block_erase_d7, |
| 10915 | }, { |
| 10916 | .eraseblocks = { {32 * 1024, 4} }, |
| 10917 | .block_erase = spi_block_erase_d8, |
| 10918 | }, { |
| 10919 | .eraseblocks = { {128 * 1024, 1} }, |
| 10920 | .block_erase = spi_block_erase_c7, |
| 10921 | } |
| 10922 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10923 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10924 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10925 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10926 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10927 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10928 | }, |
| 10929 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10930 | { |
| 10931 | .vendor = "PMC", |
| 10932 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10933 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10934 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10935 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10936 | .total_size = 256, |
| 10937 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10938 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10939 | .tested = TEST_UNTESTED, |
| 10940 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10941 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10942 | .block_erasers = |
| 10943 | { |
| 10944 | { |
| 10945 | .eraseblocks = { {4 * 1024, 64} }, |
| 10946 | .block_erase = spi_block_erase_d7, |
| 10947 | }, { |
| 10948 | .eraseblocks = { {64 * 1024, 4} }, |
| 10949 | .block_erase = spi_block_erase_d8, |
| 10950 | }, { |
| 10951 | .eraseblocks = { {256 * 1024, 1} }, |
| 10952 | .block_erase = spi_block_erase_c7, |
| 10953 | } |
| 10954 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10955 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10956 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10957 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10958 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10959 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10960 | }, |
| 10961 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10962 | { |
| 10963 | .vendor = "PMC", |
| 10964 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10965 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10966 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10967 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10968 | .total_size = 512, |
| 10969 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10970 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 10971 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10972 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10973 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10974 | .block_erasers = |
| 10975 | { |
| 10976 | { |
| 10977 | .eraseblocks = { {4 * 1024, 128} }, |
| 10978 | .block_erase = spi_block_erase_d7, |
| 10979 | }, { |
| 10980 | .eraseblocks = { {64 * 1024, 8} }, |
| 10981 | .block_erase = spi_block_erase_d8, |
| 10982 | }, { |
| 10983 | .eraseblocks = { {512 * 1024, 1} }, |
| 10984 | .block_erase = spi_block_erase_c7, |
| 10985 | } |
| 10986 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10987 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10988 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10989 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10990 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10991 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10992 | }, |
| 10993 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10994 | { |
| 10995 | .vendor = "PMC", |
| 10996 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10997 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10998 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10999 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11000 | .total_size = 1024, |
| 11001 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11002 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11003 | .tested = TEST_UNTESTED, |
| 11004 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11005 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11006 | .block_erasers = |
| 11007 | { |
| 11008 | { |
| 11009 | .eraseblocks = { {4 * 1024, 256} }, |
| 11010 | .block_erase = spi_block_erase_d7, |
| 11011 | }, { |
| 11012 | .eraseblocks = { {4 * 1024, 256} }, |
| 11013 | .block_erase = spi_block_erase_20, |
| 11014 | }, { |
| 11015 | .eraseblocks = { {64 * 1024, 16} }, |
| 11016 | .block_erase = spi_block_erase_d8, |
| 11017 | }, { |
| 11018 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11019 | .block_erase = spi_block_erase_60, |
| 11020 | }, { |
| 11021 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11022 | .block_erase = spi_block_erase_c7, |
| 11023 | } |
| 11024 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11025 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11026 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11027 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11028 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11029 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11030 | }, |
| 11031 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11032 | { |
| 11033 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11034 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11035 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11036 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11037 | .model_id = PMC_PM25LV016B, |
| 11038 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11039 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11040 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11041 | .tested = TEST_UNTESTED, |
| 11042 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11043 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11044 | .block_erasers = |
| 11045 | { |
| 11046 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11047 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11048 | .block_erase = spi_block_erase_d7, |
| 11049 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11050 | .eraseblocks = { {4 * 1024, 512} }, |
| 11051 | .block_erase = spi_block_erase_20, |
| 11052 | }, { |
| 11053 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11054 | .block_erase = spi_block_erase_d8, |
| 11055 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11056 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11057 | .block_erase = spi_block_erase_60, |
| 11058 | }, { |
| 11059 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11060 | .block_erase = spi_block_erase_c7, |
| 11061 | } |
| 11062 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11063 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11064 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11065 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11066 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11067 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11068 | }, |
| 11069 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11070 | { |
| 11071 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11072 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11073 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11074 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11075 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11076 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11077 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11078 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11079 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11080 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11081 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11082 | .block_erasers = |
| 11083 | { |
| 11084 | { |
| 11085 | .eraseblocks = { |
| 11086 | {128 * 1024, 1}, |
| 11087 | {96 * 1024, 1}, |
| 11088 | {8 * 1024, 2}, |
| 11089 | {16 * 1024, 1}, |
| 11090 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11091 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11092 | }, { |
| 11093 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11094 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11095 | }, |
| 11096 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11097 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11098 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11099 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11100 | }, |
| 11101 | |
| 11102 | { |
| 11103 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11104 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11105 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11106 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11107 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11108 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11109 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11110 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11111 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11112 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11113 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11114 | .block_erasers = |
| 11115 | { |
| 11116 | { |
| 11117 | .eraseblocks = { |
| 11118 | {16 * 1024, 1}, |
| 11119 | {8 * 1024, 2}, |
| 11120 | {96 * 1024, 1}, |
| 11121 | {128 * 1024, 1}, |
| 11122 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11123 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11124 | }, { |
| 11125 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11126 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11127 | }, |
| 11128 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11129 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11130 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11131 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11132 | }, |
| 11133 | |
| 11134 | { |
| 11135 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11136 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11137 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11138 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11139 | .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] | 11140 | .total_size = 128, |
| 11141 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11142 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11143 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11144 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11145 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11146 | .block_erasers = |
| 11147 | { |
| 11148 | { |
| 11149 | .eraseblocks = { {4 * 1024, 32} }, |
| 11150 | .block_erase = erase_sector_jedec, |
| 11151 | }, { |
| 11152 | .eraseblocks = { {64 * 1024, 2} }, |
| 11153 | .block_erase = erase_block_jedec, |
| 11154 | }, { |
| 11155 | .eraseblocks = { {128 * 1024, 1} }, |
| 11156 | .block_erase = erase_chip_block_jedec, |
| 11157 | } |
| 11158 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11159 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11160 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11161 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11162 | }, |
| 11163 | |
| 11164 | { |
| 11165 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11166 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11167 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11168 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11169 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11170 | .total_size = 256, |
| 11171 | .page_size = 4096, |
| 11172 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11173 | .tested = TEST_UNTESTED, |
| 11174 | .probe = probe_jedec, |
| 11175 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11176 | .block_erasers = |
| 11177 | { |
| 11178 | { |
| 11179 | .eraseblocks = { {4 * 1024, 64} }, |
| 11180 | .block_erase = erase_sector_jedec, |
| 11181 | }, { |
| 11182 | .eraseblocks = { {64 * 1024, 4} }, |
| 11183 | .block_erase = erase_block_jedec, |
| 11184 | }, { |
| 11185 | .eraseblocks = { {256 * 1024, 1} }, |
| 11186 | .block_erase = erase_chip_block_jedec, |
| 11187 | } |
| 11188 | }, |
| 11189 | .write = write_jedec_1, |
| 11190 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11191 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11192 | }, |
| 11193 | |
| 11194 | { |
| 11195 | .vendor = "PMC", |
| 11196 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11197 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11198 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11199 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11200 | .total_size = 512, |
| 11201 | .page_size = 4096, |
| 11202 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11203 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11204 | .probe = probe_jedec, |
| 11205 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11206 | .block_erasers = |
| 11207 | { |
| 11208 | { |
| 11209 | .eraseblocks = { {4 * 1024, 128} }, |
| 11210 | .block_erase = erase_sector_jedec, |
| 11211 | }, { |
| 11212 | .eraseblocks = { {64 * 1024, 8} }, |
| 11213 | .block_erase = erase_block_jedec, |
| 11214 | }, { |
| 11215 | .eraseblocks = { {512 * 1024, 1} }, |
| 11216 | .block_erase = erase_chip_block_jedec, |
| 11217 | } |
| 11218 | }, |
| 11219 | .write = write_jedec_1, |
| 11220 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11221 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11222 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 11223 | |
| 11224 | { |
| 11225 | .vendor = "PMC", |
| 11226 | .name = "Pm39LV512", |
| 11227 | .bustype = BUS_PARALLEL, |
| 11228 | .manufacture_id = PMC_ID_NOPREFIX, |
| 11229 | .model_id = PMC_PM39LV512, |
| 11230 | .total_size = 64, |
| 11231 | .page_size = 4096, |
| 11232 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11233 | .tested = TEST_OK_PREW, |
| 11234 | .probe = probe_jedec, |
| 11235 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11236 | .block_erasers = |
| 11237 | { |
| 11238 | { |
| 11239 | .eraseblocks = { {4 * 1024, 16} }, |
| 11240 | .block_erase = erase_sector_jedec, |
| 11241 | }, { |
| 11242 | .eraseblocks = { {64 * 1024, 1} }, |
| 11243 | .block_erase = erase_block_jedec, |
| 11244 | }, { |
| 11245 | .eraseblocks = { {64 * 1024, 1} }, |
| 11246 | .block_erase = erase_chip_block_jedec, |
| 11247 | } |
| 11248 | }, |
| 11249 | .write = write_jedec_1, |
| 11250 | .read = read_memmapped, |
| 11251 | .voltage = {2700, 3600}, |
| 11252 | }, |
| 11253 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11254 | { |
| 11255 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11256 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11257 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11258 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11259 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11260 | .total_size = 256, |
| 11261 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11262 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11263 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11264 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11265 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11266 | .block_erasers = |
| 11267 | { |
| 11268 | { |
| 11269 | .eraseblocks = { {4 * 1024, 64} }, |
| 11270 | .block_erase = erase_sector_jedec, |
| 11271 | }, { |
| 11272 | .eraseblocks = { {16 * 1024, 16} }, |
| 11273 | .block_erase = erase_block_jedec, |
| 11274 | }, { |
| 11275 | .eraseblocks = { {256 * 1024, 1} }, |
| 11276 | .block_erase = erase_chip_block_jedec, |
| 11277 | } |
| 11278 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11279 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 11280 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11281 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11282 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11283 | }, |
| 11284 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11285 | { |
| 11286 | .vendor = "PMC", |
| 11287 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11288 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11289 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11290 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11291 | .total_size = 512, |
| 11292 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11293 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 11294 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11295 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 11296 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11297 | .block_erasers = |
| 11298 | { |
| 11299 | { |
| 11300 | .eraseblocks = { {4 * 1024, 128} }, |
| 11301 | .block_erase = erase_sector_jedec, |
| 11302 | }, { |
| 11303 | .eraseblocks = { {64 * 1024, 8} }, |
| 11304 | .block_erase = erase_block_jedec, |
| 11305 | }, { |
| 11306 | .eraseblocks = { {512 * 1024, 1} }, |
| 11307 | .block_erase = erase_chip_block_jedec, |
| 11308 | } |
| 11309 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11310 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 11311 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11312 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11313 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11314 | }, |
| 11315 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11316 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11317 | .vendor = "Sanyo", |
Stefan Tauner | a60d408 | 2014-06-04 16:17:03 +0000 | [diff] [blame] | 11318 | .name = "LE25FW106", |
| 11319 | .bustype = BUS_SPI, |
| 11320 | .manufacture_id = SANYO_ID, |
| 11321 | .model_id = SANYO_LE25FW106, |
| 11322 | .total_size = 128, |
| 11323 | .page_size = 256, |
| 11324 | .feature_bits = FEATURE_WRSR_WREN, |
| 11325 | .tested = TEST_OK_PREW, |
| 11326 | .probe = probe_spi_res2, |
| 11327 | .probe_timing = TIMING_ZERO, |
| 11328 | .block_erasers = { |
| 11329 | { |
| 11330 | .eraseblocks = { {2 * 1024, 64} }, |
| 11331 | .block_erase = spi_block_erase_d7, |
| 11332 | }, { |
| 11333 | .eraseblocks = { {32 * 1024, 4} }, |
| 11334 | .block_erase = spi_block_erase_d8, |
| 11335 | }, { |
| 11336 | .eraseblocks = { {128 * 1024, 1} }, |
| 11337 | .block_erase = spi_block_erase_c7, |
| 11338 | } |
| 11339 | }, |
| 11340 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 11341 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 11342 | .write = spi_chip_write_256, |
| 11343 | .read = spi_chip_read, |
| 11344 | .voltage = {2700, 3600}, |
| 11345 | }, |
| 11346 | |
| 11347 | { |
| 11348 | .vendor = "Sanyo", |
Stefan Tauner | 33491b8 | 2014-05-18 21:36:04 +0000 | [diff] [blame] | 11349 | .name = "LE25FW406A", |
| 11350 | .bustype = BUS_SPI, |
| 11351 | .manufacture_id = SANYO_ID, |
| 11352 | .model_id = SANYO_LE25FW406A, |
| 11353 | .total_size = 512, |
| 11354 | .page_size = 256, |
| 11355 | .feature_bits = FEATURE_WRSR_WREN, |
| 11356 | .tested = TEST_OK_PREW, |
| 11357 | .probe = probe_spi_res2, |
| 11358 | .probe_timing = TIMING_ZERO, |
| 11359 | .block_erasers = { |
| 11360 | { |
| 11361 | .eraseblocks = { {4 * 1024, 128} }, |
| 11362 | .block_erase = spi_block_erase_d7, |
| 11363 | }, { |
| 11364 | .eraseblocks = { {64 * 1024, 8} }, |
| 11365 | .block_erase = spi_block_erase_d8, |
| 11366 | }, { |
| 11367 | .eraseblocks = { {512 * 1024, 1} }, |
| 11368 | .block_erase = spi_block_erase_c7, |
| 11369 | } |
| 11370 | }, |
| 11371 | .printlock = spi_prettyprint_status_register_plain, |
| 11372 | .unlock = spi_disable_blockprotect, |
| 11373 | .write = spi_chip_write_256, |
| 11374 | .read = spi_chip_read, |
| 11375 | .voltage = {2700, 3600}, |
| 11376 | }, |
| 11377 | |
| 11378 | { |
| 11379 | .vendor = "Sanyo", |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11380 | .name = "LE25FU406B", |
| 11381 | .bustype = BUS_SPI, |
| 11382 | .manufacture_id = SANYO_ID, |
| 11383 | .model_id = SANYO_LE25FU406B, |
| 11384 | .total_size = 512, |
| 11385 | .page_size = 256, |
| 11386 | .feature_bits = FEATURE_WRSR_WREN, |
| 11387 | .tested = TEST_OK_PREW, |
| 11388 | .probe = probe_spi_res2, |
| 11389 | .probe_timing = TIMING_ZERO, |
| 11390 | .block_erasers = { |
| 11391 | { |
| 11392 | .eraseblocks = { {4 * 1024, 128} }, |
| 11393 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11394 | }, { |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11395 | .eraseblocks = { {64 * 1024, 8} }, |
| 11396 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11397 | }, { |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11398 | .eraseblocks = { {512 * 1024, 1} }, |
| 11399 | .block_erase = spi_block_erase_c7, |
| 11400 | } |
| 11401 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11402 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11403 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11404 | .write = spi_chip_write_256, |
| 11405 | .read = spi_chip_read, |
| 11406 | .voltage = {2300, 3600}, |
| 11407 | }, |
| 11408 | |
| 11409 | { |
| 11410 | .vendor = "Sanyo", |
Stefan Tauner | 2f055df | 2015-12-25 22:13:15 +0000 | [diff] [blame] | 11411 | .name = "LE25FU406C/LE25U40CMC", |
| 11412 | .bustype = BUS_SPI, |
| 11413 | .manufacture_id = SANYO_ID, |
| 11414 | .model_id = SANYO_LE25FU406C, |
| 11415 | .total_size = 512, |
| 11416 | .page_size = 256, |
| 11417 | .feature_bits = FEATURE_WRSR_WREN, |
| 11418 | .tested = TEST_OK_PR, |
| 11419 | .probe = probe_spi_rdid, |
| 11420 | .probe_timing = TIMING_ZERO, |
| 11421 | .block_erasers = { |
| 11422 | { |
| 11423 | .eraseblocks = { {4 * 1024, 128} }, |
| 11424 | .block_erase = spi_block_erase_20, |
| 11425 | }, { |
| 11426 | .eraseblocks = { {4 * 1024, 128} }, |
| 11427 | .block_erase = spi_block_erase_d7, |
| 11428 | }, { |
| 11429 | .eraseblocks = { {64 * 1024, 8} }, |
| 11430 | .block_erase = spi_block_erase_d8, |
| 11431 | }, { |
| 11432 | .eraseblocks = { {512 * 1024, 1} }, |
| 11433 | .block_erase = spi_block_erase_60, |
| 11434 | }, { |
| 11435 | .eraseblocks = { {512 * 1024, 1} }, |
| 11436 | .block_erase = spi_block_erase_c7, |
| 11437 | } |
| 11438 | }, |
| 11439 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11440 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11441 | .write = spi_chip_write_256, |
| 11442 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 11443 | .voltage = {2300, 3600}, |
| 11444 | }, |
| 11445 | |
| 11446 | { |
| 11447 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11448 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11449 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11450 | .manufacture_id = SANYO_ID, |
| 11451 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11452 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11453 | .page_size = 256, |
| 11454 | .tested = TEST_UNTESTED, |
| 11455 | .probe = probe_spi_rdid, |
| 11456 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11457 | .block_erasers = |
| 11458 | { |
| 11459 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11460 | .eraseblocks = { {256, 1024} }, |
| 11461 | .block_erase = spi_block_erase_db, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11462 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11463 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11464 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11465 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11466 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11467 | .block_erase = spi_block_erase_c7, |
| 11468 | } |
| 11469 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11470 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11471 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11472 | .write = spi_chip_write_256, |
| 11473 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11474 | .voltage = {2700, 3600}, |
| 11475 | }, |
| 11476 | |
| 11477 | { |
| 11478 | .vendor = "Sanyo", |
| 11479 | .name = "LE25FW403A", |
| 11480 | .bustype = BUS_SPI, |
| 11481 | .manufacture_id = SANYO_ID, |
| 11482 | .model_id = SANYO_LE25FW403A, |
| 11483 | .total_size = 512, |
| 11484 | .page_size = 256, |
| 11485 | .tested = TEST_UNTESTED, |
| 11486 | .probe = probe_spi_rdid, |
| 11487 | .probe_timing = TIMING_ZERO, |
| 11488 | .block_erasers = { |
| 11489 | { |
| 11490 | .eraseblocks = { {256, 2 * 1024} }, |
| 11491 | .block_erase = spi_block_erase_db, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11492 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11493 | .eraseblocks = { {64 * 1024, 8} }, |
| 11494 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11495 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11496 | .eraseblocks = { {512 * 1024, 1} }, |
| 11497 | .block_erase = spi_block_erase_c7, |
| 11498 | } |
| 11499 | }, |
| 11500 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11501 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11502 | .write = spi_chip_write_256, |
| 11503 | .read = spi_chip_read, |
| 11504 | .voltage = {2700, 3600}, |
| 11505 | }, |
| 11506 | |
| 11507 | { |
| 11508 | .vendor = "Sanyo", |
| 11509 | .name = "LE25FW418A", |
| 11510 | .bustype = BUS_SPI, |
| 11511 | .manufacture_id = SANYO_ID, |
| 11512 | .model_id = SANYO_LE25FW418A, |
| 11513 | .total_size = 512, |
| 11514 | .page_size = 256, |
| 11515 | .feature_bits = FEATURE_WRSR_WREN, |
| 11516 | .tested = TEST_UNTESTED, |
| 11517 | .probe = probe_spi_res2, |
| 11518 | .probe_timing = TIMING_ZERO, |
| 11519 | .block_erasers = { |
| 11520 | { |
| 11521 | .eraseblocks = { {4 * 1024, 128} }, |
| 11522 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11523 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11524 | .eraseblocks = { {64 * 1024, 8} }, |
| 11525 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11526 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11527 | .eraseblocks = { {512 * 1024, 1} }, |
| 11528 | .block_erase = spi_block_erase_c7, |
| 11529 | } |
| 11530 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11531 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11532 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11533 | .write = spi_chip_write_256, |
| 11534 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 11535 | .voltage = {2700, 3600}, |
| 11536 | }, |
| 11537 | |
| 11538 | { |
| 11539 | .vendor = "Sanyo", |
| 11540 | .name = "LE25FW806", |
| 11541 | .bustype = BUS_SPI, |
| 11542 | .manufacture_id = SANYO_ID, |
| 11543 | .model_id = SANYO_LE25FW806, |
| 11544 | .total_size = 1024, |
| 11545 | .page_size = 256, |
| 11546 | .feature_bits = FEATURE_WRSR_WREN, |
| 11547 | .tested = TEST_UNTESTED, |
| 11548 | .probe = probe_spi_res2, |
| 11549 | .probe_timing = TIMING_ZERO, |
| 11550 | .block_erasers = { |
| 11551 | { |
| 11552 | .eraseblocks = { {4 * 1024, 256} }, |
| 11553 | .block_erase = spi_block_erase_20, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11554 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11555 | .eraseblocks = { {4 * 1024, 256} }, |
| 11556 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11557 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11558 | .eraseblocks = { {64 * 1024, 16} }, |
| 11559 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11560 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11561 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11562 | .block_erase = spi_block_erase_c7, |
| 11563 | } |
| 11564 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11565 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11566 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11567 | .write = spi_chip_write_256, |
| 11568 | .read = spi_chip_read, |
| 11569 | .voltage = {2700, 3600}, |
| 11570 | }, |
| 11571 | |
| 11572 | { |
| 11573 | .vendor = "Sanyo", |
| 11574 | .name = "LE25FW808", |
| 11575 | .bustype = BUS_SPI, |
| 11576 | .manufacture_id = SANYO_ID, |
| 11577 | .model_id = SANYO_LE25FW808, |
| 11578 | .total_size = 1024, |
| 11579 | .page_size = 256, |
| 11580 | .feature_bits = FEATURE_WRSR_WREN, |
| 11581 | .tested = TEST_UNTESTED, |
| 11582 | .probe = probe_spi_res2, |
| 11583 | .probe_timing = TIMING_ZERO, |
| 11584 | .block_erasers = { |
| 11585 | { |
| 11586 | .eraseblocks = { {8 * 1024, 128} }, |
| 11587 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11588 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11589 | .eraseblocks = { {64 * 1024, 16} }, |
| 11590 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11591 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11592 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11593 | .block_erase = spi_block_erase_c7, |
| 11594 | } |
| 11595 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11596 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11597 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11598 | .write = spi_chip_write_256, |
| 11599 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 11600 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11601 | }, |
| 11602 | |
| 11603 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11604 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 11605 | .name = "LH28F008BJT-BTLZ1", |
| 11606 | .bustype = BUS_PARALLEL, |
| 11607 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 11608 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 11609 | .total_size = 1024, |
| 11610 | .page_size = 64 * 1024, |
| 11611 | .tested = TEST_OK_PREW, |
| 11612 | .probe = probe_82802ab, |
| 11613 | .probe_timing = TIMING_ZERO, |
| 11614 | .block_erasers = |
| 11615 | { |
| 11616 | { |
| 11617 | .eraseblocks = { |
| 11618 | {8 * 1024, 8}, |
| 11619 | {64 * 1024, 15} |
| 11620 | }, |
| 11621 | .block_erase = erase_block_82802ab, |
| 11622 | }, { |
| 11623 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11624 | .block_erase = erase_sector_49lfxxxc, |
| 11625 | } |
| 11626 | }, |
| 11627 | .unlock = unlock_lh28f008bjt, |
| 11628 | .write = write_82802ab, |
| 11629 | .read = read_memmapped, |
| 11630 | .voltage = {2700, 3600}, |
| 11631 | }, |
| 11632 | |
| 11633 | { |
| 11634 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11635 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11636 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11637 | .manufacture_id = SHARP_ID, |
| 11638 | .model_id = SHARP_LHF00L04, |
| 11639 | .total_size = 1024, |
| 11640 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11641 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11642 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11643 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11644 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11645 | .block_erasers = |
| 11646 | { |
| 11647 | { |
| 11648 | .eraseblocks = { |
| 11649 | {64 * 1024, 15}, |
| 11650 | {8 * 1024, 8} |
| 11651 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11652 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11653 | }, { |
| 11654 | .eraseblocks = { |
| 11655 | {1024 * 1024, 1} |
| 11656 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11657 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11658 | }, |
| 11659 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11660 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11661 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11662 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11663 | .voltage = {3000, 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 = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11668 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11669 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11670 | .manufacture_id = SPANSION_ID, |
| 11671 | .model_id = SPANSION_S25FL004A, |
| 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, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11675 | .tested = TEST_UNTESTED, |
| 11676 | .probe = probe_spi_rdid, |
| 11677 | .probe_timing = TIMING_ZERO, |
| 11678 | .block_erasers = |
| 11679 | { |
| 11680 | { |
| 11681 | .eraseblocks = { {64 * 1024, 8} }, |
| 11682 | .block_erase = spi_block_erase_d8, |
| 11683 | }, { |
| 11684 | .eraseblocks = { {512 * 1024, 1} }, |
| 11685 | .block_erase = spi_block_erase_c7, |
| 11686 | } |
| 11687 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11688 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11689 | .unlock = spi_disable_blockprotect, |
| 11690 | .write = spi_chip_write_256, |
| 11691 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11692 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11693 | }, |
| 11694 | |
| 11695 | { |
| 11696 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11697 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11698 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11699 | .manufacture_id = SPANSION_ID, |
| 11700 | .model_id = SPANSION_S25FL008A, |
| 11701 | .total_size = 1024, |
| 11702 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11703 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11704 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11705 | .probe = probe_spi_rdid, |
| 11706 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11707 | .block_erasers = |
| 11708 | { |
| 11709 | { |
| 11710 | .eraseblocks = { {64 * 1024, 16} }, |
| 11711 | .block_erase = spi_block_erase_d8, |
| 11712 | }, { |
| 11713 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11714 | .block_erase = spi_block_erase_c7, |
| 11715 | } |
| 11716 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11717 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11718 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11719 | .write = spi_chip_write_256, |
| 11720 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11721 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11722 | }, |
| 11723 | |
| 11724 | { |
| 11725 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11726 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11727 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11728 | .manufacture_id = SPANSION_ID, |
| 11729 | .model_id = SPANSION_S25FL016A, |
| 11730 | .total_size = 2048, |
| 11731 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11732 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11733 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11734 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11735 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11736 | .block_erasers = |
| 11737 | { |
| 11738 | { |
| 11739 | .eraseblocks = { {64 * 1024, 32} }, |
| 11740 | .block_erase = spi_block_erase_d8, |
| 11741 | }, { |
| 11742 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11743 | .block_erase = spi_block_erase_c7, |
| 11744 | } |
| 11745 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11746 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11747 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11748 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11749 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11750 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11751 | }, |
| 11752 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11753 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11754 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11755 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11756 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11757 | .manufacture_id = SPANSION_ID, |
| 11758 | .model_id = SPANSION_S25FL032A, |
| 11759 | .total_size = 4096, |
| 11760 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11761 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11762 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11763 | .probe = probe_spi_rdid, |
| 11764 | .probe_timing = TIMING_ZERO, |
| 11765 | .block_erasers = |
| 11766 | { |
| 11767 | { |
| 11768 | .eraseblocks = { {64 * 1024, 64} }, |
| 11769 | .block_erase = spi_block_erase_d8, |
| 11770 | }, { |
| 11771 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11772 | .block_erase = spi_block_erase_c7, |
| 11773 | } |
| 11774 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11775 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11776 | .unlock = spi_disable_blockprotect, |
| 11777 | .write = spi_chip_write_256, |
| 11778 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11779 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11780 | }, |
| 11781 | |
| 11782 | { |
| 11783 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11784 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11785 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11786 | .manufacture_id = SPANSION_ID, |
| 11787 | .model_id = SPANSION_S25FL064A, |
| 11788 | .total_size = 8192, |
| 11789 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11790 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11791 | .tested = TEST_OK_PREW, |
| 11792 | .probe = probe_spi_rdid, |
| 11793 | .probe_timing = TIMING_ZERO, |
| 11794 | .block_erasers = |
| 11795 | { |
| 11796 | { |
| 11797 | .eraseblocks = { {64 * 1024, 128} }, |
| 11798 | .block_erase = spi_block_erase_d8, |
| 11799 | }, { |
| 11800 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11801 | .block_erase = spi_block_erase_c7, |
| 11802 | } |
| 11803 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11804 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11805 | .unlock = spi_disable_blockprotect, |
| 11806 | .write = spi_chip_write_256, |
| 11807 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11808 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11809 | }, |
| 11810 | |
| 11811 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11812 | .vendor = "Spansion", |
| 11813 | .name = "S25FL204K", |
| 11814 | .bustype = BUS_SPI, |
| 11815 | .manufacture_id = SPANSION_ID, |
| 11816 | .model_id = SPANSION_S25FL204, |
| 11817 | .total_size = 512, |
| 11818 | .page_size = 256, |
| 11819 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11820 | .tested = TEST_OK_PR, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11821 | .probe = probe_spi_rdid, |
| 11822 | .probe_timing = TIMING_ZERO, |
| 11823 | .block_erasers = { |
| 11824 | { |
| 11825 | .eraseblocks = { {4 * 1024, 128} }, |
| 11826 | .block_erase = spi_block_erase_20, |
| 11827 | }, { |
| 11828 | .eraseblocks = { {64 * 1024, 8} }, |
| 11829 | .block_erase = spi_block_erase_d8, |
| 11830 | }, { |
| 11831 | .eraseblocks = { { 512 * 1024, 1} }, |
| 11832 | .block_erase = spi_block_erase_60, |
| 11833 | }, { |
| 11834 | .eraseblocks = { { 512 * 1024, 1} }, |
| 11835 | .block_erase = spi_block_erase_c7, |
| 11836 | } |
| 11837 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11838 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11839 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11840 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11841 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11842 | .voltage = {2700, 3600}, |
| 11843 | }, |
| 11844 | |
| 11845 | { |
| 11846 | .vendor = "Spansion", |
| 11847 | .name = "S25FL208K", |
| 11848 | .bustype = BUS_SPI, |
| 11849 | .manufacture_id = SPANSION_ID, |
| 11850 | .model_id = SPANSION_S25FL208, |
| 11851 | .total_size = 1024, |
| 11852 | .page_size = 256, |
| 11853 | .feature_bits = FEATURE_WRSR_WREN, |
| 11854 | .tested = TEST_UNTESTED, |
| 11855 | .probe = probe_spi_rdid, |
| 11856 | .probe_timing = TIMING_ZERO, |
| 11857 | .block_erasers = { |
| 11858 | { |
| 11859 | .eraseblocks = { {4 * 1024, 256} }, |
| 11860 | .block_erase = spi_block_erase_20, |
| 11861 | }, { |
| 11862 | .eraseblocks = { {64 * 1024, 16} }, |
| 11863 | .block_erase = spi_block_erase_d8, |
| 11864 | }, { |
| 11865 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 11866 | .block_erase = spi_block_erase_60, |
| 11867 | }, { |
| 11868 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 11869 | .block_erase = spi_block_erase_c7, |
| 11870 | } |
| 11871 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11872 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11873 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11874 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11875 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11876 | .voltage = {2700, 3600}, |
| 11877 | }, |
| 11878 | |
| 11879 | { |
| 11880 | .vendor = "Spansion", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11881 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11882 | .bustype = BUS_SPI, |
| 11883 | .manufacture_id = SPANSION_ID, |
| 11884 | .model_id = SPANSION_S25FL216, |
| 11885 | .total_size = 2048, |
| 11886 | .page_size = 256, |
| 11887 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 11888 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11889 | .tested = TEST_UNTESTED, |
| 11890 | .probe = probe_spi_rdid, |
| 11891 | .probe_timing = TIMING_ZERO, |
| 11892 | .block_erasers = { |
| 11893 | { |
| 11894 | .eraseblocks = { {4 * 1024, 512} }, |
| 11895 | .block_erase = spi_block_erase_20, |
| 11896 | }, { |
| 11897 | .eraseblocks = { {64 * 1024, 32} }, |
| 11898 | .block_erase = spi_block_erase_d8, |
| 11899 | }, { |
| 11900 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 11901 | .block_erase = spi_block_erase_60, |
| 11902 | }, { |
| 11903 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 11904 | .block_erase = spi_block_erase_c7, |
| 11905 | } |
| 11906 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11907 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11908 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11909 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11910 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11911 | .voltage = {2700, 3600}, |
| 11912 | }, |
| 11913 | |
| 11914 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 11915 | .vendor = "Spansion", |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11916 | .name = "S25FL132K", |
| 11917 | .bustype = BUS_SPI, |
| 11918 | .manufacture_id = SPANSION_ID, |
| 11919 | .model_id = SPANSION_S25FL132K, |
| 11920 | .total_size = 4096, |
| 11921 | .page_size = 256, |
| 11922 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 11923 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11924 | .tested = TEST_UNTESTED, |
| 11925 | .probe = probe_spi_rdid, |
| 11926 | .probe_timing = TIMING_ZERO, |
| 11927 | .block_erasers = { |
| 11928 | { |
| 11929 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11930 | .block_erase = spi_block_erase_20, |
| 11931 | }, { |
| 11932 | .eraseblocks = { {64 * 1024, 64} }, |
| 11933 | .block_erase = spi_block_erase_d8, |
| 11934 | }, { |
| 11935 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 11936 | .block_erase = spi_block_erase_60, |
| 11937 | }, { |
| 11938 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 11939 | .block_erase = spi_block_erase_c7, |
| 11940 | } |
| 11941 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11942 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11943 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11944 | .write = spi_chip_write_256, |
| 11945 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11946 | .voltage = {2700, 3600}, |
| 11947 | }, |
| 11948 | |
| 11949 | { |
| 11950 | .vendor = "Spansion", |
| 11951 | .name = "S25FL164K", |
| 11952 | .bustype = BUS_SPI, |
| 11953 | .manufacture_id = SPANSION_ID, |
| 11954 | .model_id = SPANSION_S25FL164K, |
| 11955 | .total_size = 8192, |
| 11956 | .page_size = 256, |
| 11957 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 11958 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11959 | .tested = TEST_OK_PREW, |
| 11960 | .probe = probe_spi_rdid, |
| 11961 | .probe_timing = TIMING_ZERO, |
| 11962 | .block_erasers = { |
| 11963 | { |
| 11964 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11965 | .block_erase = spi_block_erase_20, |
| 11966 | }, { |
| 11967 | .eraseblocks = { {64 * 1024, 128} }, |
| 11968 | .block_erase = spi_block_erase_d8, |
| 11969 | }, { |
| 11970 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 11971 | .block_erase = spi_block_erase_60, |
| 11972 | }, { |
| 11973 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 11974 | .block_erase = spi_block_erase_c7, |
| 11975 | } |
| 11976 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11977 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11978 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11979 | .write = spi_chip_write_256, |
| 11980 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11981 | .voltage = {2700, 3600}, |
| 11982 | }, |
| 11983 | |
| 11984 | { |
| 11985 | .vendor = "Spansion", |
Jernej Å krabec | e814a9b | 2014-12-12 00:32:03 +0000 | [diff] [blame] | 11986 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 11987 | .bustype = BUS_SPI, |
| 11988 | .manufacture_id = SPANSION_ID, |
| 11989 | .model_id = SPANSION_S25FL128, |
| 11990 | .total_size = 16384, |
| 11991 | .page_size = 256, |
| 11992 | /* supports 4B addressing */ |
| 11993 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 11994 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11995 | .tested = TEST_OK_PREW, |
| 11996 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 11997 | .probe = probe_spi_rdid, |
| 11998 | .probe_timing = TIMING_ZERO, |
| 11999 | .block_erasers = { |
| 12000 | { |
| 12001 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 12002 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 12003 | * space. Trying to access an address outside these 4kB blocks does have no |
| 12004 | * effect on the memory contents, e.g. |
| 12005 | .eraseblocks = { |
| 12006 | {4 * 1024, 32}, |
| 12007 | {64 * 1024, 254} // inaccessible |
| 12008 | }, |
| 12009 | .block_erase = spi_block_erase_20, |
| 12010 | }, { */ |
| 12011 | .eraseblocks = { { 64 * 1024, 256} }, |
| 12012 | .block_erase = spi_block_erase_d8, |
| 12013 | }, { |
| 12014 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12015 | .block_erase = spi_block_erase_60, |
| 12016 | }, { |
| 12017 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12018 | .block_erase = spi_block_erase_c7, |
| 12019 | } |
| 12020 | }, |
| 12021 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12022 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 12023 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12024 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12025 | .voltage = {2700, 3600}, |
| 12026 | }, |
| 12027 | |
| 12028 | { |
| 12029 | .vendor = "Spansion", |
| 12030 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 12031 | .bustype = BUS_SPI, |
| 12032 | .manufacture_id = SPANSION_ID, |
| 12033 | .model_id = SPANSION_S25FL128, |
| 12034 | .total_size = 16384, |
| 12035 | .page_size = 512, |
| 12036 | /* supports 4B addressing */ |
| 12037 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12038 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12039 | .tested = TEST_UNTESTED, |
| 12040 | .probe = probe_spi_rdid, |
| 12041 | .probe_timing = TIMING_ZERO, |
| 12042 | .block_erasers = { |
| 12043 | { |
| 12044 | .eraseblocks = { {256 * 1024, 64} }, |
| 12045 | .block_erase = spi_block_erase_d8, |
| 12046 | }, { |
| 12047 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12048 | .block_erase = spi_block_erase_60, |
| 12049 | }, { |
| 12050 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12051 | .block_erase = spi_block_erase_c7, |
| 12052 | } |
| 12053 | }, |
| 12054 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12055 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 12056 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12057 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12058 | .voltage = {2700, 3600}, |
| 12059 | }, |
| 12060 | |
| 12061 | { |
| 12062 | .vendor = "Spansion", |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12063 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 12064 | .bustype = BUS_SPI, |
| 12065 | .manufacture_id = SPANSION_ID, |
| 12066 | .model_id = SPANSION_S25FL128, |
| 12067 | .total_size = 16384, |
| 12068 | .page_size = 256, |
| 12069 | .feature_bits = FEATURE_WRSR_WREN, |
| 12070 | .tested = TEST_UNTESTED, |
| 12071 | .probe = probe_spi_rdid, |
| 12072 | .probe_timing = TIMING_ZERO, |
| 12073 | .block_erasers = { |
| 12074 | { |
| 12075 | .eraseblocks = { {64 * 1024, 256} }, |
| 12076 | .block_erase = spi_block_erase_20, |
| 12077 | }, { |
| 12078 | .eraseblocks = { {64 * 1024, 256} }, |
| 12079 | .block_erase = spi_block_erase_d8, |
| 12080 | }, { |
| 12081 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12082 | .block_erase = spi_block_erase_60, |
| 12083 | }, { |
| 12084 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12085 | .block_erase = spi_block_erase_c7, |
| 12086 | } |
| 12087 | }, |
| 12088 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 12089 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12090 | .write = spi_chip_write_256, |
| 12091 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12092 | .voltage = {2700, 3600}, |
| 12093 | }, |
| 12094 | |
| 12095 | { |
| 12096 | .vendor = "Spansion", |
| 12097 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 12098 | .bustype = BUS_SPI, |
| 12099 | .manufacture_id = SPANSION_ID, |
| 12100 | .model_id = SPANSION_S25FL128, |
| 12101 | .total_size = 16384, |
| 12102 | .page_size = 256, |
| 12103 | .feature_bits = FEATURE_WRSR_WREN, |
| 12104 | .tested = TEST_UNTESTED, |
| 12105 | .probe = probe_spi_rdid, |
| 12106 | .probe_timing = TIMING_ZERO, |
| 12107 | .block_erasers = { |
| 12108 | { |
| 12109 | .eraseblocks = { {256 * 1024, 64} }, |
| 12110 | .block_erase = spi_block_erase_d8, |
| 12111 | }, { |
| 12112 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12113 | .block_erase = spi_block_erase_c7, |
| 12114 | } |
| 12115 | }, |
| 12116 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12117 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12118 | .write = spi_chip_write_256, |
| 12119 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12120 | .voltage = {2700, 3600}, |
| 12121 | }, |
| 12122 | |
| 12123 | { |
| 12124 | .vendor = "Spansion", |
| 12125 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12126 | .bustype = BUS_SPI, |
| 12127 | .manufacture_id = SPANSION_ID, |
| 12128 | .model_id = SPANSION_S25FL128, |
| 12129 | .total_size = 16384, |
| 12130 | .page_size = 256, |
| 12131 | /* supports 4B addressing */ |
| 12132 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12133 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 12134 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12135 | .probe = probe_spi_rdid, |
| 12136 | .probe_timing = TIMING_ZERO, |
| 12137 | .block_erasers = { |
| 12138 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12139 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 12140 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 12141 | * have no effect on the memory contents, but sets a flag in the SR. |
| 12142 | .eraseblocks = { |
| 12143 | {4 * 1024, 32}, |
| 12144 | {64 * 1024, 254} // inaccessible |
| 12145 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12146 | .block_erase = spi_block_erase_20, |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12147 | }, { */ |
| 12148 | .eraseblocks = { { 64 * 1024, 256} }, |
| 12149 | .block_erase = spi_block_erase_d8, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12150 | }, { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12151 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12152 | .block_erase = spi_block_erase_60, |
| 12153 | }, { |
| 12154 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12155 | .block_erase = spi_block_erase_c7, |
| 12156 | } |
| 12157 | }, |
| 12158 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 12159 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 12160 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12161 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12162 | .voltage = {2700, 3600}, |
| 12163 | }, |
| 12164 | |
| 12165 | { |
| 12166 | .vendor = "Spansion", |
| 12167 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 12168 | .bustype = BUS_SPI, |
| 12169 | .manufacture_id = SPANSION_ID, |
| 12170 | .model_id = SPANSION_S25FL128, |
| 12171 | .total_size = 16384, |
| 12172 | .page_size = 512, |
| 12173 | /* supports 4B addressing */ |
| 12174 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12175 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12176 | .tested = TEST_UNTESTED, |
| 12177 | .probe = probe_spi_rdid, |
| 12178 | .probe_timing = TIMING_ZERO, |
| 12179 | .block_erasers = { |
| 12180 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12181 | .eraseblocks = { {256 * 1024, 64} }, |
| 12182 | .block_erase = spi_block_erase_d8, |
| 12183 | }, { |
| 12184 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12185 | .block_erase = spi_block_erase_60, |
| 12186 | }, { |
| 12187 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12188 | .block_erase = spi_block_erase_c7, |
| 12189 | } |
| 12190 | }, |
| 12191 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 12192 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 12193 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12194 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12195 | .voltage = {2700, 3600}, |
| 12196 | }, |
| 12197 | |
| 12198 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12199 | .vendor = "Spansion", |
| 12200 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 12201 | .bustype = BUS_SPI, |
| 12202 | .manufacture_id = SPANSION_ID, |
| 12203 | .model_id = SPANSION_S25FL128, |
| 12204 | .total_size = 16384, |
| 12205 | .page_size = 256, |
| 12206 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 12207 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12208 | .tested = TEST_OK_PREW, |
| 12209 | .probe = probe_spi_rdid, |
| 12210 | .probe_timing = TIMING_ZERO, |
| 12211 | .block_erasers = { |
| 12212 | { |
| 12213 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 12214 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 12215 | * effect on the memory contents, but sets a flag in the SR. |
| 12216 | .eraseblocks = { |
| 12217 | {4 * 1024, 32}, |
| 12218 | {64 * 1024, 254} // inaccessible |
| 12219 | }, |
| 12220 | .block_erase = spi_block_erase_20, |
| 12221 | }, { */ |
| 12222 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 12223 | .eraseblocks = { |
| 12224 | {8 * 1024, 16}, |
| 12225 | {64 * 1024, 254} // inaccessible |
| 12226 | }, |
| 12227 | .block_erase = spi_block_erase_40, |
| 12228 | }, { */ |
| 12229 | .eraseblocks = { { 64 * 1024, 256} }, |
| 12230 | .block_erase = spi_block_erase_d8, |
| 12231 | }, { |
| 12232 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12233 | .block_erase = spi_block_erase_60, |
| 12234 | }, { |
| 12235 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12236 | .block_erase = spi_block_erase_c7, |
| 12237 | } |
| 12238 | }, |
| 12239 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 12240 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12241 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12242 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12243 | .voltage = {2700, 3600}, |
| 12244 | }, |
| 12245 | |
| 12246 | { |
| 12247 | .vendor = "Spansion", |
| 12248 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 12249 | .bustype = BUS_SPI, |
| 12250 | .manufacture_id = SPANSION_ID, |
| 12251 | .model_id = SPANSION_S25FL128, |
| 12252 | .total_size = 16384, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 12253 | .page_size = 256, |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12254 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 12255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12256 | .tested = TEST_UNTESTED, |
| 12257 | .probe = probe_spi_rdid, |
| 12258 | .probe_timing = TIMING_ZERO, |
| 12259 | .block_erasers = { |
| 12260 | { |
| 12261 | .eraseblocks = { {256 * 1024, 64} }, |
| 12262 | .block_erase = spi_block_erase_d8, |
| 12263 | }, { |
| 12264 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12265 | .block_erase = spi_block_erase_60, |
| 12266 | }, { |
| 12267 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12268 | .block_erase = spi_block_erase_c7, |
| 12269 | } |
| 12270 | }, |
| 12271 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 12272 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12273 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12274 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12275 | .voltage = {2700, 3600}, |
| 12276 | }, |
| 12277 | |
| 12278 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12279 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 12280 | .name = "SST25LF020A", |
| 12281 | .bustype = BUS_SPI, |
| 12282 | .manufacture_id = SST_ID, |
| 12283 | .model_id = SST_SST25VF020_REMS, |
| 12284 | .total_size = 256, |
| 12285 | .page_size = 256, |
| 12286 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12287 | .tested = TEST_OK_PREW, |
| 12288 | .probe = probe_spi_rems, |
| 12289 | .probe_timing = TIMING_ZERO, |
| 12290 | .block_erasers = |
| 12291 | { |
| 12292 | { |
| 12293 | .eraseblocks = { {4 * 1024, 64} }, |
| 12294 | .block_erase = spi_block_erase_20, |
| 12295 | }, { |
| 12296 | .eraseblocks = { {32 * 1024, 8} }, |
| 12297 | .block_erase = spi_block_erase_52, |
| 12298 | }, { |
| 12299 | .eraseblocks = { {256 * 1024, 1} }, |
| 12300 | .block_erase = spi_block_erase_60, |
| 12301 | }, |
| 12302 | }, |
| 12303 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12304 | .unlock = spi_disable_blockprotect, |
| 12305 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12306 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12307 | .voltage = {2700, 3600}, |
| 12308 | }, |
| 12309 | |
| 12310 | { |
| 12311 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12312 | .name = "SST25LF040A", |
| 12313 | .bustype = BUS_SPI, |
| 12314 | .manufacture_id = SST_ID, |
| 12315 | .model_id = SST_SST25VF040_REMS, |
| 12316 | .total_size = 512, |
| 12317 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12318 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 12319 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12320 | .probe = probe_spi_res2, |
| 12321 | .probe_timing = TIMING_ZERO, |
| 12322 | .block_erasers = |
| 12323 | { |
| 12324 | { |
| 12325 | .eraseblocks = { {4 * 1024, 128} }, |
| 12326 | .block_erase = spi_block_erase_20, |
| 12327 | }, { |
| 12328 | .eraseblocks = { {32 * 1024, 16} }, |
| 12329 | .block_erase = spi_block_erase_52, |
| 12330 | }, { |
| 12331 | .eraseblocks = { {512 * 1024, 1} }, |
| 12332 | .block_erase = spi_block_erase_60, |
| 12333 | }, |
| 12334 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12335 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12336 | .unlock = spi_disable_blockprotect, |
| 12337 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12338 | .read = spi_chip_read, |
| 12339 | .voltage = {3000, 3600}, |
| 12340 | }, |
| 12341 | |
| 12342 | { |
| 12343 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12344 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12345 | .bustype = BUS_SPI, |
| 12346 | .manufacture_id = SST_ID, |
| 12347 | .model_id = SST_SST25VF080_REMS, |
| 12348 | .total_size = 1024, |
| 12349 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12350 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12351 | .tested = TEST_UNTESTED, |
| 12352 | .probe = probe_spi_res2, |
| 12353 | .probe_timing = TIMING_ZERO, |
| 12354 | .block_erasers = |
| 12355 | { |
| 12356 | { |
| 12357 | .eraseblocks = { {4 * 1024, 256} }, |
| 12358 | .block_erase = spi_block_erase_20, |
| 12359 | }, { |
| 12360 | .eraseblocks = { {32 * 1024, 32} }, |
| 12361 | .block_erase = spi_block_erase_52, |
| 12362 | }, { |
| 12363 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12364 | .block_erase = spi_block_erase_60, |
| 12365 | }, |
| 12366 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12367 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12368 | .unlock = spi_disable_blockprotect, |
| 12369 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12370 | .read = spi_chip_read, |
| 12371 | .voltage = {3000, 3600}, |
| 12372 | }, |
| 12373 | |
| 12374 | { |
| 12375 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12376 | .name = "SST25VF512(A)", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12377 | .bustype = BUS_SPI, |
| 12378 | .manufacture_id = SST_ID, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12379 | .model_id = SST_SST25VF512_REMS, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12380 | .total_size = 64, |
| 12381 | .page_size = 256, |
| 12382 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12383 | .tested = TEST_OK_PREW, |
| 12384 | .probe = probe_spi_rems, |
| 12385 | .probe_timing = TIMING_ZERO, |
| 12386 | .block_erasers = |
| 12387 | { |
| 12388 | { |
| 12389 | .eraseblocks = { {4 * 1024, 16} }, |
| 12390 | .block_erase = spi_block_erase_20, |
| 12391 | }, { |
| 12392 | .eraseblocks = { {32 * 1024, 2} }, |
| 12393 | .block_erase = spi_block_erase_52, |
| 12394 | }, { |
| 12395 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12396 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12397 | }, { |
| 12398 | .eraseblocks = { {64 * 1024, 1} }, |
| 12399 | .block_erase = spi_block_erase_60, |
| 12400 | }, { |
| 12401 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12402 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12403 | }, |
| 12404 | }, |
| 12405 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12406 | .unlock = spi_disable_blockprotect, |
| 12407 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12408 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12409 | .voltage = {2700, 3600}, |
| 12410 | }, |
| 12411 | |
| 12412 | { |
| 12413 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12414 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12415 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12416 | .manufacture_id = SST_ID, |
| 12417 | .model_id = SST_SST25VF010_REMS, |
| 12418 | .total_size = 128, |
| 12419 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12420 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12421 | .tested = TEST_OK_PREW, |
| 12422 | .probe = probe_spi_rems, |
| 12423 | .probe_timing = TIMING_ZERO, |
| 12424 | .block_erasers = |
| 12425 | { |
| 12426 | { |
| 12427 | .eraseblocks = { {4 * 1024, 32} }, |
| 12428 | .block_erase = spi_block_erase_20, |
| 12429 | }, { |
| 12430 | .eraseblocks = { {32 * 1024, 4} }, |
| 12431 | .block_erase = spi_block_erase_52, |
| 12432 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12433 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12434 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12435 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12436 | .eraseblocks = { {128 * 1024, 1} }, |
| 12437 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12438 | }, { |
| 12439 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12440 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12441 | }, |
| 12442 | }, |
| 12443 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12444 | .unlock = spi_disable_blockprotect, |
| 12445 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12446 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12447 | .voltage = {2700, 3600}, |
| 12448 | }, |
| 12449 | |
| 12450 | { |
| 12451 | .vendor = "SST", |
| 12452 | .name = "SST25VF020", |
| 12453 | .bustype = BUS_SPI, |
| 12454 | .manufacture_id = SST_ID, |
| 12455 | .model_id = SST_SST25VF020_REMS, |
| 12456 | .total_size = 256, |
| 12457 | .page_size = 256, |
| 12458 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12459 | .tested = TEST_UNTESTED, |
| 12460 | .probe = probe_spi_rems, |
| 12461 | .probe_timing = TIMING_ZERO, |
| 12462 | .block_erasers = |
| 12463 | { |
| 12464 | { |
| 12465 | .eraseblocks = { {4 * 1024, 64} }, |
| 12466 | .block_erase = spi_block_erase_20, |
| 12467 | }, { |
| 12468 | .eraseblocks = { {32 * 1024, 8} }, |
| 12469 | .block_erase = spi_block_erase_52, |
| 12470 | }, { |
| 12471 | .eraseblocks = { {256 * 1024, 1} }, |
| 12472 | .block_erase = spi_block_erase_60, |
| 12473 | }, |
| 12474 | }, |
| 12475 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12476 | .unlock = spi_disable_blockprotect, |
| 12477 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12478 | .read = spi_chip_read, /* only */ |
| 12479 | .voltage = {2700, 3600}, |
| 12480 | }, |
| 12481 | |
| 12482 | { |
| 12483 | .vendor = "SST", |
| 12484 | .name = "SST25VF020B", |
| 12485 | .bustype = BUS_SPI, |
| 12486 | .manufacture_id = SST_ID, |
| 12487 | .model_id = SST_SST25VF020B, |
| 12488 | .total_size = 256, |
| 12489 | .page_size = 256, |
| 12490 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12491 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12492 | .probe = probe_spi_rdid, |
| 12493 | .probe_timing = TIMING_ZERO, |
| 12494 | .block_erasers = |
| 12495 | { |
| 12496 | { |
| 12497 | .eraseblocks = { {4 * 1024, 64} }, |
| 12498 | .block_erase = spi_block_erase_20, |
| 12499 | }, { |
| 12500 | .eraseblocks = { {32 * 1024, 8} }, |
| 12501 | .block_erase = spi_block_erase_52, |
| 12502 | }, { |
| 12503 | .eraseblocks = { {64 * 1024, 4} }, |
| 12504 | .block_erase = spi_block_erase_d8, |
| 12505 | }, { |
| 12506 | .eraseblocks = { {256 * 1024, 1} }, |
| 12507 | .block_erase = spi_block_erase_60, |
| 12508 | }, { |
| 12509 | .eraseblocks = { {256 * 1024, 1} }, |
| 12510 | .block_erase = spi_block_erase_c7, |
| 12511 | }, |
| 12512 | }, |
| 12513 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 12514 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 12515 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12516 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12517 | .voltage = {2700, 3600}, |
| 12518 | }, |
| 12519 | |
| 12520 | { |
| 12521 | .vendor = "SST", |
| 12522 | .name = "SST25VF040", |
| 12523 | .bustype = BUS_SPI, |
| 12524 | .manufacture_id = SST_ID, |
| 12525 | .model_id = SST_SST25VF040_REMS, |
| 12526 | .total_size = 512, |
| 12527 | .page_size = 256, |
| 12528 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12529 | .tested = TEST_OK_PR, |
| 12530 | .probe = probe_spi_rems, |
| 12531 | .probe_timing = TIMING_ZERO, |
| 12532 | .block_erasers = |
| 12533 | { |
| 12534 | { |
| 12535 | .eraseblocks = { {4 * 1024, 128} }, |
| 12536 | .block_erase = spi_block_erase_20, |
| 12537 | }, { |
| 12538 | .eraseblocks = { {32 * 1024, 16} }, |
| 12539 | .block_erase = spi_block_erase_52, |
| 12540 | }, { |
| 12541 | .eraseblocks = { {512 * 1024, 1} }, |
| 12542 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12543 | }, |
| 12544 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12545 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12546 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12547 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12548 | .read = spi_chip_read, |
| 12549 | .voltage = {2700, 3600}, |
| 12550 | }, |
| 12551 | |
| 12552 | { |
| 12553 | .vendor = "SST", |
| 12554 | .name = "SST25VF040B", |
| 12555 | .bustype = BUS_SPI, |
| 12556 | .manufacture_id = SST_ID, |
| 12557 | .model_id = SST_SST25VF040B, |
| 12558 | .total_size = 512, |
| 12559 | .page_size = 256, |
| 12560 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12561 | .tested = TEST_OK_PREW, |
| 12562 | .probe = probe_spi_rdid, |
| 12563 | .probe_timing = TIMING_ZERO, |
| 12564 | .block_erasers = |
| 12565 | { |
| 12566 | { |
| 12567 | .eraseblocks = { {4 * 1024, 128} }, |
| 12568 | .block_erase = spi_block_erase_20, |
| 12569 | }, { |
| 12570 | .eraseblocks = { {32 * 1024, 16} }, |
| 12571 | .block_erase = spi_block_erase_52, |
| 12572 | }, { |
| 12573 | .eraseblocks = { {64 * 1024, 8} }, |
| 12574 | .block_erase = spi_block_erase_d8, |
| 12575 | }, { |
| 12576 | .eraseblocks = { {512 * 1024, 1} }, |
| 12577 | .block_erase = spi_block_erase_60, |
| 12578 | }, { |
| 12579 | .eraseblocks = { {512 * 1024, 1} }, |
| 12580 | .block_erase = spi_block_erase_c7, |
| 12581 | }, |
| 12582 | }, |
| 12583 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12584 | .unlock = spi_disable_blockprotect, |
| 12585 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12586 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12587 | .voltage = {2700, 3600}, |
| 12588 | }, |
| 12589 | |
| 12590 | { |
| 12591 | .vendor = "SST", |
| 12592 | .name = "SST25VF040B.REMS", |
| 12593 | .bustype = BUS_SPI, |
| 12594 | .manufacture_id = SST_ID, |
| 12595 | .model_id = SST_SST25VF040B_REMS, |
| 12596 | .total_size = 512, |
| 12597 | .page_size = 256, |
| 12598 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12599 | .tested = TEST_OK_PREW, |
| 12600 | .probe = probe_spi_rems, |
| 12601 | .probe_timing = TIMING_ZERO, |
| 12602 | .block_erasers = |
| 12603 | { |
| 12604 | { |
| 12605 | .eraseblocks = { {4 * 1024, 128} }, |
| 12606 | .block_erase = spi_block_erase_20, |
| 12607 | }, { |
| 12608 | .eraseblocks = { {32 * 1024, 16} }, |
| 12609 | .block_erase = spi_block_erase_52, |
| 12610 | }, { |
| 12611 | .eraseblocks = { {64 * 1024, 8} }, |
| 12612 | .block_erase = spi_block_erase_d8, |
| 12613 | }, { |
| 12614 | .eraseblocks = { {512 * 1024, 1} }, |
| 12615 | .block_erase = spi_block_erase_60, |
| 12616 | }, { |
| 12617 | .eraseblocks = { {512 * 1024, 1} }, |
| 12618 | .block_erase = spi_block_erase_c7, |
| 12619 | }, |
| 12620 | }, |
| 12621 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12622 | .unlock = spi_disable_blockprotect, |
| 12623 | .write = spi_aai_write, |
| 12624 | .read = spi_chip_read, |
| 12625 | .voltage = {2700, 3600}, |
| 12626 | }, |
| 12627 | |
| 12628 | { |
| 12629 | .vendor = "SST", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12630 | .name = "SST25WF020A", |
| 12631 | .bustype = BUS_SPI, |
| 12632 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12633 | .model_id = SST_SST25WF020A, |
| 12634 | .total_size = 256, |
| 12635 | .page_size = 256, |
| 12636 | .feature_bits = FEATURE_WRSR_WREN, |
| 12637 | .tested = TEST_UNTESTED, |
| 12638 | .probe = probe_spi_rdid, |
| 12639 | .probe_timing = TIMING_ZERO, |
| 12640 | .block_erasers = |
| 12641 | { |
| 12642 | { |
| 12643 | .eraseblocks = { {4 * 1024, 64} }, |
| 12644 | .block_erase = spi_block_erase_20, |
| 12645 | }, { |
| 12646 | .eraseblocks = { {64 * 1024, 4} }, |
| 12647 | .block_erase = spi_block_erase_d8, |
| 12648 | }, { |
| 12649 | .eraseblocks = { {256 * 1024, 1} }, |
| 12650 | .block_erase = spi_block_erase_60, |
| 12651 | }, { |
| 12652 | .eraseblocks = { {256 * 1024, 1} }, |
| 12653 | .block_erase = spi_block_erase_c7, |
| 12654 | }, |
| 12655 | }, |
| 12656 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12657 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12658 | .write = spi_chip_write_256, |
| 12659 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12660 | .voltage = {1650, 1950}, |
| 12661 | }, |
| 12662 | |
| 12663 | { |
| 12664 | .vendor = "SST", |
| 12665 | .name = "SST25WF040B", |
| 12666 | .bustype = BUS_SPI, |
| 12667 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12668 | .model_id = SST_SST25WF040B, |
| 12669 | .total_size = 512, |
| 12670 | .page_size = 256, |
| 12671 | .feature_bits = FEATURE_WRSR_WREN, |
| 12672 | .tested = TEST_UNTESTED, |
| 12673 | .probe = probe_spi_rdid, |
| 12674 | .probe_timing = TIMING_ZERO, |
| 12675 | .block_erasers = |
| 12676 | { |
| 12677 | { |
| 12678 | .eraseblocks = { {4 * 1024, 128} }, |
| 12679 | .block_erase = spi_block_erase_20, |
| 12680 | }, { |
| 12681 | .eraseblocks = { {64 * 1024, 8} }, |
| 12682 | .block_erase = spi_block_erase_d8, |
| 12683 | }, { |
| 12684 | .eraseblocks = { {512 * 1024, 1} }, |
| 12685 | .block_erase = spi_block_erase_60, |
| 12686 | }, { |
| 12687 | .eraseblocks = { {512 * 1024, 1} }, |
| 12688 | .block_erase = spi_block_erase_c7, |
| 12689 | }, |
| 12690 | }, |
| 12691 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12692 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12693 | .write = spi_chip_write_256, |
| 12694 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 12695 | .voltage = {1650, 1950}, |
| 12696 | }, |
| 12697 | |
| 12698 | { |
| 12699 | .vendor = "SST", |
| 12700 | .name = "SST25WF080B", |
| 12701 | .bustype = BUS_SPI, |
| 12702 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12703 | .model_id = SST_SST25WF080B, |
| 12704 | .total_size = 1024, |
| 12705 | .page_size = 256, |
| 12706 | .feature_bits = FEATURE_WRSR_WREN, |
| 12707 | .tested = TEST_OK_PREW, |
| 12708 | .probe = probe_spi_rdid, |
| 12709 | .probe_timing = TIMING_ZERO, |
| 12710 | .block_erasers = |
| 12711 | { |
| 12712 | { |
| 12713 | .eraseblocks = { {4 * 1024, 256} }, |
| 12714 | .block_erase = spi_block_erase_20, |
| 12715 | }, { |
| 12716 | .eraseblocks = { {64 * 1024, 16} }, |
| 12717 | .block_erase = spi_block_erase_d8, |
| 12718 | }, { |
| 12719 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12720 | .block_erase = spi_block_erase_60, |
| 12721 | }, { |
| 12722 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12723 | .block_erase = spi_block_erase_c7, |
| 12724 | }, |
| 12725 | }, |
| 12726 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12727 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12728 | .write = spi_chip_write_256, |
| 12729 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 12730 | .voltage = {1650, 1950}, |
| 12731 | }, |
| 12732 | |
| 12733 | { |
| 12734 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12735 | .name = "SST25VF080B", |
| 12736 | .bustype = BUS_SPI, |
| 12737 | .manufacture_id = SST_ID, |
| 12738 | .model_id = SST_SST25VF080B, |
| 12739 | .total_size = 1024, |
| 12740 | .page_size = 256, |
| 12741 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12742 | .tested = TEST_OK_PREW, |
| 12743 | .probe = probe_spi_rdid, |
| 12744 | .probe_timing = TIMING_ZERO, |
| 12745 | .block_erasers = |
| 12746 | { |
| 12747 | { |
| 12748 | .eraseblocks = { {4 * 1024, 256} }, |
| 12749 | .block_erase = spi_block_erase_20, |
| 12750 | }, { |
| 12751 | .eraseblocks = { {32 * 1024, 32} }, |
| 12752 | .block_erase = spi_block_erase_52, |
| 12753 | }, { |
| 12754 | .eraseblocks = { {64 * 1024, 16} }, |
| 12755 | .block_erase = spi_block_erase_d8, |
| 12756 | }, { |
| 12757 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12758 | .block_erase = spi_block_erase_60, |
| 12759 | }, { |
| 12760 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12761 | .block_erase = spi_block_erase_c7, |
| 12762 | }, |
| 12763 | }, |
| 12764 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12765 | .unlock = spi_disable_blockprotect, |
| 12766 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12767 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12768 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12769 | }, |
| 12770 | |
| 12771 | { |
| 12772 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12773 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12774 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12775 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12776 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12777 | .total_size = 2048, |
| 12778 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12779 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12780 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12781 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12782 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12783 | .block_erasers = |
| 12784 | { |
| 12785 | { |
| 12786 | .eraseblocks = { {4 * 1024, 512} }, |
| 12787 | .block_erase = spi_block_erase_20, |
| 12788 | }, { |
| 12789 | .eraseblocks = { {32 * 1024, 64} }, |
| 12790 | .block_erase = spi_block_erase_52, |
| 12791 | }, { |
| 12792 | .eraseblocks = { {64 * 1024, 32} }, |
| 12793 | .block_erase = spi_block_erase_d8, |
| 12794 | }, { |
| 12795 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12796 | .block_erase = spi_block_erase_60, |
| 12797 | }, { |
| 12798 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12799 | .block_erase = spi_block_erase_c7, |
| 12800 | }, |
| 12801 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12802 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12803 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 12804 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12805 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12806 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12807 | }, |
| 12808 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12809 | { |
| 12810 | .vendor = "SST", |
| 12811 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12812 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12813 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12814 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12815 | .total_size = 4096, |
| 12816 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12817 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 12818 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12819 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12820 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12821 | .block_erasers = |
| 12822 | { |
| 12823 | { |
| 12824 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12825 | .block_erase = spi_block_erase_20, |
| 12826 | }, { |
| 12827 | .eraseblocks = { {32 * 1024, 128} }, |
| 12828 | .block_erase = spi_block_erase_52, |
| 12829 | }, { |
| 12830 | .eraseblocks = { {64 * 1024, 64} }, |
| 12831 | .block_erase = spi_block_erase_d8, |
| 12832 | }, { |
| 12833 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12834 | .block_erase = spi_block_erase_60, |
| 12835 | }, { |
| 12836 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12837 | .block_erase = spi_block_erase_c7, |
| 12838 | }, |
| 12839 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12840 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12841 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 12842 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12843 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12844 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12845 | }, |
| 12846 | |
| 12847 | { |
| 12848 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12849 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12850 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12851 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12852 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12853 | .total_size = 8192, |
| 12854 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12855 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12856 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12857 | .probe = probe_spi_rdid, |
| 12858 | .probe_timing = TIMING_ZERO, |
| 12859 | .block_erasers = |
| 12860 | { |
| 12861 | { |
| 12862 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12863 | .block_erase = spi_block_erase_20, |
| 12864 | }, { |
| 12865 | .eraseblocks = { {32 * 1024, 256} }, |
| 12866 | .block_erase = spi_block_erase_52, |
| 12867 | }, { |
| 12868 | .eraseblocks = { {64 * 1024, 128} }, |
| 12869 | .block_erase = spi_block_erase_d8, |
| 12870 | }, { |
| 12871 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12872 | .block_erase = spi_block_erase_60, |
| 12873 | }, { |
| 12874 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12875 | .block_erase = spi_block_erase_c7, |
| 12876 | }, |
| 12877 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12878 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12879 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 12880 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12881 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12882 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12883 | }, |
| 12884 | |
| 12885 | { |
| 12886 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12887 | .name = "SST25WF512", |
| 12888 | .bustype = BUS_SPI, |
| 12889 | .manufacture_id = SST_ID, |
| 12890 | .model_id = SST_SST25WF512, |
| 12891 | .total_size = 64, |
| 12892 | .page_size = 256, |
| 12893 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12894 | .tested = TEST_UNTESTED, |
| 12895 | .probe = probe_spi_rdid, |
| 12896 | .probe_timing = TIMING_ZERO, |
| 12897 | .block_erasers = |
| 12898 | { |
| 12899 | { |
| 12900 | .eraseblocks = { {4 * 1024, 16} }, |
| 12901 | .block_erase = spi_block_erase_20, |
| 12902 | }, { |
| 12903 | .eraseblocks = { {32 * 1024, 2} }, |
| 12904 | .block_erase = spi_block_erase_52, |
| 12905 | }, { |
| 12906 | .eraseblocks = { {1024 * 64, 1} }, |
| 12907 | .block_erase = spi_block_erase_60, |
| 12908 | }, { |
| 12909 | .eraseblocks = { {1024 * 64, 1} }, |
| 12910 | .block_erase = spi_block_erase_c7, |
| 12911 | }, |
| 12912 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12913 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12914 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12915 | .write = spi_aai_write, |
| 12916 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12917 | .voltage = {1650, 1950}, |
| 12918 | }, |
| 12919 | |
| 12920 | { |
| 12921 | .vendor = "SST", |
| 12922 | .name = "SST25WF010", |
| 12923 | .bustype = BUS_SPI, |
| 12924 | .manufacture_id = SST_ID, |
| 12925 | .model_id = SST_SST25WF010, |
| 12926 | .total_size = 128, |
| 12927 | .page_size = 256, |
| 12928 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12929 | .tested = TEST_UNTESTED, |
| 12930 | .probe = probe_spi_rdid, |
| 12931 | .probe_timing = TIMING_ZERO, |
| 12932 | .block_erasers = |
| 12933 | { |
| 12934 | { |
| 12935 | .eraseblocks = { {4 * 1024, 32} }, |
| 12936 | .block_erase = spi_block_erase_20, |
| 12937 | }, { |
| 12938 | .eraseblocks = { {32 * 1024, 4} }, |
| 12939 | .block_erase = spi_block_erase_52, |
| 12940 | }, { |
| 12941 | .eraseblocks = { {1024 * 128, 1} }, |
| 12942 | .block_erase = spi_block_erase_60, |
| 12943 | }, { |
| 12944 | .eraseblocks = { {1024 * 128, 1} }, |
| 12945 | .block_erase = spi_block_erase_c7, |
| 12946 | }, |
| 12947 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12948 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12949 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12950 | .write = spi_aai_write, |
| 12951 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12952 | .voltage = {1650, 1950}, |
| 12953 | }, |
| 12954 | |
| 12955 | { |
| 12956 | .vendor = "SST", |
| 12957 | .name = "SST25WF020", |
| 12958 | .bustype = BUS_SPI, |
| 12959 | .manufacture_id = SST_ID, |
| 12960 | .model_id = SST_SST25WF020, |
| 12961 | .total_size = 256, |
| 12962 | .page_size = 256, |
| 12963 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12964 | .tested = TEST_UNTESTED, |
| 12965 | .probe = probe_spi_rdid, |
| 12966 | .probe_timing = TIMING_ZERO, |
| 12967 | .block_erasers = |
| 12968 | { |
| 12969 | { |
| 12970 | .eraseblocks = { {4 * 1024, 64} }, |
| 12971 | .block_erase = spi_block_erase_20, |
| 12972 | }, { |
| 12973 | .eraseblocks = { {32 * 1024, 8} }, |
| 12974 | .block_erase = spi_block_erase_52, |
| 12975 | }, { |
| 12976 | .eraseblocks = { {64 * 1024, 4} }, |
| 12977 | .block_erase = spi_block_erase_d8, |
| 12978 | }, { |
| 12979 | .eraseblocks = { {1024 * 256, 1} }, |
| 12980 | .block_erase = spi_block_erase_60, |
| 12981 | }, { |
| 12982 | .eraseblocks = { {1024 * 256, 1} }, |
| 12983 | .block_erase = spi_block_erase_c7, |
| 12984 | }, |
| 12985 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12986 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12987 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12988 | .write = spi_aai_write, |
| 12989 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12990 | .voltage = {1650, 1950}, |
| 12991 | }, |
| 12992 | |
| 12993 | { |
| 12994 | .vendor = "SST", |
| 12995 | .name = "SST25WF040", |
| 12996 | .bustype = BUS_SPI, |
| 12997 | .manufacture_id = SST_ID, |
| 12998 | .model_id = SST_SST25WF040, |
| 12999 | .total_size = 512, |
| 13000 | .page_size = 256, |
| 13001 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13002 | .tested = TEST_UNTESTED, |
| 13003 | .probe = probe_spi_rdid, |
| 13004 | .probe_timing = TIMING_ZERO, |
| 13005 | .block_erasers = |
| 13006 | { |
| 13007 | { |
| 13008 | .eraseblocks = { {4 * 1024, 128} }, |
| 13009 | .block_erase = spi_block_erase_20, |
| 13010 | }, { |
| 13011 | .eraseblocks = { {32 * 1024, 16} }, |
| 13012 | .block_erase = spi_block_erase_52, |
| 13013 | }, { |
| 13014 | .eraseblocks = { {64 * 1024, 8} }, |
| 13015 | .block_erase = spi_block_erase_d8, |
| 13016 | }, { |
| 13017 | .eraseblocks = { {1024 * 512, 1} }, |
| 13018 | .block_erase = spi_block_erase_60, |
| 13019 | }, { |
| 13020 | .eraseblocks = { {1024 * 512, 1} }, |
| 13021 | .block_erase = spi_block_erase_c7, |
| 13022 | }, |
| 13023 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 13024 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13025 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13026 | .write = spi_aai_write, |
| 13027 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13028 | .voltage = {1650, 1950}, |
| 13029 | }, |
| 13030 | |
| 13031 | { |
| 13032 | .vendor = "SST", |
| 13033 | .name = "SST25WF080", |
| 13034 | .bustype = BUS_SPI, |
| 13035 | .manufacture_id = SST_ID, |
| 13036 | .model_id = SST_SST25WF080, |
| 13037 | .total_size = 1024, |
| 13038 | .page_size = 256, |
| 13039 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13040 | .tested = TEST_OK_PREW, |
| 13041 | .probe = probe_spi_rdid, |
| 13042 | .probe_timing = TIMING_ZERO, |
| 13043 | .block_erasers = |
| 13044 | { |
| 13045 | { |
| 13046 | .eraseblocks = { {4 * 1024, 256} }, |
| 13047 | .block_erase = spi_block_erase_20, |
| 13048 | }, { |
| 13049 | .eraseblocks = { {32 * 1024, 32} }, |
| 13050 | .block_erase = spi_block_erase_52, |
| 13051 | }, { |
| 13052 | .eraseblocks = { {64 * 1024, 16} }, |
| 13053 | .block_erase = spi_block_erase_d8, |
| 13054 | }, { |
| 13055 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13056 | .block_erase = spi_block_erase_60, |
| 13057 | }, { |
| 13058 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13059 | .block_erase = spi_block_erase_c7, |
| 13060 | }, |
| 13061 | }, |
| 13062 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 13063 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 13064 | .write = spi_aai_write, |
| 13065 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13066 | .voltage = {1650, 1950}, |
| 13067 | }, |
| 13068 | |
| 13069 | { |
| 13070 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13071 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13072 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13073 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13074 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13075 | .total_size = 512, |
| 13076 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13077 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13078 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13079 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13080 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13081 | .block_erasers = |
| 13082 | { |
| 13083 | { |
| 13084 | .eraseblocks = { {128, 4096} }, |
| 13085 | .block_erase = erase_sector_28sf040, |
| 13086 | }, { |
| 13087 | .eraseblocks = { {512 * 1024, 1} }, |
| 13088 | .block_erase = erase_chip_28sf040, |
| 13089 | } |
| 13090 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13091 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13092 | .write = write_28sf040, |
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 = "SST29EE010", |
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_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13103 | .total_size = 128, |
| 13104 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13105 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13106 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13107 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13108 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13109 | .block_erasers = |
| 13110 | { |
| 13111 | { |
| 13112 | .eraseblocks = { {128 * 1024, 1} }, |
| 13113 | .block_erase = erase_chip_block_jedec, |
| 13114 | } |
| 13115 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13116 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13117 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13118 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13119 | }, |
| 13120 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13121 | { |
| 13122 | .vendor = "SST", |
| 13123 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13124 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13125 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13126 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13127 | .total_size = 128, |
| 13128 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13129 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13130 | .tested = TEST_UNTESTED, |
| 13131 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13132 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13133 | .block_erasers = |
| 13134 | { |
| 13135 | { |
| 13136 | .eraseblocks = { {128 * 1024, 1} }, |
| 13137 | .block_erase = erase_chip_block_jedec, |
| 13138 | } |
| 13139 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13140 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13141 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13142 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13143 | }, |
| 13144 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13145 | { |
| 13146 | .vendor = "SST", |
| 13147 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13148 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13149 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13150 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13151 | .total_size = 256, |
| 13152 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13153 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13154 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13155 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13156 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13157 | .block_erasers = |
| 13158 | { |
| 13159 | { |
| 13160 | .eraseblocks = { {256 * 1024, 1} }, |
| 13161 | .block_erase = erase_chip_block_jedec, |
| 13162 | } |
| 13163 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13164 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13165 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13166 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13167 | }, |
| 13168 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13169 | { |
| 13170 | .vendor = "SST", |
| 13171 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13172 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13173 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13174 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13175 | .total_size = 256, |
| 13176 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13177 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13178 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13179 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13180 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13181 | .block_erasers = |
| 13182 | { |
| 13183 | { |
| 13184 | .eraseblocks = { {256 * 1024, 1} }, |
| 13185 | .block_erase = erase_chip_block_jedec, |
| 13186 | } |
| 13187 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13188 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13189 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13190 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13191 | }, |
| 13192 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13193 | { |
| 13194 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13195 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13196 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13197 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13198 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13199 | .total_size = 64, |
| 13200 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13201 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 13202 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13203 | .probe = probe_jedec, |
| 13204 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13205 | .block_erasers = |
| 13206 | { |
| 13207 | { |
| 13208 | .eraseblocks = { {4 * 1024, 16} }, |
| 13209 | .block_erase = erase_sector_jedec, |
| 13210 | }, { |
| 13211 | .eraseblocks = { {64 * 1024, 1} }, |
| 13212 | .block_erase = erase_chip_block_jedec, |
| 13213 | } |
| 13214 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13215 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13216 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13217 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13218 | }, |
| 13219 | |
| 13220 | { |
| 13221 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13222 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13223 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13224 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13225 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13226 | .total_size = 128, |
| 13227 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13228 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13229 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13230 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13231 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13232 | .block_erasers = |
| 13233 | { |
| 13234 | { |
| 13235 | .eraseblocks = { {4 * 1024, 32} }, |
| 13236 | .block_erase = erase_sector_jedec, |
| 13237 | }, { |
| 13238 | .eraseblocks = { {128 * 1024, 1} }, |
| 13239 | .block_erase = erase_chip_block_jedec, |
| 13240 | } |
| 13241 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13242 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13243 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13244 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13245 | }, |
| 13246 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13247 | { |
| 13248 | .vendor = "SST", |
| 13249 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13250 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13251 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13252 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13253 | .total_size = 256, |
| 13254 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13255 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 13256 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13257 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13258 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13259 | .block_erasers = |
| 13260 | { |
| 13261 | { |
| 13262 | .eraseblocks = { {4 * 1024, 64} }, |
| 13263 | .block_erase = erase_sector_jedec, |
| 13264 | }, { |
| 13265 | .eraseblocks = { {256 * 1024, 1} }, |
| 13266 | .block_erase = erase_chip_block_jedec, |
| 13267 | } |
| 13268 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13269 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13270 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13271 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13272 | }, |
| 13273 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13274 | { |
| 13275 | .vendor = "SST", |
| 13276 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13277 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13278 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13279 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13280 | .total_size = 512, |
| 13281 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13282 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 13283 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13284 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13285 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13286 | .block_erasers = |
| 13287 | { |
| 13288 | { |
| 13289 | .eraseblocks = { {4 * 1024, 128} }, |
| 13290 | .block_erase = erase_sector_jedec, |
| 13291 | }, { |
| 13292 | .eraseblocks = { {512 * 1024, 1} }, |
| 13293 | .block_erase = erase_chip_block_jedec, |
| 13294 | } |
| 13295 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13296 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13297 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13298 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13299 | }, |
| 13300 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13301 | { |
| 13302 | .vendor = "SST", |
| 13303 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13304 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13305 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13306 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13307 | .total_size = 64, |
| 13308 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13309 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 13310 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13311 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13312 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13313 | .block_erasers = |
| 13314 | { |
| 13315 | { |
| 13316 | .eraseblocks = { {4 * 1024, 16} }, |
| 13317 | .block_erase = erase_sector_jedec, |
| 13318 | }, { |
| 13319 | .eraseblocks = { {64 * 1024, 1} }, |
| 13320 | .block_erase = erase_chip_block_jedec, |
| 13321 | } |
| 13322 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13323 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13324 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13325 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13326 | }, |
| 13327 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13328 | { |
| 13329 | .vendor = "SST", |
| 13330 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13331 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13332 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13333 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13334 | .total_size = 128, |
| 13335 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13336 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 13337 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13338 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13339 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13340 | .block_erasers = |
| 13341 | { |
| 13342 | { |
| 13343 | .eraseblocks = { {4 * 1024, 32} }, |
| 13344 | .block_erase = erase_sector_jedec, |
| 13345 | }, { |
| 13346 | .eraseblocks = { {128 * 1024, 1} }, |
| 13347 | .block_erase = erase_chip_block_jedec, |
| 13348 | } |
| 13349 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13350 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13351 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13352 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13353 | }, |
| 13354 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13355 | { |
| 13356 | .vendor = "SST", |
| 13357 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13358 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13359 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13360 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13361 | .total_size = 256, |
| 13362 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13363 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13364 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13365 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13366 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13367 | .block_erasers = |
| 13368 | { |
| 13369 | { |
| 13370 | .eraseblocks = { {4 * 1024, 64} }, |
| 13371 | .block_erase = erase_sector_jedec, |
| 13372 | }, { |
| 13373 | .eraseblocks = { {256 * 1024, 1} }, |
| 13374 | .block_erase = erase_chip_block_jedec, |
| 13375 | } |
| 13376 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13377 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13378 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13379 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13380 | }, |
| 13381 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13382 | { |
| 13383 | .vendor = "SST", |
| 13384 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13385 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13386 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13387 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13388 | .total_size = 512, |
| 13389 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13390 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13391 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13392 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13393 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13394 | .block_erasers = |
| 13395 | { |
| 13396 | { |
| 13397 | .eraseblocks = { {4 * 1024, 128} }, |
| 13398 | .block_erase = erase_sector_jedec, |
| 13399 | }, { |
| 13400 | .eraseblocks = { {512 * 1024, 1} }, |
| 13401 | .block_erase = erase_chip_block_jedec, |
| 13402 | } |
| 13403 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13404 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13405 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13406 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 13407 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13408 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13409 | { |
| 13410 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13411 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13412 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13413 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13414 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13415 | .total_size = 1024, |
| 13416 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13417 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13418 | .tested = TEST_UNTESTED, |
| 13419 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13420 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13421 | .block_erasers = |
| 13422 | { |
| 13423 | { |
| 13424 | .eraseblocks = { {4 * 1024, 256} }, |
| 13425 | .block_erase = erase_sector_jedec, |
| 13426 | }, { |
| 13427 | .eraseblocks = { {64 * 1024, 16} }, |
| 13428 | .block_erase = erase_block_jedec, |
| 13429 | }, { |
| 13430 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13431 | .block_erase = erase_chip_block_jedec, |
| 13432 | } |
| 13433 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13434 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13435 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13436 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13437 | }, |
| 13438 | |
| 13439 | { |
| 13440 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13441 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13442 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13443 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13444 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13445 | .total_size = 256, |
| 13446 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13447 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13448 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13449 | .probe = probe_jedec, |
| 13450 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13451 | .block_erasers = |
| 13452 | { |
| 13453 | { |
| 13454 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13455 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13456 | }, { |
| 13457 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13458 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13459 | }, { |
| 13460 | .eraseblocks = { {256 * 1024, 1} }, |
| 13461 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13462 | } |
| 13463 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13464 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13465 | .unlock = unlock_sst_fwhub, |
| 13466 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13467 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13468 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13469 | }, |
| 13470 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13471 | { |
| 13472 | .vendor = "SST", |
| 13473 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13474 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13475 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13476 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13477 | .total_size = 384, |
| 13478 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13479 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13480 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13481 | .probe = probe_jedec, |
| 13482 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13483 | .block_erasers = |
| 13484 | { |
| 13485 | { |
| 13486 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13487 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13488 | }, { |
| 13489 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13490 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13491 | }, { |
| 13492 | .eraseblocks = { {384 * 1024, 1} }, |
| 13493 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13494 | } |
| 13495 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13496 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13497 | .unlock = unlock_sst_fwhub, |
| 13498 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13499 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13500 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13501 | }, |
| 13502 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13503 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13504 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 13505 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 13506 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13507 | .vendor = "SST", |
| 13508 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13509 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13510 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13511 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13512 | .total_size = 512, |
| 13513 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13514 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13515 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13516 | .probe = probe_jedec, |
| 13517 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13518 | .block_erasers = |
| 13519 | { |
| 13520 | { |
| 13521 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13522 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13523 | }, { |
| 13524 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13525 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13526 | }, { |
| 13527 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13528 | .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] | 13529 | }, |
| 13530 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13531 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13532 | .unlock = unlock_sst_fwhub, |
| 13533 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13534 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13535 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13536 | }, |
| 13537 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13538 | { |
| 13539 | .vendor = "SST", |
| 13540 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13541 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13542 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13543 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13544 | .total_size = 512, |
| 13545 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13546 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13547 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13548 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13549 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13550 | .block_erasers = |
| 13551 | { |
| 13552 | { |
| 13553 | .eraseblocks = { {4 * 1024, 128} }, |
| 13554 | .block_erase = erase_sector_49lfxxxc, |
| 13555 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13556 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13557 | {64 * 1024, 7}, |
| 13558 | {32 * 1024, 1}, |
| 13559 | {8 * 1024, 2}, |
| 13560 | {16 * 1024, 1}, |
| 13561 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13562 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13563 | } |
| 13564 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13565 | .printlock = printlock_regspace2_block_eraser_1, |
| 13566 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13567 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13568 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13569 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13570 | }, |
| 13571 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13572 | { |
| 13573 | .vendor = "SST", |
| 13574 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13575 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13576 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13577 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13578 | .total_size = 1024, |
| 13579 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13580 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13581 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13582 | .probe = probe_jedec, |
| 13583 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13584 | .block_erasers = |
| 13585 | { |
| 13586 | { |
| 13587 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13588 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13589 | }, { |
| 13590 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13591 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13592 | }, { |
| 13593 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13594 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13595 | } |
| 13596 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13597 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13598 | .unlock = unlock_sst_fwhub, |
| 13599 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13600 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13601 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13602 | }, |
| 13603 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13604 | { |
| 13605 | .vendor = "SST", |
| 13606 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13607 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13608 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13609 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13610 | .total_size = 1024, |
| 13611 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13612 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13613 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13614 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13615 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13616 | .block_erasers = |
| 13617 | { |
| 13618 | { |
| 13619 | .eraseblocks = { {4 * 1024, 256} }, |
| 13620 | .block_erase = erase_sector_49lfxxxc, |
| 13621 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13622 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13623 | {64 * 1024, 15}, |
| 13624 | {32 * 1024, 1}, |
| 13625 | {8 * 1024, 2}, |
| 13626 | {16 * 1024, 1}, |
| 13627 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13628 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13629 | } |
| 13630 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13631 | .printlock = printlock_regspace2_block_eraser_1, |
| 13632 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13633 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13634 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13635 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13636 | }, |
| 13637 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13638 | { |
| 13639 | .vendor = "SST", |
| 13640 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13641 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13642 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13643 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13644 | .total_size = 2048, |
| 13645 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13646 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13647 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13648 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13649 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13650 | .block_erasers = |
| 13651 | { |
| 13652 | { |
| 13653 | .eraseblocks = { {4 * 1024, 512} }, |
| 13654 | .block_erase = erase_sector_49lfxxxc, |
| 13655 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13656 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13657 | {64 * 1024, 31}, |
| 13658 | {32 * 1024, 1}, |
| 13659 | {8 * 1024, 2}, |
| 13660 | {16 * 1024, 1}, |
| 13661 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13662 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13663 | } |
| 13664 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13665 | .printlock = printlock_regspace2_block_eraser_1, |
| 13666 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13667 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13668 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13669 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13670 | }, |
| 13671 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13672 | { |
| 13673 | .vendor = "SST", |
| 13674 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13675 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13676 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13677 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13678 | .total_size = 256, |
| 13679 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13680 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 13681 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13682 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13683 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13684 | .block_erasers = |
| 13685 | { |
| 13686 | { |
| 13687 | .eraseblocks = { {4 * 1024, 64} }, |
| 13688 | .block_erase = erase_sector_jedec, |
| 13689 | }, { |
| 13690 | .eraseblocks = { {16 * 1024, 16} }, |
| 13691 | .block_erase = erase_block_jedec, |
| 13692 | }, { |
| 13693 | .eraseblocks = { {256 * 1024, 1} }, |
| 13694 | .block_erase = NULL, |
| 13695 | } |
| 13696 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13697 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13698 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13699 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 13700 | }, |
| 13701 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13702 | { |
| 13703 | .vendor = "SST", |
| 13704 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13705 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13706 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13707 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13708 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 13709 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13710 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13711 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13712 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13713 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13714 | .block_erasers = |
| 13715 | { |
| 13716 | { |
| 13717 | .eraseblocks = { {4 * 1024, 64} }, |
| 13718 | .block_erase = erase_sector_jedec, |
| 13719 | }, { |
| 13720 | .eraseblocks = { {16 * 1024, 16} }, |
| 13721 | .block_erase = erase_block_jedec, |
| 13722 | }, { |
| 13723 | .eraseblocks = { {256 * 1024, 1} }, |
| 13724 | .block_erase = NULL, |
| 13725 | } |
| 13726 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13727 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13728 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13729 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13730 | }, |
| 13731 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13732 | { |
| 13733 | .vendor = "SST", |
| 13734 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13735 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13736 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13737 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13738 | .total_size = 512, |
| 13739 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13740 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13741 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13742 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13743 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13744 | .block_erasers = |
| 13745 | { |
| 13746 | { |
| 13747 | .eraseblocks = { {4 * 1024, 128} }, |
| 13748 | .block_erase = erase_sector_jedec, |
| 13749 | }, { |
| 13750 | .eraseblocks = { {64 * 1024, 8} }, |
| 13751 | .block_erase = erase_block_jedec, |
| 13752 | }, { |
| 13753 | .eraseblocks = { {512 * 1024, 1} }, |
| 13754 | .block_erase = NULL, |
| 13755 | } |
| 13756 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13757 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13758 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13759 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13760 | }, |
| 13761 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13762 | { |
| 13763 | .vendor = "SST", |
| 13764 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13765 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13766 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13767 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13768 | .total_size = 512, |
| 13769 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 13770 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13771 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13772 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13773 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13774 | .block_erasers = |
| 13775 | { |
| 13776 | { |
| 13777 | .eraseblocks = { {4 * 1024, 128} }, |
| 13778 | .block_erase = erase_sector_jedec, |
| 13779 | }, { |
| 13780 | .eraseblocks = { {64 * 1024, 8} }, |
| 13781 | .block_erase = erase_block_jedec, |
| 13782 | }, { |
| 13783 | .eraseblocks = { {512 * 1024, 1} }, |
| 13784 | .block_erase = NULL, |
| 13785 | } |
| 13786 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13787 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13788 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13789 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13790 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13791 | }, |
| 13792 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13793 | { |
| 13794 | .vendor = "SST", |
| 13795 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13796 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13797 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13798 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13799 | .total_size = 1024, |
| 13800 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13801 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 13802 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13803 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13804 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13805 | .block_erasers = |
| 13806 | { |
| 13807 | { |
| 13808 | .eraseblocks = { {4 * 1024, 256} }, |
| 13809 | .block_erase = erase_sector_jedec, |
| 13810 | }, { |
| 13811 | .eraseblocks = { {64 * 1024, 16} }, |
| 13812 | .block_erase = erase_block_jedec, |
| 13813 | }, { |
| 13814 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13815 | .block_erase = NULL, |
| 13816 | } |
| 13817 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13818 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13819 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13820 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13821 | }, |
| 13822 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13823 | { |
| 13824 | .vendor = "SST", |
| 13825 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13826 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13827 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13828 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13829 | .total_size = 2048, |
| 13830 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13831 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13832 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13833 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13834 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13835 | .block_erasers = |
| 13836 | { |
| 13837 | { |
| 13838 | .eraseblocks = { {4 * 1024, 512} }, |
| 13839 | .block_erase = erase_sector_49lfxxxc, |
| 13840 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13841 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13842 | {64 * 1024, 31}, |
| 13843 | {32 * 1024, 1}, |
| 13844 | {8 * 1024, 2}, |
| 13845 | {16 * 1024, 1}, |
| 13846 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13847 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13848 | } |
| 13849 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13850 | .printlock = printlock_regspace2_block_eraser_1, |
| 13851 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13852 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13853 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13854 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13855 | }, |
| 13856 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13857 | { |
| 13858 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13859 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13860 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13861 | .manufacture_id = ST_ID, |
| 13862 | .model_id = ST_M29F002B, |
| 13863 | .total_size = 256, |
| 13864 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13865 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13866 | .tested = TEST_UNTESTED, |
| 13867 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13868 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13869 | .block_erasers = |
| 13870 | { |
| 13871 | { |
| 13872 | .eraseblocks = { |
| 13873 | {16 * 1024, 1}, |
| 13874 | {8 * 1024, 2}, |
| 13875 | {32 * 1024, 1}, |
| 13876 | {64 * 1024, 3}, |
| 13877 | }, |
| 13878 | .block_erase = erase_sector_jedec, |
| 13879 | }, { |
| 13880 | .eraseblocks = { {256 * 1024, 1} }, |
| 13881 | .block_erase = erase_chip_block_jedec, |
| 13882 | } |
| 13883 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13884 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13885 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13886 | .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] | 13887 | }, |
| 13888 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13889 | { |
| 13890 | .vendor = "ST", |
| 13891 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13892 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13893 | .manufacture_id = ST_ID, |
| 13894 | .model_id = ST_M29F002T, |
| 13895 | .total_size = 256, |
| 13896 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13897 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13898 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13899 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13900 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13901 | .block_erasers = |
| 13902 | { |
| 13903 | { |
| 13904 | .eraseblocks = { |
| 13905 | {64 * 1024, 3}, |
| 13906 | {32 * 1024, 1}, |
| 13907 | {8 * 1024, 2}, |
| 13908 | {16 * 1024, 1}, |
| 13909 | }, |
| 13910 | .block_erase = erase_sector_jedec, |
| 13911 | }, { |
| 13912 | .eraseblocks = { {256 * 1024, 1} }, |
| 13913 | .block_erase = erase_chip_block_jedec, |
| 13914 | } |
| 13915 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13916 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13917 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13918 | .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] | 13919 | }, |
| 13920 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13921 | { |
| 13922 | .vendor = "ST", |
| 13923 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13924 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13925 | .manufacture_id = ST_ID, |
| 13926 | .model_id = ST_M29F040B, |
| 13927 | .total_size = 512, |
| 13928 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13929 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13930 | .tested = TEST_UNTESTED, |
| 13931 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 13932 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13933 | .block_erasers = |
| 13934 | { |
| 13935 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13936 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13937 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13938 | }, { |
| 13939 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13940 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13941 | } |
| 13942 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13943 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13944 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13945 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13946 | }, |
| 13947 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13948 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13949 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13950 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13951 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13952 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13953 | .manufacture_id = ST_ID, |
| 13954 | .model_id = ST_M29F400BB, |
| 13955 | .total_size = 512, |
| 13956 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13957 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13958 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13959 | .probe = probe_jedec, |
| 13960 | .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] | 13961 | .block_erasers = |
| 13962 | { |
| 13963 | { |
| 13964 | .eraseblocks = { |
| 13965 | {16 * 1024, 1}, |
| 13966 | {8 * 1024, 2}, |
| 13967 | {32 * 1024, 1}, |
| 13968 | {64 * 1024, 7}, |
| 13969 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13970 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13971 | }, { |
| 13972 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13973 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13974 | } |
| 13975 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13976 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13977 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13978 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13979 | }, |
| 13980 | { |
| 13981 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 13982 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13983 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13984 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13985 | .manufacture_id = ST_ID, |
| 13986 | .model_id = ST_M29F400BT, |
| 13987 | .total_size = 512, |
| 13988 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13989 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13990 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13991 | .probe = probe_jedec, |
| 13992 | .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] | 13993 | .block_erasers = |
| 13994 | { |
| 13995 | { |
| 13996 | .eraseblocks = { |
| 13997 | {64 * 1024, 7}, |
| 13998 | {32 * 1024, 1}, |
| 13999 | {8 * 1024, 2}, |
| 14000 | {16 * 1024, 1}, |
| 14001 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14002 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14003 | }, { |
| 14004 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14005 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14006 | } |
| 14007 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14008 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14009 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14010 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14011 | }, |
| 14012 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14013 | { |
| 14014 | .vendor = "ST", |
| 14015 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14016 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14017 | .manufacture_id = ST_ID, |
| 14018 | .model_id = ST_M29W010B, |
| 14019 | .total_size = 128, |
| 14020 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14021 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14022 | .tested = TEST_UNTESTED, |
| 14023 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14024 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14025 | .block_erasers = |
| 14026 | { |
| 14027 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14028 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14029 | .block_erase = erase_sector_jedec, |
| 14030 | }, { |
| 14031 | .eraseblocks = { {128 * 1024, 1} }, |
| 14032 | .block_erase = erase_chip_block_jedec, |
| 14033 | } |
| 14034 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14035 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14036 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14037 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14038 | }, |
| 14039 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14040 | { |
| 14041 | .vendor = "ST", |
| 14042 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14043 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14044 | .manufacture_id = ST_ID, |
| 14045 | .model_id = ST_M29W040B, |
| 14046 | .total_size = 512, |
| 14047 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14048 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14049 | .tested = TEST_UNTESTED, |
| 14050 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14051 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14052 | .block_erasers = |
| 14053 | { |
| 14054 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14055 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14056 | .block_erase = erase_sector_jedec, |
| 14057 | }, { |
| 14058 | .eraseblocks = { {512 * 1024, 1} }, |
| 14059 | .block_erase = erase_chip_block_jedec, |
| 14060 | } |
| 14061 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14062 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14063 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14064 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14065 | }, |
| 14066 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14067 | { |
| 14068 | .vendor = "ST", |
| 14069 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14070 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14071 | .manufacture_id = ST_ID, |
| 14072 | .model_id = ST_M29W512B, |
| 14073 | .total_size = 64, |
| 14074 | .page_size = 64 * 1024, |
| 14075 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14076 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14077 | .probe = probe_jedec, |
| 14078 | .probe_timing = TIMING_ZERO, |
| 14079 | .block_erasers = |
| 14080 | { |
| 14081 | { |
| 14082 | .eraseblocks = { {64 * 1024, 1} }, |
| 14083 | .block_erase = erase_chip_block_jedec, |
| 14084 | } |
| 14085 | }, |
| 14086 | .write = write_jedec_1, |
| 14087 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14088 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14089 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 14090 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14091 | { |
| 14092 | .vendor = "ST", |
| 14093 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14094 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14095 | .manufacture_id = ST_ID, |
| 14096 | .model_id = ST_M50FLW040A, |
| 14097 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14098 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14099 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14100 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14101 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14102 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14103 | .block_erasers = |
| 14104 | { |
| 14105 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14106 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14107 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14108 | {64 * 1024, 5}, /* block */ |
| 14109 | {4 * 1024, 16}, /* sector */ |
| 14110 | {4 * 1024, 16}, /* sector */ |
| 14111 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14112 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14113 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14114 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14115 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14116 | } |
| 14117 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14118 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14119 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14120 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14121 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14122 | }, |
| 14123 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14124 | { |
| 14125 | .vendor = "ST", |
| 14126 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14127 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14128 | .manufacture_id = ST_ID, |
| 14129 | .model_id = ST_M50FLW040B, |
| 14130 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14131 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14132 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14133 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14134 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14135 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14136 | .block_erasers = |
| 14137 | { |
| 14138 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14139 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14140 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14141 | {4 * 1024, 16}, /* sector */ |
| 14142 | {64 * 1024, 5}, /* block */ |
| 14143 | {4 * 1024, 16}, /* sector */ |
| 14144 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14145 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14146 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14147 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14148 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14149 | } |
| 14150 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14151 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14152 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14153 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14154 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14155 | }, |
| 14156 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14157 | { |
| 14158 | .vendor = "ST", |
| 14159 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14160 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14161 | .manufacture_id = ST_ID, |
| 14162 | .model_id = ST_M50FLW080A, |
| 14163 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14164 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14165 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14166 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14167 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14168 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14169 | .block_erasers = |
| 14170 | { |
| 14171 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14172 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14173 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14174 | {64 * 1024, 13}, /* block */ |
| 14175 | {4 * 1024, 16}, /* sector */ |
| 14176 | {4 * 1024, 16}, /* sector */ |
| 14177 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14178 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14179 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14180 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14181 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14182 | } |
| 14183 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14184 | .printlock = printlock_regspace2_block_eraser_0, |
| 14185 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14186 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14187 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14188 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14189 | }, |
| 14190 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14191 | { |
| 14192 | .vendor = "ST", |
| 14193 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14194 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14195 | .manufacture_id = ST_ID, |
| 14196 | .model_id = ST_M50FLW080B, |
| 14197 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14198 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14199 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14200 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14201 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14202 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14203 | .block_erasers = |
| 14204 | { |
| 14205 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14206 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14207 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14208 | {4 * 1024, 16}, /* sector */ |
| 14209 | {64 * 1024, 13}, /* block */ |
| 14210 | {4 * 1024, 16}, /* sector */ |
| 14211 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14212 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14213 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14214 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14215 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14216 | } |
| 14217 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14218 | .printlock = printlock_regspace2_block_eraser_0, |
| 14219 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14220 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14221 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14222 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14223 | }, |
| 14224 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14225 | { |
| 14226 | .vendor = "ST", |
| 14227 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14228 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14229 | .manufacture_id = ST_ID, |
| 14230 | .model_id = ST_M50FW002, |
| 14231 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14232 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14233 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14234 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14235 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14236 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14237 | .block_erasers = |
| 14238 | { |
| 14239 | { |
| 14240 | .eraseblocks = { |
| 14241 | {64 * 1024, 3}, |
| 14242 | {32 * 1024, 1}, |
| 14243 | {8 * 1024, 2}, |
| 14244 | {16 * 1024, 1}, |
| 14245 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14246 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14247 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14248 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14249 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14250 | } |
| 14251 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14252 | .printlock = printlock_regspace2_block_eraser_0, |
| 14253 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14254 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14255 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14256 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14257 | }, |
| 14258 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14259 | { |
| 14260 | .vendor = "ST", |
| 14261 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14262 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14263 | .manufacture_id = ST_ID, |
| 14264 | .model_id = ST_M50FW016, |
| 14265 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14266 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14267 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14268 | .tested = TEST_UNTESTED, |
| 14269 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14270 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14271 | .block_erasers = |
| 14272 | { |
| 14273 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14274 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14275 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14276 | } |
| 14277 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14278 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14279 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14280 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14281 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14282 | }, |
| 14283 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14284 | { |
| 14285 | .vendor = "ST", |
| 14286 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14287 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14288 | .manufacture_id = ST_ID, |
| 14289 | .model_id = ST_M50FW040, |
| 14290 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14291 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14292 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14293 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14294 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14295 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14296 | .block_erasers = |
| 14297 | { |
| 14298 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14299 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14300 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14301 | } |
| 14302 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14303 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14304 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14305 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14306 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14307 | }, |
| 14308 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14309 | { |
| 14310 | .vendor = "ST", |
| 14311 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14312 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14313 | .manufacture_id = ST_ID, |
| 14314 | .model_id = ST_M50FW080, |
| 14315 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14316 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14317 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14318 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14319 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14320 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14321 | .block_erasers = |
| 14322 | { |
| 14323 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14324 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14325 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14326 | } |
| 14327 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14328 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14329 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14330 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14331 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14332 | }, |
| 14333 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14334 | { |
| 14335 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14336 | .name = "M50LPW080", |
| 14337 | .bustype = BUS_LPC, /* A/A Mux */ |
| 14338 | .manufacture_id = ST_ID, |
| 14339 | .model_id = ST_M50LPW080, |
| 14340 | .total_size = 1024, |
| 14341 | .page_size = 0, |
| 14342 | .feature_bits = FEATURE_REGISTERMAP, |
| 14343 | .tested = TEST_UNTESTED, |
| 14344 | .probe = probe_82802ab, |
| 14345 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14346 | .block_erasers = |
| 14347 | { |
| 14348 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14349 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14350 | .block_erase = erase_block_82802ab, |
| 14351 | } |
| 14352 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14353 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14354 | .write = write_82802ab, |
| 14355 | .read = read_memmapped, |
| 14356 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 14357 | }, |
| 14358 | |
| 14359 | { |
| 14360 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14361 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14362 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14363 | .manufacture_id = ST_ID, |
| 14364 | .model_id = ST_M50LPW116, |
| 14365 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14366 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14367 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14368 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14369 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14370 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14371 | .block_erasers = |
| 14372 | { |
| 14373 | { |
| 14374 | .eraseblocks = { |
| 14375 | {4 * 1024, 16}, |
| 14376 | {64 * 1024, 30}, |
| 14377 | {32 * 1024, 1}, |
| 14378 | {8 * 1024, 2}, |
| 14379 | {16 * 1024, 1}, |
| 14380 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14381 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14382 | } |
| 14383 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14384 | .printlock = printlock_regspace2_block_eraser_0, |
| 14385 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14386 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14387 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14388 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14389 | }, |
| 14390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14391 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14392 | .vendor = "SyncMOS/MoselVitelic", |
| 14393 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14394 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14395 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14396 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14397 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14398 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14399 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14400 | .tested = TEST_UNTESTED, |
| 14401 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14402 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14403 | .block_erasers = |
| 14404 | { |
| 14405 | { |
| 14406 | .eraseblocks = { {512, 256} }, |
| 14407 | .block_erase = erase_sector_jedec, |
| 14408 | }, { |
| 14409 | .eraseblocks = { {128 * 1024, 1} }, |
| 14410 | .block_erase = erase_chip_block_jedec, |
| 14411 | }, |
| 14412 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14413 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14414 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14415 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14416 | }, |
| 14417 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14418 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14419 | .vendor = "SyncMOS/MoselVitelic", |
| 14420 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14421 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14422 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14423 | .model_id = SM_MVC_29C51001T, |
| 14424 | .total_size = 128, |
| 14425 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14426 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14427 | .tested = TEST_UNTESTED, |
| 14428 | .probe = probe_jedec, |
| 14429 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14430 | .block_erasers = |
| 14431 | { |
| 14432 | { |
| 14433 | .eraseblocks = { {512, 256} }, |
| 14434 | .block_erase = erase_sector_jedec, |
| 14435 | }, { |
| 14436 | .eraseblocks = { {128 * 1024, 1} }, |
| 14437 | .block_erase = erase_chip_block_jedec, |
| 14438 | }, |
| 14439 | }, |
| 14440 | .write = write_jedec_1, |
| 14441 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14442 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14443 | }, |
| 14444 | |
| 14445 | { |
| 14446 | .vendor = "SyncMOS/MoselVitelic", |
| 14447 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14448 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14449 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14450 | .model_id = SM_MVC_29C51002B, |
| 14451 | .total_size = 256, |
| 14452 | .page_size = 512, |
| 14453 | .feature_bits = FEATURE_EITHER_RESET, |
| 14454 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14455 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14456 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14457 | .block_erasers = |
| 14458 | { |
| 14459 | { |
| 14460 | .eraseblocks = { {512, 512} }, |
| 14461 | .block_erase = erase_sector_jedec, |
| 14462 | }, { |
| 14463 | .eraseblocks = { {256 * 1024, 1} }, |
| 14464 | .block_erase = erase_chip_block_jedec, |
| 14465 | }, |
| 14466 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14467 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14468 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14469 | }, |
| 14470 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14471 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14472 | .vendor = "SyncMOS/MoselVitelic", |
| 14473 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14474 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14475 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14476 | .model_id = SM_MVC_29C51002T, |
| 14477 | .total_size = 256, |
| 14478 | .page_size = 512, |
| 14479 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14480 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14481 | .probe = probe_jedec, |
| 14482 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14483 | .block_erasers = |
| 14484 | { |
| 14485 | { |
| 14486 | .eraseblocks = { {512, 512} }, |
| 14487 | .block_erase = erase_sector_jedec, |
| 14488 | }, { |
| 14489 | .eraseblocks = { {256 * 1024, 1} }, |
| 14490 | .block_erase = erase_chip_block_jedec, |
| 14491 | }, |
| 14492 | }, |
| 14493 | .write = write_jedec_1, |
| 14494 | .read = read_memmapped, |
| 14495 | }, |
| 14496 | |
| 14497 | { |
| 14498 | .vendor = "SyncMOS/MoselVitelic", |
| 14499 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14500 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14501 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14502 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14503 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14504 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14505 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14506 | .tested = TEST_UNTESTED, |
| 14507 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14508 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14509 | .block_erasers = |
| 14510 | { |
| 14511 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14512 | .eraseblocks = { {1024, 512} }, |
| 14513 | .block_erase = erase_sector_jedec, |
| 14514 | }, { |
| 14515 | .eraseblocks = { {512 * 1024, 1} }, |
| 14516 | .block_erase = erase_chip_block_jedec, |
| 14517 | }, |
| 14518 | }, |
| 14519 | .write = write_jedec_1, |
| 14520 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14521 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14522 | }, |
| 14523 | |
| 14524 | { |
| 14525 | .vendor = "SyncMOS/MoselVitelic", |
| 14526 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14527 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14528 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14529 | .model_id = SM_MVC_29C51004T, |
| 14530 | .total_size = 512, |
| 14531 | .page_size = 1024, |
| 14532 | .feature_bits = FEATURE_EITHER_RESET, |
| 14533 | .tested = TEST_UNTESTED, |
| 14534 | .probe = probe_jedec, |
| 14535 | .probe_timing = TIMING_ZERO, |
| 14536 | .block_erasers = |
| 14537 | { |
| 14538 | { |
| 14539 | .eraseblocks = { {1024, 512} }, |
| 14540 | .block_erase = erase_sector_jedec, |
| 14541 | }, { |
| 14542 | .eraseblocks = { {512 * 1024, 1} }, |
| 14543 | .block_erase = erase_chip_block_jedec, |
| 14544 | }, |
| 14545 | }, |
| 14546 | .write = write_jedec_1, |
| 14547 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14548 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14549 | }, |
| 14550 | |
| 14551 | { |
| 14552 | .vendor = "SyncMOS/MoselVitelic", |
| 14553 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14554 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14555 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14556 | .model_id = SM_MVC_29C31004B, |
| 14557 | .total_size = 512, |
| 14558 | .page_size = 1024, |
| 14559 | .feature_bits = FEATURE_EITHER_RESET, |
| 14560 | .tested = TEST_UNTESTED, |
| 14561 | .probe = probe_jedec, |
| 14562 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14563 | .block_erasers = |
| 14564 | { |
| 14565 | { |
| 14566 | .eraseblocks = { {1024, 512} }, |
| 14567 | .block_erase = erase_sector_jedec, |
| 14568 | }, { |
| 14569 | .eraseblocks = { {512 * 1024, 1} }, |
| 14570 | .block_erase = erase_chip_block_jedec, |
| 14571 | }, |
| 14572 | }, |
| 14573 | .write = write_jedec_1, |
| 14574 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14575 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14576 | }, |
| 14577 | |
| 14578 | { |
| 14579 | .vendor = "SyncMOS/MoselVitelic", |
| 14580 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14581 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14582 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14583 | .model_id = SM_MVC_29C31004T, |
| 14584 | .total_size = 512, |
| 14585 | .page_size = 1024, |
| 14586 | .feature_bits = FEATURE_EITHER_RESET, |
| 14587 | .tested = TEST_UNTESTED, |
| 14588 | .probe = probe_jedec, |
| 14589 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14590 | .block_erasers = |
| 14591 | { |
| 14592 | { |
| 14593 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14594 | .block_erase = erase_sector_jedec, |
| 14595 | }, { |
| 14596 | .eraseblocks = { {512 * 1024, 1} }, |
| 14597 | .block_erase = erase_chip_block_jedec, |
| 14598 | }, |
| 14599 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14600 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14601 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14602 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14603 | }, |
| 14604 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14605 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 14606 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14607 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14608 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14609 | .manufacture_id = TI_OLD_ID, |
| 14610 | .model_id = TI_TMS29F002RB, |
| 14611 | .total_size = 256, |
| 14612 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14613 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14614 | .tested = TEST_UNTESTED, |
| 14615 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14616 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14617 | .block_erasers = |
| 14618 | { |
| 14619 | { |
| 14620 | .eraseblocks = { |
| 14621 | {16 * 1024, 1}, |
| 14622 | {8 * 1024, 2}, |
| 14623 | {32 * 1024, 1}, |
| 14624 | {64 * 1024, 3}, |
| 14625 | }, |
| 14626 | .block_erase = erase_sector_jedec, |
| 14627 | }, { |
| 14628 | .eraseblocks = { {256 * 1024, 1} }, |
| 14629 | .block_erase = erase_chip_block_jedec, |
| 14630 | }, |
| 14631 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14632 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14633 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14634 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14635 | }, |
| 14636 | |
| 14637 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 14638 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14639 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14640 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14641 | .manufacture_id = TI_OLD_ID, |
| 14642 | .model_id = TI_TMS29F002RT, |
| 14643 | .total_size = 256, |
| 14644 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14645 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14646 | .tested = TEST_UNTESTED, |
| 14647 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14648 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14649 | .block_erasers = |
| 14650 | { |
| 14651 | { |
| 14652 | .eraseblocks = { |
| 14653 | {64 * 1024, 3}, |
| 14654 | {32 * 1024, 1}, |
| 14655 | {8 * 1024, 2}, |
| 14656 | {16 * 1024, 1}, |
| 14657 | }, |
| 14658 | .block_erase = erase_sector_jedec, |
| 14659 | }, { |
| 14660 | .eraseblocks = { {256 * 1024, 1} }, |
| 14661 | .block_erase = erase_chip_block_jedec, |
| 14662 | }, |
| 14663 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14664 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14665 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14666 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14667 | }, |
| 14668 | |
| 14669 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14670 | .vendor = "Winbond", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 14671 | .name = "W25Q40.V", |
| 14672 | .bustype = BUS_SPI, |
| 14673 | .manufacture_id = WINBOND_NEX_ID, |
| 14674 | .model_id = WINBOND_NEX_W25Q40_V, |
| 14675 | .total_size = 512, |
| 14676 | .page_size = 256, |
| 14677 | /* supports SFDP */ |
| 14678 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14679 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14680 | .tested = TEST_OK_PREW, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 14681 | .probe = probe_spi_rdid, |
| 14682 | .probe_timing = TIMING_ZERO, |
| 14683 | .block_erasers = |
| 14684 | { |
| 14685 | { |
| 14686 | .eraseblocks = { {4 * 1024, 128} }, |
| 14687 | .block_erase = spi_block_erase_20, |
| 14688 | }, { |
| 14689 | .eraseblocks = { {32 * 1024, 16} }, |
| 14690 | .block_erase = spi_block_erase_52, |
| 14691 | }, { |
| 14692 | .eraseblocks = { {64 * 1024, 8} }, |
| 14693 | .block_erase = spi_block_erase_d8, |
| 14694 | }, { |
| 14695 | .eraseblocks = { {512 * 1024, 1} }, |
| 14696 | .block_erase = spi_block_erase_60, |
| 14697 | }, { |
| 14698 | .eraseblocks = { {512 * 1024, 1} }, |
| 14699 | .block_erase = spi_block_erase_c7, |
| 14700 | } |
| 14701 | }, |
| 14702 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14703 | .unlock = spi_disable_blockprotect, |
| 14704 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14705 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14706 | .voltage = {2700, 3600}, |
| 14707 | }, |
| 14708 | |
| 14709 | { |
| 14710 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14711 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14712 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14713 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14714 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14715 | .total_size = 1024, |
| 14716 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14717 | /* supports SFDP */ |
| 14718 | /* 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] | 14719 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 14720 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14721 | .probe = probe_spi_rdid, |
| 14722 | .probe_timing = TIMING_ZERO, |
| 14723 | .block_erasers = |
| 14724 | { |
| 14725 | { |
| 14726 | .eraseblocks = { {4 * 1024, 256} }, |
| 14727 | .block_erase = spi_block_erase_20, |
| 14728 | }, { |
| 14729 | .eraseblocks = { {32 * 1024, 32} }, |
| 14730 | .block_erase = spi_block_erase_52, |
| 14731 | }, { |
| 14732 | .eraseblocks = { {64 * 1024, 16} }, |
| 14733 | .block_erase = spi_block_erase_d8, |
| 14734 | }, { |
| 14735 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14736 | .block_erase = spi_block_erase_60, |
| 14737 | }, { |
| 14738 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14739 | .block_erase = spi_block_erase_c7, |
| 14740 | } |
| 14741 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14742 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14743 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14744 | .write = spi_chip_write_256, |
| 14745 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14746 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14747 | }, |
| 14748 | |
| 14749 | { |
| 14750 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14751 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14752 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14753 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14754 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14755 | .total_size = 2048, |
| 14756 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14757 | /* supports SFDP */ |
| 14758 | /* 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] | 14759 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 14760 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14761 | .probe = probe_spi_rdid, |
| 14762 | .probe_timing = TIMING_ZERO, |
| 14763 | .block_erasers = |
| 14764 | { |
| 14765 | { |
| 14766 | .eraseblocks = { {4 * 1024, 512} }, |
| 14767 | .block_erase = spi_block_erase_20, |
| 14768 | }, { |
| 14769 | .eraseblocks = { {32 * 1024, 64} }, |
| 14770 | .block_erase = spi_block_erase_52, |
| 14771 | }, { |
| 14772 | .eraseblocks = { {64 * 1024, 32} }, |
| 14773 | .block_erase = spi_block_erase_d8, |
| 14774 | }, { |
| 14775 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14776 | .block_erase = spi_block_erase_60, |
| 14777 | }, { |
| 14778 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14779 | .block_erase = spi_block_erase_c7, |
| 14780 | } |
| 14781 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14782 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14783 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14784 | .write = spi_chip_write_256, |
| 14785 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14786 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14787 | }, |
| 14788 | |
| 14789 | { |
| 14790 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14791 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14792 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14793 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14794 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14795 | .total_size = 4096, |
| 14796 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14797 | /* supports SFDP */ |
| 14798 | /* 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] | 14799 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 14800 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14801 | .probe = probe_spi_rdid, |
| 14802 | .probe_timing = TIMING_ZERO, |
| 14803 | .block_erasers = |
| 14804 | { |
| 14805 | { |
| 14806 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14807 | .block_erase = spi_block_erase_20, |
| 14808 | }, { |
| 14809 | .eraseblocks = { {32 * 1024, 128} }, |
| 14810 | .block_erase = spi_block_erase_52, |
| 14811 | }, { |
| 14812 | .eraseblocks = { {64 * 1024, 64} }, |
| 14813 | .block_erase = spi_block_erase_d8, |
| 14814 | }, { |
| 14815 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14816 | .block_erase = spi_block_erase_60, |
| 14817 | }, { |
| 14818 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14819 | .block_erase = spi_block_erase_c7, |
| 14820 | } |
| 14821 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14822 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14823 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14824 | .write = spi_chip_write_256, |
| 14825 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14826 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14827 | }, |
| 14828 | |
| 14829 | { |
| 14830 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14831 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14832 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14833 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14834 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14835 | .total_size = 8192, |
| 14836 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14837 | /* supports SFDP */ |
| 14838 | /* 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] | 14839 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 14840 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14841 | .probe = probe_spi_rdid, |
| 14842 | .probe_timing = TIMING_ZERO, |
| 14843 | .block_erasers = |
| 14844 | { |
| 14845 | { |
| 14846 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14847 | .block_erase = spi_block_erase_20, |
| 14848 | }, { |
| 14849 | .eraseblocks = { {32 * 1024, 256} }, |
| 14850 | .block_erase = spi_block_erase_52, |
| 14851 | }, { |
| 14852 | .eraseblocks = { {64 * 1024, 128} }, |
| 14853 | .block_erase = spi_block_erase_d8, |
| 14854 | }, { |
| 14855 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14856 | .block_erase = spi_block_erase_60, |
| 14857 | }, { |
| 14858 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14859 | .block_erase = spi_block_erase_c7, |
| 14860 | } |
| 14861 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14862 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14863 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14864 | .write = spi_chip_write_256, |
| 14865 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14866 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14867 | }, |
| 14868 | |
| 14869 | { |
| 14870 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14871 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14872 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14873 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14874 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14875 | .total_size = 16384, |
| 14876 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14877 | /* supports SFDP */ |
| 14878 | /* 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] | 14879 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14880 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14881 | .probe = probe_spi_rdid, |
| 14882 | .probe_timing = TIMING_ZERO, |
| 14883 | .block_erasers = |
| 14884 | { |
| 14885 | { |
| 14886 | .eraseblocks = { {4 * 1024, 4096} }, |
| 14887 | .block_erase = spi_block_erase_20, |
| 14888 | }, { |
| 14889 | .eraseblocks = { {32 * 1024, 512} }, |
| 14890 | .block_erase = spi_block_erase_52, |
| 14891 | }, { |
| 14892 | .eraseblocks = { {64 * 1024, 256} }, |
| 14893 | .block_erase = spi_block_erase_d8, |
| 14894 | }, { |
| 14895 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 14896 | .block_erase = spi_block_erase_60, |
| 14897 | }, { |
| 14898 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 14899 | .block_erase = spi_block_erase_c7, |
| 14900 | } |
| 14901 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14902 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14903 | .unlock = spi_disable_blockprotect, |
| 14904 | .write = spi_chip_write_256, |
| 14905 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14906 | .voltage = {2700, 3600}, |
| 14907 | }, |
| 14908 | |
| 14909 | { |
| 14910 | .vendor = "Winbond", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 14911 | .name = "W25Q256.V", |
| 14912 | .bustype = BUS_SPI, |
| 14913 | .manufacture_id = WINBOND_NEX_ID, |
| 14914 | .model_id = WINBOND_NEX_W25Q256_V, |
| 14915 | .total_size = 32768, |
| 14916 | .page_size = 256, |
| 14917 | /* supports SFDP */ |
| 14918 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14919 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 14920 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 14921 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
| 14922 | .tested = TEST_UNTESTED, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 14923 | .probe = probe_spi_rdid, |
| 14924 | .probe_timing = TIMING_ZERO, |
| 14925 | .block_erasers = |
| 14926 | { |
| 14927 | { |
| 14928 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 14929 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 14930 | }, { |
| 14931 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 14932 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 14933 | }, { |
| 14934 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 14935 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 14936 | }, { |
| 14937 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 14938 | .block_erase = spi_block_erase_60, |
| 14939 | }, { |
| 14940 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 14941 | .block_erase = spi_block_erase_c7, |
| 14942 | } |
| 14943 | }, |
| 14944 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14945 | .unlock = spi_disable_blockprotect, |
| 14946 | .write = spi_chip_write_256, |
| 14947 | .read = spi_chip_read, |
| 14948 | .voltage = {2700, 3600}, |
| 14949 | }, |
| 14950 | |
| 14951 | { |
| 14952 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14953 | .name = "W25Q20.W", |
| 14954 | .bustype = BUS_SPI, |
| 14955 | .manufacture_id = WINBOND_NEX_ID, |
| 14956 | .model_id = WINBOND_NEX_W25Q20_W, |
| 14957 | .total_size = 256, |
| 14958 | .page_size = 256, |
| 14959 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14960 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14961 | .tested = TEST_UNTESTED, |
| 14962 | .probe = probe_spi_rdid, |
| 14963 | .probe_timing = TIMING_ZERO, |
| 14964 | .block_erasers = |
| 14965 | { |
| 14966 | { |
| 14967 | .eraseblocks = { {4 * 1024, 64} }, |
| 14968 | .block_erase = spi_block_erase_20, |
| 14969 | }, { |
| 14970 | .eraseblocks = { {32 * 1024, 8} }, |
| 14971 | .block_erase = spi_block_erase_52, |
| 14972 | }, { |
| 14973 | .eraseblocks = { {64 * 1024, 4} }, |
| 14974 | .block_erase = spi_block_erase_d8, |
| 14975 | }, { |
| 14976 | .eraseblocks = { {256 * 1024, 1} }, |
| 14977 | .block_erase = spi_block_erase_60, |
| 14978 | }, { |
| 14979 | .eraseblocks = { {256 * 1024, 1} }, |
| 14980 | .block_erase = spi_block_erase_c7, |
| 14981 | } |
| 14982 | }, |
| 14983 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14984 | .unlock = spi_disable_blockprotect, |
| 14985 | .write = spi_chip_write_256, |
| 14986 | .read = spi_chip_read, |
| 14987 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 14988 | }, |
| 14989 | |
| 14990 | { |
| 14991 | .vendor = "Winbond", |
| 14992 | .name = "W25Q40.W", |
| 14993 | .bustype = BUS_SPI, |
| 14994 | .manufacture_id = WINBOND_NEX_ID, |
| 14995 | .model_id = WINBOND_NEX_W25Q40_W, |
| 14996 | .total_size = 512, |
| 14997 | .page_size = 256, |
| 14998 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14999 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15000 | .tested = TEST_UNTESTED, |
| 15001 | .probe = probe_spi_rdid, |
| 15002 | .probe_timing = TIMING_ZERO, |
| 15003 | .block_erasers = |
| 15004 | { |
| 15005 | { |
| 15006 | .eraseblocks = { {4 * 1024, 128} }, |
| 15007 | .block_erase = spi_block_erase_20, |
| 15008 | }, { |
| 15009 | .eraseblocks = { {32 * 1024, 16} }, |
| 15010 | .block_erase = spi_block_erase_52, |
| 15011 | }, { |
| 15012 | .eraseblocks = { {64 * 1024, 8} }, |
| 15013 | .block_erase = spi_block_erase_d8, |
| 15014 | }, { |
| 15015 | .eraseblocks = { {512 * 1024, 1} }, |
| 15016 | .block_erase = spi_block_erase_60, |
| 15017 | }, { |
| 15018 | .eraseblocks = { {512 * 1024, 1} }, |
| 15019 | .block_erase = spi_block_erase_c7, |
| 15020 | } |
| 15021 | }, |
| 15022 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15023 | .unlock = spi_disable_blockprotect, |
| 15024 | .write = spi_chip_write_256, |
| 15025 | .read = spi_chip_read, |
| 15026 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15027 | }, |
| 15028 | |
| 15029 | { |
| 15030 | .vendor = "Winbond", |
| 15031 | .name = "W25Q80.W", |
| 15032 | .bustype = BUS_SPI, |
| 15033 | .manufacture_id = WINBOND_NEX_ID, |
| 15034 | .model_id = WINBOND_NEX_W25Q80_W, |
| 15035 | .total_size = 1024, |
| 15036 | .page_size = 256, |
| 15037 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15038 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15039 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15040 | .probe = probe_spi_rdid, |
| 15041 | .probe_timing = TIMING_ZERO, |
| 15042 | .block_erasers = |
| 15043 | { |
| 15044 | { |
| 15045 | .eraseblocks = { {4 * 1024, 256} }, |
| 15046 | .block_erase = spi_block_erase_20, |
| 15047 | }, { |
| 15048 | .eraseblocks = { {32 * 1024, 32} }, |
| 15049 | .block_erase = spi_block_erase_52, |
| 15050 | }, { |
| 15051 | .eraseblocks = { {64 * 1024, 16} }, |
| 15052 | .block_erase = spi_block_erase_d8, |
| 15053 | }, { |
| 15054 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 15055 | .block_erase = spi_block_erase_60, |
| 15056 | }, { |
| 15057 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 15058 | .block_erase = spi_block_erase_c7, |
| 15059 | } |
| 15060 | }, |
| 15061 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15062 | .unlock = spi_disable_blockprotect, |
| 15063 | .write = spi_chip_write_256, |
| 15064 | .read = spi_chip_read, |
| 15065 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15066 | }, |
| 15067 | |
| 15068 | { |
| 15069 | .vendor = "Winbond", |
| 15070 | .name = "W25Q16.W", |
| 15071 | .bustype = BUS_SPI, |
| 15072 | .manufacture_id = WINBOND_NEX_ID, |
| 15073 | .model_id = WINBOND_NEX_W25Q16_W, |
| 15074 | .total_size = 2048, |
| 15075 | .page_size = 256, |
| 15076 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15077 | /* QPI enable 0x38, disable 0xFF */ |
| 15078 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15079 | .tested = TEST_UNTESTED, |
| 15080 | .probe = probe_spi_rdid, |
| 15081 | .probe_timing = TIMING_ZERO, |
| 15082 | .block_erasers = |
| 15083 | { |
| 15084 | { |
| 15085 | .eraseblocks = { {4 * 1024, 512} }, |
| 15086 | .block_erase = spi_block_erase_20, |
| 15087 | }, { |
| 15088 | .eraseblocks = { {32 * 1024, 64} }, |
| 15089 | .block_erase = spi_block_erase_52, |
| 15090 | }, { |
| 15091 | .eraseblocks = { {64 * 1024, 32} }, |
| 15092 | .block_erase = spi_block_erase_d8, |
| 15093 | }, { |
| 15094 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15095 | .block_erase = spi_block_erase_60, |
| 15096 | }, { |
| 15097 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15098 | .block_erase = spi_block_erase_c7, |
| 15099 | } |
| 15100 | }, |
| 15101 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15102 | .unlock = spi_disable_blockprotect, |
| 15103 | .write = spi_chip_write_256, |
| 15104 | .read = spi_chip_read, |
| 15105 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15106 | }, |
| 15107 | |
| 15108 | { |
| 15109 | .vendor = "Winbond", |
| 15110 | .name = "W25Q32.W", |
| 15111 | .bustype = BUS_SPI, |
| 15112 | .manufacture_id = WINBOND_NEX_ID, |
| 15113 | .model_id = WINBOND_NEX_W25Q32_W, |
| 15114 | .total_size = 4096, |
| 15115 | .page_size = 256, |
| 15116 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15117 | /* QPI enable 0x38, disable 0xFF */ |
| 15118 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15119 | .tested = TEST_OK_PREW, |
| 15120 | .probe = probe_spi_rdid, |
| 15121 | .probe_timing = TIMING_ZERO, |
| 15122 | .block_erasers = |
| 15123 | { |
| 15124 | { |
| 15125 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15126 | .block_erase = spi_block_erase_20, |
| 15127 | }, { |
| 15128 | .eraseblocks = { {32 * 1024, 128} }, |
| 15129 | .block_erase = spi_block_erase_52, |
| 15130 | }, { |
| 15131 | .eraseblocks = { {64 * 1024, 64} }, |
| 15132 | .block_erase = spi_block_erase_d8, |
| 15133 | }, { |
| 15134 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15135 | .block_erase = spi_block_erase_60, |
| 15136 | }, { |
| 15137 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15138 | .block_erase = spi_block_erase_c7, |
| 15139 | } |
| 15140 | }, |
| 15141 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15142 | .unlock = spi_disable_blockprotect, |
| 15143 | .write = spi_chip_write_256, |
| 15144 | .read = spi_chip_read, |
| 15145 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15146 | }, |
| 15147 | |
| 15148 | { |
| 15149 | .vendor = "Winbond", |
| 15150 | .name = "W25Q64.W", |
| 15151 | .bustype = BUS_SPI, |
| 15152 | .manufacture_id = WINBOND_NEX_ID, |
| 15153 | .model_id = WINBOND_NEX_W25Q64_W, |
| 15154 | .total_size = 8192, |
| 15155 | .page_size = 256, |
| 15156 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15157 | /* QPI enable 0x38, disable 0xFF */ |
| 15158 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15159 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15160 | .probe = probe_spi_rdid, |
| 15161 | .probe_timing = TIMING_ZERO, |
| 15162 | .block_erasers = |
| 15163 | { |
| 15164 | { |
| 15165 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15166 | .block_erase = spi_block_erase_20, |
| 15167 | }, { |
| 15168 | .eraseblocks = { {32 * 1024, 256} }, |
| 15169 | .block_erase = spi_block_erase_52, |
| 15170 | }, { |
| 15171 | .eraseblocks = { {64 * 1024, 128} }, |
| 15172 | .block_erase = spi_block_erase_d8, |
| 15173 | }, { |
| 15174 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15175 | .block_erase = spi_block_erase_60, |
| 15176 | }, { |
| 15177 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15178 | .block_erase = spi_block_erase_c7, |
| 15179 | } |
| 15180 | }, |
| 15181 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15182 | .unlock = spi_disable_blockprotect, |
| 15183 | .write = spi_chip_write_256, |
| 15184 | .read = spi_chip_read, |
| 15185 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15186 | }, |
| 15187 | |
| 15188 | { |
| 15189 | .vendor = "Winbond", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 15190 | .name = "W25Q128.W", |
| 15191 | .bustype = BUS_SPI, |
| 15192 | .manufacture_id = WINBOND_NEX_ID, |
| 15193 | .model_id = WINBOND_NEX_W25Q128_W, |
| 15194 | .total_size = 16384, |
| 15195 | .page_size = 256, |
| 15196 | /* supports SFDP */ |
| 15197 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15198 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 15199 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 15200 | .probe = probe_spi_rdid, |
| 15201 | .probe_timing = TIMING_ZERO, |
| 15202 | .block_erasers = |
| 15203 | { |
| 15204 | { |
| 15205 | .eraseblocks = { {4 * 1024, 4096} }, |
| 15206 | .block_erase = spi_block_erase_20, |
| 15207 | }, { |
| 15208 | .eraseblocks = { {32 * 1024, 512} }, |
| 15209 | .block_erase = spi_block_erase_52, |
| 15210 | }, { |
| 15211 | .eraseblocks = { {64 * 1024, 256} }, |
| 15212 | .block_erase = spi_block_erase_d8, |
| 15213 | }, { |
| 15214 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15215 | .block_erase = spi_block_erase_60, |
| 15216 | }, { |
| 15217 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15218 | .block_erase = spi_block_erase_c7, |
| 15219 | } |
| 15220 | }, |
| 15221 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15222 | .unlock = spi_disable_blockprotect, |
| 15223 | .write = spi_chip_write_256, |
| 15224 | .read = spi_chip_read, |
| 15225 | .voltage = {1650, 1950}, |
| 15226 | }, |
| 15227 | |
| 15228 | { |
| 15229 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15230 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15231 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15232 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15233 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15234 | .total_size = 128, |
| 15235 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15236 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 15237 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15238 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15239 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15240 | .block_erasers = |
| 15241 | { |
| 15242 | { |
| 15243 | .eraseblocks = { {4 * 1024, 32} }, |
| 15244 | .block_erase = spi_block_erase_20, |
| 15245 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15246 | .eraseblocks = { {64 * 1024, 2} }, |
| 15247 | .block_erase = spi_block_erase_d8, |
| 15248 | }, { |
| 15249 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15250 | .block_erase = spi_block_erase_c7, |
| 15251 | } |
| 15252 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15253 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15254 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15255 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15256 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15257 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15258 | }, |
| 15259 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15260 | { |
| 15261 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15262 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15263 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15264 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15265 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15266 | .total_size = 256, |
| 15267 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15268 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15269 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15270 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15271 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15272 | .block_erasers = |
| 15273 | { |
| 15274 | { |
| 15275 | .eraseblocks = { {4 * 1024, 64} }, |
| 15276 | .block_erase = spi_block_erase_20, |
| 15277 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15278 | .eraseblocks = { {64 * 1024, 4} }, |
| 15279 | .block_erase = spi_block_erase_d8, |
| 15280 | }, { |
| 15281 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15282 | .block_erase = spi_block_erase_c7, |
| 15283 | } |
| 15284 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15285 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15286 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15287 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15288 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15289 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15290 | }, |
| 15291 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15292 | { |
| 15293 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15294 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15295 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15296 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15297 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15298 | .total_size = 512, |
| 15299 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15300 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 15301 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15302 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15303 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15304 | .block_erasers = |
| 15305 | { |
| 15306 | { |
| 15307 | .eraseblocks = { {4 * 1024, 128} }, |
| 15308 | .block_erase = spi_block_erase_20, |
| 15309 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15310 | .eraseblocks = { {64 * 1024, 8} }, |
| 15311 | .block_erase = spi_block_erase_d8, |
| 15312 | }, { |
| 15313 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15314 | .block_erase = spi_block_erase_c7, |
| 15315 | } |
| 15316 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15317 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15318 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15319 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15320 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15321 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15322 | }, |
| 15323 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15324 | { |
| 15325 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15326 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15327 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15328 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15329 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15330 | .total_size = 1024, |
| 15331 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15332 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 15333 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15334 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15335 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15336 | .block_erasers = |
| 15337 | { |
| 15338 | { |
| 15339 | .eraseblocks = { {4 * 1024, 256} }, |
| 15340 | .block_erase = spi_block_erase_20, |
| 15341 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15342 | .eraseblocks = { {64 * 1024, 16} }, |
| 15343 | .block_erase = spi_block_erase_d8, |
| 15344 | }, { |
| 15345 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15346 | .block_erase = spi_block_erase_c7, |
| 15347 | } |
| 15348 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15349 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15350 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15351 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15352 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15353 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15354 | }, |
| 15355 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15356 | { |
| 15357 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15358 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15359 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15360 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15361 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15362 | .total_size = 2048, |
| 15363 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15364 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 15365 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15366 | .probe = probe_spi_rdid, |
| 15367 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15368 | .block_erasers = |
| 15369 | { |
| 15370 | { |
| 15371 | .eraseblocks = { {4 * 1024, 512} }, |
| 15372 | .block_erase = spi_block_erase_20, |
| 15373 | }, { |
| 15374 | .eraseblocks = { {32 * 1024, 64} }, |
| 15375 | .block_erase = spi_block_erase_52, |
| 15376 | }, { |
| 15377 | .eraseblocks = { {64 * 1024, 32} }, |
| 15378 | .block_erase = spi_block_erase_d8, |
| 15379 | }, { |
| 15380 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15381 | .block_erase = spi_block_erase_60, |
| 15382 | }, { |
| 15383 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15384 | .block_erase = spi_block_erase_c7, |
| 15385 | } |
| 15386 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15387 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15388 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15389 | .write = spi_chip_write_256, |
| 15390 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15391 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15392 | }, |
| 15393 | |
| 15394 | { |
| 15395 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15396 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15397 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15398 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15399 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15400 | .total_size = 4096, |
| 15401 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15402 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 15403 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15404 | .probe = probe_spi_rdid, |
| 15405 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15406 | .block_erasers = |
| 15407 | { |
| 15408 | { |
| 15409 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15410 | .block_erase = spi_block_erase_20, |
| 15411 | }, { |
| 15412 | .eraseblocks = { {32 * 1024, 128} }, |
| 15413 | .block_erase = spi_block_erase_52, |
| 15414 | }, { |
| 15415 | .eraseblocks = { {64 * 1024, 64} }, |
| 15416 | .block_erase = spi_block_erase_d8, |
| 15417 | }, { |
| 15418 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15419 | .block_erase = spi_block_erase_60, |
| 15420 | }, { |
| 15421 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15422 | .block_erase = spi_block_erase_c7, |
| 15423 | } |
| 15424 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15425 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15426 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15427 | .write = spi_chip_write_256, |
| 15428 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15429 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15430 | }, |
| 15431 | |
| 15432 | { |
| 15433 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15434 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15435 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15436 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15437 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15438 | .total_size = 8192, |
| 15439 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15440 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15441 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15442 | .probe = probe_spi_rdid, |
| 15443 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15444 | .block_erasers = |
| 15445 | { |
| 15446 | { |
| 15447 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15448 | .block_erase = spi_block_erase_20, |
| 15449 | }, { |
| 15450 | .eraseblocks = { {32 * 1024, 256} }, |
| 15451 | .block_erase = spi_block_erase_52, |
| 15452 | }, { |
| 15453 | .eraseblocks = { {64 * 1024, 128} }, |
| 15454 | .block_erase = spi_block_erase_d8, |
| 15455 | }, { |
| 15456 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15457 | .block_erase = spi_block_erase_60, |
| 15458 | }, { |
| 15459 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15460 | .block_erase = spi_block_erase_c7, |
| 15461 | } |
| 15462 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15463 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15464 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15465 | .write = spi_chip_write_256, |
| 15466 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15467 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15468 | }, |
| 15469 | |
| 15470 | { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 15471 | .vendor = "Winbond", |
| 15472 | .name = "W25P80", |
| 15473 | .bustype = BUS_SPI, |
| 15474 | .manufacture_id = WINBOND_NEX_ID, |
| 15475 | .model_id = WINBOND_NEX_W25P80, |
| 15476 | .total_size = 1024, |
| 15477 | .page_size = 256, |
| 15478 | .feature_bits = FEATURE_WRSR_WREN, |
| 15479 | .tested = TEST_UNTESTED, |
| 15480 | .probe = probe_spi_rdid, |
| 15481 | .probe_timing = TIMING_ZERO, |
| 15482 | .block_erasers = |
| 15483 | { |
| 15484 | { |
| 15485 | .eraseblocks = { {64 * 1024, 16} }, |
| 15486 | .block_erase = spi_block_erase_d8, |
| 15487 | }, { |
| 15488 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15489 | .block_erase = spi_block_erase_c7, |
| 15490 | } |
| 15491 | }, |
| 15492 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15493 | .unlock = spi_disable_blockprotect, |
| 15494 | .write = spi_chip_write_256, |
| 15495 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15496 | .voltage = {2700, 3600}, |
| 15497 | }, |
| 15498 | |
| 15499 | { |
| 15500 | .vendor = "Winbond", |
| 15501 | .name = "W25P16", |
| 15502 | .bustype = BUS_SPI, |
| 15503 | .manufacture_id = WINBOND_NEX_ID, |
| 15504 | .model_id = WINBOND_NEX_W25P16, |
| 15505 | .total_size = 2048, |
| 15506 | .page_size = 256, |
| 15507 | .feature_bits = FEATURE_WRSR_WREN, |
| 15508 | .tested = TEST_UNTESTED, |
| 15509 | .probe = probe_spi_rdid, |
| 15510 | .probe_timing = TIMING_ZERO, |
| 15511 | .block_erasers = |
| 15512 | { |
| 15513 | { |
| 15514 | .eraseblocks = { {64 * 1024, 32} }, |
| 15515 | .block_erase = spi_block_erase_d8, |
| 15516 | }, { |
| 15517 | .eraseblocks = { {2048 * 1024, 1} }, |
| 15518 | .block_erase = spi_block_erase_c7, |
| 15519 | } |
| 15520 | }, |
| 15521 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15522 | .unlock = spi_disable_blockprotect, |
| 15523 | .write = spi_chip_write_256, |
| 15524 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15525 | .voltage = {2700, 3600}, |
| 15526 | }, |
| 15527 | |
| 15528 | { |
| 15529 | .vendor = "Winbond", |
| 15530 | .name = "W25P32", |
| 15531 | .bustype = BUS_SPI, |
| 15532 | .manufacture_id = WINBOND_NEX_ID, |
| 15533 | .model_id = WINBOND_NEX_W25P32, |
| 15534 | .total_size = 4096, |
| 15535 | .page_size = 256, |
| 15536 | .feature_bits = FEATURE_WRSR_WREN, |
| 15537 | .tested = TEST_UNTESTED, |
| 15538 | .probe = probe_spi_rdid, |
| 15539 | .probe_timing = TIMING_ZERO, |
| 15540 | .block_erasers = |
| 15541 | { |
| 15542 | { |
| 15543 | .eraseblocks = { {64 * 1024, 64} }, |
| 15544 | .block_erase = spi_block_erase_d8, |
| 15545 | }, { |
| 15546 | .eraseblocks = { {4096 * 1024, 1} }, |
| 15547 | .block_erase = spi_block_erase_c7, |
| 15548 | } |
| 15549 | }, |
| 15550 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15551 | .unlock = spi_disable_blockprotect, |
| 15552 | .write = spi_chip_write_256, |
| 15553 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15554 | .voltage = {2700, 3600}, |
| 15555 | }, |
| 15556 | { |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15557 | .vendor = "Winbond", |
Urja Rannikko | 2a1aaba | 2015-06-20 11:53:10 +0000 | [diff] [blame] | 15558 | .name = "W29C512A/W29EE512", |
| 15559 | .bustype = BUS_PARALLEL, |
| 15560 | .manufacture_id = WINBOND_ID, |
| 15561 | .model_id = WINBOND_W29C512A, |
| 15562 | .total_size = 64, |
| 15563 | .page_size = 128, |
| 15564 | .feature_bits = FEATURE_LONG_RESET, |
| 15565 | .tested = TEST_OK_PREW, |
| 15566 | .probe = probe_jedec, |
| 15567 | .probe_timing = 10, |
| 15568 | .block_erasers = |
| 15569 | { |
| 15570 | { |
| 15571 | .eraseblocks = { {64 * 1024, 1} }, |
| 15572 | .block_erase = erase_chip_block_jedec, |
| 15573 | } |
| 15574 | }, |
| 15575 | .write = write_jedec, |
| 15576 | .read = read_memmapped, |
| 15577 | .voltage = {4500, 5500}, |
| 15578 | }, |
| 15579 | |
| 15580 | { |
| 15581 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 15582 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15583 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 15584 | .manufacture_id = WINBOND_ID, |
| 15585 | .model_id = WINBOND_W29C010, |
| 15586 | .total_size = 128, |
| 15587 | .page_size = 128, |
| 15588 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 15589 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 15590 | .probe = probe_w29ee011, |
| 15591 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 15592 | .block_erasers = |
| 15593 | { |
| 15594 | { |
| 15595 | .eraseblocks = { {128 * 1024, 1} }, |
| 15596 | .block_erase = erase_chip_block_jedec, |
| 15597 | } |
| 15598 | }, |
| 15599 | .write = write_jedec, |
| 15600 | .read = read_memmapped, |
| 15601 | }, |
| 15602 | |
| 15603 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 15604 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15605 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15606 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15607 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15608 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15609 | .total_size = 128, |
| 15610 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15611 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 15612 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15613 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15614 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15615 | .block_erasers = |
| 15616 | { |
| 15617 | { |
| 15618 | .eraseblocks = { {128 * 1024, 1} }, |
| 15619 | .block_erase = erase_chip_block_jedec, |
| 15620 | } |
| 15621 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15622 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15623 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15624 | }, |
| 15625 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15626 | { |
| 15627 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15628 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15629 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15630 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15631 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15632 | .total_size = 256, |
| 15633 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15634 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15635 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15636 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15637 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15638 | .block_erasers = |
| 15639 | { |
| 15640 | { |
| 15641 | .eraseblocks = { {256 * 1024, 1} }, |
| 15642 | .block_erase = erase_chip_block_jedec, |
| 15643 | } |
| 15644 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15645 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15646 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15647 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15648 | }, |
| 15649 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15650 | { |
| 15651 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15652 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15653 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15654 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15655 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15656 | .total_size = 512, |
| 15657 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15658 | .feature_bits = FEATURE_LONG_RESET, |
| 15659 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15660 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15661 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15662 | .block_erasers = |
| 15663 | { |
| 15664 | { |
| 15665 | .eraseblocks = { {512 * 1024, 1} }, |
| 15666 | .block_erase = erase_chip_block_jedec, |
| 15667 | } |
| 15668 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15669 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15670 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15671 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15672 | }, |
| 15673 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15674 | { |
| 15675 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 15676 | .name = "W29GL032CB", |
| 15677 | .bustype = BUS_PARALLEL, |
| 15678 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15679 | .model_id = WINBOND_W29GL032CB, |
| 15680 | .total_size = 4096, |
| 15681 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15682 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15683 | .tested = TEST_UNTESTED, |
| 15684 | .probe = probe_jedec_29gl, |
| 15685 | .probe_timing = TIMING_ZERO, |
| 15686 | .block_erasers = |
| 15687 | { |
| 15688 | { |
| 15689 | .eraseblocks = { |
| 15690 | {8 * 1024, 8}, |
| 15691 | {64 * 1024, 63}, |
| 15692 | }, |
| 15693 | .block_erase = erase_sector_jedec, |
| 15694 | }, { |
| 15695 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15696 | .block_erase = erase_chip_block_jedec, |
| 15697 | }, |
| 15698 | }, |
| 15699 | .write = write_jedec_1, |
| 15700 | .read = read_memmapped, |
| 15701 | .voltage = {2700, 3600}, |
| 15702 | }, |
| 15703 | |
| 15704 | { |
| 15705 | .vendor = "Winbond", |
| 15706 | .name = "W29GL032CT", |
| 15707 | .bustype = BUS_PARALLEL, |
| 15708 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15709 | .model_id = WINBOND_W29GL032CT, |
| 15710 | .total_size = 4096, |
| 15711 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15712 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15713 | .tested = TEST_UNTESTED, |
| 15714 | .probe = probe_jedec_29gl, |
| 15715 | .probe_timing = TIMING_ZERO, |
| 15716 | .block_erasers = |
| 15717 | { |
| 15718 | { |
| 15719 | .eraseblocks = { |
| 15720 | {64 * 1024, 63}, |
| 15721 | {8 * 1024, 8}, |
| 15722 | }, |
| 15723 | .block_erase = erase_sector_jedec, |
| 15724 | }, { |
| 15725 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15726 | .block_erase = erase_chip_block_jedec, |
| 15727 | }, |
| 15728 | }, |
| 15729 | .write = write_jedec_1, |
| 15730 | .read = read_memmapped, |
| 15731 | .voltage = {2700, 3600}, |
| 15732 | }, |
| 15733 | |
| 15734 | { |
| 15735 | .vendor = "Winbond", |
| 15736 | .name = "W29GL032CH/L", |
| 15737 | .bustype = BUS_PARALLEL, |
| 15738 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15739 | .model_id = WINBOND_W29GL032CHL, |
| 15740 | .total_size = 4096, |
| 15741 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15742 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15743 | .tested = TEST_UNTESTED, |
| 15744 | .probe = probe_jedec_29gl, |
| 15745 | .probe_timing = TIMING_ZERO, |
| 15746 | .block_erasers = |
| 15747 | { |
| 15748 | { |
| 15749 | .eraseblocks = { {64 * 1024, 64} }, |
| 15750 | .block_erase = erase_sector_jedec, |
| 15751 | }, { |
| 15752 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15753 | .block_erase = erase_chip_block_jedec, |
| 15754 | }, |
| 15755 | }, |
| 15756 | .write = write_jedec_1, |
| 15757 | .read = read_memmapped, |
| 15758 | .voltage = {2700, 3600}, |
| 15759 | }, |
| 15760 | |
| 15761 | { |
| 15762 | .vendor = "Winbond", |
| 15763 | .name = "W29GL064CB", |
| 15764 | .bustype = BUS_PARALLEL, |
| 15765 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15766 | .model_id = WINBOND_W29GL064CB, |
| 15767 | .total_size = 8192, |
| 15768 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15769 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15770 | .tested = TEST_UNTESTED, |
| 15771 | .probe = probe_jedec_29gl, |
| 15772 | .probe_timing = TIMING_ZERO, |
| 15773 | .block_erasers = |
| 15774 | { |
| 15775 | { |
| 15776 | .eraseblocks = { |
| 15777 | {8 * 1024, 8}, |
| 15778 | {64 * 1024, 127}, |
| 15779 | }, |
| 15780 | .block_erase = erase_sector_jedec, |
| 15781 | }, { |
| 15782 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15783 | .block_erase = erase_chip_block_jedec, |
| 15784 | }, |
| 15785 | }, |
| 15786 | .write = write_jedec_1, |
| 15787 | .read = read_memmapped, |
| 15788 | .voltage = {2700, 3600}, |
| 15789 | }, |
| 15790 | |
| 15791 | { |
| 15792 | .vendor = "Winbond", |
| 15793 | .name = "W29GL064CT", |
| 15794 | .bustype = BUS_PARALLEL, |
| 15795 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15796 | .model_id = WINBOND_W29GL064CT, |
| 15797 | .total_size = 8192, |
| 15798 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15799 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15800 | .tested = TEST_UNTESTED, |
| 15801 | .probe = probe_jedec_29gl, |
| 15802 | .probe_timing = TIMING_ZERO, |
| 15803 | .block_erasers = |
| 15804 | { |
| 15805 | { |
| 15806 | .eraseblocks = { |
| 15807 | {64 * 1024, 127}, |
| 15808 | {8 * 1024, 8}, |
| 15809 | }, |
| 15810 | .block_erase = erase_sector_jedec, |
| 15811 | }, { |
| 15812 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15813 | .block_erase = erase_chip_block_jedec, |
| 15814 | }, |
| 15815 | }, |
| 15816 | .write = write_jedec_1, |
| 15817 | .read = read_memmapped, |
| 15818 | .voltage = {2700, 3600}, |
| 15819 | }, |
| 15820 | |
| 15821 | { |
| 15822 | .vendor = "Winbond", |
| 15823 | .name = "W29GL064CH/L", |
| 15824 | .bustype = BUS_PARALLEL, |
| 15825 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15826 | .model_id = WINBOND_W29GL064CHL, |
| 15827 | .total_size = 8192, |
| 15828 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15829 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15830 | .tested = TEST_UNTESTED, |
| 15831 | .probe = probe_jedec_29gl, |
| 15832 | .probe_timing = TIMING_ZERO, |
| 15833 | .block_erasers = |
| 15834 | { |
| 15835 | { |
| 15836 | .eraseblocks = { {64 * 1024, 128} }, |
| 15837 | .block_erase = erase_sector_jedec, |
| 15838 | }, { |
| 15839 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15840 | .block_erase = erase_chip_block_jedec, |
| 15841 | }, |
| 15842 | }, |
| 15843 | .write = write_jedec_1, |
| 15844 | .read = read_memmapped, |
| 15845 | .voltage = {2700, 3600}, |
| 15846 | }, |
| 15847 | |
| 15848 | { |
| 15849 | .vendor = "Winbond", |
| 15850 | .name = "W29GL128C", |
| 15851 | .bustype = BUS_PARALLEL, |
| 15852 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 15853 | .model_id = WINBOND_W29GL128CHL, |
| 15854 | .total_size = 16384, |
| 15855 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 15856 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 15857 | .tested = TEST_UNTESTED, |
| 15858 | .probe = probe_jedec_29gl, |
| 15859 | .probe_timing = TIMING_ZERO, |
| 15860 | .block_erasers = |
| 15861 | { |
| 15862 | { |
| 15863 | .eraseblocks = { {128 * 1024, 128} }, |
| 15864 | .block_erase = erase_sector_jedec, |
| 15865 | }, { |
| 15866 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15867 | .block_erase = erase_chip_block_jedec, |
| 15868 | }, |
| 15869 | }, |
| 15870 | .write = write_jedec_1, |
| 15871 | .read = read_memmapped, |
| 15872 | .voltage = {2700, 3600}, |
| 15873 | }, |
| 15874 | |
| 15875 | { |
| 15876 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 15877 | .name = "W39F010", |
| 15878 | .bustype = BUS_PARALLEL, |
| 15879 | .manufacture_id = WINBOND_ID, |
| 15880 | .model_id = WINBOND_W39F010, |
| 15881 | .total_size = 128, |
| 15882 | .page_size = 4 * 1024, |
| 15883 | .feature_bits = FEATURE_EITHER_RESET, |
| 15884 | .tested = TEST_OK_PREW, |
| 15885 | .probe = probe_jedec, |
| 15886 | .probe_timing = 10, |
| 15887 | .block_erasers = |
| 15888 | { |
| 15889 | { |
| 15890 | .eraseblocks = { {4 * 1024, 32} }, |
| 15891 | .block_erase = erase_block_jedec, |
| 15892 | }, { |
| 15893 | .eraseblocks = { {128 * 1024, 1} }, |
| 15894 | .block_erase = erase_chip_block_jedec, |
| 15895 | } |
| 15896 | }, |
| 15897 | .printlock = printlock_w39f010, |
| 15898 | .write = write_jedec_1, |
| 15899 | .read = read_memmapped, |
| 15900 | .voltage = {4500, 5500}, |
| 15901 | }, |
| 15902 | |
| 15903 | { |
| 15904 | .vendor = "Winbond", |
| 15905 | .name = "W39L010", |
| 15906 | .bustype = BUS_PARALLEL, |
| 15907 | .manufacture_id = WINBOND_ID, |
| 15908 | .model_id = WINBOND_W39L010, |
| 15909 | .total_size = 128, |
| 15910 | .page_size = 4 * 1024, |
| 15911 | .feature_bits = FEATURE_EITHER_RESET, |
| 15912 | .tested = TEST_UNTESTED, |
| 15913 | .probe = probe_jedec, |
| 15914 | .probe_timing = 10, |
| 15915 | .block_erasers = |
| 15916 | { |
| 15917 | { |
| 15918 | .eraseblocks = { {4 * 1024, 32} }, |
| 15919 | .block_erase = erase_block_jedec, |
| 15920 | }, { |
| 15921 | .eraseblocks = { {128 * 1024, 1} }, |
| 15922 | .block_erase = erase_chip_block_jedec, |
| 15923 | } |
| 15924 | }, |
| 15925 | .printlock = printlock_w39l010, |
| 15926 | .write = write_jedec_1, |
| 15927 | .read = read_memmapped, |
| 15928 | .voltage = {3000, 3600}, |
| 15929 | }, |
| 15930 | |
| 15931 | { |
| 15932 | .vendor = "Winbond", |
| 15933 | .name = "W39L020", |
| 15934 | .bustype = BUS_PARALLEL, |
| 15935 | .manufacture_id = WINBOND_ID, |
| 15936 | .model_id = WINBOND_W39L020, |
| 15937 | .total_size = 256, |
| 15938 | .page_size = 4 * 1024, |
| 15939 | .feature_bits = FEATURE_EITHER_RESET, |
| 15940 | .tested = TEST_UNTESTED, |
| 15941 | .probe = probe_jedec, |
| 15942 | .probe_timing = 10, |
| 15943 | .block_erasers = |
| 15944 | { |
| 15945 | { |
| 15946 | .eraseblocks = { {4 * 1024, 64} }, |
| 15947 | .block_erase = erase_block_jedec, |
| 15948 | }, { |
| 15949 | .eraseblocks = { {64 * 1024, 4} }, |
| 15950 | .block_erase = erase_sector_jedec, |
| 15951 | }, { |
| 15952 | .eraseblocks = { {256 * 1024, 1} }, |
| 15953 | .block_erase = erase_chip_block_jedec, |
| 15954 | } |
| 15955 | }, |
| 15956 | .printlock = printlock_w39l020, |
| 15957 | .write = write_jedec_1, |
| 15958 | .read = read_memmapped, |
| 15959 | .voltage = {3000, 3600}, |
| 15960 | }, |
| 15961 | |
| 15962 | { |
| 15963 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15964 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15965 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15966 | .manufacture_id = WINBOND_ID, |
| 15967 | .model_id = WINBOND_W39L040, |
| 15968 | .total_size = 512, |
| 15969 | .page_size = 64 * 1024, |
| 15970 | .feature_bits = FEATURE_EITHER_RESET, |
| 15971 | .tested = TEST_OK_PR, |
| 15972 | .probe = probe_jedec, |
| 15973 | .probe_timing = 10, |
| 15974 | .block_erasers = |
| 15975 | { |
| 15976 | { |
| 15977 | .eraseblocks = { {4 * 1024, 128} }, |
| 15978 | .block_erase = erase_block_jedec, |
| 15979 | }, { |
| 15980 | .eraseblocks = { {64 * 1024, 8} }, |
| 15981 | .block_erase = erase_sector_jedec, |
| 15982 | }, { |
| 15983 | .eraseblocks = { {512 * 1024, 1} }, |
| 15984 | .block_erase = erase_chip_block_jedec, |
| 15985 | } |
| 15986 | }, |
| 15987 | .printlock = printlock_w39l040, |
| 15988 | .write = write_jedec_1, |
| 15989 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15990 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15991 | }, |
| 15992 | |
| 15993 | { |
| 15994 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15995 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15996 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15997 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15998 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15999 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16000 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16001 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 16002 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16003 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 16004 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16005 | .block_erasers = |
| 16006 | { |
| 16007 | { |
| 16008 | .eraseblocks = { {64 * 1024, 8} }, |
| 16009 | .block_erase = erase_sector_jedec, |
| 16010 | }, { |
| 16011 | .eraseblocks = { {512 * 1024, 1} }, |
| 16012 | .block_erase = erase_chip_block_jedec, |
| 16013 | } |
| 16014 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16015 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16016 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16017 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16018 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16019 | }, |
| 16020 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16021 | { |
| 16022 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16023 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16024 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16025 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16026 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16027 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16028 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16029 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16030 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16031 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16032 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16033 | .block_erasers = |
| 16034 | { |
| 16035 | { |
| 16036 | .eraseblocks = { {64 * 1024, 8} }, |
| 16037 | .block_erase = erase_sector_jedec, |
| 16038 | }, { |
| 16039 | .eraseblocks = { {512 * 1024, 1} }, |
| 16040 | .block_erase = erase_chip_block_jedec, |
| 16041 | } |
| 16042 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16043 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16044 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16045 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16046 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16047 | }, |
| 16048 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16049 | { |
| 16050 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16051 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16052 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16053 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16054 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16055 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16056 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16057 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16058 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16059 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16060 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16061 | .block_erasers = |
| 16062 | { |
| 16063 | { |
| 16064 | .eraseblocks = { {64 * 1024, 8} }, |
| 16065 | .block_erase = erase_sector_jedec, |
| 16066 | }, { |
| 16067 | .eraseblocks = { {512 * 1024, 1} }, |
| 16068 | .block_erase = erase_chip_block_jedec, |
| 16069 | } |
| 16070 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 16071 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16072 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16073 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16074 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16075 | }, |
| 16076 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16077 | { |
| 16078 | .vendor = "Winbond", |
| 16079 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16080 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16081 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16082 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16083 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16084 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 16085 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 16086 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16087 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16088 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16089 | .block_erasers = |
| 16090 | { |
| 16091 | { |
| 16092 | .eraseblocks = { {4 * 1024, 128} }, |
| 16093 | .block_erase = erase_block_jedec, |
| 16094 | }, { |
| 16095 | .eraseblocks = { {64 * 1024, 8} }, |
| 16096 | .block_erase = erase_sector_jedec, |
| 16097 | }, { |
| 16098 | .eraseblocks = { {512 * 1024, 1} }, |
| 16099 | .block_erase = erase_chip_block_jedec, |
| 16100 | } |
| 16101 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16102 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16103 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16104 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16105 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16106 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16107 | }, |
| 16108 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16109 | { |
| 16110 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16111 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16112 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16113 | .manufacture_id = WINBOND_ID, |
| 16114 | .model_id = WINBOND_W39V040B, |
| 16115 | .total_size = 512, |
| 16116 | .page_size = 64 * 1024, |
| 16117 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 16118 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16119 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16120 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16121 | .block_erasers = |
| 16122 | { |
| 16123 | { |
| 16124 | .eraseblocks = { {64 * 1024, 8} }, |
| 16125 | .block_erase = erase_sector_jedec, |
| 16126 | }, { |
| 16127 | .eraseblocks = { {512 * 1024, 1} }, |
| 16128 | .block_erase = erase_chip_block_jedec, |
| 16129 | } |
| 16130 | }, |
| 16131 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16132 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16133 | .write = write_jedec_1, |
| 16134 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16135 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16136 | }, |
| 16137 | |
| 16138 | { |
| 16139 | .vendor = "Winbond", |
| 16140 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16141 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16142 | .manufacture_id = WINBOND_ID, |
| 16143 | .model_id = WINBOND_W39V040C, |
| 16144 | .total_size = 512, |
| 16145 | .page_size = 64 * 1024, |
| 16146 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 16147 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16148 | .probe = probe_jedec, |
| 16149 | .probe_timing = 10, |
| 16150 | .block_erasers = |
| 16151 | { |
| 16152 | { |
| 16153 | .eraseblocks = { {64 * 1024, 8} }, |
| 16154 | .block_erase = erase_sector_jedec, |
| 16155 | }, { |
| 16156 | .eraseblocks = { {512 * 1024, 1} }, |
| 16157 | .block_erase = erase_chip_block_jedec, |
| 16158 | } |
| 16159 | }, |
| 16160 | .printlock = printlock_w39v040fc, |
| 16161 | .write = write_jedec_1, |
| 16162 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16163 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16164 | }, |
| 16165 | |
| 16166 | { |
| 16167 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16168 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16169 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16170 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16171 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16172 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16173 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16174 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 16175 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16176 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 16177 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16178 | .block_erasers = |
| 16179 | { |
| 16180 | { |
| 16181 | .eraseblocks = { {64 * 1024, 16} }, |
| 16182 | .block_erase = erase_sector_jedec, |
| 16183 | }, { |
| 16184 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16185 | .block_erase = erase_chip_block_jedec, |
| 16186 | } |
| 16187 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16188 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16189 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16190 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16191 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16192 | }, |
| 16193 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16194 | { |
| 16195 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16196 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16197 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16198 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16199 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16200 | .total_size = 256, |
| 16201 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16202 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 16203 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16204 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16205 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16206 | .block_erasers = |
| 16207 | { |
| 16208 | { |
| 16209 | .eraseblocks = { |
| 16210 | {128 * 1024, 1}, |
| 16211 | {96 * 1024, 1}, |
| 16212 | {8 * 1024, 2}, |
| 16213 | {16 * 1024, 1}, |
| 16214 | }, |
| 16215 | .block_erase = erase_sector_jedec, |
| 16216 | }, { |
| 16217 | .eraseblocks = { {256 * 1024, 1} }, |
| 16218 | .block_erase = erase_chip_block_jedec, |
| 16219 | } |
| 16220 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16221 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16222 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16223 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16224 | }, |
| 16225 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16226 | { |
| 16227 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16228 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16229 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16230 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16231 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16232 | .total_size = 256, |
| 16233 | .page_size = 128, |
| 16234 | .feature_bits = FEATURE_EITHER_RESET, |
| 16235 | .tested = TEST_OK_PROBE, |
| 16236 | .probe = probe_jedec, |
| 16237 | .probe_timing = 10, |
| 16238 | .block_erasers = |
| 16239 | { |
| 16240 | { |
| 16241 | .eraseblocks = { {256 * 1024, 1} }, |
| 16242 | .block_erase = erase_chip_block_jedec, |
| 16243 | } |
| 16244 | }, |
| 16245 | .write = write_jedec_1, |
| 16246 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16247 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16248 | }, |
| 16249 | |
| 16250 | { |
| 16251 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16252 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16253 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16254 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16255 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16256 | .total_size = 256, |
| 16257 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16258 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16259 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16260 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16261 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16262 | .block_erasers = |
| 16263 | { |
| 16264 | { |
| 16265 | .eraseblocks = { |
| 16266 | {64 * 1024, 3}, |
| 16267 | {32 * 1024, 1}, |
| 16268 | {8 * 1024, 2}, |
| 16269 | {16 * 1024, 1}, |
| 16270 | }, |
| 16271 | .block_erase = erase_sector_jedec, |
| 16272 | }, { |
| 16273 | .eraseblocks = { {256 * 1024, 1} }, |
| 16274 | .block_erase = erase_chip_block_jedec, |
| 16275 | } |
| 16276 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16277 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16278 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16279 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16280 | }, |
| 16281 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16282 | { |
| 16283 | .vendor = "Winbond", |
| 16284 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16285 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16286 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16287 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16288 | .total_size = 256, |
| 16289 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16290 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16291 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16292 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16293 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16294 | .block_erasers = |
| 16295 | { |
| 16296 | { |
| 16297 | .eraseblocks = { |
| 16298 | {64 * 1024, 3}, |
| 16299 | {32 * 1024, 1}, |
| 16300 | {8 * 1024, 2}, |
| 16301 | {16 * 1024, 1}, |
| 16302 | }, |
| 16303 | .block_erase = erase_sector_jedec, |
| 16304 | }, { |
| 16305 | .eraseblocks = { {256 * 1024, 1} }, |
| 16306 | .block_erase = erase_chip_block_jedec, |
| 16307 | } |
| 16308 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16309 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16310 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16311 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16312 | }, |
| 16313 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16314 | { |
| 16315 | .vendor = "Winbond", |
| 16316 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16317 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16318 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16319 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16320 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16321 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16322 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 16323 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 16324 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16325 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16326 | .block_erasers = |
| 16327 | { |
| 16328 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16329 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16330 | .block_erase = erase_sector_jedec, |
| 16331 | }, { |
| 16332 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16333 | .block_erase = erase_chip_block_jedec, |
| 16334 | } |
| 16335 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16336 | .printlock = printlock_w39v080fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16337 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16338 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16339 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16340 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16341 | }, |
| 16342 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16343 | { |
| 16344 | .vendor = "Winbond", |
| 16345 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16346 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16347 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16348 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16349 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16350 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16351 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16352 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 16353 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16354 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16355 | .block_erasers = |
| 16356 | { |
| 16357 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16358 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16359 | .block_erase = erase_sector_jedec, |
| 16360 | }, { |
| 16361 | .eraseblocks = { {512 * 1024, 1} }, |
| 16362 | .block_erase = erase_chip_block_jedec, |
| 16363 | } |
| 16364 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16365 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16366 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16367 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16368 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16369 | }, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 16370 | |
| 16371 | { |
| 16372 | .vendor = "Zetta Device", |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 16373 | .name = "ZD25D20", |
| 16374 | .bustype = BUS_SPI, |
| 16375 | .manufacture_id = ZETTADEVICE_ID, |
| 16376 | .model_id = ZETTADEVICE_ZD25D20, |
| 16377 | .total_size = 256, |
| 16378 | .page_size = 256, |
| 16379 | .feature_bits = FEATURE_WRSR_WREN, |
| 16380 | .tested = TEST_UNTESTED, |
| 16381 | .probe = probe_spi_rdid, |
| 16382 | .probe_timing = TIMING_ZERO, |
| 16383 | .block_erasers = |
| 16384 | { |
| 16385 | { |
| 16386 | .eraseblocks = { {4 * 1024, 64} }, |
| 16387 | .block_erase = spi_block_erase_20, |
| 16388 | }, { |
| 16389 | .eraseblocks = { {32 * 1024, 8} }, |
| 16390 | .block_erase = spi_block_erase_52, |
| 16391 | }, { |
| 16392 | .eraseblocks = { {64 * 1024, 4} }, |
| 16393 | .block_erase = spi_block_erase_d8, |
| 16394 | }, { |
| 16395 | .eraseblocks = { {256 * 1024, 1} }, |
| 16396 | .block_erase = spi_block_erase_60, |
| 16397 | }, { |
| 16398 | .eraseblocks = { {256 * 1024, 1} }, |
| 16399 | .block_erase = spi_block_erase_c7, |
| 16400 | } |
| 16401 | }, |
| 16402 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16403 | .unlock = spi_disable_blockprotect, |
| 16404 | .write = spi_chip_write_256, |
| 16405 | .read = spi_chip_read, |
| 16406 | .voltage = {2700, 3600}, |
| 16407 | }, |
| 16408 | |
| 16409 | { |
| 16410 | .vendor = "Zetta Device", |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 16411 | .name = "ZD25D40", |
| 16412 | .bustype = BUS_SPI, |
| 16413 | .manufacture_id = ZETTADEVICE_ID, |
| 16414 | .model_id = ZETTADEVICE_ZD25D40, |
| 16415 | .total_size = 512, |
| 16416 | .page_size = 256, |
| 16417 | .feature_bits = FEATURE_WRSR_WREN, |
| 16418 | .tested = TEST_UNTESTED, |
| 16419 | .probe = probe_spi_rdid, |
| 16420 | .probe_timing = TIMING_ZERO, |
| 16421 | .block_erasers = |
| 16422 | { |
| 16423 | { |
| 16424 | .eraseblocks = { {4 * 1024, 128} }, |
| 16425 | .block_erase = spi_block_erase_20, |
| 16426 | }, { |
| 16427 | .eraseblocks = { {32 * 1024, 16} }, |
| 16428 | .block_erase = spi_block_erase_52, |
| 16429 | }, { |
| 16430 | .eraseblocks = { {64 * 1024, 8} }, |
| 16431 | .block_erase = spi_block_erase_d8, |
| 16432 | }, { |
| 16433 | .eraseblocks = { {512 * 1024, 1} }, |
| 16434 | .block_erase = spi_block_erase_60, |
| 16435 | }, { |
| 16436 | .eraseblocks = { {512 * 1024, 1} }, |
| 16437 | .block_erase = spi_block_erase_c7, |
| 16438 | } |
| 16439 | }, |
| 16440 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16441 | .unlock = spi_disable_blockprotect, |
| 16442 | .write = spi_chip_write_256, |
| 16443 | .read = spi_chip_read, |
| 16444 | .voltage = {2700, 3600}, |
| 16445 | }, |
| 16446 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 16447 | { |
| 16448 | .vendor = "Unknown", |
| 16449 | .name = "SFDP-capable chip", |
| 16450 | .bustype = BUS_SPI, |
| 16451 | .manufacture_id = GENERIC_MANUF_ID, |
| 16452 | .model_id = SFDP_DEVICE_ID, |
| 16453 | /* We present our own "report this" text hence we do not |
| 16454 | * want the default "This flash part has status UNTESTED..." |
| 16455 | * text to be printed. */ |
| 16456 | .tested = TEST_OK_PREW, |
| 16457 | .probe = probe_spi_sfdp, |
| 16458 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 16459 | .read = spi_chip_read, |
| 16460 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 16461 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 16462 | /* Everything below will be set by the probing function. */ |
| 16463 | .write = NULL, |
| 16464 | .total_size = 0, |
| 16465 | .page_size = 0, |
| 16466 | .feature_bits = 0, |
| 16467 | .block_erasers = {}, |
| 16468 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16469 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16470 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 16471 | .vendor = "Programmer", |
| 16472 | .name = "Opaque flash chip", |
| 16473 | .bustype = BUS_PROG, |
| 16474 | .manufacture_id = PROGMANUF_ID, |
| 16475 | .model_id = PROGDEV_ID, |
| 16476 | .total_size = 0, |
| 16477 | .page_size = 256, |
| 16478 | /* probe is assumed to work, rest will be filled in by probe */ |
| 16479 | .tested = TEST_OK_PROBE, |
| 16480 | .probe = probe_opaque, |
| 16481 | /* eraseblock sizes will be set by the probing function */ |
| 16482 | .block_erasers = |
| 16483 | { |
| 16484 | { |
| 16485 | .block_erase = erase_opaque, |
| 16486 | } |
| 16487 | }, |
| 16488 | .write = write_opaque, |
| 16489 | .read = read_opaque, |
| 16490 | }, |
| 16491 | |
| 16492 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 16493 | .vendor = "AMIC", |
| 16494 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16495 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 16496 | .manufacture_id = AMIC_ID, |
| 16497 | .model_id = GENERIC_DEVICE_ID, |
| 16498 | .total_size = 0, |
| 16499 | .page_size = 256, |
| 16500 | .tested = TEST_BAD_PREW, |
| 16501 | .probe = probe_spi_rdid4, |
| 16502 | .probe_timing = TIMING_ZERO, |
| 16503 | .write = NULL, |
| 16504 | .read = NULL, |
| 16505 | }, |
| 16506 | |
| 16507 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16508 | .vendor = "Atmel", |
| 16509 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16510 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16511 | .manufacture_id = ATMEL_ID, |
| 16512 | .model_id = GENERIC_DEVICE_ID, |
| 16513 | .total_size = 0, |
| 16514 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16515 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16516 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16517 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16518 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16519 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16520 | }, |
| 16521 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16522 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 16523 | .vendor = "Eon", |
| 16524 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16525 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16526 | .manufacture_id = EON_ID_NOPREFIX, |
| 16527 | .model_id = GENERIC_DEVICE_ID, |
| 16528 | .total_size = 0, |
| 16529 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16530 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16531 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16532 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16533 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16534 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16535 | }, |
| 16536 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16537 | { |
| 16538 | .vendor = "Macronix", |
| 16539 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16540 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 16541 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16542 | .model_id = GENERIC_DEVICE_ID, |
| 16543 | .total_size = 0, |
| 16544 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16545 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16546 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16547 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16548 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16549 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16550 | }, |
| 16551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16552 | { |
| 16553 | .vendor = "PMC", |
| 16554 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16555 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16556 | .manufacture_id = PMC_ID, |
| 16557 | .model_id = GENERIC_DEVICE_ID, |
| 16558 | .total_size = 0, |
| 16559 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16560 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16561 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16562 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16563 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16564 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16565 | }, |
| 16566 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16567 | { |
| 16568 | .vendor = "SST", |
| 16569 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16570 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16571 | .manufacture_id = SST_ID, |
| 16572 | .model_id = GENERIC_DEVICE_ID, |
| 16573 | .total_size = 0, |
| 16574 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16575 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16576 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16577 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16578 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16579 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16580 | }, |
| 16581 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16582 | { |
| 16583 | .vendor = "ST", |
| 16584 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16585 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16586 | .manufacture_id = ST_ID, |
| 16587 | .model_id = GENERIC_DEVICE_ID, |
| 16588 | .total_size = 0, |
| 16589 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16590 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16591 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16592 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16593 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16594 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16595 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 16596 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16597 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 16598 | .vendor = "Sanyo", |
| 16599 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16600 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 16601 | .manufacture_id = SANYO_ID, |
| 16602 | .model_id = GENERIC_DEVICE_ID, |
| 16603 | .total_size = 0, |
| 16604 | .page_size = 256, |
| 16605 | .tested = TEST_BAD_PREW, |
| 16606 | .probe = probe_spi_rdid, |
| 16607 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 16608 | .write = NULL, |
| 16609 | .read = NULL, |
| 16610 | }, |
| 16611 | |
| 16612 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16613 | .vendor = "Winbond", |
| 16614 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 16615 | .bustype = BUS_SPI, |
| 16616 | .manufacture_id = WINBOND_NEX_ID, |
| 16617 | .model_id = GENERIC_DEVICE_ID, |
| 16618 | .total_size = 0, |
| 16619 | .page_size = 256, |
| 16620 | .tested = TEST_BAD_PREW, |
| 16621 | .probe = probe_spi_rdid, |
| 16622 | .probe_timing = TIMING_ZERO, |
| 16623 | .write = NULL, |
| 16624 | .read = NULL, |
| 16625 | }, |
| 16626 | |
| 16627 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16628 | .vendor = "Generic", |
| 16629 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16630 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16631 | .manufacture_id = GENERIC_MANUF_ID, |
| 16632 | .model_id = GENERIC_DEVICE_ID, |
| 16633 | .total_size = 0, |
| 16634 | .page_size = 256, |
| 16635 | .tested = TEST_BAD_PREW, |
| 16636 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16637 | .write = NULL, |
| 16638 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 16639 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16640 | { |
| 16641 | .vendor = "Generic", |
| 16642 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16643 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16644 | .manufacture_id = GENERIC_MANUF_ID, |
| 16645 | .model_id = GENERIC_DEVICE_ID, |
| 16646 | .total_size = 0, |
| 16647 | .page_size = 256, |
| 16648 | .tested = TEST_BAD_PREW, |
| 16649 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 16650 | .write = NULL, |
| 16651 | }, |
| 16652 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 16653 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 16654 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 16655 | |
| 16656 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |