Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 2 | * This file is part of the flashrom project. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | d22a1d4 | 2007-09-09 20:21:05 +0000 | [diff] [blame] | 4 | * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 | * Copyright (C) 2004 Tyan Corp |
Stefan Reinauer | 4c390c8 | 2008-07-02 13:33:09 +0000 | [diff] [blame] | 6 | * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 7 | * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
Sean Nelson | c57a920 | 2010-01-04 17:15:23 +0000 | [diff] [blame] | 8 | * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 9 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 14 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 22 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 23 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 24 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 25 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 26 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 27 | * |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 28 | * Temporarily, this file is sorted alphabetically by vendor and name to |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 29 | * assist with merging the Chromium fork of flashprog. |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 30 | * |
| 31 | * The usual intention is that that this list is sorted by vendor, then chip |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 32 | * family and chip density, which is useful for the output of 'flashprog -L'. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 33 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 34 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 35 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 36 | /* |
| 37 | * .vendor = Vendor name |
| 38 | * .name = Chip name |
| 39 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 40 | * .manufacture_id = Manufacturer chip ID |
| 41 | * .model_id = Model chip ID |
| 42 | * .total_size = Total size in (binary) kbytes |
| 43 | * .page_size = Page or eraseblock(?) size in bytes |
| 44 | * .tested = Test status |
| 45 | * .probe = Probe function |
| 46 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 47 | * .block_erasers[] = Array of erase layouts and erase functions |
| 48 | * { |
| 49 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 50 | * .block_erase = Block erase function |
| 51 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 52 | * .printlock = Chip lock status function |
| 53 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 54 | * .write = Chip write function |
| 55 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 56 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 57 | */ |
| 58 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 59 | { |
| 60 | .vendor = "AMD", |
| 61 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 62 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 63 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 64 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 65 | .total_size = 256, |
| 66 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 67 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 68 | .tested = TEST_UNTESTED, |
| 69 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 70 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 71 | .block_erasers = |
| 72 | { |
| 73 | { |
| 74 | .eraseblocks = { |
| 75 | {16 * 1024, 1}, |
| 76 | {8 * 1024, 2}, |
| 77 | {32 * 1024, 1}, |
| 78 | {64 * 1024, 3}, |
| 79 | }, |
| 80 | .block_erase = erase_sector_jedec, |
| 81 | }, { |
| 82 | .eraseblocks = { {256 * 1024, 1} }, |
| 83 | .block_erase = erase_chip_block_jedec, |
| 84 | }, |
| 85 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 86 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 87 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 88 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 89 | .prepare_access = prepare_memory_access, |
| 90 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 91 | }, |
| 92 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 93 | { |
| 94 | .vendor = "AMD", |
| 95 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 96 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 97 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 98 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 99 | .total_size = 256, |
| 100 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 101 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 102 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 103 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 104 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 105 | .block_erasers = |
| 106 | { |
| 107 | { |
| 108 | .eraseblocks = { |
| 109 | {64 * 1024, 3}, |
| 110 | {32 * 1024, 1}, |
| 111 | {8 * 1024, 2}, |
| 112 | {16 * 1024, 1}, |
| 113 | }, |
| 114 | .block_erase = erase_sector_jedec, |
| 115 | }, { |
| 116 | .eraseblocks = { {256 * 1024, 1} }, |
| 117 | .block_erase = erase_chip_block_jedec, |
| 118 | }, |
| 119 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 120 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 121 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 122 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 123 | .prepare_access = prepare_memory_access, |
| 124 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 125 | }, |
| 126 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 127 | { |
| 128 | .vendor = "AMD", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 129 | .name = "Am29F010", |
| 130 | .bustype = BUS_PARALLEL, |
| 131 | .manufacture_id = AMD_ID, |
| 132 | .model_id = AMD_AM29F010, |
| 133 | .total_size = 128, |
| 134 | .page_size = 16 * 1024, |
| 135 | .feature_bits = FEATURE_SHORT_RESET, |
| 136 | .tested = TEST_UNTESTED, |
| 137 | .probe = probe_jedec, |
| 138 | .probe_timing = TIMING_ZERO, |
| 139 | .block_erasers = |
| 140 | { |
| 141 | { |
| 142 | .eraseblocks = { {16 * 1024, 8} }, |
| 143 | .block_erase = erase_sector_jedec, |
| 144 | }, { |
| 145 | .eraseblocks = { {128 * 1024, 1} }, |
| 146 | .block_erase = erase_chip_block_jedec, |
| 147 | }, |
| 148 | }, |
| 149 | .write = write_jedec_1, |
| 150 | .read = read_memmapped, |
| 151 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 152 | .prepare_access = prepare_memory_access, |
| 153 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 154 | }, |
| 155 | |
| 156 | { |
| 157 | .vendor = "AMD", |
| 158 | .name = "Am29F010A/B", |
| 159 | .bustype = BUS_PARALLEL, |
| 160 | .manufacture_id = AMD_ID, |
| 161 | .model_id = AMD_AM29F010, |
| 162 | .total_size = 128, |
| 163 | .page_size = 16 * 1024, |
| 164 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Alan Green | a4e579f | 2019-07-24 14:18:39 +1000 | [diff] [blame] | 165 | .tested = TEST_OK_PRE, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 166 | .probe = probe_jedec, |
| 167 | .probe_timing = TIMING_ZERO, |
| 168 | .block_erasers = |
| 169 | { |
| 170 | { |
| 171 | .eraseblocks = { {16 * 1024, 8} }, |
| 172 | .block_erase = erase_sector_jedec, |
| 173 | }, { |
| 174 | .eraseblocks = { {128 * 1024, 1} }, |
| 175 | .block_erase = erase_chip_block_jedec, |
| 176 | }, |
| 177 | }, |
| 178 | .write = write_jedec_1, |
| 179 | .read = read_memmapped, |
| 180 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 181 | .prepare_access = prepare_memory_access, |
| 182 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 183 | }, |
| 184 | |
| 185 | { |
| 186 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 187 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 188 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 189 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 190 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 191 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 192 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 193 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 194 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 195 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 196 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 197 | .block_erasers = |
| 198 | { |
| 199 | { |
| 200 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 201 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 202 | }, { |
| 203 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 204 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 205 | }, |
| 206 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 207 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 208 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 209 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 210 | .prepare_access = prepare_memory_access, |
| 211 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 212 | }, |
| 213 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 214 | { |
| 215 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 216 | .name = "Am29F040", |
| 217 | .bustype = BUS_PARALLEL, |
| 218 | .manufacture_id = AMD_ID, |
| 219 | .model_id = AMD_AM29F040, |
| 220 | .total_size = 512, |
| 221 | .page_size = 64 * 1024, |
| 222 | .feature_bits = FEATURE_EITHER_RESET, |
| 223 | .tested = TEST_UNTESTED, |
| 224 | .probe = probe_jedec, |
| 225 | .probe_timing = TIMING_ZERO, |
| 226 | .block_erasers = |
| 227 | { |
| 228 | { |
| 229 | .eraseblocks = { {64 * 1024, 8} }, |
| 230 | .block_erase = erase_sector_jedec, |
| 231 | }, { |
| 232 | .eraseblocks = { {512 * 1024, 1} }, |
| 233 | .block_erase = erase_chip_block_jedec, |
| 234 | }, |
| 235 | }, |
| 236 | .write = write_jedec_1, |
| 237 | .read = read_memmapped, |
| 238 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 239 | .prepare_access = prepare_memory_access, |
| 240 | .finish_access = finish_memory_access, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 241 | }, |
| 242 | |
| 243 | { |
| 244 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 245 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 246 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 247 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 248 | .model_id = AMD_AM29F040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 249 | .total_size = 512, |
| 250 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 251 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 252 | .tested = TEST_UNTESTED, |
| 253 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 254 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 255 | .block_erasers = |
| 256 | { |
| 257 | { |
| 258 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 259 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 260 | }, { |
| 261 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 262 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 263 | }, |
| 264 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 265 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 266 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 267 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 268 | .prepare_access = prepare_memory_access, |
| 269 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 270 | }, |
| 271 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 272 | { |
| 273 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 274 | .name = "Am29F080", |
| 275 | .bustype = BUS_PARALLEL, |
| 276 | .manufacture_id = AMD_ID, |
| 277 | .model_id = AMD_AM29F080, |
| 278 | .total_size = 1024, |
| 279 | .page_size = 64 * 1024, |
| 280 | .feature_bits = FEATURE_EITHER_RESET, |
| 281 | .tested = TEST_UNTESTED, |
| 282 | .probe = probe_jedec, |
| 283 | .probe_timing = TIMING_ZERO, |
| 284 | .block_erasers = |
| 285 | { |
| 286 | { |
| 287 | .eraseblocks = { {64 * 1024, 16} }, |
| 288 | .block_erase = erase_sector_jedec, |
| 289 | }, { |
| 290 | .eraseblocks = { {1024 * 1024, 1} }, |
| 291 | .block_erase = erase_chip_block_jedec, |
| 292 | }, |
| 293 | }, |
| 294 | .write = write_jedec_1, |
| 295 | .read = read_memmapped, |
| 296 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 297 | .prepare_access = prepare_memory_access, |
| 298 | .finish_access = finish_memory_access, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 299 | }, |
| 300 | |
| 301 | { |
| 302 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 303 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 304 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 305 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 306 | .model_id = AMD_AM29F080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 307 | .total_size = 1024, |
| 308 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 309 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 310 | .tested = TEST_UNTESTED, |
| 311 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 312 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 313 | .block_erasers = |
| 314 | { |
| 315 | { |
| 316 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 317 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 318 | }, { |
| 319 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 320 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 321 | }, |
| 322 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 323 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 324 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 325 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 326 | .prepare_access = prepare_memory_access, |
| 327 | .finish_access = finish_memory_access, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 328 | }, |
| 329 | |
| 330 | { |
| 331 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 332 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 333 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 334 | .manufacture_id = AMD_ID, |
| 335 | .model_id = AMD_AM29LV001BB, |
| 336 | .total_size = 128, |
| 337 | .page_size = 64 * 1024, /* unused */ |
| 338 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 339 | .tested = TEST_OK_PREW, |
| 340 | .probe = probe_jedec, |
| 341 | .probe_timing = TIMING_ZERO, |
| 342 | .block_erasers = |
| 343 | { |
| 344 | { |
| 345 | .eraseblocks = { |
| 346 | {8 * 1024, 1}, |
| 347 | {4 * 1024, 2}, |
| 348 | {16 * 1024, 7}, |
| 349 | }, |
| 350 | .block_erase = erase_sector_jedec, |
| 351 | }, { |
| 352 | .eraseblocks = { {128 * 1024, 1} }, |
| 353 | .block_erase = erase_chip_block_jedec, |
| 354 | }, |
| 355 | }, |
| 356 | .write = write_jedec_1, |
| 357 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 358 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 359 | .prepare_access = prepare_memory_access, |
| 360 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 361 | }, |
| 362 | |
| 363 | { |
| 364 | .vendor = "AMD", |
| 365 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 366 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 367 | .manufacture_id = AMD_ID, |
| 368 | .model_id = AMD_AM29LV001BT, |
| 369 | .total_size = 128, |
| 370 | .page_size = 64 * 1024, /* unused */ |
| 371 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 372 | .tested = TEST_UNTESTED, |
| 373 | .probe = probe_jedec, |
| 374 | .probe_timing = TIMING_ZERO, |
| 375 | .block_erasers = |
| 376 | { |
| 377 | { |
| 378 | .eraseblocks = { |
| 379 | {16 * 1024, 7}, |
| 380 | {4 * 1024, 2}, |
| 381 | {8 * 1024, 1}, |
| 382 | }, |
| 383 | .block_erase = erase_sector_jedec, |
| 384 | }, { |
| 385 | .eraseblocks = { {128 * 1024, 1} }, |
| 386 | .block_erase = erase_chip_block_jedec, |
| 387 | }, |
| 388 | }, |
| 389 | .write = write_jedec_1, |
| 390 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 391 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 392 | .prepare_access = prepare_memory_access, |
| 393 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 394 | }, |
| 395 | |
| 396 | { |
| 397 | .vendor = "AMD", |
| 398 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 399 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 400 | .manufacture_id = AMD_ID, |
| 401 | .model_id = AMD_AM29LV002BB, |
| 402 | .total_size = 256, |
| 403 | .page_size = 64 * 1024, /* unused */ |
| 404 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 405 | .tested = TEST_UNTESTED, |
| 406 | .probe = probe_jedec, |
| 407 | .probe_timing = TIMING_ZERO, |
| 408 | .block_erasers = |
| 409 | { |
| 410 | { |
| 411 | .eraseblocks = { |
| 412 | {16 * 1024, 1}, |
| 413 | {8 * 1024, 2}, |
| 414 | {32 * 1024, 1}, |
| 415 | {64 * 1024, 3}, |
| 416 | }, |
| 417 | .block_erase = erase_sector_jedec, |
| 418 | }, { |
| 419 | .eraseblocks = { {256 * 1024, 1} }, |
| 420 | .block_erase = erase_chip_block_jedec, |
| 421 | }, |
| 422 | }, |
| 423 | .write = write_jedec_1, |
| 424 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 425 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 426 | .prepare_access = prepare_memory_access, |
| 427 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 428 | }, |
| 429 | |
| 430 | { |
| 431 | .vendor = "AMD", |
| 432 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 433 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 434 | .manufacture_id = AMD_ID, |
| 435 | .model_id = AMD_AM29LV002BT, |
| 436 | .total_size = 256, |
| 437 | .page_size = 64 * 1024, /* unused */ |
| 438 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 439 | .tested = TEST_UNTESTED, |
| 440 | .probe = probe_jedec, |
| 441 | .probe_timing = TIMING_ZERO, |
| 442 | .block_erasers = |
| 443 | { |
| 444 | { |
| 445 | .eraseblocks = { |
| 446 | {64 * 1024, 3}, |
| 447 | {32 * 1024, 1}, |
| 448 | {8 * 1024, 2}, |
| 449 | {16 * 1024, 1}, |
| 450 | }, |
| 451 | .block_erase = erase_sector_jedec, |
| 452 | }, { |
| 453 | .eraseblocks = { {256 * 1024, 1} }, |
| 454 | .block_erase = erase_chip_block_jedec, |
| 455 | }, |
| 456 | }, |
| 457 | .write = write_jedec_1, |
| 458 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 459 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 460 | .prepare_access = prepare_memory_access, |
| 461 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 462 | }, |
| 463 | |
| 464 | { |
| 465 | .vendor = "AMD", |
| 466 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 467 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 468 | .manufacture_id = AMD_ID, |
| 469 | .model_id = AMD_AM29LV004BB, |
| 470 | .total_size = 512, |
| 471 | .page_size = 64 * 1024, /* unused */ |
| 472 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 473 | .tested = TEST_UNTESTED, |
| 474 | .probe = probe_jedec, |
| 475 | .probe_timing = TIMING_ZERO, |
| 476 | .block_erasers = |
| 477 | { |
| 478 | { |
| 479 | .eraseblocks = { |
| 480 | {16 * 1024, 1}, |
| 481 | {8 * 1024, 2}, |
| 482 | {32 * 1024, 1}, |
| 483 | {64 * 1024, 7}, |
| 484 | }, |
| 485 | .block_erase = erase_sector_jedec, |
| 486 | }, { |
| 487 | .eraseblocks = { {512 * 1024, 1} }, |
| 488 | .block_erase = erase_chip_block_jedec, |
| 489 | }, |
| 490 | }, |
| 491 | .write = write_jedec_1, |
| 492 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 493 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 494 | .prepare_access = prepare_memory_access, |
| 495 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 496 | }, |
| 497 | |
| 498 | { |
| 499 | .vendor = "AMD", |
| 500 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 501 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 502 | .manufacture_id = AMD_ID, |
| 503 | .model_id = AMD_AM29LV004BT, |
| 504 | .total_size = 512, |
| 505 | .page_size = 64 * 1024, /* unused */ |
| 506 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 507 | .tested = TEST_UNTESTED, |
| 508 | .probe = probe_jedec, |
| 509 | .probe_timing = TIMING_ZERO, |
| 510 | .block_erasers = |
| 511 | { |
| 512 | { |
| 513 | .eraseblocks = { |
| 514 | {64 * 1024, 7}, |
| 515 | {32 * 1024, 1}, |
| 516 | {8 * 1024, 2}, |
| 517 | {16 * 1024, 1}, |
| 518 | }, |
| 519 | .block_erase = erase_sector_jedec, |
| 520 | }, { |
| 521 | .eraseblocks = { {512 * 1024, 1} }, |
| 522 | .block_erase = erase_chip_block_jedec, |
| 523 | }, |
| 524 | }, |
| 525 | .write = write_jedec_1, |
| 526 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 527 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 528 | .prepare_access = prepare_memory_access, |
| 529 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 530 | }, |
| 531 | |
| 532 | { |
| 533 | .vendor = "AMD", |
| 534 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 535 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 536 | .manufacture_id = AMD_ID, |
| 537 | .model_id = AMD_AM29LV008BB, |
| 538 | .total_size = 1024, |
| 539 | .page_size = 64 * 1024, /* unused */ |
| 540 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 541 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 542 | .probe = probe_jedec, |
| 543 | .probe_timing = TIMING_ZERO, |
| 544 | .block_erasers = |
| 545 | { |
| 546 | { |
| 547 | .eraseblocks = { |
| 548 | {16 * 1024, 1}, |
| 549 | {8 * 1024, 2}, |
| 550 | {32 * 1024, 1}, |
| 551 | {64 * 1024, 15}, |
| 552 | }, |
| 553 | .block_erase = erase_sector_jedec, |
| 554 | }, { |
| 555 | .eraseblocks = { {1024 * 1024, 1} }, |
| 556 | .block_erase = erase_chip_block_jedec, |
| 557 | }, |
| 558 | }, |
| 559 | .write = write_jedec_1, |
| 560 | .read = read_memmapped, |
Alan Green | f5ad688 | 2019-06-27 12:09:13 +1000 | [diff] [blame] | 561 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 562 | .prepare_access = prepare_memory_access, |
| 563 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 564 | }, |
| 565 | |
| 566 | { |
| 567 | .vendor = "AMD", |
| 568 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 569 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 570 | .manufacture_id = AMD_ID, |
| 571 | .model_id = AMD_AM29LV008BT, |
| 572 | .total_size = 1024, |
| 573 | .page_size = 64 * 1024, /* unused */ |
| 574 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 575 | .tested = TEST_UNTESTED, |
| 576 | .probe = probe_jedec, |
| 577 | .probe_timing = TIMING_ZERO, |
| 578 | .block_erasers = |
| 579 | { |
| 580 | { |
| 581 | .eraseblocks = { |
| 582 | {64 * 1024, 15}, |
| 583 | {32 * 1024, 1}, |
| 584 | {8 * 1024, 2}, |
| 585 | {16 * 1024, 1}, |
| 586 | }, |
| 587 | .block_erase = erase_sector_jedec, |
| 588 | }, { |
| 589 | .eraseblocks = { {1024 * 1024, 1} }, |
| 590 | .block_erase = erase_chip_block_jedec, |
| 591 | }, |
| 592 | }, |
| 593 | .write = write_jedec_1, |
| 594 | .read = read_memmapped, |
Alan Green | f5ad688 | 2019-06-27 12:09:13 +1000 | [diff] [blame] | 595 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 596 | .prepare_access = prepare_memory_access, |
| 597 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 598 | }, |
| 599 | |
| 600 | { |
| 601 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 602 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 603 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 604 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 605 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 606 | .total_size = 512, |
| 607 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 608 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 609 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 610 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 611 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 612 | .block_erasers = |
| 613 | { |
| 614 | { |
| 615 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 616 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 617 | }, { |
| 618 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 619 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 620 | }, |
| 621 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 622 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 623 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 624 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 625 | .prepare_access = prepare_memory_access, |
| 626 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 627 | }, |
| 628 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 629 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 630 | .vendor = "AMD", |
| 631 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 632 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 633 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 634 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 635 | .total_size = 1024, |
| 636 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 637 | .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] | 638 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 639 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 640 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 641 | .block_erasers = |
| 642 | { |
| 643 | { |
| 644 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 645 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 646 | }, { |
| 647 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 648 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 649 | }, |
| 650 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 651 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 652 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 653 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 654 | .prepare_access = prepare_memory_access, |
| 655 | .finish_access = finish_memory_access, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 656 | }, |
| 657 | |
| 658 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 659 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 660 | .name = "A25L010", |
| 661 | .bustype = BUS_SPI, |
| 662 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 663 | .model_id = AMIC_A25L010, |
| 664 | .total_size = 128, |
| 665 | .page_size = 256, |
| 666 | .feature_bits = FEATURE_WRSR_WREN, |
| 667 | .tested = TEST_UNTESTED, |
| 668 | .probe = probe_spi_rdid, |
| 669 | .probe_timing = TIMING_ZERO, |
| 670 | .block_erasers = |
| 671 | { |
| 672 | { |
| 673 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 674 | .block_erase = spi_block_erase_20, |
| 675 | }, { |
| 676 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 677 | .block_erase = spi_block_erase_d8, |
| 678 | }, { |
| 679 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 680 | .block_erase = spi_block_erase_c7, |
| 681 | } |
| 682 | }, |
| 683 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 684 | .unlock = spi_disable_blockprotect, |
| 685 | .write = spi_chip_write_256, |
| 686 | .read = spi_chip_read, |
| 687 | .voltage = {2700, 3600}, |
| 688 | }, |
| 689 | |
| 690 | { |
| 691 | .vendor = "AMIC", |
| 692 | .name = "A25L016", |
| 693 | .bustype = BUS_SPI, |
| 694 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 695 | .model_id = AMIC_A25L016, |
| 696 | .total_size = 2048, |
| 697 | .page_size = 256, |
| 698 | .feature_bits = FEATURE_WRSR_WREN, |
| 699 | .tested = TEST_UNTESTED, |
| 700 | .probe = probe_spi_rdid, |
| 701 | .probe_timing = TIMING_ZERO, |
| 702 | .block_erasers = |
| 703 | { |
| 704 | { |
| 705 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 706 | .block_erase = spi_block_erase_20, |
| 707 | }, { |
| 708 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 709 | .block_erase = spi_block_erase_d8, |
| 710 | }, { |
| 711 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 712 | .block_erase = spi_block_erase_c7, |
| 713 | } |
| 714 | }, |
| 715 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 716 | .unlock = spi_disable_blockprotect, |
| 717 | .write = spi_chip_write_256, |
| 718 | .read = spi_chip_read, |
| 719 | .voltage = {2700, 3600}, |
| 720 | }, |
| 721 | |
| 722 | { |
| 723 | .vendor = "AMIC", |
| 724 | .name = "A25L020", |
| 725 | .bustype = BUS_SPI, |
| 726 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 727 | .model_id = AMIC_A25L020, |
| 728 | .total_size = 256, |
| 729 | .page_size = 256, |
| 730 | .feature_bits = FEATURE_WRSR_WREN, |
| 731 | .tested = TEST_UNTESTED, |
| 732 | .probe = probe_spi_rdid, |
| 733 | .probe_timing = TIMING_ZERO, |
| 734 | .block_erasers = |
| 735 | { |
| 736 | { |
| 737 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 738 | .block_erase = spi_block_erase_20, |
| 739 | }, { |
| 740 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 741 | .block_erase = spi_block_erase_d8, |
| 742 | }, { |
| 743 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 744 | .block_erase = spi_block_erase_c7, |
| 745 | } |
| 746 | }, |
| 747 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 748 | .unlock = spi_disable_blockprotect, |
| 749 | .write = spi_chip_write_256, |
| 750 | .read = spi_chip_read, |
| 751 | .voltage = {2700, 3600}, |
| 752 | }, |
| 753 | |
| 754 | { |
| 755 | .vendor = "AMIC", |
| 756 | .name = "A25L032", |
| 757 | .bustype = BUS_SPI, |
| 758 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 759 | .model_id = AMIC_A25L032, |
| 760 | .total_size = 4096, |
| 761 | .page_size = 256, |
| 762 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 763 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 764 | .tested = TEST_OK_PREW, |
| 765 | .probe = probe_spi_rdid, |
| 766 | .probe_timing = TIMING_ZERO, |
| 767 | .block_erasers = |
| 768 | { |
| 769 | { |
| 770 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 771 | .block_erase = spi_block_erase_20, |
| 772 | }, { |
| 773 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 774 | .block_erase = spi_block_erase_52, |
| 775 | }, { |
| 776 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 777 | .block_erase = spi_block_erase_d8, |
| 778 | }, { |
| 779 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 780 | .block_erase = spi_block_erase_60, |
| 781 | }, { |
| 782 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 783 | .block_erase = spi_block_erase_c7, |
| 784 | } |
| 785 | }, |
| 786 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 787 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 788 | .write = spi_chip_write_256, |
| 789 | .read = spi_chip_read, |
| 790 | .voltage = {2700, 3600}, |
| 791 | }, |
| 792 | |
| 793 | { |
| 794 | .vendor = "AMIC", |
| 795 | .name = "A25L040", |
| 796 | .bustype = BUS_SPI, |
| 797 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 798 | .model_id = AMIC_A25L040, |
| 799 | .total_size = 512, |
| 800 | .page_size = 256, |
| 801 | .feature_bits = FEATURE_WRSR_WREN, |
| 802 | .tested = TEST_UNTESTED, |
| 803 | .probe = probe_spi_rdid, |
| 804 | .probe_timing = TIMING_ZERO, |
| 805 | .block_erasers = |
| 806 | { |
| 807 | { |
| 808 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 809 | .block_erase = spi_block_erase_20, |
| 810 | }, { |
| 811 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 812 | .block_erase = spi_block_erase_d8, |
| 813 | }, { |
| 814 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 815 | .block_erase = spi_block_erase_c7, |
| 816 | } |
| 817 | }, |
| 818 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 819 | .unlock = spi_disable_blockprotect, |
| 820 | .write = spi_chip_write_256, |
| 821 | .read = spi_chip_read, |
| 822 | .voltage = {2700, 3600}, |
| 823 | }, |
| 824 | |
| 825 | { |
| 826 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 827 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 828 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 829 | .manufacture_id = AMIC_ID, |
| 830 | .model_id = AMIC_A25L05PT, |
| 831 | .total_size = 64, |
| 832 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 833 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 834 | .tested = TEST_UNTESTED, |
| 835 | .probe = probe_spi_rdid4, |
| 836 | .probe_timing = TIMING_ZERO, |
| 837 | .block_erasers = |
| 838 | { |
| 839 | { |
| 840 | .eraseblocks = { |
| 841 | {32 * 1024, 1}, |
| 842 | {16 * 1024, 1}, |
| 843 | {8 * 1024, 1}, |
| 844 | {4 * 1024, 2}, |
| 845 | }, |
| 846 | .block_erase = spi_block_erase_d8, |
| 847 | }, { |
| 848 | .eraseblocks = { {64 * 1024, 1} }, |
| 849 | .block_erase = spi_block_erase_c7, |
| 850 | } |
| 851 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 852 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 853 | .unlock = spi_disable_blockprotect, |
| 854 | .write = spi_chip_write_256, |
| 855 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 856 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 857 | }, |
| 858 | |
| 859 | { |
| 860 | .vendor = "AMIC", |
| 861 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 862 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 863 | .manufacture_id = AMIC_ID, |
| 864 | .model_id = AMIC_A25L05PU, |
| 865 | .total_size = 64, |
| 866 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 867 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 868 | .tested = TEST_UNTESTED, |
| 869 | .probe = probe_spi_rdid4, |
| 870 | .probe_timing = TIMING_ZERO, |
| 871 | .block_erasers = |
| 872 | { |
| 873 | { |
| 874 | .eraseblocks = { |
| 875 | {4 * 1024, 2}, |
| 876 | {8 * 1024, 1}, |
| 877 | {16 * 1024, 1}, |
| 878 | {32 * 1024, 1}, |
| 879 | }, |
| 880 | .block_erase = spi_block_erase_d8, |
| 881 | }, { |
| 882 | .eraseblocks = { {64 * 1024, 1} }, |
| 883 | .block_erase = spi_block_erase_c7, |
| 884 | } |
| 885 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 886 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 887 | .unlock = spi_disable_blockprotect, |
| 888 | .write = spi_chip_write_256, |
| 889 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 890 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 891 | }, |
| 892 | |
| 893 | { |
| 894 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 895 | .name = "A25L080", |
| 896 | .bustype = BUS_SPI, |
| 897 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 898 | .model_id = AMIC_A25L080, |
| 899 | .total_size = 1024, |
| 900 | .page_size = 256, |
| 901 | .feature_bits = FEATURE_WRSR_WREN, |
| 902 | .tested = TEST_UNTESTED, |
| 903 | .probe = probe_spi_rdid, |
| 904 | .probe_timing = TIMING_ZERO, |
| 905 | .block_erasers = |
| 906 | { |
| 907 | { |
| 908 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 909 | .block_erase = spi_block_erase_20, |
| 910 | }, { |
| 911 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 912 | .block_erase = spi_block_erase_d8, |
| 913 | }, { |
| 914 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 915 | .block_erase = spi_block_erase_c7, |
| 916 | } |
| 917 | }, |
| 918 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 919 | .unlock = spi_disable_blockprotect, |
| 920 | .write = spi_chip_write_256, |
| 921 | .read = spi_chip_read, |
| 922 | .voltage = {2700, 3600}, |
| 923 | }, |
| 924 | |
| 925 | { |
| 926 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 927 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 928 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 929 | .manufacture_id = AMIC_ID, |
| 930 | .model_id = AMIC_A25L10PT, |
| 931 | .total_size = 128, |
| 932 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 933 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 934 | .tested = TEST_UNTESTED, |
| 935 | .probe = probe_spi_rdid4, |
| 936 | .probe_timing = TIMING_ZERO, |
| 937 | .block_erasers = |
| 938 | { |
| 939 | { |
| 940 | .eraseblocks = { |
| 941 | {64 * 1024, 1}, |
| 942 | {32 * 1024, 1}, |
| 943 | {16 * 1024, 1}, |
| 944 | {8 * 1024, 1}, |
| 945 | {4 * 1024, 2}, |
| 946 | }, |
| 947 | .block_erase = spi_block_erase_d8, |
| 948 | }, { |
| 949 | .eraseblocks = { {128 * 1024, 1} }, |
| 950 | .block_erase = spi_block_erase_c7, |
| 951 | } |
| 952 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 953 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 954 | .unlock = spi_disable_blockprotect, |
| 955 | .write = spi_chip_write_256, |
| 956 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 957 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 958 | }, |
| 959 | |
| 960 | { |
| 961 | .vendor = "AMIC", |
| 962 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 963 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 964 | .manufacture_id = AMIC_ID, |
| 965 | .model_id = AMIC_A25L10PU, |
| 966 | .total_size = 128, |
| 967 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 968 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 969 | .tested = TEST_UNTESTED, |
| 970 | .probe = probe_spi_rdid4, |
| 971 | .probe_timing = TIMING_ZERO, |
| 972 | .block_erasers = |
| 973 | { |
| 974 | { |
| 975 | .eraseblocks = { |
| 976 | {4 * 1024, 2}, |
| 977 | {8 * 1024, 1}, |
| 978 | {16 * 1024, 1}, |
| 979 | {32 * 1024, 1}, |
| 980 | {64 * 1024, 1}, |
| 981 | }, |
| 982 | .block_erase = spi_block_erase_d8, |
| 983 | }, { |
| 984 | .eraseblocks = { {128 * 1024, 1} }, |
| 985 | .block_erase = spi_block_erase_c7, |
| 986 | } |
| 987 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 988 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 989 | .unlock = spi_disable_blockprotect, |
| 990 | .write = spi_chip_write_256, |
| 991 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 992 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 993 | }, |
| 994 | |
| 995 | { |
| 996 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 997 | .name = "A25L16PT", |
| 998 | .bustype = BUS_SPI, |
| 999 | .manufacture_id = AMIC_ID, |
| 1000 | .model_id = AMIC_A25L16PT, |
| 1001 | .total_size = 2048, |
| 1002 | .page_size = 256, |
| 1003 | .feature_bits = FEATURE_WRSR_WREN, |
| 1004 | .tested = TEST_UNTESTED, |
| 1005 | .probe = probe_spi_rdid4, |
| 1006 | .probe_timing = TIMING_ZERO, |
| 1007 | .block_erasers = |
| 1008 | { |
| 1009 | { |
| 1010 | .eraseblocks = { |
| 1011 | {64 * 1024, 31}, |
| 1012 | {32 * 1024, 1}, |
| 1013 | {16 * 1024, 1}, |
| 1014 | {8 * 1024, 1}, |
| 1015 | {4 * 1024, 2}, |
| 1016 | }, |
| 1017 | .block_erase = spi_block_erase_d8, |
| 1018 | }, { |
| 1019 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1020 | .block_erase = spi_block_erase_60, |
| 1021 | }, { |
| 1022 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1023 | .block_erase = spi_block_erase_c7, |
| 1024 | } |
| 1025 | }, |
| 1026 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1027 | .unlock = spi_disable_blockprotect, |
| 1028 | .write = spi_chip_write_256, |
| 1029 | .read = spi_chip_read, |
| 1030 | .voltage = {2700, 3600}, |
| 1031 | }, |
| 1032 | |
| 1033 | { |
| 1034 | .vendor = "AMIC", |
| 1035 | .name = "A25L16PU", |
| 1036 | .bustype = BUS_SPI, |
| 1037 | .manufacture_id = AMIC_ID, |
| 1038 | .model_id = AMIC_A25L16PU, |
| 1039 | .total_size = 2048, |
| 1040 | .page_size = 256, |
| 1041 | .feature_bits = FEATURE_WRSR_WREN, |
| 1042 | .tested = TEST_OK_PR, |
| 1043 | .probe = probe_spi_rdid4, |
| 1044 | .probe_timing = TIMING_ZERO, |
| 1045 | .block_erasers = |
| 1046 | { |
| 1047 | { |
| 1048 | .eraseblocks = { |
| 1049 | {4 * 1024, 2}, |
| 1050 | {8 * 1024, 1}, |
| 1051 | {16 * 1024, 1}, |
| 1052 | {32 * 1024, 1}, |
| 1053 | {64 * 1024, 31}, |
| 1054 | }, |
| 1055 | .block_erase = spi_block_erase_d8, |
| 1056 | }, { |
| 1057 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1058 | .block_erase = spi_block_erase_60, |
| 1059 | }, { |
| 1060 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1061 | .block_erase = spi_block_erase_c7, |
| 1062 | } |
| 1063 | }, |
| 1064 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1065 | .unlock = spi_disable_blockprotect, |
| 1066 | .write = spi_chip_write_256, |
| 1067 | .read = spi_chip_read, |
| 1068 | .voltage = {2700, 3600}, |
| 1069 | }, |
| 1070 | |
| 1071 | { |
| 1072 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1073 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1074 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1075 | .manufacture_id = AMIC_ID, |
| 1076 | .model_id = AMIC_A25L20PT, |
| 1077 | .total_size = 256, |
| 1078 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1079 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1080 | .tested = TEST_UNTESTED, |
| 1081 | .probe = probe_spi_rdid4, |
| 1082 | .probe_timing = TIMING_ZERO, |
| 1083 | .block_erasers = |
| 1084 | { |
| 1085 | { |
| 1086 | .eraseblocks = { |
| 1087 | {64 * 1024, 3}, |
| 1088 | {32 * 1024, 1}, |
| 1089 | {16 * 1024, 1}, |
| 1090 | {8 * 1024, 1}, |
| 1091 | {4 * 1024, 2}, |
| 1092 | }, |
| 1093 | .block_erase = spi_block_erase_d8, |
| 1094 | }, { |
| 1095 | .eraseblocks = { {256 * 1024, 1} }, |
| 1096 | .block_erase = spi_block_erase_c7, |
| 1097 | } |
| 1098 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1099 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1100 | .unlock = spi_disable_blockprotect, |
| 1101 | .write = spi_chip_write_256, |
| 1102 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1103 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1104 | }, |
| 1105 | |
| 1106 | { |
| 1107 | .vendor = "AMIC", |
| 1108 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1109 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1110 | .manufacture_id = AMIC_ID, |
| 1111 | .model_id = AMIC_A25L20PU, |
| 1112 | .total_size = 256, |
| 1113 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1114 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1115 | .tested = TEST_UNTESTED, |
| 1116 | .probe = probe_spi_rdid4, |
| 1117 | .probe_timing = TIMING_ZERO, |
| 1118 | .block_erasers = |
| 1119 | { |
| 1120 | { |
| 1121 | .eraseblocks = { |
| 1122 | {4 * 1024, 2}, |
| 1123 | {8 * 1024, 1}, |
| 1124 | {16 * 1024, 1}, |
| 1125 | {32 * 1024, 1}, |
| 1126 | {64 * 1024, 3}, |
| 1127 | }, |
| 1128 | .block_erase = spi_block_erase_d8, |
| 1129 | }, { |
| 1130 | .eraseblocks = { {256 * 1024, 1} }, |
| 1131 | .block_erase = spi_block_erase_c7, |
| 1132 | } |
| 1133 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1134 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1135 | .unlock = spi_disable_blockprotect, |
| 1136 | .write = spi_chip_write_256, |
| 1137 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1138 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1139 | }, |
| 1140 | |
| 1141 | /* The A25L40P{T,U} chips are distinguished by their |
| 1142 | * erase block layouts, but without any distinction in RDID. |
| 1143 | * This inexplicable quirk was verified by Rudolf Marek |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 1144 | * and discussed on the flashprog mailing list on 2010-07-12. |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1145 | */ |
| 1146 | { |
| 1147 | .vendor = "AMIC", |
| 1148 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1149 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1150 | .manufacture_id = AMIC_ID, |
| 1151 | .model_id = AMIC_A25L40PT, |
| 1152 | .total_size = 512, |
| 1153 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1154 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1155 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1156 | .probe = probe_spi_rdid4, |
| 1157 | .probe_timing = TIMING_ZERO, |
| 1158 | .block_erasers = |
| 1159 | { |
| 1160 | { |
| 1161 | .eraseblocks = { |
| 1162 | {64 * 1024, 7}, |
| 1163 | {32 * 1024, 1}, |
| 1164 | {16 * 1024, 1}, |
| 1165 | {8 * 1024, 1}, |
| 1166 | {4 * 1024, 2}, |
| 1167 | }, |
| 1168 | .block_erase = spi_block_erase_d8, |
| 1169 | }, { |
| 1170 | .eraseblocks = { {512 * 1024, 1} }, |
| 1171 | .block_erase = spi_block_erase_c7, |
| 1172 | } |
| 1173 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1174 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1175 | .unlock = spi_disable_blockprotect, |
| 1176 | .write = spi_chip_write_256, |
| 1177 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1178 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1179 | }, |
| 1180 | |
| 1181 | { |
| 1182 | .vendor = "AMIC", |
| 1183 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1184 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1185 | .manufacture_id = AMIC_ID, |
| 1186 | .model_id = AMIC_A25L40PU, |
| 1187 | .total_size = 512, |
| 1188 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1189 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 6f08835 | 2018-09-30 19:59:42 +0200 | [diff] [blame] | 1190 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1191 | .probe = probe_spi_rdid4, |
| 1192 | .probe_timing = TIMING_ZERO, |
| 1193 | .block_erasers = |
| 1194 | { |
| 1195 | { |
| 1196 | .eraseblocks = { |
| 1197 | {4 * 1024, 2}, |
| 1198 | {8 * 1024, 1}, |
| 1199 | {16 * 1024, 1}, |
| 1200 | {32 * 1024, 1}, |
| 1201 | {64 * 1024, 7}, |
| 1202 | }, |
| 1203 | .block_erase = spi_block_erase_d8, |
| 1204 | }, { |
| 1205 | .eraseblocks = { {512 * 1024, 1} }, |
| 1206 | .block_erase = spi_block_erase_c7, |
| 1207 | } |
| 1208 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1209 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1210 | .unlock = spi_disable_blockprotect, |
| 1211 | .write = spi_chip_write_256, |
| 1212 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1213 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1214 | }, |
| 1215 | |
| 1216 | { |
| 1217 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1218 | .name = "A25L512", |
| 1219 | .bustype = BUS_SPI, |
| 1220 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1221 | .model_id = AMIC_A25L512, |
| 1222 | .total_size = 64, |
| 1223 | .page_size = 256, |
| 1224 | .feature_bits = FEATURE_WRSR_WREN, |
| 1225 | .tested = TEST_UNTESTED, |
| 1226 | .probe = probe_spi_rdid, |
| 1227 | .probe_timing = TIMING_ZERO, |
| 1228 | .block_erasers = |
| 1229 | { |
| 1230 | { |
| 1231 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 1232 | .block_erase = spi_block_erase_20, |
| 1233 | }, { |
| 1234 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1235 | .block_erase = spi_block_erase_d8, |
| 1236 | }, { |
| 1237 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1238 | .block_erase = spi_block_erase_c7, |
| 1239 | } |
| 1240 | }, |
| 1241 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1242 | .unlock = spi_disable_blockprotect, |
| 1243 | .write = spi_chip_write_256, |
| 1244 | .read = spi_chip_read, |
| 1245 | .voltage = {2700, 3600}, |
| 1246 | }, |
| 1247 | |
| 1248 | { |
| 1249 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1250 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1251 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1252 | .manufacture_id = AMIC_ID, |
| 1253 | .model_id = AMIC_A25L80P, |
| 1254 | .total_size = 1024, |
| 1255 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1256 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1257 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1258 | .probe = probe_spi_rdid4, |
| 1259 | .probe_timing = TIMING_ZERO, |
| 1260 | .block_erasers = |
| 1261 | { |
| 1262 | { |
| 1263 | .eraseblocks = { |
| 1264 | {4 * 1024, 2}, |
| 1265 | {8 * 1024, 1}, |
| 1266 | {16 * 1024, 1}, |
| 1267 | {32 * 1024, 1}, |
| 1268 | {64 * 1024, 15}, |
| 1269 | }, |
| 1270 | .block_erase = spi_block_erase_d8, |
| 1271 | }, { |
| 1272 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1273 | .block_erase = spi_block_erase_c7, |
| 1274 | } |
| 1275 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1276 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1277 | .unlock = spi_disable_blockprotect, |
| 1278 | .write = spi_chip_write_256, |
| 1279 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1280 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1281 | }, |
| 1282 | |
| 1283 | { |
| 1284 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1285 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1286 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1287 | .manufacture_id = AMIC_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1288 | .model_id = AMIC_A25LQ032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1289 | .total_size = 4096, |
| 1290 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1291 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1292 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1293 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1294 | .tested = TEST_UNTESTED, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1295 | .probe = probe_spi_rdid, |
| 1296 | .probe_timing = TIMING_ZERO, |
| 1297 | .block_erasers = |
| 1298 | { |
| 1299 | { |
| 1300 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1301 | .block_erase = spi_block_erase_20, |
| 1302 | }, { |
| 1303 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1304 | .block_erase = spi_block_erase_52, |
| 1305 | }, { |
| 1306 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1307 | .block_erase = spi_block_erase_d8, |
| 1308 | }, { |
| 1309 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1310 | .block_erase = spi_block_erase_60, |
| 1311 | }, { |
| 1312 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1313 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1314 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1315 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1316 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1317 | .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] | 1318 | .write = spi_chip_write_256, |
| 1319 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1320 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1321 | }, |
| 1322 | |
| 1323 | { |
| 1324 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1325 | .name = "A25LQ16", |
| 1326 | .bustype = BUS_SPI, |
| 1327 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1328 | .model_id = AMIC_A25LQ16, |
| 1329 | .total_size = 2048, |
| 1330 | .page_size = 256, |
| 1331 | /* supports SFDP */ |
| 1332 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1333 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1334 | .tested = TEST_UNTESTED, |
| 1335 | .probe = probe_spi_rdid, |
| 1336 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 1337 | .block_erasers = |
| 1338 | { |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1339 | { |
| 1340 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1341 | .block_erase = spi_block_erase_20, |
| 1342 | }, { |
| 1343 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1344 | .block_erase = spi_block_erase_52, |
| 1345 | }, { |
| 1346 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1347 | .block_erase = spi_block_erase_d8, |
| 1348 | }, { |
| 1349 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1350 | .block_erase = spi_block_erase_60, |
| 1351 | }, { |
| 1352 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1353 | .block_erase = spi_block_erase_c7, |
| 1354 | } |
| 1355 | }, |
| 1356 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1357 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1358 | .write = spi_chip_write_256, |
| 1359 | .read = spi_chip_read, |
| 1360 | .voltage = {2700, 3600}, |
| 1361 | }, |
| 1362 | |
| 1363 | { |
| 1364 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1365 | .name = "A25LQ64", |
| 1366 | .bustype = BUS_SPI, |
| 1367 | .manufacture_id = AMIC_ID_NOPREFIX, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 1368 | .model_id = AMIC_A25LQ64, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1369 | .total_size = 8192, |
| 1370 | .page_size = 256, |
| 1371 | /* supports SFDP */ |
| 1372 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1373 | /* QPI enable 0x35, disable 0xF5 */ |
| 1374 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1375 | .tested = TEST_UNTESTED, |
| 1376 | .probe = probe_spi_rdid, |
| 1377 | .probe_timing = TIMING_ZERO, |
| 1378 | .block_erasers = |
| 1379 | { |
| 1380 | { |
| 1381 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1382 | .block_erase = spi_block_erase_20, |
| 1383 | }, { |
| 1384 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1385 | .block_erase = spi_block_erase_52, |
| 1386 | }, { |
| 1387 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1388 | .block_erase = spi_block_erase_d8, |
| 1389 | }, { |
| 1390 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1391 | .block_erase = spi_block_erase_60, |
| 1392 | }, { |
| 1393 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1394 | .block_erase = spi_block_erase_c7, |
| 1395 | } |
| 1396 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1397 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1398 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1399 | .write = spi_chip_write_256, |
| 1400 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1401 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1402 | }, |
| 1403 | |
| 1404 | { |
| 1405 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1406 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1407 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1408 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1409 | .model_id = AMIC_A29002B, |
| 1410 | .total_size = 256, |
| 1411 | .page_size = 64 * 1024, |
| 1412 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1413 | .tested = TEST_UNTESTED, |
| 1414 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1415 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1416 | .block_erasers = |
| 1417 | { |
| 1418 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1419 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1420 | {16 * 1024, 1}, |
| 1421 | {8 * 1024, 2}, |
| 1422 | {32 * 1024, 1}, |
| 1423 | {64 * 1024, 3}, |
| 1424 | }, |
| 1425 | .block_erase = erase_sector_jedec, |
| 1426 | }, { |
| 1427 | .eraseblocks = { {256 * 1024, 1} }, |
| 1428 | .block_erase = erase_chip_block_jedec, |
| 1429 | }, |
| 1430 | }, |
| 1431 | .write = write_jedec_1, |
| 1432 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1433 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1434 | .prepare_access = prepare_memory_access, |
| 1435 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1436 | }, |
| 1437 | |
| 1438 | { |
| 1439 | .vendor = "AMIC", |
| 1440 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1441 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1442 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1443 | .model_id = AMIC_A29002T, |
| 1444 | .total_size = 256, |
| 1445 | .page_size = 64 * 1024, |
| 1446 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1447 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1448 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1449 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1450 | .block_erasers = |
| 1451 | { |
| 1452 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1453 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1454 | {64 * 1024, 3}, |
| 1455 | {32 * 1024, 1}, |
| 1456 | {8 * 1024, 2}, |
| 1457 | {16 * 1024, 1}, |
| 1458 | }, |
| 1459 | .block_erase = erase_sector_jedec, |
| 1460 | }, { |
| 1461 | .eraseblocks = { {256 * 1024, 1} }, |
| 1462 | .block_erase = erase_chip_block_jedec, |
| 1463 | }, |
| 1464 | }, |
| 1465 | .write = write_jedec_1, |
| 1466 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1467 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1468 | .prepare_access = prepare_memory_access, |
| 1469 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1470 | }, |
| 1471 | |
| 1472 | { |
| 1473 | .vendor = "AMIC", |
| 1474 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1475 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1476 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1477 | .model_id = AMIC_A29040B, |
| 1478 | .total_size = 512, |
| 1479 | .page_size = 64 * 1024, |
| 1480 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1481 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1482 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1483 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1484 | .block_erasers = |
| 1485 | { |
| 1486 | { |
| 1487 | .eraseblocks = { {64 * 1024, 8} }, |
| 1488 | .block_erase = erase_sector_jedec, |
| 1489 | }, { |
| 1490 | .eraseblocks = { {512 * 1024, 1} }, |
| 1491 | .block_erase = erase_chip_block_jedec, |
| 1492 | }, |
| 1493 | }, |
| 1494 | .write = write_jedec_1, |
| 1495 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1496 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1497 | .prepare_access = prepare_memory_access, |
| 1498 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1499 | }, |
| 1500 | |
| 1501 | { |
| 1502 | .vendor = "AMIC", |
| 1503 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1504 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1505 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1506 | .model_id = AMIC_A49LF040A, |
| 1507 | .total_size = 512, |
| 1508 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 1509 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1510 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1511 | .probe = probe_jedec, |
| 1512 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1513 | .block_erasers = |
| 1514 | { |
| 1515 | { |
| 1516 | .eraseblocks = { {64 * 1024, 8} }, |
| 1517 | .block_erase = erase_block_jedec, |
| 1518 | }, { |
| 1519 | .eraseblocks = { {512 * 1024, 1} }, |
| 1520 | .block_erase = erase_chip_block_jedec, |
| 1521 | } |
| 1522 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1523 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1524 | .write = write_jedec_1, |
| 1525 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1526 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 1527 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1528 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1529 | }, |
| 1530 | |
| 1531 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1532 | .vendor = "Atmel", |
| 1533 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1534 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1535 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1536 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1537 | .total_size = 256, |
| 1538 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1539 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1540 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1541 | .tested = TEST_UNTESTED, |
| 1542 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1543 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1544 | .block_erasers = |
| 1545 | { |
| 1546 | { |
| 1547 | .eraseblocks = { {4 * 1024, 64} }, |
| 1548 | .block_erase = spi_block_erase_20, |
| 1549 | }, { |
| 1550 | .eraseblocks = { {32 * 1024, 8} }, |
| 1551 | .block_erase = spi_block_erase_52, |
| 1552 | }, { |
| 1553 | .eraseblocks = { {64 * 1024, 4} }, |
| 1554 | .block_erase = spi_block_erase_d8, |
| 1555 | }, { |
| 1556 | .eraseblocks = { {256 * 1024, 1} }, |
| 1557 | .block_erase = spi_block_erase_60, |
| 1558 | }, { |
| 1559 | .eraseblocks = { {256 * 1024, 1} }, |
| 1560 | .block_erase = spi_block_erase_c7, |
| 1561 | } |
| 1562 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1563 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1564 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1565 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1566 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1567 | .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] | 1568 | }, |
| 1569 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1570 | { |
| 1571 | .vendor = "Atmel", |
Steffen Mauch | 0b59b0d | 2018-06-02 23:46:03 +0200 | [diff] [blame] | 1572 | .name = "AT25DF021A", |
| 1573 | .bustype = BUS_SPI, |
| 1574 | .manufacture_id = ATMEL_ID, |
| 1575 | .model_id = ATMEL_AT25DF021A, |
| 1576 | .total_size = 256, |
| 1577 | .page_size = 256, |
| 1578 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1579 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1580 | .tested = TEST_OK_PREW, |
| 1581 | .probe = probe_spi_rdid, |
| 1582 | .probe_timing = TIMING_ZERO, |
| 1583 | .block_erasers = |
| 1584 | { |
| 1585 | { |
| 1586 | .eraseblocks = { {4 * 1024, 64} }, |
| 1587 | .block_erase = spi_block_erase_20, |
| 1588 | }, { |
| 1589 | .eraseblocks = { {32 * 1024, 8} }, |
| 1590 | .block_erase = spi_block_erase_52, |
| 1591 | }, { |
| 1592 | .eraseblocks = { {64 * 1024, 4} }, |
| 1593 | .block_erase = spi_block_erase_d8, |
| 1594 | }, { |
| 1595 | .eraseblocks = { {256 * 1024, 1} }, |
| 1596 | .block_erase = spi_block_erase_60, |
| 1597 | }, { |
| 1598 | .eraseblocks = { {256 * 1024, 1} }, |
| 1599 | .block_erase = spi_block_erase_c7, |
| 1600 | } |
| 1601 | }, |
| 1602 | .printlock = spi_prettyprint_status_register_at25df, |
| 1603 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
| 1604 | .write = spi_chip_write_256, |
| 1605 | .read = spi_chip_read, |
| 1606 | .voltage = {1650, 3600}, |
| 1607 | }, |
| 1608 | |
| 1609 | { |
| 1610 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1611 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1612 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1613 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1614 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1615 | .total_size = 512, |
| 1616 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1617 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1618 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1619 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1620 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1621 | .block_erasers = |
| 1622 | { |
| 1623 | { |
| 1624 | .eraseblocks = { {4 * 1024, 128} }, |
| 1625 | .block_erase = spi_block_erase_20, |
| 1626 | }, { |
| 1627 | .eraseblocks = { {32 * 1024, 16} }, |
| 1628 | .block_erase = spi_block_erase_52, |
| 1629 | }, { |
| 1630 | .eraseblocks = { {64 * 1024, 8} }, |
| 1631 | .block_erase = spi_block_erase_d8, |
| 1632 | }, { |
| 1633 | .eraseblocks = { {512 * 1024, 1} }, |
| 1634 | .block_erase = spi_block_erase_60, |
| 1635 | }, { |
| 1636 | .eraseblocks = { {512 * 1024, 1} }, |
| 1637 | .block_erase = spi_block_erase_c7, |
| 1638 | } |
| 1639 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1640 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1641 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1642 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1643 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1644 | .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] | 1645 | }, |
| 1646 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1647 | { |
| 1648 | .vendor = "Atmel", |
| 1649 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1650 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1651 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1652 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1653 | .total_size = 1024, |
| 1654 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1655 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1656 | .tested = TEST_UNTESTED, |
| 1657 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1658 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1659 | .block_erasers = |
| 1660 | { |
| 1661 | { |
| 1662 | .eraseblocks = { {4 * 1024, 256} }, |
| 1663 | .block_erase = spi_block_erase_20, |
| 1664 | }, { |
| 1665 | .eraseblocks = { {32 * 1024, 32} }, |
| 1666 | .block_erase = spi_block_erase_52, |
| 1667 | }, { |
| 1668 | .eraseblocks = { {64 * 1024, 16} }, |
| 1669 | .block_erase = spi_block_erase_d8, |
| 1670 | }, { |
| 1671 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1672 | .block_erase = spi_block_erase_60, |
| 1673 | }, { |
| 1674 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1675 | .block_erase = spi_block_erase_c7, |
| 1676 | } |
| 1677 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1678 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1679 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1680 | .write = spi_chip_write_256, |
| 1681 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1682 | .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] | 1683 | }, |
| 1684 | |
| 1685 | { |
| 1686 | .vendor = "Atmel", |
| 1687 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1688 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1689 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1690 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1691 | .total_size = 1024, |
| 1692 | .page_size = 256, |
| 1693 | .feature_bits = FEATURE_WRSR_WREN, |
| 1694 | .tested = TEST_UNTESTED, |
| 1695 | .probe = probe_spi_rdid, |
| 1696 | .probe_timing = TIMING_ZERO, |
| 1697 | .block_erasers = |
| 1698 | { |
| 1699 | { |
| 1700 | .eraseblocks = { {4 * 1024, 256} }, |
| 1701 | .block_erase = spi_block_erase_20, |
| 1702 | }, { |
| 1703 | .eraseblocks = { {32 * 1024, 32} }, |
| 1704 | .block_erase = spi_block_erase_52, |
| 1705 | }, { |
| 1706 | .eraseblocks = { {64 * 1024, 16} }, |
| 1707 | .block_erase = spi_block_erase_d8, |
| 1708 | }, { |
| 1709 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1710 | .block_erase = spi_block_erase_60, |
| 1711 | }, { |
| 1712 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1713 | .block_erase = spi_block_erase_c7, |
| 1714 | } |
| 1715 | }, |
| 1716 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1717 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1718 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1719 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1720 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1721 | }, |
| 1722 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1723 | { |
| 1724 | .vendor = "Atmel", |
| 1725 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1726 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1727 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1728 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1729 | .total_size = 2048, |
| 1730 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1731 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 8b5b962 | 2018-09-30 19:13:15 +0200 | [diff] [blame] | 1732 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1733 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1734 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1735 | .block_erasers = |
| 1736 | { |
| 1737 | { |
| 1738 | .eraseblocks = { {4 * 1024, 512} }, |
| 1739 | .block_erase = spi_block_erase_20, |
| 1740 | }, { |
| 1741 | .eraseblocks = { {32 * 1024, 64} }, |
| 1742 | .block_erase = spi_block_erase_52, |
| 1743 | }, { |
| 1744 | .eraseblocks = { {64 * 1024, 32} }, |
| 1745 | .block_erase = spi_block_erase_d8, |
| 1746 | }, { |
| 1747 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1748 | .block_erase = spi_block_erase_60, |
| 1749 | }, { |
| 1750 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1751 | .block_erase = spi_block_erase_c7, |
| 1752 | } |
| 1753 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1754 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1755 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1756 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1757 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1758 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1759 | }, |
| 1760 | |
Alan Green | 86bf6ab | 2019-06-27 16:58:20 +1000 | [diff] [blame] | 1761 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1762 | { |
| 1763 | .vendor = "Atmel", |
| 1764 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1765 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1766 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1767 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1768 | .total_size = 4096, |
| 1769 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1770 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1771 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1772 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1773 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1774 | .block_erasers = |
| 1775 | { |
| 1776 | { |
| 1777 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1778 | .block_erase = spi_block_erase_20, |
| 1779 | }, { |
| 1780 | .eraseblocks = { {32 * 1024, 128} }, |
| 1781 | .block_erase = spi_block_erase_52, |
| 1782 | }, { |
| 1783 | .eraseblocks = { {64 * 1024, 64} }, |
| 1784 | .block_erase = spi_block_erase_d8, |
| 1785 | }, { |
| 1786 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1787 | .block_erase = spi_block_erase_60, |
| 1788 | }, { |
| 1789 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1790 | .block_erase = spi_block_erase_c7, |
| 1791 | } |
| 1792 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1793 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1794 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1795 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1796 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1797 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1798 | }, |
| 1799 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1800 | { |
| 1801 | .vendor = "Atmel", |
| 1802 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1803 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1804 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1805 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1806 | .total_size = 4096, |
| 1807 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1808 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1809 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1810 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1811 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1812 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1813 | .block_erasers = |
| 1814 | { |
| 1815 | { |
| 1816 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1817 | .block_erase = spi_block_erase_20, |
| 1818 | }, { |
| 1819 | .eraseblocks = { {32 * 1024, 128} }, |
| 1820 | .block_erase = spi_block_erase_52, |
| 1821 | }, { |
| 1822 | .eraseblocks = { {64 * 1024, 64} }, |
| 1823 | .block_erase = spi_block_erase_d8, |
| 1824 | }, { |
| 1825 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1826 | .block_erase = spi_block_erase_60, |
| 1827 | }, { |
| 1828 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1829 | .block_erase = spi_block_erase_c7, |
| 1830 | } |
| 1831 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1832 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1833 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1834 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1835 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1836 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1837 | }, |
| 1838 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1839 | { |
| 1840 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1841 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1842 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1843 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1844 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1845 | .total_size = 8192, |
| 1846 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1847 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1848 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1849 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1850 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1851 | .block_erasers = |
| 1852 | { |
| 1853 | { |
| 1854 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1855 | .block_erase = spi_block_erase_20, |
| 1856 | }, { |
| 1857 | .eraseblocks = { {32 * 1024, 256} }, |
| 1858 | .block_erase = spi_block_erase_52, |
| 1859 | }, { |
| 1860 | .eraseblocks = { {64 * 1024, 128} }, |
| 1861 | .block_erase = spi_block_erase_d8, |
| 1862 | }, { |
| 1863 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1864 | .block_erase = spi_block_erase_60, |
| 1865 | }, { |
| 1866 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1867 | .block_erase = spi_block_erase_c7, |
| 1868 | } |
| 1869 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1870 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1871 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1872 | .write = spi_chip_write_256, |
| 1873 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1874 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1875 | }, |
| 1876 | |
| 1877 | { |
| 1878 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1879 | .name = "AT25DL081", |
| 1880 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1881 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1882 | .model_id = ATMEL_AT25DF081, |
| 1883 | .total_size = 1024, |
| 1884 | .page_size = 256, |
| 1885 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1886 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1887 | .tested = TEST_UNTESTED, |
| 1888 | .probe = probe_spi_rdid, |
| 1889 | .probe_timing = TIMING_ZERO, |
| 1890 | .block_erasers = |
| 1891 | { |
| 1892 | { |
| 1893 | .eraseblocks = { {4 * 1024, 256} }, |
| 1894 | .block_erase = spi_block_erase_20, |
| 1895 | }, { |
| 1896 | .eraseblocks = { {32 * 1024, 32} }, |
| 1897 | .block_erase = spi_block_erase_52, |
| 1898 | }, { |
| 1899 | .eraseblocks = { {64 * 1024, 16} }, |
| 1900 | .block_erase = spi_block_erase_d8, |
| 1901 | }, { |
| 1902 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1903 | .block_erase = spi_block_erase_60, |
| 1904 | }, { |
| 1905 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1906 | .block_erase = spi_block_erase_c7, |
| 1907 | } |
| 1908 | }, |
| 1909 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1910 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1911 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1912 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1913 | .voltage = {1650, 1950}, |
| 1914 | }, |
| 1915 | |
| 1916 | { |
| 1917 | .vendor = "Atmel", |
| 1918 | .name = "AT25DL161", |
| 1919 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1920 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1921 | .model_id = ATMEL_AT25DL161, |
| 1922 | .total_size = 2048, |
| 1923 | .page_size = 256, |
| 1924 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1925 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1926 | .tested = TEST_UNTESTED, |
| 1927 | .probe = probe_spi_rdid, |
| 1928 | .probe_timing = TIMING_ZERO, |
| 1929 | .block_erasers = |
| 1930 | { |
| 1931 | { |
| 1932 | .eraseblocks = { {4 * 1024, 512} }, |
| 1933 | .block_erase = spi_block_erase_20, |
| 1934 | }, { |
| 1935 | .eraseblocks = { {32 * 1024, 64} }, |
| 1936 | .block_erase = spi_block_erase_52, |
| 1937 | }, { |
| 1938 | .eraseblocks = { {64 * 1024, 32} }, |
| 1939 | .block_erase = spi_block_erase_d8, |
| 1940 | }, { |
| 1941 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1942 | .block_erase = spi_block_erase_60, |
| 1943 | }, { |
| 1944 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1945 | .block_erase = spi_block_erase_c7, |
| 1946 | } |
| 1947 | }, |
| 1948 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1949 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1950 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1951 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1952 | .voltage = {1650, 1950}, |
| 1953 | }, |
| 1954 | |
| 1955 | { |
| 1956 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1957 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1958 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1959 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1960 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1961 | .total_size = 2048, |
| 1962 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1963 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1964 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1965 | .tested = TEST_UNTESTED, |
| 1966 | .probe = probe_spi_rdid, |
| 1967 | .probe_timing = TIMING_ZERO, |
| 1968 | .block_erasers = |
| 1969 | { |
| 1970 | { |
| 1971 | .eraseblocks = { {4 * 1024, 512} }, |
| 1972 | .block_erase = spi_block_erase_20, |
| 1973 | }, { |
| 1974 | .eraseblocks = { {32 * 1024, 64} }, |
| 1975 | .block_erase = spi_block_erase_52, |
| 1976 | }, { |
| 1977 | .eraseblocks = { {64 * 1024, 32} }, |
| 1978 | .block_erase = spi_block_erase_d8, |
| 1979 | }, { |
| 1980 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1981 | .block_erase = spi_block_erase_60, |
| 1982 | }, { |
| 1983 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1984 | .block_erase = spi_block_erase_c7, |
| 1985 | } |
| 1986 | }, |
| 1987 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1988 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1989 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1990 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1991 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1992 | }, |
| 1993 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1994 | { |
| 1995 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1996 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1997 | * All other properties seem to be the same.*/ |
| 1998 | .name = "AT25F1024(A)", |
| 1999 | .bustype = BUS_SPI, |
| 2000 | .manufacture_id = ATMEL_ID, |
| 2001 | .model_id = ATMEL_AT25F1024, |
| 2002 | .total_size = 128, |
| 2003 | .page_size = 256, |
| 2004 | .feature_bits = FEATURE_WRSR_WREN, |
| 2005 | .tested = TEST_OK_PREW, |
| 2006 | .probe = probe_spi_at25f, |
| 2007 | .probe_timing = TIMING_ZERO, |
| 2008 | .block_erasers = |
| 2009 | { |
| 2010 | { |
| 2011 | .eraseblocks = { {32 * 1024, 4} }, |
| 2012 | .block_erase = spi_block_erase_52, |
| 2013 | }, { |
| 2014 | .eraseblocks = { {128 * 1024, 1} }, |
| 2015 | .block_erase = spi_block_erase_62, |
| 2016 | } |
| 2017 | }, |
| 2018 | .printlock = spi_prettyprint_status_register_at25f, |
| 2019 | .unlock = spi_disable_blockprotect_at25f, |
| 2020 | .write = spi_chip_write_256, |
| 2021 | .read = spi_chip_read, |
| 2022 | .voltage = {2700, 3600}, |
| 2023 | }, |
| 2024 | |
| 2025 | { |
| 2026 | .vendor = "Atmel", |
| 2027 | .name = "AT25F2048", |
| 2028 | .bustype = BUS_SPI, |
| 2029 | .manufacture_id = ATMEL_ID, |
| 2030 | .model_id = ATMEL_AT25F2048, |
| 2031 | .total_size = 256, |
| 2032 | .page_size = 256, |
| 2033 | .feature_bits = FEATURE_WRSR_WREN, |
| 2034 | .tested = TEST_UNTESTED, |
| 2035 | .probe = probe_spi_at25f, |
| 2036 | .probe_timing = TIMING_ZERO, |
| 2037 | .block_erasers = |
| 2038 | { |
| 2039 | { |
| 2040 | .eraseblocks = { {64 * 1024, 4} }, |
| 2041 | .block_erase = spi_block_erase_52, |
| 2042 | }, { |
| 2043 | .eraseblocks = { {256 * 1024, 1} }, |
| 2044 | .block_erase = spi_block_erase_62, |
| 2045 | } |
| 2046 | }, |
| 2047 | .printlock = spi_prettyprint_status_register_at25f, |
| 2048 | .unlock = spi_disable_blockprotect_at25f, |
| 2049 | .write = spi_chip_write_256, |
| 2050 | .read = spi_chip_read, |
| 2051 | .voltage = {2700, 3600}, |
| 2052 | }, |
| 2053 | |
| 2054 | { |
| 2055 | .vendor = "Atmel", |
| 2056 | .name = "AT25F4096", |
| 2057 | .bustype = BUS_SPI, |
| 2058 | .manufacture_id = ATMEL_ID, |
| 2059 | .model_id = ATMEL_AT25F4096, |
| 2060 | .total_size = 512, |
| 2061 | .page_size = 256, |
| 2062 | .feature_bits = FEATURE_WRSR_WREN, |
| 2063 | .tested = TEST_OK_PREW, |
| 2064 | .probe = probe_spi_at25f, |
| 2065 | .probe_timing = TIMING_ZERO, |
| 2066 | .block_erasers = |
| 2067 | { |
| 2068 | { |
| 2069 | .eraseblocks = { {64 * 1024, 8} }, |
| 2070 | .block_erase = spi_block_erase_52, |
| 2071 | }, { |
| 2072 | .eraseblocks = { {512 * 1024, 1} }, |
| 2073 | .block_erase = spi_block_erase_62, |
| 2074 | } |
| 2075 | }, |
| 2076 | .printlock = spi_prettyprint_status_register_at25f4096, |
| 2077 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2078 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 2079 | .write = spi_chip_write_256, |
| 2080 | .read = spi_chip_read, |
| 2081 | .voltage = {2700, 3600}, |
| 2082 | }, |
| 2083 | |
| 2084 | { |
| 2085 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2086 | .name = "AT25F512", |
| 2087 | .bustype = BUS_SPI, |
| 2088 | .manufacture_id = ATMEL_ID, |
| 2089 | .model_id = ATMEL_AT25F512, |
| 2090 | .total_size = 64, |
| 2091 | .page_size = 256, |
| 2092 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2093 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2094 | .probe = probe_spi_at25f, |
| 2095 | .probe_timing = TIMING_ZERO, |
| 2096 | .block_erasers = |
| 2097 | { |
| 2098 | { |
| 2099 | .eraseblocks = { {32 * 1024, 2} }, |
| 2100 | .block_erase = spi_block_erase_52, |
| 2101 | }, { |
| 2102 | .eraseblocks = { {64 * 1024, 1} }, |
| 2103 | .block_erase = spi_block_erase_62, |
| 2104 | } |
| 2105 | }, |
| 2106 | .printlock = spi_prettyprint_status_register_at25f, |
| 2107 | .unlock = spi_disable_blockprotect_at25f, |
| 2108 | .write = spi_chip_write_256, |
| 2109 | .read = spi_chip_read, |
| 2110 | .voltage = {2700, 3600}, |
| 2111 | }, |
| 2112 | |
| 2113 | { |
| 2114 | .vendor = "Atmel", |
| 2115 | .name = "AT25F512A", |
| 2116 | .bustype = BUS_SPI, |
| 2117 | .manufacture_id = ATMEL_ID, |
| 2118 | .model_id = ATMEL_AT25F512A, |
| 2119 | .total_size = 64, |
| 2120 | .page_size = 128, |
| 2121 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2122 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2123 | .probe = probe_spi_at25f, |
| 2124 | .probe_timing = TIMING_ZERO, |
| 2125 | .block_erasers = |
| 2126 | { |
| 2127 | { |
| 2128 | .eraseblocks = { {32 * 1024, 2} }, |
| 2129 | .block_erase = spi_block_erase_52, |
| 2130 | }, { |
| 2131 | .eraseblocks = { {64 * 1024, 1} }, |
| 2132 | .block_erase = spi_block_erase_62, |
| 2133 | } |
| 2134 | }, |
| 2135 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 2136 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 2137 | .unlock = spi_disable_blockprotect_at25f512a, |
| 2138 | .write = spi_chip_write_256, |
| 2139 | .read = spi_chip_read, |
| 2140 | .voltage = {2700, 3600}, |
| 2141 | }, |
| 2142 | |
| 2143 | { |
| 2144 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2145 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2146 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2147 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2148 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2149 | .total_size = 64, |
| 2150 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2151 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2152 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2153 | .tested = TEST_UNTESTED, |
| 2154 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2155 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2156 | .block_erasers = |
| 2157 | { |
| 2158 | { |
| 2159 | .eraseblocks = { {4 * 1024, 16} }, |
| 2160 | .block_erase = spi_block_erase_20, |
| 2161 | }, { |
| 2162 | .eraseblocks = { {32 * 1024, 2} }, |
| 2163 | .block_erase = spi_block_erase_52, |
| 2164 | }, { |
| 2165 | .eraseblocks = { {32 * 1024, 2} }, |
| 2166 | .block_erase = spi_block_erase_d8, |
| 2167 | }, { |
| 2168 | .eraseblocks = { {64 * 1024, 1} }, |
| 2169 | .block_erase = spi_block_erase_60, |
| 2170 | }, { |
| 2171 | .eraseblocks = { {64 * 1024, 1} }, |
| 2172 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 2173 | }, { |
| 2174 | .eraseblocks = { {64 * 1024, 1} }, |
| 2175 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2176 | } |
| 2177 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2178 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2179 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2180 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2181 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2182 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2183 | }, |
| 2184 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2185 | { |
| 2186 | .vendor = "Atmel", |
| 2187 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2188 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2189 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2190 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2191 | .total_size = 128, |
| 2192 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2193 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2194 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2195 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2196 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2197 | .block_erasers = |
| 2198 | { |
| 2199 | { |
| 2200 | .eraseblocks = { {4 * 1024, 32} }, |
| 2201 | .block_erase = spi_block_erase_20, |
| 2202 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2203 | .eraseblocks = { {4 * 1024, 32} }, |
| 2204 | .block_erase = spi_block_erase_d7, |
| 2205 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2206 | .eraseblocks = { {32 * 1024, 4} }, |
| 2207 | .block_erase = spi_block_erase_52, |
| 2208 | }, { |
| 2209 | .eraseblocks = { {32 * 1024, 4} }, |
| 2210 | .block_erase = spi_block_erase_d8, |
| 2211 | }, { |
| 2212 | .eraseblocks = { {128 * 1024, 1} }, |
| 2213 | .block_erase = spi_block_erase_60, |
| 2214 | }, { |
| 2215 | .eraseblocks = { {128 * 1024, 1} }, |
| 2216 | .block_erase = spi_block_erase_c7, |
| 2217 | } |
| 2218 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2219 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2220 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2221 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2222 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2223 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2224 | }, |
| 2225 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2226 | { |
| 2227 | .vendor = "Atmel", |
| 2228 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2229 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2230 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2231 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2232 | .total_size = 512, |
| 2233 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2234 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2235 | .tested = TEST_UNTESTED, |
| 2236 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2237 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2238 | .block_erasers = |
| 2239 | { |
| 2240 | { |
| 2241 | .eraseblocks = { {4 * 1024, 128} }, |
| 2242 | .block_erase = spi_block_erase_20, |
| 2243 | }, { |
| 2244 | .eraseblocks = { {64 * 1024, 8} }, |
| 2245 | .block_erase = spi_block_erase_52, |
| 2246 | }, { |
| 2247 | .eraseblocks = { {64 * 1024, 8} }, |
| 2248 | .block_erase = spi_block_erase_d8, |
| 2249 | }, { |
| 2250 | .eraseblocks = { {512 * 1024, 1} }, |
| 2251 | .block_erase = spi_block_erase_60, |
| 2252 | }, { |
| 2253 | .eraseblocks = { {512 * 1024, 1} }, |
| 2254 | .block_erase = spi_block_erase_c7, |
| 2255 | } |
| 2256 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2257 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2258 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2259 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2260 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2261 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2262 | }, |
| 2263 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2264 | { |
| 2265 | .vendor = "Atmel", |
jvm | a3ab6c6 | 2018-03-08 15:43:20 +0100 | [diff] [blame] | 2266 | .name = "AT25SF041", |
| 2267 | .bustype = BUS_SPI, |
| 2268 | .manufacture_id = ATMEL_ID, |
| 2269 | .model_id = ATMEL_AT25SF041, |
| 2270 | .total_size = 512, |
| 2271 | .page_size = 256, |
| 2272 | .feature_bits = FEATURE_WRSR_WREN, |
| 2273 | .tested = TEST_OK_PREW, |
| 2274 | .probe = probe_spi_rdid, |
| 2275 | .probe_timing = TIMING_ZERO, |
| 2276 | .block_erasers = |
| 2277 | { |
| 2278 | { |
| 2279 | .eraseblocks = { {4 * 1024, 128} }, |
| 2280 | .block_erase = spi_block_erase_20, |
| 2281 | }, { |
| 2282 | .eraseblocks = { {32 * 1024, 16} }, |
| 2283 | .block_erase = spi_block_erase_52, |
| 2284 | }, { |
| 2285 | .eraseblocks = { {64 * 1024, 8} }, |
| 2286 | .block_erase = spi_block_erase_d8, |
| 2287 | }, { |
| 2288 | .eraseblocks = { {512 * 1024, 1} }, |
| 2289 | .block_erase = spi_block_erase_60, |
| 2290 | }, { |
| 2291 | .eraseblocks = { {512 * 1024, 1} }, |
| 2292 | .block_erase = spi_block_erase_c7, |
| 2293 | } |
| 2294 | }, |
| 2295 | .printlock = spi_prettyprint_status_register_plain, |
| 2296 | .unlock = spi_disable_blockprotect, |
| 2297 | .write = spi_chip_write_256, |
| 2298 | .read = spi_chip_read, |
| 2299 | .voltage = {2500, 3600}, |
| 2300 | }, |
| 2301 | |
| 2302 | { |
| 2303 | .vendor = "Atmel", |
Evan Jensen | 291c101 | 2018-05-17 14:30:19 -0700 | [diff] [blame] | 2304 | .name = "AT25SF081", |
| 2305 | .bustype = BUS_SPI, |
| 2306 | .manufacture_id = ATMEL_ID, |
| 2307 | .model_id = ATMEL_AT25SF081, |
| 2308 | .total_size = 1024, |
| 2309 | .page_size = 256, |
| 2310 | .feature_bits = FEATURE_WRSR_WREN, |
| 2311 | .tested = TEST_OK_PREW, |
| 2312 | .probe = probe_spi_rdid, |
| 2313 | .probe_timing = TIMING_ZERO, |
| 2314 | .block_erasers = |
| 2315 | { |
| 2316 | { |
| 2317 | .eraseblocks = { {4 * 1024, 256} }, |
| 2318 | .block_erase = spi_block_erase_20, |
| 2319 | }, { |
| 2320 | .eraseblocks = { {32 * 1024, 32} }, |
| 2321 | .block_erase = spi_block_erase_52, |
| 2322 | }, { |
| 2323 | .eraseblocks = { {64 * 1024, 16} }, |
| 2324 | .block_erase = spi_block_erase_d8, |
| 2325 | }, { |
| 2326 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2327 | .block_erase = spi_block_erase_60, |
| 2328 | }, { |
| 2329 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2330 | .block_erase = spi_block_erase_c7, |
| 2331 | } |
| 2332 | }, |
| 2333 | .printlock = spi_prettyprint_status_register_plain, |
| 2334 | .unlock = spi_disable_blockprotect, |
| 2335 | .write = spi_chip_write_256, |
| 2336 | .read = spi_chip_read, |
| 2337 | .voltage = {2300, 3600}, |
| 2338 | }, |
| 2339 | |
| 2340 | { |
| 2341 | .vendor = "Atmel", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2342 | .name = "AT25SF161", |
| 2343 | .bustype = BUS_SPI, |
| 2344 | .manufacture_id = ATMEL_ID, |
| 2345 | .model_id = ATMEL_AT25SF161, |
| 2346 | .total_size = 2048, |
| 2347 | .page_size = 256, |
| 2348 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 2349 | .tested = TEST_OK_PREW, |
| 2350 | .probe = probe_spi_rdid, |
| 2351 | .probe_timing = TIMING_ZERO, |
| 2352 | .block_erasers = |
| 2353 | { |
| 2354 | { |
| 2355 | .eraseblocks = { {4 * 1024, 512} }, |
| 2356 | .block_erase = spi_block_erase_20, |
| 2357 | }, { |
| 2358 | .eraseblocks = { {32 * 1024, 64} }, |
| 2359 | .block_erase = spi_block_erase_52, |
| 2360 | }, { |
| 2361 | .eraseblocks = { {64 * 1024, 32} }, |
| 2362 | .block_erase = spi_block_erase_d8, |
| 2363 | }, { |
| 2364 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2365 | .block_erase = spi_block_erase_60, |
| 2366 | }, { |
| 2367 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2368 | .block_erase = spi_block_erase_c7, |
| 2369 | } |
| 2370 | }, |
| 2371 | .printlock = spi_prettyprint_status_register_plain, |
| 2372 | .unlock = spi_disable_blockprotect, |
| 2373 | .write = spi_chip_write_256, |
| 2374 | .read = spi_chip_read, |
| 2375 | .voltage = {2500, 3600}, |
| 2376 | }, |
| 2377 | |
| 2378 | { |
Alan Green | 57938f8 | 2019-06-27 15:06:43 +1000 | [diff] [blame] | 2379 | .vendor = "Atmel", |
darkarnium | 4139438 | 2019-11-04 20:06:48 +0000 | [diff] [blame] | 2380 | .name = "AT25SF321", |
| 2381 | .bustype = BUS_SPI, |
| 2382 | .manufacture_id = ATMEL_ID, |
| 2383 | .model_id = ATMEL_AT25SF321, |
| 2384 | .total_size = 4096, |
| 2385 | .page_size = 256, |
| 2386 | .feature_bits = FEATURE_WRSR_WREN, |
| 2387 | .tested = TEST_OK_PR, |
| 2388 | .probe = probe_spi_rdid, |
| 2389 | .probe_timing = TIMING_ZERO, |
| 2390 | .block_erasers = |
| 2391 | { |
| 2392 | { |
| 2393 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2394 | .block_erase = spi_block_erase_20, |
| 2395 | }, { |
| 2396 | .eraseblocks = { {32 * 1024, 128} }, |
| 2397 | .block_erase = spi_block_erase_52, |
| 2398 | }, { |
| 2399 | .eraseblocks = { {64 * 1024, 64} }, |
| 2400 | .block_erase = spi_block_erase_d8, |
| 2401 | }, { |
| 2402 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2403 | .block_erase = spi_block_erase_60, |
| 2404 | }, { |
| 2405 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2406 | .block_erase = spi_block_erase_c7, |
| 2407 | } |
| 2408 | }, |
| 2409 | .printlock = spi_prettyprint_status_register_plain, |
| 2410 | .unlock = spi_disable_blockprotect, |
| 2411 | .write = spi_chip_write_256, |
| 2412 | .read = spi_chip_read, |
| 2413 | .voltage = {2500, 3600}, |
| 2414 | }, |
| 2415 | |
| 2416 | { |
| 2417 | .vendor = "Atmel", |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2418 | .name = "AT25SL128A", |
| 2419 | .bustype = BUS_SPI, |
| 2420 | .manufacture_id = ATMEL_ID, |
| 2421 | .model_id = ATMEL_AT25SL128A, |
| 2422 | .total_size = 16384, |
| 2423 | .page_size = 256, |
| 2424 | /* supports SFDP */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2425 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2426 | .tested = TEST_OK_PREW, |
| 2427 | .probe = probe_spi_rdid, |
| 2428 | .probe_timing = TIMING_ZERO, |
| 2429 | .block_erasers = |
| 2430 | { |
| 2431 | { |
| 2432 | .eraseblocks = { {4 * 1024, 4096} }, |
| 2433 | .block_erase = spi_block_erase_20, |
| 2434 | }, { |
| 2435 | .eraseblocks = { {32 * 1024, 512} }, |
| 2436 | .block_erase = spi_block_erase_52, |
| 2437 | }, { |
| 2438 | .eraseblocks = { {64 * 1024, 256} }, |
| 2439 | .block_erase = spi_block_erase_d8, |
| 2440 | }, { |
| 2441 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2442 | .block_erase = spi_block_erase_60, |
| 2443 | }, { |
| 2444 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2445 | .block_erase = spi_block_erase_c7, |
| 2446 | } |
| 2447 | }, |
| 2448 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 2449 | .unlock = spi_disable_blockprotect, |
| 2450 | .write = spi_chip_write_256, |
| 2451 | .read = spi_chip_read, |
| 2452 | .voltage = {1700, 2000}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2453 | .reg_bits = |
| 2454 | { |
| 2455 | .srp = {STATUS1, 7, RW}, |
| 2456 | .srl = {STATUS2, 0, RW}, |
| 2457 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 2458 | .tb = {STATUS1, 5, RW}, |
| 2459 | .sec = {STATUS1, 6, RW}, |
| 2460 | .cmp = {STATUS2, 6, RW}, |
| 2461 | }, |
| 2462 | .decode_range = decode_range_spi25, |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2463 | }, |
| 2464 | |
| 2465 | { |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2466 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2467 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2468 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2469 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2470 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2471 | .total_size = 512, |
| 2472 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2473 | /* 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] | 2474 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2475 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2476 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2477 | .block_erasers = |
| 2478 | { |
| 2479 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2480 | .eraseblocks = { {256, 2048} }, |
| 2481 | .block_erase = spi_block_erase_81, |
| 2482 | }, { |
| 2483 | .eraseblocks = { {2 * 1024, 256} }, |
| 2484 | .block_erase = spi_block_erase_50, |
| 2485 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2486 | .eraseblocks = { {4 * 1024, 128} }, |
| 2487 | .block_erase = spi_block_erase_20, |
| 2488 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2489 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2490 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2491 | /* 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] | 2492 | .write = spi_chip_write_1, |
| 2493 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2494 | .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] | 2495 | }, |
| 2496 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2497 | { |
| 2498 | .vendor = "Atmel", |
| 2499 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2500 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2501 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2502 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2503 | .total_size = 1024, |
| 2504 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2505 | .feature_bits = FEATURE_WRSR_WREN, |
| 2506 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2507 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2508 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2509 | .block_erasers = |
| 2510 | { |
| 2511 | { |
| 2512 | .eraseblocks = { {4 * 1024, 256} }, |
| 2513 | .block_erase = spi_block_erase_20, |
| 2514 | }, { |
| 2515 | .eraseblocks = { {32 * 1024, 32} }, |
| 2516 | .block_erase = spi_block_erase_52, |
| 2517 | }, { |
| 2518 | .eraseblocks = { {64 * 1024, 16} }, |
| 2519 | .block_erase = spi_block_erase_d8, |
| 2520 | }, { |
| 2521 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2522 | .block_erase = spi_block_erase_60, |
| 2523 | }, { |
| 2524 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2525 | .block_erase = spi_block_erase_c7, |
| 2526 | } |
| 2527 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2528 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2529 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2530 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2531 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2532 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2533 | }, |
| 2534 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2535 | { |
| 2536 | .vendor = "Atmel", |
| 2537 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2538 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2539 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2540 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2541 | .total_size = 2048, |
| 2542 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2543 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2544 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2545 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2546 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2547 | .block_erasers = |
| 2548 | { |
| 2549 | { |
| 2550 | .eraseblocks = { {4 * 1024, 512} }, |
| 2551 | .block_erase = spi_block_erase_20, |
| 2552 | }, { |
| 2553 | .eraseblocks = { {32 * 1024, 64} }, |
| 2554 | .block_erase = spi_block_erase_52, |
| 2555 | }, { |
| 2556 | .eraseblocks = { {64 * 1024, 32} }, |
| 2557 | .block_erase = spi_block_erase_d8, |
| 2558 | }, { |
| 2559 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2560 | .block_erase = spi_block_erase_60, |
| 2561 | }, { |
| 2562 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2563 | .block_erase = spi_block_erase_c7, |
| 2564 | } |
| 2565 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2566 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2567 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2568 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2569 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2570 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2571 | }, |
| 2572 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2573 | { |
| 2574 | .vendor = "Atmel", |
| 2575 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2576 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2577 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2578 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2579 | .total_size = 2048, |
| 2580 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2581 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2582 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2583 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2584 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2585 | .block_erasers = |
| 2586 | { |
| 2587 | { |
| 2588 | .eraseblocks = { {4 * 1024, 512} }, |
| 2589 | .block_erase = spi_block_erase_20, |
| 2590 | }, { |
| 2591 | .eraseblocks = { {32 * 1024, 64} }, |
| 2592 | .block_erase = spi_block_erase_52, |
| 2593 | }, { |
| 2594 | .eraseblocks = { {64 * 1024, 32} }, |
| 2595 | .block_erase = spi_block_erase_d8, |
| 2596 | }, { |
| 2597 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2598 | .block_erase = spi_block_erase_60, |
| 2599 | }, { |
| 2600 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2601 | .block_erase = spi_block_erase_c7, |
| 2602 | } |
| 2603 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2604 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2605 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2606 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2607 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2608 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2609 | }, |
| 2610 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2611 | { |
| 2612 | .vendor = "Atmel", |
| 2613 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2614 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2615 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2616 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2617 | .total_size = 512, |
| 2618 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2619 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 2620 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD}, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2621 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2622 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2623 | .block_erasers = |
| 2624 | { |
| 2625 | { |
| 2626 | .eraseblocks = { {4 * 1024, 128} }, |
| 2627 | .block_erase = spi_block_erase_20, |
| 2628 | }, { |
| 2629 | .eraseblocks = { {32 * 1024, 16} }, |
| 2630 | .block_erase = spi_block_erase_52, |
| 2631 | }, { |
| 2632 | .eraseblocks = { {64 * 1024, 8} }, |
| 2633 | .block_erase = spi_block_erase_d8, |
| 2634 | }, { |
| 2635 | .eraseblocks = { {512 * 1024, 1} }, |
| 2636 | .block_erase = spi_block_erase_60, |
| 2637 | }, { |
| 2638 | .eraseblocks = { {512 * 1024, 1} }, |
| 2639 | .block_erase = spi_block_erase_c7, |
| 2640 | } |
| 2641 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2642 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2643 | .write = NULL, /* Incompatible Page write */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2644 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2645 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2646 | }, |
| 2647 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2648 | { |
| 2649 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2650 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2651 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2652 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2653 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2654 | .total_size = 128, |
| 2655 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2656 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2657 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2658 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2659 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2660 | .block_erasers = |
| 2661 | { |
| 2662 | { |
| 2663 | .eraseblocks = { {128 * 1024, 1} }, |
| 2664 | .block_erase = erase_chip_block_jedec, |
| 2665 | } |
| 2666 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2667 | .write = write_jedec, /* FIXME */ |
| 2668 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2669 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2670 | .prepare_access = prepare_memory_access, |
| 2671 | .finish_access = finish_memory_access, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2672 | }, |
| 2673 | |
| 2674 | { |
| 2675 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2676 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2677 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2678 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2679 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2680 | .total_size = 256, |
| 2681 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2682 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2683 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2684 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2685 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2686 | .block_erasers = |
| 2687 | { |
| 2688 | { |
| 2689 | .eraseblocks = { {256 * 1024, 1} }, |
| 2690 | .block_erase = erase_chip_block_jedec, |
| 2691 | } |
| 2692 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2693 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2694 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2695 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2696 | .prepare_access = prepare_memory_access, |
| 2697 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2698 | }, |
| 2699 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2700 | { |
| 2701 | .vendor = "Atmel", |
| 2702 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2703 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2704 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2705 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2706 | .total_size = 512, |
| 2707 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2708 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2709 | .tested = TEST_UNTESTED, |
| 2710 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2711 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2712 | .block_erasers = |
| 2713 | { |
| 2714 | { |
| 2715 | .eraseblocks = { {512 * 1024, 1} }, |
| 2716 | .block_erase = erase_chip_block_jedec, |
| 2717 | } |
| 2718 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2719 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2720 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2721 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2722 | .prepare_access = prepare_memory_access, |
| 2723 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2724 | }, |
| 2725 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2726 | { |
| 2727 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2728 | .name = "AT29C512", |
| 2729 | .bustype = BUS_PARALLEL, |
| 2730 | .manufacture_id = ATMEL_ID, |
| 2731 | .model_id = ATMEL_AT29C512, |
| 2732 | .total_size = 64, |
| 2733 | .page_size = 128, |
| 2734 | .feature_bits = FEATURE_LONG_RESET, |
| 2735 | .tested = TEST_OK_PREW, |
| 2736 | .probe = probe_jedec, |
| 2737 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
| 2738 | .block_erasers = |
| 2739 | { |
| 2740 | { |
| 2741 | .eraseblocks = { {64 * 1024, 1} }, |
| 2742 | .block_erase = erase_chip_block_jedec, |
| 2743 | } |
| 2744 | }, |
| 2745 | .write = write_jedec, |
| 2746 | .read = read_memmapped, |
| 2747 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2748 | .prepare_access = prepare_memory_access, |
| 2749 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2750 | }, |
| 2751 | |
| 2752 | { |
| 2753 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2754 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2755 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2756 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2757 | .model_id = ATMEL_AT45CS1282, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2758 | .total_size = 16896, /* No power of two sizes */ |
| 2759 | .page_size = 1056, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2760 | /* 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] | 2761 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2762 | .feature_bits = FEATURE_OTP, |
| 2763 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2764 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2765 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2766 | .block_erasers = |
| 2767 | { |
| 2768 | { |
| 2769 | .eraseblocks = { |
| 2770 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2771 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2772 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2773 | }, |
| 2774 | .block_erase = spi_erase_at45cs_sector, |
| 2775 | } |
| 2776 | }, |
| 2777 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2778 | .write = spi_write_at45db, |
| 2779 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2780 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2781 | .gran = write_gran_1056bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2782 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2783 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2784 | { |
| 2785 | .vendor = "Atmel", |
| 2786 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2787 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2788 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2789 | .model_id = ATMEL_AT45DB011D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2790 | .total_size = 128, /* or 132, determined from status register */ |
| 2791 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2792 | /* 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] | 2793 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2794 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2795 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2796 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2797 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2798 | .block_erasers = |
| 2799 | { |
| 2800 | { |
| 2801 | .eraseblocks = { {256, 512} }, |
| 2802 | .block_erase = spi_erase_at45db_page, |
| 2803 | }, { |
| 2804 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2805 | .block_erase = spi_erase_at45db_block, |
| 2806 | }, { |
| 2807 | .eraseblocks = { |
| 2808 | {8 * 256, 1}, |
| 2809 | {120 * 256, 1}, |
| 2810 | {128 * 256, 3}, |
| 2811 | }, |
| 2812 | .block_erase = spi_erase_at45db_sector |
| 2813 | }, { |
| 2814 | .eraseblocks = { {128 * 1024, 1} }, |
| 2815 | .block_erase = spi_erase_at45db_chip, |
| 2816 | } |
| 2817 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2818 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2819 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2820 | /* granularity will be set by the probing function. */ |
| 2821 | .write = spi_write_at45db, |
| 2822 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2823 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2824 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2825 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2826 | { |
| 2827 | .vendor = "Atmel", |
| 2828 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2829 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2830 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2831 | .model_id = ATMEL_AT45DB021D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2832 | .total_size = 256, /* or 264, determined from status register */ |
| 2833 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2834 | /* 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] | 2835 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2836 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2837 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2838 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2839 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2840 | .block_erasers = |
| 2841 | { |
| 2842 | { |
| 2843 | .eraseblocks = { {256, 1024} }, |
| 2844 | .block_erase = spi_erase_at45db_page, |
| 2845 | }, { |
| 2846 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2847 | .block_erase = spi_erase_at45db_block, |
| 2848 | }, { |
| 2849 | .eraseblocks = { |
| 2850 | {8 * 256, 1}, |
| 2851 | {120 * 256, 1}, |
| 2852 | {128 * 256, 7}, |
| 2853 | }, |
| 2854 | .block_erase = spi_erase_at45db_sector |
| 2855 | }, { |
| 2856 | .eraseblocks = { {256 * 1024, 1} }, |
| 2857 | .block_erase = spi_erase_at45db_chip, |
| 2858 | } |
| 2859 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2860 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2861 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2862 | /* granularity will be set by the probing function. */ |
| 2863 | .write = spi_write_at45db, |
| 2864 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2865 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2866 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2867 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2868 | { |
| 2869 | .vendor = "Atmel", |
| 2870 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2871 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2872 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2873 | .model_id = ATMEL_AT45DB041D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2874 | .total_size = 512, /* or 528, determined from status register */ |
| 2875 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2876 | /* 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] | 2877 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2878 | .feature_bits = FEATURE_OTP, |
| 2879 | .tested = TEST_OK_PREW, |
| 2880 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2881 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2882 | .block_erasers = |
| 2883 | { |
| 2884 | { |
| 2885 | .eraseblocks = { {256, 2048} }, |
| 2886 | .block_erase = spi_erase_at45db_page, |
| 2887 | }, { |
| 2888 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2889 | .block_erase = spi_erase_at45db_block, |
| 2890 | }, { |
| 2891 | .eraseblocks = { |
| 2892 | {8 * 256, 1}, |
| 2893 | {248 * 256, 1}, |
| 2894 | {256 * 256, 7}, |
| 2895 | }, |
| 2896 | .block_erase = spi_erase_at45db_sector |
| 2897 | }, { |
| 2898 | .eraseblocks = { {512 * 1024, 1} }, |
| 2899 | .block_erase = spi_erase_at45db_chip, |
| 2900 | } |
| 2901 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2902 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2903 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2904 | /* granularity will be set by the probing function. */ |
| 2905 | .write = spi_write_at45db, |
| 2906 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2907 | .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] | 2908 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2909 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2910 | { |
| 2911 | .vendor = "Atmel", |
| 2912 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2913 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2914 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2915 | .model_id = ATMEL_AT45DB081D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2916 | .total_size = 1024, /* or 1056, determined from status register */ |
| 2917 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2918 | /* 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] | 2919 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2920 | .feature_bits = FEATURE_OTP, |
Angel Pons | 250aeba | 2018-09-30 20:28:22 +0200 | [diff] [blame] | 2921 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2922 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2923 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2924 | .block_erasers = |
| 2925 | { |
| 2926 | { |
| 2927 | .eraseblocks = { {256, 4096} }, |
| 2928 | .block_erase = spi_erase_at45db_page, |
| 2929 | }, { |
| 2930 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2931 | .block_erase = spi_erase_at45db_block, |
| 2932 | }, { |
| 2933 | .eraseblocks = { |
| 2934 | {8 * 256, 1}, |
| 2935 | {248 * 256, 1}, |
| 2936 | {256 * 256, 15}, |
| 2937 | }, |
| 2938 | .block_erase = spi_erase_at45db_sector |
| 2939 | }, { |
| 2940 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2941 | .block_erase = spi_erase_at45db_chip, |
| 2942 | } |
| 2943 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2944 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2945 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2946 | /* granularity will be set by the probing function. */ |
| 2947 | .write = spi_write_at45db, |
| 2948 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2949 | .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] | 2950 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2951 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2952 | { |
| 2953 | .vendor = "Atmel", |
| 2954 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2955 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2956 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2957 | .model_id = ATMEL_AT45DB161D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2958 | .total_size = 2048, /* or 2112, determined from status register */ |
| 2959 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2960 | /* 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] | 2961 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2962 | .feature_bits = FEATURE_OTP, |
| 2963 | .tested = TEST_OK_PREW, |
| 2964 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2965 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2966 | .block_erasers = |
| 2967 | { |
| 2968 | { |
| 2969 | .eraseblocks = { {512, 4096} }, |
| 2970 | .block_erase = spi_erase_at45db_page, |
| 2971 | }, { |
| 2972 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2973 | .block_erase = spi_erase_at45db_block, |
| 2974 | }, { |
| 2975 | .eraseblocks = { |
| 2976 | {8 * 512, 1}, |
| 2977 | {248 * 512, 1}, |
| 2978 | {256 * 512, 15}, |
| 2979 | }, |
| 2980 | .block_erase = spi_erase_at45db_sector |
| 2981 | }, { |
| 2982 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2983 | .block_erase = spi_erase_at45db_chip, |
| 2984 | } |
| 2985 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2986 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2987 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2988 | /* granularity will be set by the probing function. */ |
| 2989 | .write = spi_write_at45db, |
| 2990 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2991 | .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] | 2992 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2993 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2994 | { |
| 2995 | .vendor = "Atmel", |
| 2996 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2997 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2998 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2999 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3000 | .total_size = 4224, /* No power of two sizes */ |
| 3001 | .page_size = 528, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3002 | /* 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] | 3003 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 3004 | .feature_bits = FEATURE_OTP, |
| 3005 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3006 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3007 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3008 | .block_erasers = |
| 3009 | { |
| 3010 | { |
| 3011 | .eraseblocks = { {528, 8192} }, |
| 3012 | .block_erase = spi_erase_at45db_page, |
| 3013 | }, { |
| 3014 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 3015 | .block_erase = spi_erase_at45db_block, |
| 3016 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 3017 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 3018 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3019 | .eraseblocks = { |
| 3020 | {8 * 528, 1}, |
| 3021 | {120 * 528, 1}, |
| 3022 | {128 * 528, 63}, |
| 3023 | }, |
| 3024 | .block_erase = spi_erase_at45db_sector |
| 3025 | }, */ { |
| 3026 | .eraseblocks = { {4224 * 1024, 1} }, |
| 3027 | .block_erase = spi_erase_at45db_chip, |
| 3028 | } |
| 3029 | }, |
| 3030 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3031 | .write = spi_write_at45db, |
| 3032 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3033 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3034 | .gran = write_gran_528bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3035 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3036 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3037 | { |
| 3038 | .vendor = "Atmel", |
| 3039 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3040 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3041 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3042 | .model_id = ATMEL_AT45DB321D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3043 | .total_size = 4096, /* or 4224, determined from status register */ |
| 3044 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3045 | /* 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] | 3046 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3047 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 3048 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3049 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3050 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3051 | .block_erasers = |
| 3052 | { |
| 3053 | { |
| 3054 | .eraseblocks = { {512, 8192} }, |
| 3055 | .block_erase = spi_erase_at45db_page, |
| 3056 | }, { |
| 3057 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3058 | .block_erase = spi_erase_at45db_block, |
| 3059 | }, { |
| 3060 | .eraseblocks = { |
| 3061 | {8 * 512, 1}, |
| 3062 | {120 * 512, 1}, |
| 3063 | {128 * 512, 63}, |
| 3064 | }, |
| 3065 | .block_erase = spi_erase_at45db_sector |
| 3066 | }, { |
| 3067 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3068 | .block_erase = spi_erase_at45db_chip, |
| 3069 | } |
| 3070 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3071 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3072 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3073 | /* granularity will be set by the probing function. */ |
| 3074 | .write = spi_write_at45db, |
| 3075 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3076 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 3077 | }, |
| 3078 | |
| 3079 | { |
| 3080 | .vendor = "Atmel", |
| 3081 | .name = "AT45DB321E", |
| 3082 | .bustype = BUS_SPI, |
| 3083 | .manufacture_id = ATMEL_ID, |
| 3084 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3085 | .total_size = 4096, /* or 4224, determined from status register */ |
| 3086 | .page_size = 512, /* or 528, determined from status register */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3087 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 3088 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3089 | .feature_bits = FEATURE_OTP, |
| 3090 | .tested = TEST_UNTESTED, |
| 3091 | .probe = probe_spi_at45db, |
| 3092 | .probe_timing = TIMING_ZERO, |
| 3093 | .block_erasers = |
| 3094 | { |
| 3095 | { |
| 3096 | .eraseblocks = { {512, 8192} }, |
| 3097 | .block_erase = spi_erase_at45db_page, |
| 3098 | }, { |
| 3099 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3100 | .block_erase = spi_erase_at45db_block, |
| 3101 | }, { |
| 3102 | .eraseblocks = { |
| 3103 | {8 * 512, 1}, |
| 3104 | {120 * 512, 1}, |
| 3105 | {128 * 512, 63}, |
| 3106 | }, |
| 3107 | .block_erase = spi_erase_at45db_sector |
| 3108 | }, { |
| 3109 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3110 | .block_erase = spi_erase_at45db_chip, |
| 3111 | } |
| 3112 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3113 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3114 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3115 | /* granularity will be set by the probing function. */ |
| 3116 | .write = spi_write_at45db, |
| 3117 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3118 | .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] | 3119 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3120 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3121 | { |
| 3122 | .vendor = "Atmel", |
| 3123 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3124 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3125 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3126 | .model_id = ATMEL_AT45DB642D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3127 | .total_size = 8192, /* or 8448, determined from status register */ |
| 3128 | .page_size = 1024, /* or 1056, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3129 | /* 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] | 3130 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3131 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 3132 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3133 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3134 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3135 | .block_erasers = |
| 3136 | { |
| 3137 | { |
| 3138 | .eraseblocks = { {1024, 8192} }, |
| 3139 | .block_erase = spi_erase_at45db_page, |
| 3140 | }, { |
| 3141 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 3142 | .block_erase = spi_erase_at45db_block, |
| 3143 | }, { |
| 3144 | .eraseblocks = { |
| 3145 | {8 * 1024, 1}, |
| 3146 | {248 * 1024, 1}, |
| 3147 | {256 * 1024, 31}, |
| 3148 | }, |
| 3149 | .block_erase = spi_erase_at45db_sector |
| 3150 | }, { |
| 3151 | .eraseblocks = { {8192 * 1024, 1} }, |
| 3152 | .block_erase = spi_erase_at45db_chip, |
| 3153 | } |
| 3154 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3155 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3156 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3157 | /* granularity will be set by the probing function. */ |
| 3158 | .write = spi_write_at45db, |
| 3159 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3160 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3161 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3162 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3163 | { |
| 3164 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3165 | .name = "AT49(H)F010", |
| 3166 | .bustype = BUS_PARALLEL, |
| 3167 | .manufacture_id = ATMEL_ID, |
| 3168 | .model_id = ATMEL_AT49F010, |
| 3169 | .total_size = 128, |
| 3170 | .page_size = 0, /* unused */ |
| 3171 | .feature_bits = FEATURE_EITHER_RESET, |
| 3172 | .tested = TEST_OK_PREW, |
| 3173 | .probe = probe_jedec, |
| 3174 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3175 | .block_erasers = |
| 3176 | { |
| 3177 | { |
| 3178 | .eraseblocks = { {128 * 1024, 1} }, |
| 3179 | .block_erase = erase_chip_block_jedec, |
| 3180 | } |
| 3181 | }, |
| 3182 | .printlock = printlock_at49f, |
| 3183 | .write = write_jedec_1, |
| 3184 | .read = read_memmapped, |
| 3185 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3186 | .prepare_access = prepare_memory_access, |
| 3187 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3188 | }, |
| 3189 | |
| 3190 | { |
| 3191 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3192 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3193 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3194 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3195 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3196 | .total_size = 64, |
| 3197 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3198 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 3199 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3200 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3201 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3202 | .block_erasers = |
| 3203 | { |
| 3204 | { |
| 3205 | .eraseblocks = { {64 * 1024, 1} }, |
| 3206 | .block_erase = erase_chip_block_jedec, |
| 3207 | } |
| 3208 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3209 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3210 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3211 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3212 | .prepare_access = prepare_memory_access, |
| 3213 | .finish_access = finish_memory_access, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3214 | }, |
| 3215 | |
| 3216 | { |
| 3217 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3218 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3219 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3220 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3221 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3222 | .total_size = 256, |
| 3223 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3224 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3225 | .tested = TEST_UNTESTED, |
| 3226 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3227 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3228 | .block_erasers = |
| 3229 | { |
| 3230 | { |
| 3231 | .eraseblocks = { |
| 3232 | {16 * 1024, 1}, |
| 3233 | {8 * 1024, 2}, |
| 3234 | {96 * 1024, 1}, |
| 3235 | {128 * 1024, 1}, |
| 3236 | }, |
| 3237 | .block_erase = erase_sector_jedec, |
| 3238 | }, { |
| 3239 | .eraseblocks = { {256 * 1024, 1} }, |
| 3240 | .block_erase = erase_chip_block_jedec, |
| 3241 | } |
| 3242 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3243 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3244 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3245 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3246 | .prepare_access = prepare_memory_access, |
| 3247 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3248 | }, |
| 3249 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3250 | { |
| 3251 | .vendor = "Atmel", |
| 3252 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3253 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3254 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3255 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3256 | .total_size = 256, |
| 3257 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3258 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3259 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3260 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3261 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3262 | .block_erasers = |
| 3263 | { |
| 3264 | { |
| 3265 | .eraseblocks = { |
| 3266 | {128 * 1024, 1}, |
| 3267 | {96 * 1024, 1}, |
| 3268 | {8 * 1024, 2}, |
| 3269 | {16 * 1024, 1}, |
| 3270 | }, |
| 3271 | .block_erase = erase_sector_jedec, |
| 3272 | }, { |
| 3273 | .eraseblocks = { {256 * 1024, 1} }, |
| 3274 | .block_erase = erase_chip_block_jedec, |
| 3275 | } |
| 3276 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3277 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3278 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3279 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3280 | .prepare_access = prepare_memory_access, |
| 3281 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3282 | }, |
| 3283 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3284 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3285 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3286 | .name = "AT49F020", |
| 3287 | .bustype = BUS_PARALLEL, |
| 3288 | .manufacture_id = ATMEL_ID, |
| 3289 | .model_id = ATMEL_AT49F020, |
| 3290 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3291 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3292 | .feature_bits = FEATURE_EITHER_RESET, |
| 3293 | .tested = TEST_OK_PRE, |
| 3294 | .probe = probe_jedec, |
| 3295 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3296 | .block_erasers = |
| 3297 | { |
| 3298 | { |
| 3299 | .eraseblocks = { {256 * 1024, 1} }, |
| 3300 | .block_erase = erase_chip_block_jedec, |
| 3301 | } |
| 3302 | /* Chip features an optional permanent write protection |
| 3303 | * of the first 8 kB. The erase function is the same as |
| 3304 | * above, but 00000H to 01FFFH will not be erased. |
| 3305 | * FIXME: add another eraser when partial erasers are |
| 3306 | * supported. |
| 3307 | */ |
| 3308 | }, |
| 3309 | .printlock = printlock_at49f, |
| 3310 | .write = write_jedec_1, |
| 3311 | .read = read_memmapped, |
| 3312 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3313 | .prepare_access = prepare_memory_access, |
| 3314 | .finish_access = finish_memory_access, |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3315 | }, |
| 3316 | |
| 3317 | { |
| 3318 | .vendor = "Atmel", |
| 3319 | .name = "AT49F040", |
| 3320 | .bustype = BUS_PARALLEL, |
| 3321 | .manufacture_id = ATMEL_ID, |
| 3322 | .model_id = ATMEL_AT49F040, |
| 3323 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3324 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3325 | .feature_bits = FEATURE_EITHER_RESET, |
| 3326 | .tested = TEST_UNTESTED, |
| 3327 | .probe = probe_jedec, |
| 3328 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3329 | .block_erasers = |
| 3330 | { |
| 3331 | { |
| 3332 | .eraseblocks = { {512 * 1024, 1} }, |
| 3333 | .block_erase = erase_chip_block_jedec, |
| 3334 | } |
| 3335 | /* Chip features an optional permanent write protection |
| 3336 | * of the first 16 kB. The erase function is the same as |
| 3337 | * above, but 00000H to 03FFFH will not be erased. |
| 3338 | * FIXME: add another eraser when partial erasers are |
| 3339 | * supported. |
| 3340 | */ |
| 3341 | }, |
| 3342 | .printlock = printlock_at49f, |
| 3343 | .write = write_jedec_1, |
| 3344 | .read = read_memmapped, |
| 3345 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3346 | .prepare_access = prepare_memory_access, |
| 3347 | .finish_access = finish_memory_access, |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3348 | }, |
| 3349 | |
| 3350 | { |
| 3351 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3352 | .name = "AT49F080", |
| 3353 | .bustype = BUS_PARALLEL, |
| 3354 | .manufacture_id = ATMEL_ID, |
| 3355 | .model_id = ATMEL_AT49F080, |
| 3356 | .total_size = 1024, |
| 3357 | .page_size = 0, /* unused */ |
| 3358 | .feature_bits = FEATURE_EITHER_RESET, |
| 3359 | .tested = TEST_UNTESTED, |
| 3360 | .probe = probe_jedec, |
| 3361 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3362 | .block_erasers = |
| 3363 | { |
| 3364 | { |
| 3365 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3366 | .block_erase = erase_chip_block_jedec, |
| 3367 | } |
| 3368 | /* Chip features an optional permanent write protection |
| 3369 | * of the first 16 kB. The erase function is the same as |
| 3370 | * above, but 00000H to 03FFFH will not be erased. |
| 3371 | * FIXME: add another eraser when partial erasers are |
| 3372 | * supported. |
| 3373 | */ |
| 3374 | }, |
| 3375 | .printlock = printlock_at49f, |
| 3376 | .write = write_jedec_1, |
| 3377 | .read = read_memmapped, |
| 3378 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3379 | .prepare_access = prepare_memory_access, |
| 3380 | .finish_access = finish_memory_access, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3381 | }, |
| 3382 | |
| 3383 | { |
| 3384 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3385 | .vendor = "Atmel", |
| 3386 | .name = "AT49F080T", |
| 3387 | .bustype = BUS_PARALLEL, |
| 3388 | .manufacture_id = ATMEL_ID, |
| 3389 | .model_id = ATMEL_AT49F080T, |
| 3390 | .total_size = 1024, |
| 3391 | .page_size = 0, /* unused */ |
| 3392 | .feature_bits = FEATURE_EITHER_RESET, |
| 3393 | .tested = TEST_UNTESTED, |
| 3394 | .probe = probe_jedec, |
| 3395 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3396 | .block_erasers = |
| 3397 | { |
| 3398 | { |
| 3399 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3400 | .block_erase = erase_chip_block_jedec, |
| 3401 | } |
| 3402 | /* Chip features an optional permanent write protection |
| 3403 | * of the first 16 kB. The erase function is the same as |
| 3404 | * above, but FC000H to FFFFFH will not be erased. |
| 3405 | * FIXME: add another eraser when partial erasers are |
| 3406 | * supported. |
| 3407 | */ |
| 3408 | }, |
| 3409 | .printlock = printlock_at49f, |
| 3410 | .write = write_jedec_1, |
| 3411 | .read = read_memmapped, |
| 3412 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3413 | .prepare_access = prepare_memory_access, |
| 3414 | .finish_access = finish_memory_access, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3415 | }, |
| 3416 | |
| 3417 | { |
| 3418 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3419 | .name = "AT49LH002", |
| 3420 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3421 | .manufacture_id = ATMEL_ID, |
| 3422 | .model_id = ATMEL_AT49LH002, |
| 3423 | .total_size = 256, |
| 3424 | .page_size = 0, /* unused */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3425 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3426 | .probe = probe_82802ab, |
| 3427 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3428 | .block_erasers = |
| 3429 | { |
| 3430 | { |
| 3431 | .eraseblocks = { |
| 3432 | {64 * 1024, 3}, |
| 3433 | {32 * 1024, 1}, |
| 3434 | {8 * 1024, 2}, |
| 3435 | {16 * 1024, 1}, |
| 3436 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3437 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3438 | }, { |
| 3439 | .eraseblocks = { |
| 3440 | {64 * 1024, 4}, |
| 3441 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3442 | .block_erase = erase_block_82802ab, |
| 3443 | }, |
| 3444 | }, |
| 3445 | .printlock = printlock_regspace2_block_eraser_0, |
| 3446 | .unlock = unlock_regspace2_block_eraser_0, |
| 3447 | .write = write_82802ab, |
| 3448 | .read = read_memmapped, |
| 3449 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 3450 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3451 | .finish_access = finish_memory_access, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3452 | }, |
| 3453 | |
| 3454 | { |
| 3455 | .vendor = "Atmel", |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3456 | .name = "AT49LH004", |
| 3457 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3458 | .manufacture_id = ATMEL_ID, |
| 3459 | .model_id = ATMEL_AT49LH004, |
| 3460 | .total_size = 512, |
| 3461 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3462 | .tested = TEST_UNTESTED, |
| 3463 | .probe = probe_82802ab, |
| 3464 | .probe_timing = TIMING_ZERO, |
| 3465 | .block_erasers = |
| 3466 | { |
| 3467 | { |
| 3468 | .eraseblocks = { |
| 3469 | {64 * 1024, 7}, |
| 3470 | {32 * 1024, 1}, |
| 3471 | {8 * 1024, 2}, |
| 3472 | {16 * 1024, 1}, |
| 3473 | }, |
| 3474 | .block_erase = erase_block_82802ab, |
| 3475 | }, { |
| 3476 | .eraseblocks = { |
| 3477 | {64 * 1024, 8}, |
| 3478 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3479 | .block_erase = NULL, /* TODO: Implement. */ |
| 3480 | }, |
| 3481 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3482 | .printlock = printlock_regspace2_block_eraser_0, |
| 3483 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3484 | .write = write_82802ab, |
| 3485 | .read = read_memmapped, |
| 3486 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 3487 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3488 | .finish_access = finish_memory_access, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3489 | }, |
| 3490 | |
| 3491 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3492 | .vendor = "Atmel", |
| 3493 | .name = "AT49LH00B4", |
| 3494 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3495 | .manufacture_id = ATMEL_ID, |
| 3496 | .model_id = ATMEL_AT49LH00B4, |
| 3497 | .total_size = 512, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3498 | .page_size = 0, /* unused */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3499 | .tested = TEST_UNTESTED, |
| 3500 | .probe = probe_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3501 | .probe_timing = TIMING_ZERO, |
| 3502 | .block_erasers = |
| 3503 | { |
| 3504 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3505 | .eraseblocks = { |
| 3506 | {8 * 1024, 2}, |
| 3507 | {16 * 1024, 1}, |
| 3508 | {32 * 1024, 1}, |
| 3509 | {64 * 1024, 7}, |
| 3510 | }, |
| 3511 | .block_erase = NULL, /* TODO: Implement. */ |
| 3512 | }, { |
| 3513 | .eraseblocks = { |
| 3514 | {64 * 1024, 8}, |
| 3515 | }, |
| 3516 | .block_erase = erase_block_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3517 | }, |
| 3518 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3519 | .printlock = printlock_regspace2_block_eraser_0, |
| 3520 | .unlock = unlock_regspace2_block_eraser_0, |
| 3521 | .write = write_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3522 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3523 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 3524 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3525 | .finish_access = finish_memory_access, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3526 | }, |
| 3527 | |
| 3528 | { |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3529 | .vendor = "Boya/BoHong Microelectronics", |
Christian Kudera | 475a7ee | 2021-04-20 22:50:01 +0200 | [diff] [blame] | 3530 | .name = "B.25D16A", |
| 3531 | .bustype = BUS_SPI, |
| 3532 | .manufacture_id = BOYA_BOHONG_ID, |
| 3533 | .model_id = BOYA_BOHONG_B_25D16A, |
| 3534 | .total_size = 2048, |
| 3535 | .page_size = 256, |
| 3536 | .feature_bits = FEATURE_WRSR_WREN, |
| 3537 | .tested = TEST_OK_PR, |
| 3538 | .probe = probe_spi_rdid, |
| 3539 | .probe_timing = TIMING_ZERO, |
| 3540 | .block_erasers = |
| 3541 | { |
| 3542 | { |
| 3543 | .eraseblocks = { {4 * 1024, 512} }, |
| 3544 | .block_erase = spi_block_erase_20, |
| 3545 | }, { |
| 3546 | .eraseblocks = { {32 * 1024, 64} }, |
| 3547 | .block_erase = spi_block_erase_52, |
| 3548 | }, { |
| 3549 | .eraseblocks = { {64 * 1024, 32} }, |
| 3550 | .block_erase = spi_block_erase_d8, |
| 3551 | }, { |
| 3552 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3553 | .block_erase = spi_block_erase_60, |
| 3554 | }, { |
| 3555 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3556 | .block_erase = spi_block_erase_c7, |
| 3557 | } |
| 3558 | }, |
| 3559 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3560 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3561 | .write = spi_chip_write_256, |
| 3562 | .read = spi_chip_read, |
| 3563 | .voltage = {2700, 3600}, |
| 3564 | }, |
| 3565 | |
| 3566 | { |
| 3567 | .vendor = "Boya/BoHong Microelectronics", |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3568 | .name = "B.25Q128AS", |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3569 | .bustype = BUS_SPI, |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3570 | .manufacture_id = BOYA_BOHONG_ID, |
| 3571 | .model_id = BOYA_BOHONG_B_25Q128AS, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3572 | .total_size = 16384, |
| 3573 | .page_size = 256, |
| 3574 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 3575 | .tested = TEST_OK_PREW, |
| 3576 | .probe = probe_spi_rdid, |
| 3577 | .probe_timing = TIMING_ZERO, |
| 3578 | .block_erasers = |
| 3579 | { |
| 3580 | { |
| 3581 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3582 | .block_erase = spi_block_erase_20, |
| 3583 | }, { |
| 3584 | .eraseblocks = { {32 * 1024, 512} }, |
| 3585 | .block_erase = spi_block_erase_52, |
| 3586 | }, { |
| 3587 | .eraseblocks = { {64 * 1024, 256} }, |
| 3588 | .block_erase = spi_block_erase_d8, |
| 3589 | }, { |
| 3590 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3591 | .block_erase = spi_block_erase_60, |
| 3592 | }, { |
| 3593 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3594 | .block_erase = spi_block_erase_c7, |
| 3595 | } |
| 3596 | }, |
| 3597 | .printlock = spi_prettyprint_status_register_plain, |
| 3598 | .unlock = spi_disable_blockprotect_at25fs040, |
| 3599 | .write = spi_chip_write_256, |
| 3600 | .read = spi_chip_read, |
| 3601 | .voltage = {2700, 3600}, |
| 3602 | }, |
| 3603 | |
| 3604 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3605 | .vendor = "Bright", |
| 3606 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3607 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3608 | .manufacture_id = BRIGHT_ID, |
| 3609 | .model_id = BRIGHT_BM29F040, |
| 3610 | .total_size = 512, |
| 3611 | .page_size = 64 * 1024, |
| 3612 | .feature_bits = FEATURE_EITHER_RESET, |
| 3613 | .tested = TEST_OK_PR, |
| 3614 | .probe = probe_jedec, |
| 3615 | .probe_timing = TIMING_ZERO, |
| 3616 | .block_erasers = |
| 3617 | { |
| 3618 | { |
| 3619 | .eraseblocks = { {64 * 1024, 8} }, |
| 3620 | .block_erase = erase_sector_jedec, |
| 3621 | }, { |
| 3622 | .eraseblocks = { {512 * 1024, 1} }, |
| 3623 | .block_erase = erase_chip_block_jedec, |
| 3624 | }, |
| 3625 | }, |
| 3626 | .write = write_jedec_1, |
| 3627 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3628 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3629 | .prepare_access = prepare_memory_access, |
| 3630 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3631 | }, |
| 3632 | |
| 3633 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3634 | .vendor = "Catalyst", |
| 3635 | .name = "CAT28F512", |
| 3636 | .bustype = BUS_PARALLEL, |
| 3637 | .manufacture_id = CATALYST_ID, |
| 3638 | .model_id = CATALYST_CAT28F512, |
| 3639 | .total_size = 64, |
| 3640 | .page_size = 0, /* unused */ |
| 3641 | .feature_bits = 0, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 3642 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3643 | .probe = probe_jedec, /* FIXME! */ |
| 3644 | .probe_timing = TIMING_ZERO, |
| 3645 | .block_erasers = |
| 3646 | { |
| 3647 | { |
| 3648 | .eraseblocks = { {64 * 1024, 1} }, |
| 3649 | .block_erase = NULL, /* TODO */ |
| 3650 | }, |
| 3651 | }, |
| 3652 | .write = NULL, /* TODO */ |
| 3653 | .read = read_memmapped, |
| 3654 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3655 | .prepare_access = prepare_memory_access, |
| 3656 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3657 | }, |
| 3658 | |
| 3659 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3660 | .vendor = "ENE", |
| 3661 | .name = "KB9012 (EDI)", |
| 3662 | .bustype = BUS_SPI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3663 | .total_size = 128, |
| 3664 | .page_size = 128, |
| 3665 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3666 | .tested = TEST_OK_PREW, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3667 | .spi_cmd_set = SPI_EDI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3668 | .probe = edi_probe_kb9012, |
| 3669 | .probe_timing = TIMING_ZERO, |
| 3670 | .block_erasers = |
| 3671 | { |
| 3672 | { |
| 3673 | .eraseblocks = { {128, 1024} }, |
| 3674 | .block_erase = edi_chip_block_erase, |
| 3675 | }, |
| 3676 | }, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3677 | .write = edi_chip_write, |
| 3678 | .read = edi_chip_read, |
| 3679 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3680 | .gran = write_gran_128bytes, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3681 | }, |
| 3682 | |
| 3683 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3684 | .vendor = "ESI", |
| 3685 | .name = "ES25P16", |
| 3686 | .bustype = BUS_SPI, |
| 3687 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3688 | .model_id = EXCEL_ES25P16, |
| 3689 | .total_size = 2 * 1024, |
| 3690 | .page_size = 256, |
| 3691 | /* 256-byte parameter page separate from memory array: |
| 3692 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3693 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3694 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3695 | .probe = probe_spi_rdid, |
| 3696 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3697 | .block_erasers = |
| 3698 | { |
| 3699 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3700 | .eraseblocks = { {64 * 1024, 32} }, |
| 3701 | .block_erase = spi_block_erase_d8, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3702 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3703 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3704 | .block_erase = spi_block_erase_c7, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3705 | } |
| 3706 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3707 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3708 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3709 | .write = spi_chip_write_256, |
| 3710 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3711 | .voltage = {2700, 3600}, |
| 3712 | }, |
| 3713 | |
| 3714 | { |
| 3715 | .vendor = "ESI", |
| 3716 | .name = "ES25P40", |
| 3717 | .bustype = BUS_SPI, |
| 3718 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3719 | .model_id = EXCEL_ES25P40, |
| 3720 | .total_size = 512, |
| 3721 | .page_size = 256, |
| 3722 | /* 256-byte parameter page separate from memory array: |
| 3723 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3724 | .feature_bits = FEATURE_WRSR_WREN, |
| 3725 | .tested = TEST_UNTESTED, |
| 3726 | .probe = probe_spi_rdid, |
| 3727 | .probe_timing = TIMING_ZERO, |
| 3728 | .block_erasers = |
| 3729 | { |
| 3730 | { |
| 3731 | .eraseblocks = { {64 * 1024, 8} }, |
| 3732 | .block_erase = spi_block_erase_d8, |
| 3733 | }, { |
| 3734 | .eraseblocks = { {512 * 1024, 1} }, |
| 3735 | .block_erase = spi_block_erase_c7, |
| 3736 | } |
| 3737 | }, |
| 3738 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3739 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3740 | .write = spi_chip_write_256, |
| 3741 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3742 | .voltage = {2700, 3600}, |
| 3743 | }, |
| 3744 | |
| 3745 | { |
| 3746 | .vendor = "ESI", |
| 3747 | .name = "ES25P80", |
| 3748 | .bustype = BUS_SPI, |
| 3749 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3750 | .model_id = EXCEL_ES25P80, |
| 3751 | .total_size = 1024, |
| 3752 | .page_size = 256, |
| 3753 | /* 256-byte parameter page separate from memory array: |
| 3754 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3755 | .feature_bits = FEATURE_WRSR_WREN, |
| 3756 | .tested = TEST_UNTESTED, |
| 3757 | .probe = probe_spi_rdid, |
| 3758 | .probe_timing = TIMING_ZERO, |
| 3759 | .block_erasers = |
| 3760 | { |
| 3761 | { |
| 3762 | .eraseblocks = { {64 * 1024, 16} }, |
| 3763 | .block_erase = spi_block_erase_d8, |
| 3764 | }, { |
| 3765 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3766 | .block_erase = spi_block_erase_c7, |
| 3767 | } |
| 3768 | }, |
| 3769 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3770 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3771 | .write = spi_chip_write_256, |
| 3772 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3773 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3774 | }, |
| 3775 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3776 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3777 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3778 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3779 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3780 | .manufacture_id = ESMT_ID, |
| 3781 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3782 | .total_size = 1024, |
| 3783 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3784 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3785 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3786 | .probe = probe_spi_rdid, |
| 3787 | .probe_timing = TIMING_ZERO, |
| 3788 | .block_erasers = |
| 3789 | { |
| 3790 | { |
| 3791 | .eraseblocks = { {4 * 1024, 256} }, |
| 3792 | .block_erase = spi_block_erase_20, |
| 3793 | }, { |
| 3794 | .eraseblocks = { {64 * 1024, 16} }, |
| 3795 | .block_erase = spi_block_erase_d8, |
| 3796 | }, { |
| 3797 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3798 | .block_erase = spi_block_erase_60, |
| 3799 | }, { |
| 3800 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3801 | .block_erase = spi_block_erase_c7, |
| 3802 | } |
| 3803 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3804 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3805 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3806 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3807 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3808 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3809 | }, |
| 3810 | |
| 3811 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3812 | .vendor = "ESMT", |
| 3813 | .name = "F25L32PA", |
| 3814 | .bustype = BUS_SPI, |
| 3815 | .manufacture_id = ESMT_ID, |
| 3816 | .model_id = ESMT_F25L32PA, |
| 3817 | .total_size = 4096, |
| 3818 | .page_size = 256, |
| 3819 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3820 | .tested = TEST_UNTESTED, |
| 3821 | .probe = probe_spi_rdid, |
| 3822 | .probe_timing = TIMING_ZERO, |
| 3823 | .block_erasers = |
| 3824 | { |
| 3825 | { |
| 3826 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3827 | .block_erase = spi_block_erase_20, |
| 3828 | }, { |
| 3829 | .eraseblocks = { {64 * 1024, 64} }, |
| 3830 | .block_erase = spi_block_erase_d8, |
| 3831 | }, { |
| 3832 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3833 | .block_erase = spi_block_erase_60, |
| 3834 | }, { |
| 3835 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3836 | .block_erase = spi_block_erase_c7, |
| 3837 | } |
| 3838 | }, |
| 3839 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3840 | .unlock = spi_disable_blockprotect, |
| 3841 | .write = spi_chip_write_256, |
| 3842 | .read = spi_chip_read, |
| 3843 | .voltage = {2700, 3600}, |
| 3844 | }, |
| 3845 | |
| 3846 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3847 | .vendor = "ESMT", |
| 3848 | .name = "F49B002UA", |
| 3849 | .bustype = BUS_PARALLEL, |
| 3850 | .manufacture_id = ESMT_ID, |
| 3851 | .model_id = ESMT_F49B002UA, |
| 3852 | .total_size = 256, |
| 3853 | .page_size = 4096, |
| 3854 | .feature_bits = FEATURE_EITHER_RESET, |
| 3855 | .tested = TEST_UNTESTED, |
| 3856 | .probe = probe_jedec, |
| 3857 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3858 | .block_erasers = |
| 3859 | { |
| 3860 | { |
| 3861 | .eraseblocks = { |
| 3862 | {128 * 1024, 1}, |
| 3863 | {96 * 1024, 1}, |
| 3864 | {8 * 1024, 2}, |
| 3865 | {16 * 1024, 1}, |
| 3866 | }, |
| 3867 | .block_erase = erase_sector_jedec, |
| 3868 | }, { |
| 3869 | .eraseblocks = { {256 * 1024, 1} }, |
| 3870 | .block_erase = erase_chip_block_jedec, |
| 3871 | } |
| 3872 | }, |
| 3873 | .write = write_jedec_1, |
| 3874 | .read = read_memmapped, |
| 3875 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3876 | .prepare_access = prepare_memory_access, |
| 3877 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3878 | }, |
| 3879 | |
| 3880 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3881 | .vendor = "Eon", |
| 3882 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3883 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3884 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3885 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3886 | .total_size = 64, |
| 3887 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3888 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3889 | .tested = TEST_UNTESTED, |
| 3890 | .probe = probe_spi_rdid, |
| 3891 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3892 | .block_erasers = |
| 3893 | { |
| 3894 | { |
| 3895 | .eraseblocks = { |
| 3896 | {4 * 1024, 2}, |
| 3897 | {8 * 1024, 1}, |
| 3898 | {16 * 1024, 1}, |
| 3899 | {32 * 1024, 1}, |
| 3900 | }, |
| 3901 | .block_erase = spi_block_erase_d8, |
| 3902 | }, { |
| 3903 | .eraseblocks = { {64 * 1024, 1} }, |
| 3904 | .block_erase = spi_block_erase_c7, |
| 3905 | } |
| 3906 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3907 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3908 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3909 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3910 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3911 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3912 | }, |
| 3913 | |
| 3914 | { |
| 3915 | .vendor = "Eon", |
| 3916 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3917 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3918 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3919 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3920 | .total_size = 64, |
| 3921 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3922 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3923 | .tested = TEST_UNTESTED, |
| 3924 | .probe = probe_spi_rdid, |
| 3925 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3926 | .block_erasers = |
| 3927 | { |
| 3928 | { |
| 3929 | .eraseblocks = { |
| 3930 | {32 * 1024, 1}, |
| 3931 | {16 * 1024, 1}, |
| 3932 | {8 * 1024, 1}, |
| 3933 | {4 * 1024, 2}, |
| 3934 | }, |
| 3935 | .block_erase = spi_block_erase_d8, |
| 3936 | }, { |
| 3937 | .eraseblocks = { {64 * 1024, 1} }, |
| 3938 | .block_erase = spi_block_erase_c7, |
| 3939 | } |
| 3940 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3941 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3942 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3943 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3944 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3945 | .voltage = {2700, 3600}, |
| 3946 | }, |
| 3947 | |
| 3948 | { |
| 3949 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3950 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3951 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3952 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3953 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3954 | .total_size = 128, |
| 3955 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3956 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3957 | .tested = TEST_UNTESTED, |
| 3958 | .probe = probe_spi_rdid, |
| 3959 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3960 | .block_erasers = |
| 3961 | { |
| 3962 | { |
| 3963 | .eraseblocks = { |
| 3964 | {4 * 1024, 2}, |
| 3965 | {8 * 1024, 1}, |
| 3966 | {16 * 1024, 1}, |
| 3967 | {32 * 1024, 3}, |
| 3968 | }, |
| 3969 | .block_erase = spi_block_erase_d8, |
| 3970 | }, { |
| 3971 | .eraseblocks = { {128 * 1024, 1} }, |
| 3972 | .block_erase = spi_block_erase_c7, |
| 3973 | } |
| 3974 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3975 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3976 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3977 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3978 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3979 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3980 | }, |
| 3981 | |
| 3982 | { |
| 3983 | .vendor = "Eon", |
| 3984 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3985 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3986 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3987 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3988 | .total_size = 128, |
| 3989 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3990 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3991 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3992 | .probe = probe_spi_rdid, |
| 3993 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3994 | .block_erasers = |
| 3995 | { |
| 3996 | { |
| 3997 | .eraseblocks = { |
| 3998 | {32 * 1024, 3}, |
| 3999 | {16 * 1024, 1}, |
| 4000 | {8 * 1024, 1}, |
| 4001 | {4 * 1024, 2}, |
| 4002 | }, |
| 4003 | .block_erase = spi_block_erase_d8, |
| 4004 | }, { |
| 4005 | .eraseblocks = { {128 * 1024, 1} }, |
| 4006 | .block_erase = spi_block_erase_c7, |
| 4007 | } |
| 4008 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4009 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4010 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4011 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4012 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4013 | .voltage = {2700, 3600}, |
| 4014 | }, |
| 4015 | |
| 4016 | { |
| 4017 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4018 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4019 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4020 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4021 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4022 | .total_size = 2048, |
| 4023 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4024 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4025 | .tested = TEST_UNTESTED, |
| 4026 | .probe = probe_spi_rdid, |
| 4027 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4028 | .block_erasers = |
| 4029 | { |
| 4030 | { |
| 4031 | .eraseblocks = { |
| 4032 | {4 * 1024, 2}, |
| 4033 | {8 * 1024, 1}, |
| 4034 | {16 * 1024, 1}, |
| 4035 | {32 * 1024, 1}, |
| 4036 | {64 * 1024, 31}, |
| 4037 | }, |
| 4038 | .block_erase = spi_block_erase_d8, |
| 4039 | }, { |
| 4040 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4041 | .block_erase = spi_block_erase_c7, |
| 4042 | } |
| 4043 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4044 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4045 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4046 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4047 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4048 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4049 | }, |
| 4050 | |
| 4051 | { |
| 4052 | .vendor = "Eon", |
| 4053 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4054 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4055 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4056 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4057 | .total_size = 2048, |
| 4058 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4059 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4060 | .tested = TEST_UNTESTED, |
| 4061 | .probe = probe_spi_rdid, |
| 4062 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4063 | .block_erasers = |
| 4064 | { |
| 4065 | { |
| 4066 | .eraseblocks = { |
| 4067 | {64 * 1024, 31}, |
| 4068 | {32 * 1024, 1}, |
| 4069 | {16 * 1024, 1}, |
| 4070 | {8 * 1024, 1}, |
| 4071 | {4 * 1024, 2}, |
| 4072 | }, |
| 4073 | .block_erase = spi_block_erase_d8, |
| 4074 | }, { |
| 4075 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4076 | .block_erase = spi_block_erase_c7, |
| 4077 | } |
| 4078 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4079 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4080 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4081 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4082 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4083 | .voltage = {2700, 3600}, |
| 4084 | }, |
| 4085 | |
| 4086 | { |
| 4087 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4088 | .name = "EN25B20", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4089 | .bustype = BUS_SPI, |
| 4090 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4091 | .model_id = EON_EN25B20, |
| 4092 | .total_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4093 | .page_size = 256, |
| 4094 | .feature_bits = FEATURE_WRSR_WREN, |
| 4095 | .tested = TEST_UNTESTED, |
| 4096 | .probe = probe_spi_rdid, |
| 4097 | .probe_timing = TIMING_ZERO, |
| 4098 | .block_erasers = |
| 4099 | { |
| 4100 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4101 | .eraseblocks = { |
| 4102 | {4 * 1024, 2}, |
| 4103 | {8 * 1024, 1}, |
| 4104 | {16 * 1024, 1}, |
| 4105 | {32 * 1024, 1}, |
| 4106 | {64 * 1024, 3} |
| 4107 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4108 | .block_erase = spi_block_erase_d8, |
| 4109 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4110 | .eraseblocks = { {256 * 1024, 1} }, |
| 4111 | .block_erase = spi_block_erase_c7, |
| 4112 | } |
| 4113 | }, |
| 4114 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4115 | .unlock = spi_disable_blockprotect, |
| 4116 | .write = spi_chip_write_256, |
| 4117 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4118 | .voltage = {2700, 3600}, |
| 4119 | }, |
| 4120 | |
| 4121 | { |
| 4122 | .vendor = "Eon", |
| 4123 | .name = "EN25B20T", |
| 4124 | .bustype = BUS_SPI, |
| 4125 | .manufacture_id = EON_ID_NOPREFIX, |
| 4126 | .model_id = EON_EN25B20, |
| 4127 | .total_size = 256, |
| 4128 | .page_size = 256, |
| 4129 | .feature_bits = FEATURE_WRSR_WREN, |
| 4130 | .tested = TEST_UNTESTED, |
| 4131 | .probe = probe_spi_rdid, |
| 4132 | .probe_timing = TIMING_ZERO, |
| 4133 | .block_erasers = |
| 4134 | { |
| 4135 | { |
| 4136 | .eraseblocks = { |
| 4137 | {64 * 1024, 3}, |
| 4138 | {32 * 1024, 1}, |
| 4139 | {16 * 1024, 1}, |
| 4140 | {8 * 1024, 1}, |
| 4141 | {4 * 1024, 2}, |
| 4142 | }, |
| 4143 | .block_erase = spi_block_erase_d8, |
| 4144 | }, { |
| 4145 | .eraseblocks = { {256 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4146 | .block_erase = spi_block_erase_c7, |
| 4147 | } |
| 4148 | }, |
| 4149 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4150 | .unlock = spi_disable_blockprotect, |
| 4151 | .write = spi_chip_write_256, |
| 4152 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4153 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4154 | }, |
| 4155 | |
| 4156 | { |
| 4157 | .vendor = "Eon", |
| 4158 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4159 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4160 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4161 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4162 | .total_size = 4096, |
| 4163 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4164 | /* OTP: 512B total; enter 0x3A */ |
| 4165 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4166 | .tested = TEST_UNTESTED, |
| 4167 | .probe = probe_spi_rdid, |
| 4168 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4169 | .block_erasers = |
| 4170 | { |
| 4171 | { |
| 4172 | .eraseblocks = { |
| 4173 | {4 * 1024, 2}, |
| 4174 | {8 * 1024, 1}, |
| 4175 | {16 * 1024, 1}, |
| 4176 | {32 * 1024, 1}, |
| 4177 | {64 * 1024, 63}, |
| 4178 | }, |
| 4179 | .block_erase = spi_block_erase_d8, |
| 4180 | }, { |
| 4181 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4182 | .block_erase = spi_block_erase_c7, |
| 4183 | } |
| 4184 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4185 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4186 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4187 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4188 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4189 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4190 | }, |
| 4191 | |
| 4192 | { |
| 4193 | .vendor = "Eon", |
| 4194 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4195 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4196 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4197 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4198 | .total_size = 4096, |
| 4199 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4200 | /* OTP: 512B total; enter 0x3A */ |
| 4201 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4202 | .tested = TEST_UNTESTED, |
| 4203 | .probe = probe_spi_rdid, |
| 4204 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4205 | .block_erasers = |
| 4206 | { |
| 4207 | { |
| 4208 | .eraseblocks = { |
| 4209 | {64 * 1024, 63}, |
| 4210 | {32 * 1024, 1}, |
| 4211 | {16 * 1024, 1}, |
| 4212 | {8 * 1024, 1}, |
| 4213 | {4 * 1024, 2}, |
| 4214 | }, |
| 4215 | .block_erase = spi_block_erase_d8, |
| 4216 | }, { |
| 4217 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4218 | .block_erase = spi_block_erase_c7, |
| 4219 | } |
| 4220 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4221 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4222 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4223 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4224 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4225 | .voltage = {2700, 3600}, |
| 4226 | }, |
| 4227 | |
| 4228 | { |
| 4229 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4230 | .name = "EN25B40", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4231 | .bustype = BUS_SPI, |
| 4232 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4233 | .model_id = EON_EN25B40, |
| 4234 | .total_size = 512, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4235 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4236 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4237 | .tested = TEST_UNTESTED, |
| 4238 | .probe = probe_spi_rdid, |
| 4239 | .probe_timing = TIMING_ZERO, |
| 4240 | .block_erasers = |
| 4241 | { |
| 4242 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4243 | .eraseblocks = { |
| 4244 | {4 * 1024, 2}, |
| 4245 | {8 * 1024, 1}, |
| 4246 | {16 * 1024, 1}, |
| 4247 | {32 * 1024, 1}, |
| 4248 | {64 * 1024, 7} |
| 4249 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4250 | .block_erase = spi_block_erase_d8, |
| 4251 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4252 | .eraseblocks = { {512 * 1024, 1} }, |
| 4253 | .block_erase = spi_block_erase_c7, |
| 4254 | } |
| 4255 | }, |
| 4256 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4257 | .unlock = spi_disable_blockprotect, |
| 4258 | .write = spi_chip_write_256, |
| 4259 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4260 | .voltage = {2700, 3600}, |
| 4261 | }, |
| 4262 | |
| 4263 | { |
| 4264 | .vendor = "Eon", |
| 4265 | .name = "EN25B40T", |
| 4266 | .bustype = BUS_SPI, |
| 4267 | .manufacture_id = EON_ID_NOPREFIX, |
| 4268 | .model_id = EON_EN25B40, |
| 4269 | .total_size = 512, |
| 4270 | .page_size = 256, |
| 4271 | .feature_bits = FEATURE_WRSR_WREN, |
| 4272 | .tested = TEST_UNTESTED, |
| 4273 | .probe = probe_spi_rdid, |
| 4274 | .probe_timing = TIMING_ZERO, |
| 4275 | .block_erasers = |
| 4276 | { |
| 4277 | { |
| 4278 | .eraseblocks = { |
| 4279 | {64 * 1024, 7}, |
| 4280 | {32 * 1024, 1}, |
| 4281 | {16 * 1024, 1}, |
| 4282 | {8 * 1024, 1}, |
| 4283 | {4 * 1024, 2}, |
| 4284 | }, |
| 4285 | .block_erase = spi_block_erase_d8, |
| 4286 | }, { |
| 4287 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4288 | .block_erase = spi_block_erase_c7, |
| 4289 | } |
| 4290 | }, |
| 4291 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4292 | .unlock = spi_disable_blockprotect, |
| 4293 | .write = spi_chip_write_256, |
| 4294 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4295 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4296 | }, |
| 4297 | |
| 4298 | { |
| 4299 | .vendor = "Eon", |
| 4300 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4301 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4302 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4303 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4304 | .total_size = 8192, |
| 4305 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4306 | /* OTP: 512B total; enter 0x3A */ |
| 4307 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4308 | .tested = TEST_UNTESTED, |
| 4309 | .probe = probe_spi_rdid, |
| 4310 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4311 | .block_erasers = |
| 4312 | { |
| 4313 | { |
| 4314 | .eraseblocks = { |
| 4315 | {4 * 1024, 2}, |
| 4316 | {8 * 1024, 1}, |
| 4317 | {16 * 1024, 1}, |
| 4318 | {32 * 1024, 1}, |
| 4319 | {64 * 1024, 127}, |
| 4320 | }, |
| 4321 | .block_erase = spi_block_erase_d8, |
| 4322 | }, { |
| 4323 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4324 | .block_erase = spi_block_erase_c7, |
| 4325 | } |
| 4326 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4327 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4328 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4329 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4330 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4331 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4332 | }, |
| 4333 | |
| 4334 | { |
| 4335 | .vendor = "Eon", |
| 4336 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4337 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4338 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4339 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4340 | .total_size = 8192, |
| 4341 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4342 | /* OTP: 512B total; enter 0x3A */ |
| 4343 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4344 | .tested = TEST_UNTESTED, |
| 4345 | .probe = probe_spi_rdid, |
| 4346 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4347 | .block_erasers = |
| 4348 | { |
| 4349 | { |
| 4350 | .eraseblocks = { |
| 4351 | {64 * 1024, 127}, |
| 4352 | {32 * 1024, 1}, |
| 4353 | {16 * 1024, 1}, |
| 4354 | {8 * 1024, 1}, |
| 4355 | {4 * 1024, 2}, |
| 4356 | }, |
| 4357 | .block_erase = spi_block_erase_d8, |
| 4358 | }, { |
| 4359 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4360 | .block_erase = spi_block_erase_c7, |
| 4361 | } |
| 4362 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4363 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4364 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4365 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4366 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4367 | .voltage = {2700, 3600}, |
| 4368 | }, |
| 4369 | |
| 4370 | { |
| 4371 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4372 | .name = "EN25B80", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4373 | .bustype = BUS_SPI, |
| 4374 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4375 | .model_id = EON_EN25B80, |
| 4376 | .total_size = 1024, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4377 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4378 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4379 | .tested = TEST_UNTESTED, |
| 4380 | .probe = probe_spi_rdid, |
| 4381 | .probe_timing = TIMING_ZERO, |
| 4382 | .block_erasers = |
| 4383 | { |
| 4384 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4385 | .eraseblocks = { |
| 4386 | {4 * 1024, 2}, |
| 4387 | {8 * 1024, 1}, |
| 4388 | {16 * 1024, 1}, |
| 4389 | {32 * 1024, 1}, |
| 4390 | {64 * 1024, 15} |
| 4391 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4392 | .block_erase = spi_block_erase_d8, |
| 4393 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4394 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4395 | .block_erase = spi_block_erase_c7, |
| 4396 | } |
| 4397 | }, |
| 4398 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4399 | .unlock = spi_disable_blockprotect, |
| 4400 | .write = spi_chip_write_256, |
| 4401 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4402 | .voltage = {2700, 3600}, |
| 4403 | }, |
| 4404 | |
| 4405 | { |
| 4406 | .vendor = "Eon", |
| 4407 | .name = "EN25B80T", |
| 4408 | .bustype = BUS_SPI, |
| 4409 | .manufacture_id = EON_ID_NOPREFIX, |
| 4410 | .model_id = EON_EN25B80, |
| 4411 | .total_size = 1024, |
| 4412 | .page_size = 256, |
| 4413 | .feature_bits = FEATURE_WRSR_WREN, |
| 4414 | .tested = TEST_UNTESTED, |
| 4415 | .probe = probe_spi_rdid, |
| 4416 | .probe_timing = TIMING_ZERO, |
| 4417 | .block_erasers = |
| 4418 | { |
| 4419 | { |
| 4420 | .eraseblocks = { |
| 4421 | {64 * 1024, 15}, |
| 4422 | {32 * 1024, 1}, |
| 4423 | {16 * 1024, 1}, |
| 4424 | {8 * 1024, 1}, |
| 4425 | {4 * 1024, 2}, |
| 4426 | }, |
| 4427 | .block_erase = spi_block_erase_d8, |
| 4428 | }, { |
| 4429 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4430 | .block_erase = spi_block_erase_c7, |
| 4431 | } |
| 4432 | }, |
| 4433 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4434 | .unlock = spi_disable_blockprotect, |
| 4435 | .write = spi_chip_write_256, |
| 4436 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4437 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4438 | }, |
| 4439 | |
| 4440 | { |
| 4441 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4442 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4443 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4444 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4445 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4446 | .total_size = 64, |
| 4447 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4448 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4449 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4450 | .probe = probe_spi_rdid, |
| 4451 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4452 | .block_erasers = |
| 4453 | { |
| 4454 | { |
| 4455 | .eraseblocks = { {4 * 1024, 16} }, |
| 4456 | .block_erase = spi_block_erase_20, |
| 4457 | }, { |
| 4458 | .eraseblocks = { {32 * 1024, 2} }, |
| 4459 | .block_erase = spi_block_erase_d8, |
| 4460 | }, { |
| 4461 | .eraseblocks = { {32 * 1024, 2} }, |
| 4462 | .block_erase = spi_block_erase_52, |
| 4463 | }, { |
| 4464 | .eraseblocks = { {64 * 1024, 1} }, |
| 4465 | .block_erase = spi_block_erase_60, |
| 4466 | }, { |
| 4467 | .eraseblocks = { {64 * 1024, 1} }, |
| 4468 | .block_erase = spi_block_erase_c7, |
| 4469 | } |
| 4470 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4471 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4472 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4473 | .write = spi_chip_write_256, |
| 4474 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4475 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4476 | }, |
| 4477 | |
| 4478 | { |
| 4479 | .vendor = "Eon", |
| 4480 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4481 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4482 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4483 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4484 | .total_size = 128, |
| 4485 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4486 | .feature_bits = FEATURE_WRSR_WREN, |
Simon Buhrow | d173ed4 | 2021-09-29 09:28:07 +0200 | [diff] [blame] | 4487 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4488 | .probe = probe_spi_rdid, |
| 4489 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4490 | .block_erasers = |
| 4491 | { |
| 4492 | { |
| 4493 | .eraseblocks = { {4 * 1024, 32} }, |
| 4494 | .block_erase = spi_block_erase_20, |
| 4495 | }, { |
| 4496 | .eraseblocks = { {32 * 1024, 4} }, |
| 4497 | .block_erase = spi_block_erase_d8, |
| 4498 | }, { |
| 4499 | .eraseblocks = { {32 * 1024, 4} }, |
| 4500 | .block_erase = spi_block_erase_52, |
| 4501 | }, { |
| 4502 | .eraseblocks = { {128 * 1024, 1} }, |
| 4503 | .block_erase = spi_block_erase_60, |
| 4504 | }, { |
| 4505 | .eraseblocks = { {128 * 1024, 1} }, |
| 4506 | .block_erase = spi_block_erase_c7, |
| 4507 | } |
| 4508 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4509 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4510 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4511 | .write = spi_chip_write_256, |
| 4512 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4513 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4514 | }, |
| 4515 | |
| 4516 | { |
| 4517 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4518 | .name = "EN25F16", |
| 4519 | .bustype = BUS_SPI, |
| 4520 | .manufacture_id = EON_ID_NOPREFIX, |
| 4521 | .model_id = EON_EN25F16, |
| 4522 | .total_size = 2048, |
| 4523 | .page_size = 256, |
| 4524 | .feature_bits = FEATURE_WRSR_WREN, |
| 4525 | .tested = TEST_OK_PREW, |
| 4526 | .probe = probe_spi_rdid, |
| 4527 | .probe_timing = TIMING_ZERO, |
| 4528 | .block_erasers = |
| 4529 | { |
| 4530 | { |
| 4531 | .eraseblocks = { {4 * 1024, 512} }, |
| 4532 | .block_erase = spi_block_erase_20, |
| 4533 | }, { |
| 4534 | .eraseblocks = { {64 * 1024, 32} }, |
| 4535 | .block_erase = spi_block_erase_d8, |
| 4536 | }, { |
| 4537 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4538 | .block_erase = spi_block_erase_60, |
| 4539 | }, { |
| 4540 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4541 | .block_erase = spi_block_erase_c7, |
| 4542 | } |
| 4543 | }, |
| 4544 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4545 | .unlock = spi_disable_blockprotect, |
| 4546 | .write = spi_chip_write_256, |
| 4547 | .read = spi_chip_read, |
| 4548 | .voltage = {2700, 3600}, |
| 4549 | }, |
| 4550 | |
| 4551 | { |
| 4552 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4553 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4554 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4555 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4556 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4557 | .total_size = 256, |
| 4558 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4559 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4560 | .tested = TEST_UNTESTED, |
| 4561 | .probe = probe_spi_rdid, |
| 4562 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4563 | .block_erasers = |
| 4564 | { |
| 4565 | { |
| 4566 | .eraseblocks = { {4 * 1024, 64} }, |
| 4567 | .block_erase = spi_block_erase_20, |
| 4568 | }, { |
| 4569 | .eraseblocks = { {64 * 1024, 4} }, |
| 4570 | .block_erase = spi_block_erase_d8, |
| 4571 | }, { |
| 4572 | .eraseblocks = { {64 * 1024, 4} }, |
| 4573 | .block_erase = spi_block_erase_52, |
| 4574 | }, { |
| 4575 | .eraseblocks = { {256 * 1024, 1} }, |
| 4576 | .block_erase = spi_block_erase_60, |
| 4577 | }, { |
| 4578 | .eraseblocks = { {256 * 1024, 1} }, |
| 4579 | .block_erase = spi_block_erase_c7, |
| 4580 | } |
| 4581 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4582 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4583 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4584 | .write = spi_chip_write_256, |
| 4585 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4586 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4587 | }, |
| 4588 | |
| 4589 | { |
| 4590 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4591 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4592 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4593 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4594 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4595 | .total_size = 4096, |
| 4596 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4597 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4598 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4599 | .probe = probe_spi_rdid, |
| 4600 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4601 | .block_erasers = |
| 4602 | { |
| 4603 | { |
| 4604 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4605 | .block_erase = spi_block_erase_20, |
| 4606 | }, { |
| 4607 | .eraseblocks = { {64 * 1024, 64} }, |
| 4608 | .block_erase = spi_block_erase_d8, |
| 4609 | }, { |
| 4610 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4611 | .block_erase = spi_block_erase_60, |
| 4612 | }, { |
| 4613 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4614 | .block_erase = spi_block_erase_c7, |
| 4615 | } |
| 4616 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4617 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4618 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4619 | .write = spi_chip_write_256, |
| 4620 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4621 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4622 | }, |
| 4623 | |
| 4624 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4625 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4626 | .name = "EN25F40", |
| 4627 | .bustype = BUS_SPI, |
| 4628 | .manufacture_id = EON_ID_NOPREFIX, |
| 4629 | .model_id = EON_EN25F40, |
| 4630 | .total_size = 512, |
| 4631 | .page_size = 256, |
| 4632 | .feature_bits = FEATURE_WRSR_WREN, |
| 4633 | .tested = TEST_OK_PREW, |
| 4634 | .probe = probe_spi_rdid, |
| 4635 | .probe_timing = TIMING_ZERO, |
| 4636 | .block_erasers = |
| 4637 | { |
| 4638 | { |
| 4639 | .eraseblocks = { {4 * 1024, 128} }, |
| 4640 | .block_erase = spi_block_erase_20, |
| 4641 | }, { |
| 4642 | .eraseblocks = { {64 * 1024, 8} }, |
| 4643 | .block_erase = spi_block_erase_d8, |
| 4644 | }, { |
| 4645 | .eraseblocks = { {512 * 1024, 1} }, |
| 4646 | .block_erase = spi_block_erase_60, |
| 4647 | }, { |
| 4648 | .eraseblocks = { {512 * 1024, 1} }, |
| 4649 | .block_erase = spi_block_erase_c7, |
| 4650 | }, |
| 4651 | }, |
| 4652 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4653 | .unlock = spi_disable_blockprotect, |
| 4654 | .write = spi_chip_write_256, |
| 4655 | .read = spi_chip_read, |
| 4656 | .voltage = {2700, 3600}, |
| 4657 | }, |
| 4658 | |
| 4659 | { |
| 4660 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4661 | .name = "EN25F64", |
| 4662 | .bustype = BUS_SPI, |
| 4663 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4664 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4665 | .total_size = 8192, |
| 4666 | .page_size = 256, |
| 4667 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4668 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4669 | .probe = probe_spi_rdid, |
| 4670 | .probe_timing = TIMING_ZERO, |
| 4671 | .block_erasers = |
| 4672 | { |
| 4673 | { |
| 4674 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4675 | .block_erase = spi_block_erase_20, |
| 4676 | }, { |
| 4677 | .eraseblocks = { {64 * 1024, 128} }, |
| 4678 | .block_erase = spi_block_erase_d8, |
| 4679 | }, { |
| 4680 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4681 | .block_erase = spi_block_erase_60, |
| 4682 | }, { |
| 4683 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4684 | .block_erase = spi_block_erase_c7, |
| 4685 | } |
| 4686 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4687 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4688 | .unlock = spi_disable_blockprotect, |
| 4689 | .write = spi_chip_write_256, |
| 4690 | .read = spi_chip_read, |
| 4691 | .voltage = {2700, 3600}, |
| 4692 | }, |
| 4693 | |
| 4694 | { |
| 4695 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4696 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4697 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4698 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4699 | .model_id = EON_EN25F80, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4700 | .total_size = 1024, |
| 4701 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4702 | .feature_bits = FEATURE_WRSR_WREN, |
| 4703 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4704 | .probe = probe_spi_rdid, |
| 4705 | .probe_timing = TIMING_ZERO, |
| 4706 | .block_erasers = |
| 4707 | { |
| 4708 | { |
| 4709 | .eraseblocks = { {4 * 1024, 256} }, |
| 4710 | .block_erase = spi_block_erase_20, |
| 4711 | }, { |
| 4712 | .eraseblocks = { {64 * 1024, 16} }, |
| 4713 | .block_erase = spi_block_erase_d8, |
| 4714 | }, { |
| 4715 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4716 | .block_erase = spi_block_erase_60, |
| 4717 | }, { |
| 4718 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4719 | .block_erase = spi_block_erase_c7, |
| 4720 | } |
| 4721 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4722 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4723 | .unlock = spi_disable_blockprotect, |
| 4724 | .write = spi_chip_write_256, |
| 4725 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4726 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4727 | }, |
| 4728 | |
| 4729 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4730 | .vendor = "Eon", |
| 4731 | .name = "EN25P05", |
| 4732 | .bustype = BUS_SPI, |
| 4733 | .manufacture_id = EON_ID_NOPREFIX, |
| 4734 | .model_id = EON_EN25B05, |
| 4735 | .total_size = 64, |
| 4736 | .page_size = 256, |
| 4737 | .feature_bits = FEATURE_WRSR_WREN, |
| 4738 | .tested = TEST_UNTESTED, |
| 4739 | .probe = probe_spi_rdid, |
| 4740 | .probe_timing = TIMING_ZERO, |
| 4741 | .block_erasers = |
| 4742 | { |
| 4743 | { |
| 4744 | .eraseblocks = { |
| 4745 | {32 * 1024, 2} }, |
| 4746 | .block_erase = spi_block_erase_d8, |
| 4747 | }, { |
| 4748 | .eraseblocks = { {64 * 1024, 1} }, |
| 4749 | .block_erase = spi_block_erase_c7, |
| 4750 | } |
| 4751 | }, |
| 4752 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4753 | .unlock = spi_disable_blockprotect, |
| 4754 | .write = spi_chip_write_256, |
| 4755 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4756 | .voltage = {2700, 3600}, |
| 4757 | }, |
| 4758 | |
| 4759 | { |
| 4760 | .vendor = "Eon", |
| 4761 | .name = "EN25P10", |
| 4762 | .bustype = BUS_SPI, |
| 4763 | .manufacture_id = EON_ID_NOPREFIX, |
| 4764 | .model_id = EON_EN25B10, |
| 4765 | .total_size = 128, |
| 4766 | .page_size = 256, |
| 4767 | .feature_bits = FEATURE_WRSR_WREN, |
| 4768 | .tested = TEST_UNTESTED, |
| 4769 | .probe = probe_spi_rdid, |
| 4770 | .probe_timing = TIMING_ZERO, |
| 4771 | .block_erasers = |
| 4772 | { |
| 4773 | { |
| 4774 | .eraseblocks = { {32 * 1024, 4} }, |
| 4775 | .block_erase = spi_block_erase_d8, |
| 4776 | }, { |
| 4777 | .eraseblocks = { {128 * 1024, 1} }, |
| 4778 | .block_erase = spi_block_erase_c7, |
| 4779 | } |
| 4780 | }, |
| 4781 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4782 | .unlock = spi_disable_blockprotect, |
| 4783 | .write = spi_chip_write_256, |
| 4784 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4785 | .voltage = {2700, 3600}, |
| 4786 | }, |
| 4787 | |
| 4788 | { |
| 4789 | .vendor = "Eon", |
| 4790 | .name = "EN25P16", |
| 4791 | .bustype = BUS_SPI, |
| 4792 | .manufacture_id = EON_ID_NOPREFIX, |
| 4793 | .model_id = EON_EN25B16, |
| 4794 | .total_size = 2048, |
| 4795 | .page_size = 256, |
| 4796 | .feature_bits = FEATURE_WRSR_WREN, |
| 4797 | .tested = TEST_UNTESTED, |
| 4798 | .probe = probe_spi_rdid, |
| 4799 | .probe_timing = TIMING_ZERO, |
| 4800 | .block_erasers = |
| 4801 | { |
| 4802 | { |
| 4803 | .eraseblocks = { {64 * 1024, 32} }, |
| 4804 | .block_erase = spi_block_erase_d8, |
| 4805 | }, { |
| 4806 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4807 | .block_erase = spi_block_erase_c7, |
| 4808 | } |
| 4809 | }, |
| 4810 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4811 | .unlock = spi_disable_blockprotect, |
| 4812 | .write = spi_chip_write_256, |
| 4813 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4814 | .voltage = {2700, 3600}, |
| 4815 | }, |
| 4816 | |
| 4817 | { |
| 4818 | .vendor = "Eon", |
| 4819 | .name = "EN25P20", |
| 4820 | .bustype = BUS_SPI, |
| 4821 | .manufacture_id = EON_ID_NOPREFIX, |
| 4822 | .model_id = EON_EN25B20, |
| 4823 | .total_size = 256, |
| 4824 | .page_size = 256, |
| 4825 | .feature_bits = FEATURE_WRSR_WREN, |
| 4826 | .tested = TEST_UNTESTED, |
| 4827 | .probe = probe_spi_rdid, |
| 4828 | .probe_timing = TIMING_ZERO, |
| 4829 | .block_erasers = |
| 4830 | { |
| 4831 | { |
| 4832 | .eraseblocks = { {64 * 1024, 4} }, |
| 4833 | .block_erase = spi_block_erase_d8, |
| 4834 | }, { |
| 4835 | .eraseblocks = { {256 * 1024, 1} }, |
| 4836 | .block_erase = spi_block_erase_c7, |
| 4837 | } |
| 4838 | }, |
| 4839 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4840 | .unlock = spi_disable_blockprotect, |
| 4841 | .write = spi_chip_write_256, |
| 4842 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4843 | .voltage = {2700, 3600}, |
| 4844 | }, |
| 4845 | |
| 4846 | { |
| 4847 | .vendor = "Eon", |
| 4848 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4849 | .bustype = BUS_SPI, |
| 4850 | .manufacture_id = EON_ID_NOPREFIX, |
| 4851 | .model_id = EON_EN25B32, |
| 4852 | .total_size = 4096, |
| 4853 | .page_size = 256, |
| 4854 | /* OTP: 512B total; enter 0x3A */ |
| 4855 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4856 | .tested = TEST_UNTESTED, |
| 4857 | .probe = probe_spi_rdid, |
| 4858 | .probe_timing = TIMING_ZERO, |
| 4859 | .block_erasers = |
| 4860 | { |
| 4861 | { |
| 4862 | .eraseblocks = { {64 * 1024, 64} }, |
| 4863 | .block_erase = spi_block_erase_d8, |
| 4864 | }, { |
| 4865 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4866 | .block_erase = spi_block_erase_c7, |
| 4867 | } |
| 4868 | }, |
| 4869 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4870 | .unlock = spi_disable_blockprotect, |
| 4871 | .write = spi_chip_write_256, |
| 4872 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4873 | .voltage = {2700, 3600}, |
| 4874 | }, |
| 4875 | |
| 4876 | { |
| 4877 | .vendor = "Eon", |
| 4878 | .name = "EN25P40", |
| 4879 | .bustype = BUS_SPI, |
| 4880 | .manufacture_id = EON_ID_NOPREFIX, |
| 4881 | .model_id = EON_EN25B40, |
| 4882 | .total_size = 512, |
| 4883 | .page_size = 256, |
| 4884 | .feature_bits = FEATURE_WRSR_WREN, |
| 4885 | .tested = TEST_UNTESTED, |
| 4886 | .probe = probe_spi_rdid, |
| 4887 | .probe_timing = TIMING_ZERO, |
| 4888 | .block_erasers = |
| 4889 | { |
| 4890 | { |
| 4891 | .eraseblocks = { {64 * 1024, 8} }, |
| 4892 | .block_erase = spi_block_erase_d8, |
| 4893 | }, { |
| 4894 | .eraseblocks = { {512 * 1024, 1} }, |
| 4895 | .block_erase = spi_block_erase_c7, |
| 4896 | } |
| 4897 | }, |
| 4898 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4899 | .unlock = spi_disable_blockprotect, |
| 4900 | .write = spi_chip_write_256, |
| 4901 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4902 | .voltage = {2700, 3600}, |
| 4903 | }, |
| 4904 | |
| 4905 | { |
| 4906 | .vendor = "Eon", |
| 4907 | .name = "EN25P64", |
| 4908 | .bustype = BUS_SPI, |
| 4909 | .manufacture_id = EON_ID_NOPREFIX, |
| 4910 | .model_id = EON_EN25B64, |
| 4911 | .total_size = 8192, |
| 4912 | .page_size = 256, |
| 4913 | /* OTP: 512B total; enter 0x3A */ |
| 4914 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4915 | .tested = TEST_UNTESTED, |
| 4916 | .probe = probe_spi_rdid, |
| 4917 | .probe_timing = TIMING_ZERO, |
| 4918 | .block_erasers = |
| 4919 | { |
| 4920 | { |
| 4921 | .eraseblocks = { {64 * 1024, 128} }, |
| 4922 | .block_erase = spi_block_erase_d8, |
| 4923 | }, { |
| 4924 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4925 | .block_erase = spi_block_erase_c7, |
| 4926 | } |
| 4927 | }, |
| 4928 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4929 | .unlock = spi_disable_blockprotect, |
| 4930 | .write = spi_chip_write_256, |
| 4931 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4932 | .voltage = {2700, 3600}, |
| 4933 | }, |
| 4934 | |
| 4935 | { |
| 4936 | .vendor = "Eon", |
| 4937 | .name = "EN25P80", |
| 4938 | .bustype = BUS_SPI, |
| 4939 | .manufacture_id = EON_ID_NOPREFIX, |
| 4940 | .model_id = EON_EN25B80, |
| 4941 | .total_size = 1024, |
| 4942 | .page_size = 256, |
| 4943 | .feature_bits = FEATURE_WRSR_WREN, |
| 4944 | .tested = TEST_UNTESTED, |
| 4945 | .probe = probe_spi_rdid, |
| 4946 | .probe_timing = TIMING_ZERO, |
| 4947 | .block_erasers = |
| 4948 | { |
| 4949 | { |
| 4950 | .eraseblocks = { {64 * 1024, 16} }, |
| 4951 | .block_erase = spi_block_erase_d8, |
| 4952 | }, { |
| 4953 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4954 | .block_erase = spi_block_erase_c7, |
| 4955 | } |
| 4956 | }, |
| 4957 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4958 | .unlock = spi_disable_blockprotect, |
| 4959 | .write = spi_chip_write_256, |
| 4960 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4961 | .voltage = {2700, 3600}, |
| 4962 | }, |
| 4963 | |
| 4964 | { |
| 4965 | .vendor = "Eon", |
| 4966 | .name = "EN25Q128", |
| 4967 | .bustype = BUS_SPI, |
| 4968 | .manufacture_id = EON_ID_NOPREFIX, |
| 4969 | .model_id = EON_EN25Q128, |
| 4970 | .total_size = 16384, |
| 4971 | .page_size = 256, |
| 4972 | /* OTP: 512B total; enter 0x3A */ |
| 4973 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4974 | .tested = TEST_OK_PREW, |
| 4975 | .probe = probe_spi_rdid, |
| 4976 | .probe_timing = TIMING_ZERO, |
| 4977 | .block_erasers = |
| 4978 | { |
| 4979 | { |
| 4980 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4981 | .block_erase = spi_block_erase_20, |
| 4982 | }, { |
| 4983 | .eraseblocks = { {64 * 1024, 256} }, |
| 4984 | .block_erase = spi_block_erase_d8, |
| 4985 | }, { |
| 4986 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4987 | .block_erase = spi_block_erase_60, |
| 4988 | }, { |
| 4989 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4990 | .block_erase = spi_block_erase_c7, |
| 4991 | } |
| 4992 | }, |
| 4993 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4994 | .unlock = spi_disable_blockprotect, |
| 4995 | .write = spi_chip_write_256, |
| 4996 | .read = spi_chip_read, |
| 4997 | }, |
| 4998 | |
| 4999 | { |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5000 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 5001 | but has different write protection capabilities */ |
| 5002 | .vendor = "Eon", |
| 5003 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5004 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5005 | .manufacture_id = EON_ID_NOPREFIX, |
| 5006 | .model_id = EON_EN25Q16, |
| 5007 | .total_size = 2048, |
| 5008 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5009 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 5010 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5011 | .tested = TEST_UNTESTED, |
| 5012 | .probe = probe_spi_rdid, |
| 5013 | .probe_timing = TIMING_ZERO, |
| 5014 | .block_erasers = |
| 5015 | { |
| 5016 | { |
| 5017 | .eraseblocks = { {4 * 1024, 512} }, |
| 5018 | .block_erase = spi_block_erase_20, |
| 5019 | }, { |
| 5020 | .eraseblocks = { {64 * 1024, 32} }, |
| 5021 | .block_erase = spi_block_erase_d8, |
| 5022 | }, { |
| 5023 | /* not supported by Q16 version */ |
| 5024 | .eraseblocks = { {64 * 1024, 32} }, |
| 5025 | .block_erase = spi_block_erase_52, |
| 5026 | }, { |
| 5027 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5028 | .block_erase = spi_block_erase_60, |
| 5029 | }, { |
| 5030 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5031 | .block_erase = spi_block_erase_c7, |
| 5032 | } |
| 5033 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5034 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5035 | .unlock = spi_disable_blockprotect, |
| 5036 | .write = spi_chip_write_256, |
| 5037 | .read = spi_chip_read, |
| 5038 | .voltage = {2700, 3600}, |
| 5039 | }, |
| 5040 | |
| 5041 | { |
| 5042 | .vendor = "Eon", |
| 5043 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5044 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5045 | .manufacture_id = EON_ID_NOPREFIX, |
| 5046 | .model_id = EON_EN25Q32, |
| 5047 | .total_size = 4096, |
| 5048 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5049 | /* OTP: 512B total; enter 0x3A */ |
| 5050 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5051 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5052 | .probe = probe_spi_rdid, |
| 5053 | .probe_timing = TIMING_ZERO, |
| 5054 | .block_erasers = |
| 5055 | { |
| 5056 | { |
| 5057 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5058 | .block_erase = spi_block_erase_20, |
| 5059 | }, { |
| 5060 | .eraseblocks = { {64 * 1024, 64} }, |
| 5061 | .block_erase = spi_block_erase_d8, |
| 5062 | }, { |
| 5063 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5064 | .block_erase = spi_block_erase_60, |
| 5065 | }, { |
| 5066 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5067 | .block_erase = spi_block_erase_c7, |
| 5068 | } |
| 5069 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5070 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5071 | .unlock = spi_disable_blockprotect, |
| 5072 | .write = spi_chip_write_256, |
| 5073 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5074 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5075 | }, |
| 5076 | |
| 5077 | { |
| 5078 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5079 | .name = "EN25Q40", |
| 5080 | .bustype = BUS_SPI, |
| 5081 | .manufacture_id = EON_ID_NOPREFIX, |
| 5082 | .model_id = EON_EN25Q40, |
| 5083 | .total_size = 512, |
| 5084 | .page_size = 256, |
| 5085 | /* OTP: 256B total; enter 0x3A */ |
| 5086 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5087 | .tested = TEST_UNTESTED, |
| 5088 | .probe = probe_spi_rdid, |
| 5089 | .probe_timing = TIMING_ZERO, |
| 5090 | .block_erasers = |
| 5091 | { |
| 5092 | { |
| 5093 | .eraseblocks = { {4 * 1024, 128} }, |
| 5094 | .block_erase = spi_block_erase_20, |
| 5095 | }, { |
| 5096 | .eraseblocks = { {64 * 1024, 8} }, |
| 5097 | .block_erase = spi_block_erase_d8, |
| 5098 | }, { |
| 5099 | .eraseblocks = { {512 * 1024, 1} }, |
| 5100 | .block_erase = spi_block_erase_60, |
| 5101 | }, { |
| 5102 | .eraseblocks = { {512 * 1024, 1} }, |
| 5103 | .block_erase = spi_block_erase_c7, |
| 5104 | } |
| 5105 | }, |
| 5106 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5107 | .unlock = spi_disable_blockprotect, |
| 5108 | .write = spi_chip_write_256, |
| 5109 | .read = spi_chip_read, |
| 5110 | .voltage = {2700, 3600}, |
| 5111 | }, |
| 5112 | |
| 5113 | { |
| 5114 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5115 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5116 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5117 | .manufacture_id = EON_ID_NOPREFIX, |
| 5118 | .model_id = EON_EN25Q64, |
| 5119 | .total_size = 8192, |
| 5120 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5121 | /* OTP: 512B total; enter 0x3A */ |
| 5122 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5123 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5124 | .probe = probe_spi_rdid, |
| 5125 | .probe_timing = TIMING_ZERO, |
| 5126 | .block_erasers = |
| 5127 | { |
| 5128 | { |
| 5129 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5130 | .block_erase = spi_block_erase_20, |
| 5131 | }, { |
| 5132 | .eraseblocks = { {64 * 1024, 128} }, |
| 5133 | .block_erase = spi_block_erase_d8, |
| 5134 | }, { |
| 5135 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5136 | .block_erase = spi_block_erase_60, |
| 5137 | }, { |
| 5138 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5139 | .block_erase = spi_block_erase_c7, |
| 5140 | } |
| 5141 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5142 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5143 | .unlock = spi_disable_blockprotect, |
| 5144 | .write = spi_chip_write_256, |
| 5145 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5146 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5147 | }, |
| 5148 | |
| 5149 | { |
| 5150 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5151 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5152 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5153 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5154 | .model_id = EON_EN25Q80, |
| 5155 | .total_size = 1024, |
| 5156 | .page_size = 256, |
| 5157 | /* OTP: 256B total; enter 0x3A */ |
| 5158 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5159 | .tested = TEST_UNTESTED, |
| 5160 | .probe = probe_spi_rdid, |
| 5161 | .probe_timing = TIMING_ZERO, |
| 5162 | .block_erasers = |
| 5163 | { |
| 5164 | { |
| 5165 | .eraseblocks = { {4 * 1024, 256} }, |
| 5166 | .block_erase = spi_block_erase_20, |
| 5167 | }, { |
| 5168 | .eraseblocks = { {64 * 1024, 16} }, |
| 5169 | .block_erase = spi_block_erase_d8, |
| 5170 | }, { |
| 5171 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5172 | .block_erase = spi_block_erase_60, |
| 5173 | }, { |
| 5174 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5175 | .block_erase = spi_block_erase_c7, |
| 5176 | } |
| 5177 | }, |
| 5178 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5179 | .unlock = spi_disable_blockprotect, |
| 5180 | .write = spi_chip_write_256, |
| 5181 | .read = spi_chip_read, |
| 5182 | .voltage = {2700, 3600}, |
| 5183 | }, |
| 5184 | |
| 5185 | { |
| 5186 | .vendor = "Eon", |
| 5187 | .name = "EN25QH128", |
| 5188 | .bustype = BUS_SPI, |
| 5189 | .manufacture_id = EON_ID_NOPREFIX, |
| 5190 | .model_id = EON_EN25QH128, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5191 | .total_size = 16384, |
| 5192 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5193 | /* supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5194 | /* OTP: 512B total; enter 0x3A */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5195 | /* QPI enable 0x38, disable 0xFF */ |
| 5196 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Tim Chen | bfe149a | 2020-07-06 14:59:21 +0800 | [diff] [blame] | 5197 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5198 | .probe = probe_spi_rdid, |
| 5199 | .probe_timing = TIMING_ZERO, |
| 5200 | .block_erasers = |
| 5201 | { |
| 5202 | { |
| 5203 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5204 | .block_erase = spi_block_erase_20, |
| 5205 | }, { |
| 5206 | .eraseblocks = { {64 * 1024, 256} }, |
| 5207 | .block_erase = spi_block_erase_d8, |
| 5208 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5209 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5210 | .block_erase = spi_block_erase_60, |
| 5211 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5212 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5213 | .block_erase = spi_block_erase_c7, |
| 5214 | } |
| 5215 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5216 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5217 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5218 | .write = spi_chip_write_256, |
| 5219 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5220 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 5221 | .reg_bits = |
| 5222 | { |
| 5223 | .srp = {STATUS1, 7, RW}, |
| 5224 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5225 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5226 | }, |
| 5227 | .decode_range = decode_range_spi25, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5228 | }, |
| 5229 | |
| 5230 | { |
| 5231 | .vendor = "Eon", |
| 5232 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5233 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5234 | .manufacture_id = EON_ID_NOPREFIX, |
| 5235 | .model_id = EON_EN25QH16, |
| 5236 | .total_size = 2048, |
| 5237 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5238 | /* supports SFDP */ |
| 5239 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5240 | /* QPI enable 0x38, disable 0xFF */ |
| 5241 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5242 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5243 | .probe = probe_spi_rdid, |
| 5244 | .probe_timing = TIMING_ZERO, |
| 5245 | .block_erasers = |
| 5246 | { |
| 5247 | { |
| 5248 | .eraseblocks = { {4 * 1024, 512} }, |
| 5249 | .block_erase = spi_block_erase_20, |
| 5250 | }, { |
| 5251 | .eraseblocks = { {64 * 1024, 32} }, |
| 5252 | .block_erase = spi_block_erase_d8, |
| 5253 | }, { |
| 5254 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5255 | .block_erase = spi_block_erase_60, |
| 5256 | }, { |
| 5257 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5258 | .block_erase = spi_block_erase_c7, |
| 5259 | } |
| 5260 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5261 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5262 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5263 | .write = spi_chip_write_256, |
| 5264 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5265 | .voltage = {2700, 3600}, |
| 5266 | }, |
| 5267 | |
| 5268 | { |
| 5269 | .vendor = "Eon", |
| 5270 | .name = "EN25QH32", |
| 5271 | .bustype = BUS_SPI, |
| 5272 | .manufacture_id = EON_ID_NOPREFIX, |
| 5273 | .model_id = EON_EN25QH32, |
| 5274 | .total_size = 4096, |
| 5275 | .page_size = 256, |
| 5276 | /* supports SFDP */ |
| 5277 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5278 | /* QPI enable 0x38, disable 0xFF */ |
| 5279 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5280 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5281 | .probe = probe_spi_rdid, |
| 5282 | .probe_timing = TIMING_ZERO, |
| 5283 | .block_erasers = |
| 5284 | { |
| 5285 | { |
| 5286 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5287 | .block_erase = spi_block_erase_20, |
| 5288 | }, { |
| 5289 | .eraseblocks = { {64 * 1024, 64} }, |
| 5290 | .block_erase = spi_block_erase_d8, |
| 5291 | }, { |
| 5292 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5293 | .block_erase = spi_block_erase_60, |
| 5294 | }, { |
| 5295 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5296 | .block_erase = spi_block_erase_c7, |
| 5297 | } |
| 5298 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5299 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5300 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5301 | .write = spi_chip_write_256, |
| 5302 | .read = spi_chip_read, |
| 5303 | .voltage = {2700, 3600}, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5304 | .reg_bits = |
| 5305 | { |
| 5306 | .srp = {STATUS1, 7, RW}, |
| 5307 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5308 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5309 | }, |
| 5310 | .decode_range = decode_range_spi25, |
| 5311 | }, |
| 5312 | |
| 5313 | { |
| 5314 | .vendor = "Eon", |
| 5315 | .name = "EN25QH32B", |
| 5316 | .bustype = BUS_SPI, |
| 5317 | .manufacture_id = EON_ID_NOPREFIX, |
| 5318 | .model_id = EON_EN25QH32, |
| 5319 | .total_size = 4096, |
| 5320 | .page_size = 256, |
| 5321 | /* supports SFDP */ |
| 5322 | /* OTP: 1536B total; enter 0x3A */ |
| 5323 | /* QPI enable 0x38, disable 0xFF */ |
| 5324 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5325 | .tested = TEST_OK_PREW, |
| 5326 | .probe = probe_spi_rdid, |
| 5327 | .probe_timing = TIMING_ZERO, |
| 5328 | .block_erasers = |
| 5329 | { |
| 5330 | { |
| 5331 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5332 | .block_erase = spi_block_erase_20, |
| 5333 | }, { |
| 5334 | .eraseblocks = { {32 * 1024, 128} }, |
| 5335 | .block_erase = spi_block_erase_52, |
| 5336 | }, { |
| 5337 | .eraseblocks = { {64 * 1024, 64} }, |
| 5338 | .block_erase = spi_block_erase_d8, |
| 5339 | }, { |
| 5340 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5341 | .block_erase = spi_block_erase_60, |
| 5342 | }, { |
| 5343 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5344 | .block_erase = spi_block_erase_c7, |
| 5345 | } |
| 5346 | }, |
| 5347 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5348 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5349 | .write = spi_chip_write_256, |
| 5350 | .read = spi_chip_read, |
| 5351 | .voltage = {2700, 3600}, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5352 | }, |
| 5353 | |
| 5354 | { |
| 5355 | .vendor = "Eon", |
| 5356 | .name = "EN25QH64", |
| 5357 | .bustype = BUS_SPI, |
| 5358 | .manufacture_id = EON_ID_NOPREFIX, |
| 5359 | .model_id = EON_EN25QH64, |
| 5360 | .total_size = 8192, |
| 5361 | .page_size = 256, |
| 5362 | /* supports SFDP */ |
| 5363 | /* OTP: 512B total; enter 0x3A */ |
| 5364 | /* QPI enable 0x38, disable 0xFF */ |
| 5365 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5366 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5367 | .probe = probe_spi_rdid, |
| 5368 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5369 | .block_erasers = |
| 5370 | { |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5371 | { |
| 5372 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5373 | .block_erase = spi_block_erase_20, |
| 5374 | }, { |
| 5375 | .eraseblocks = { {64 * 1024, 128} }, |
| 5376 | .block_erase = spi_block_erase_d8, |
| 5377 | }, { |
| 5378 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5379 | .block_erase = spi_block_erase_60, |
| 5380 | }, { |
| 5381 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5382 | .block_erase = spi_block_erase_c7, |
| 5383 | } |
| 5384 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5385 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5386 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5387 | .write = spi_chip_write_256, |
| 5388 | .read = spi_chip_read, |
| 5389 | .voltage = {2700, 3600}, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5390 | .reg_bits = |
| 5391 | { |
| 5392 | .srp = {STATUS1, 7, RW}, |
| 5393 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5394 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5395 | }, |
| 5396 | .decode_range = decode_range_spi25_64k_block, |
| 5397 | }, |
| 5398 | |
| 5399 | { |
| 5400 | .vendor = "Eon", |
| 5401 | .name = "EN25QH64A", |
| 5402 | .bustype = BUS_SPI, |
| 5403 | .manufacture_id = EON_ID_NOPREFIX, |
| 5404 | .model_id = EON_EN25QH64, |
| 5405 | .total_size = 8192, |
| 5406 | .page_size = 256, |
| 5407 | /* supports SFDP */ |
| 5408 | /* OTP: 512B total; enter 0x3A */ |
| 5409 | /* QPI enable 0x38, disable 0xFF */ |
| 5410 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5411 | .tested = TEST_OK_PREW, |
| 5412 | .probe = probe_spi_rdid, |
| 5413 | .probe_timing = TIMING_ZERO, |
| 5414 | .block_erasers = |
| 5415 | { |
| 5416 | { |
| 5417 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5418 | .block_erase = spi_block_erase_20, |
| 5419 | }, { |
| 5420 | .eraseblocks = { {32 * 1024, 256} }, |
| 5421 | .block_erase = spi_block_erase_52, |
| 5422 | }, { |
| 5423 | .eraseblocks = { {64 * 1024, 128} }, |
| 5424 | .block_erase = spi_block_erase_d8, |
| 5425 | }, { |
| 5426 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5427 | .block_erase = spi_block_erase_60, |
| 5428 | }, { |
| 5429 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5430 | .block_erase = spi_block_erase_c7, |
| 5431 | } |
| 5432 | }, |
| 5433 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5434 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5435 | .write = spi_chip_write_256, |
| 5436 | .read = spi_chip_read, |
| 5437 | .voltage = {2700, 3600}, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5438 | }, |
| 5439 | |
| 5440 | { |
| 5441 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5442 | .name = "EN25S10", |
| 5443 | .bustype = BUS_SPI, |
| 5444 | .manufacture_id = EON_ID_NOPREFIX, |
| 5445 | .model_id = EON_EN25S10, |
| 5446 | .total_size = 128, |
| 5447 | .page_size = 256, |
| 5448 | /* OTP: 256B total; enter 0x3A */ |
| 5449 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5450 | .tested = TEST_UNTESTED, |
| 5451 | .probe = probe_spi_rdid, |
| 5452 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5453 | .block_erasers = |
| 5454 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5455 | { |
| 5456 | .eraseblocks = { {4 * 1024, 32} }, |
| 5457 | .block_erase = spi_block_erase_20, |
| 5458 | }, { |
| 5459 | .eraseblocks = { {32 * 1024, 4} }, |
| 5460 | .block_erase = spi_block_erase_52, |
| 5461 | }, { |
| 5462 | .eraseblocks = { {128 * 1024, 1} }, |
| 5463 | .block_erase = spi_block_erase_60, |
| 5464 | }, { |
| 5465 | .eraseblocks = { {128 * 1024, 1} }, |
| 5466 | .block_erase = spi_block_erase_c7, |
| 5467 | } |
| 5468 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5469 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5470 | .unlock = spi_disable_blockprotect, |
| 5471 | .write = spi_chip_write_256, |
| 5472 | .read = spi_chip_read, |
| 5473 | .voltage = {1650, 1950}, |
| 5474 | }, |
| 5475 | |
| 5476 | { |
| 5477 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5478 | .name = "EN25S16", |
| 5479 | .bustype = BUS_SPI, |
| 5480 | .manufacture_id = EON_ID_NOPREFIX, |
| 5481 | .model_id = EON_EN25S16, |
| 5482 | .total_size = 2048, |
| 5483 | .page_size = 256, |
| 5484 | /* OTP: 512B total; enter 0x3A */ |
| 5485 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5486 | .tested = TEST_UNTESTED, |
| 5487 | .probe = probe_spi_rdid, |
| 5488 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5489 | .block_erasers = |
| 5490 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5491 | { |
| 5492 | .eraseblocks = { {4 * 1024, 512} }, |
| 5493 | .block_erase = spi_block_erase_20, |
| 5494 | }, { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5495 | .eraseblocks = { {32 * 1024, 64} }, |
| 5496 | .block_erase = spi_block_erase_d8, |
| 5497 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 5498 | .eraseblocks = { {64 * 1024, 32} }, |
| 5499 | .block_erase = spi_block_erase_52, |
| 5500 | }, { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5501 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5502 | .block_erase = spi_block_erase_60, |
| 5503 | }, { |
| 5504 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5505 | .block_erase = spi_block_erase_c7, |
| 5506 | } |
| 5507 | }, |
| 5508 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5509 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5510 | .write = spi_chip_write_256, |
| 5511 | .read = spi_chip_read, |
| 5512 | .voltage = {1650, 1950}, |
| 5513 | }, |
| 5514 | |
| 5515 | { |
| 5516 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5517 | .name = "EN25S20", |
| 5518 | .bustype = BUS_SPI, |
| 5519 | .manufacture_id = EON_ID_NOPREFIX, |
| 5520 | .model_id = EON_EN25S20, |
| 5521 | .total_size = 256, |
| 5522 | .page_size = 256, |
| 5523 | /* OTP: 256B total; enter 0x3A */ |
| 5524 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5525 | .tested = TEST_UNTESTED, |
| 5526 | .probe = probe_spi_rdid, |
| 5527 | .probe_timing = TIMING_ZERO, |
| 5528 | .block_erasers = |
| 5529 | { |
| 5530 | { |
| 5531 | .eraseblocks = { {4 * 1024, 64} }, |
| 5532 | .block_erase = spi_block_erase_20, |
| 5533 | }, { |
| 5534 | .eraseblocks = { {64 * 1024, 4} }, |
| 5535 | .block_erase = spi_block_erase_d8, |
| 5536 | }, { |
| 5537 | .eraseblocks = { {256 * 1024, 1} }, |
| 5538 | .block_erase = spi_block_erase_60, |
| 5539 | }, { |
| 5540 | .eraseblocks = { {256 * 1024, 1} }, |
| 5541 | .block_erase = spi_block_erase_c7, |
| 5542 | } |
| 5543 | }, |
| 5544 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5545 | .unlock = spi_disable_blockprotect, |
| 5546 | .write = spi_chip_write_256, |
| 5547 | .read = spi_chip_read, |
| 5548 | .voltage = {1650, 1950}, |
| 5549 | }, |
| 5550 | |
| 5551 | { |
| 5552 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5553 | .name = "EN25S32", |
| 5554 | .bustype = BUS_SPI, |
| 5555 | .manufacture_id = EON_ID_NOPREFIX, |
| 5556 | .model_id = EON_EN25S32, |
| 5557 | .total_size = 4096, |
| 5558 | .page_size = 256, |
| 5559 | /* OTP: 512B total; enter 0x3A */ |
| 5560 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5561 | .tested = TEST_UNTESTED, |
| 5562 | .probe = probe_spi_rdid, |
| 5563 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5564 | .block_erasers = |
| 5565 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5566 | { |
| 5567 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5568 | .block_erase = spi_block_erase_20, |
| 5569 | }, { |
| 5570 | .eraseblocks = { {32 * 1024, 128} }, |
| 5571 | .block_erase = spi_block_erase_52, |
| 5572 | }, { |
| 5573 | .eraseblocks = { {64 * 1024, 64} }, |
| 5574 | .block_erase = spi_block_erase_d8, |
| 5575 | }, { |
| 5576 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5577 | .block_erase = spi_block_erase_60, |
| 5578 | }, { |
| 5579 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5580 | .block_erase = spi_block_erase_c7, |
| 5581 | } |
| 5582 | }, |
| 5583 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5584 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5585 | .write = spi_chip_write_256, |
| 5586 | .read = spi_chip_read, |
| 5587 | .voltage = {1650, 1950}, |
| 5588 | }, |
| 5589 | |
| 5590 | { |
| 5591 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5592 | .name = "EN25S40", |
| 5593 | .bustype = BUS_SPI, |
| 5594 | .manufacture_id = EON_ID_NOPREFIX, |
| 5595 | .model_id = EON_EN25S40, |
| 5596 | .total_size = 512, |
| 5597 | .page_size = 256, |
| 5598 | /* OTP: 256B total; enter 0x3A */ |
| 5599 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5600 | .tested = TEST_OK_PREW, |
| 5601 | .probe = probe_spi_rdid, |
| 5602 | .probe_timing = TIMING_ZERO, |
| 5603 | .block_erasers = |
| 5604 | { |
| 5605 | { |
| 5606 | .eraseblocks = { {4 * 1024, 128} }, |
| 5607 | .block_erase = spi_block_erase_20, |
| 5608 | }, { |
| 5609 | .eraseblocks = { {64 * 1024, 8} }, |
| 5610 | .block_erase = spi_block_erase_d8, |
| 5611 | }, { |
| 5612 | .eraseblocks = { {512 * 1024, 1} }, |
| 5613 | .block_erase = spi_block_erase_60, |
| 5614 | }, { |
| 5615 | .eraseblocks = { {512 * 1024, 1} }, |
| 5616 | .block_erase = spi_block_erase_c7, |
| 5617 | } |
| 5618 | }, |
| 5619 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5620 | .unlock = spi_disable_blockprotect, |
| 5621 | .write = spi_chip_write_256, |
| 5622 | .read = spi_chip_read, |
| 5623 | .voltage = {1650, 1950}, |
| 5624 | }, |
| 5625 | |
| 5626 | { |
| 5627 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5628 | .name = "EN25S64", |
| 5629 | .bustype = BUS_SPI, |
| 5630 | .manufacture_id = EON_ID_NOPREFIX, |
| 5631 | .model_id = EON_EN25S64, |
| 5632 | .total_size = 8192, |
| 5633 | .page_size = 256, |
| 5634 | /* OTP: 512B total; enter 0x3A */ |
| 5635 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Nikolai Artemiev | df889fa | 2021-03-23 17:10:45 +1100 | [diff] [blame] | 5636 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5637 | .probe = probe_spi_rdid, |
| 5638 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5639 | .block_erasers = |
| 5640 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5641 | { |
| 5642 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5643 | .block_erase = spi_block_erase_20, |
| 5644 | }, { |
| 5645 | .eraseblocks = { {64 * 1024, 128} }, |
| 5646 | .block_erase = spi_block_erase_d8, |
| 5647 | }, { |
| 5648 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5649 | .block_erase = spi_block_erase_60, |
| 5650 | }, { |
| 5651 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5652 | .block_erase = spi_block_erase_c7, |
| 5653 | } |
| 5654 | }, |
| 5655 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5656 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5657 | .write = spi_chip_write_256, |
| 5658 | .read = spi_chip_read, |
| 5659 | .voltage = {1650, 1950}, |
| 5660 | }, |
| 5661 | |
| 5662 | { |
| 5663 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5664 | .name = "EN25S80", |
| 5665 | .bustype = BUS_SPI, |
| 5666 | .manufacture_id = EON_ID_NOPREFIX, |
| 5667 | .model_id = EON_EN25S80, |
| 5668 | .total_size = 1024, |
| 5669 | .page_size = 256, |
| 5670 | /* OTP: 256B total; enter 0x3A */ |
| 5671 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5672 | .tested = TEST_UNTESTED, |
| 5673 | .probe = probe_spi_rdid, |
| 5674 | .probe_timing = TIMING_ZERO, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5675 | .block_erasers = |
| 5676 | { |
| 5677 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5678 | .eraseblocks = { {4 * 1024, 256} }, |
| 5679 | .block_erase = spi_block_erase_20, |
| 5680 | }, { |
| 5681 | .eraseblocks = { {64 * 1024, 16} }, |
| 5682 | .block_erase = spi_block_erase_d8, |
| 5683 | }, { |
| 5684 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5685 | .block_erase = spi_block_erase_60, |
| 5686 | }, { |
| 5687 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5688 | .block_erase = spi_block_erase_c7, |
| 5689 | } |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5690 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5691 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5692 | .unlock = spi_disable_blockprotect, |
| 5693 | .write = spi_chip_write_256, |
| 5694 | .read = spi_chip_read, |
| 5695 | .voltage = {1650, 1950}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5696 | }, |
| 5697 | |
| 5698 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5699 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5700 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5701 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5702 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5703 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5704 | .total_size = 256, |
| 5705 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5706 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Alan Green | 4362e62 | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 5707 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5708 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5709 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5710 | .block_erasers = |
| 5711 | { |
| 5712 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5713 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5714 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5715 | {8 * 1024, 2}, |
| 5716 | {32 * 1024, 1}, |
| 5717 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5718 | }, |
| 5719 | .block_erase = erase_sector_jedec, |
| 5720 | }, { |
| 5721 | .eraseblocks = { {256 * 1024, 1} }, |
| 5722 | .block_erase = erase_chip_block_jedec, |
| 5723 | }, |
| 5724 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5725 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5726 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5727 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5728 | .prepare_access = prepare_memory_access, |
| 5729 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5730 | }, |
| 5731 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5732 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5733 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5734 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5735 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5736 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5737 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5738 | .total_size = 256, |
| 5739 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5740 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5741 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5742 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5743 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5744 | .block_erasers = |
| 5745 | { |
| 5746 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5747 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5748 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5749 | {32 * 1024, 1}, |
| 5750 | {8 * 1024, 2}, |
| 5751 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5752 | }, |
| 5753 | .block_erase = erase_sector_jedec, |
| 5754 | }, { |
| 5755 | .eraseblocks = { {256 * 1024, 1} }, |
| 5756 | .block_erase = erase_chip_block_jedec, |
| 5757 | }, |
| 5758 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5759 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5760 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5761 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5762 | .prepare_access = prepare_memory_access, |
| 5763 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5764 | }, |
| 5765 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5766 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5767 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5768 | .name = "EN29F010", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5769 | .bustype = BUS_PARALLEL, |
| 5770 | .manufacture_id = EON_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5771 | .model_id = EON_EN29F010, |
| 5772 | .total_size = 128, |
| 5773 | .page_size = 128, |
| 5774 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5775 | .tested = TEST_OK_PRE, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5776 | .probe = probe_jedec, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5777 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5778 | .block_erasers = |
| 5779 | { |
| 5780 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5781 | .eraseblocks = { {16 * 1024, 8} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5782 | .block_erase = erase_sector_jedec, |
| 5783 | }, |
| 5784 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5785 | .eraseblocks = { {128 * 1024, 1} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5786 | .block_erase = erase_chip_block_jedec, |
| 5787 | }, |
| 5788 | }, |
| 5789 | .write = write_jedec_1, |
| 5790 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5791 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5792 | .prepare_access = prepare_memory_access, |
| 5793 | .finish_access = finish_memory_access, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5794 | }, |
| 5795 | |
| 5796 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5797 | .vendor = "Eon", |
| 5798 | .name = "EN29GL064(A)B", |
| 5799 | .bustype = BUS_PARALLEL, |
| 5800 | .manufacture_id = EON_ID, |
| 5801 | .model_id = EON_EN29GL064B, |
| 5802 | .total_size = 8192, |
| 5803 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5804 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5805 | .tested = TEST_UNTESTED, |
| 5806 | .probe = probe_jedec_29gl, |
| 5807 | .probe_timing = TIMING_ZERO, |
| 5808 | .block_erasers = |
| 5809 | { |
| 5810 | { |
| 5811 | .eraseblocks = { |
| 5812 | {8 * 1024, 8}, |
| 5813 | {64 * 1024, 127}, |
| 5814 | }, |
| 5815 | .block_erase = erase_sector_jedec, |
| 5816 | }, { |
| 5817 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5818 | .block_erase = erase_chip_block_jedec, |
| 5819 | }, |
| 5820 | }, |
| 5821 | .write = write_jedec_1, |
| 5822 | .read = read_memmapped, |
| 5823 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5824 | .prepare_access = prepare_memory_access, |
| 5825 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5826 | }, |
| 5827 | |
| 5828 | { |
| 5829 | .vendor = "Eon", |
| 5830 | .name = "EN29GL064(A)T", |
| 5831 | .bustype = BUS_PARALLEL, |
| 5832 | .manufacture_id = EON_ID, |
| 5833 | .model_id = EON_EN29GL064T, |
| 5834 | .total_size = 8192, |
| 5835 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5836 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5837 | .tested = TEST_UNTESTED, |
| 5838 | .probe = probe_jedec_29gl, |
| 5839 | .probe_timing = TIMING_ZERO, |
| 5840 | .block_erasers = |
| 5841 | { |
| 5842 | { |
| 5843 | .eraseblocks = { |
| 5844 | {64 * 1024, 127}, |
| 5845 | {8 * 1024, 8}, |
| 5846 | }, |
| 5847 | .block_erase = erase_sector_jedec, |
| 5848 | }, { |
| 5849 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5850 | .block_erase = erase_chip_block_jedec, |
| 5851 | }, |
| 5852 | }, |
| 5853 | .write = write_jedec_1, |
| 5854 | .read = read_memmapped, |
| 5855 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5856 | .prepare_access = prepare_memory_access, |
| 5857 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5858 | }, |
| 5859 | |
| 5860 | { |
| 5861 | .vendor = "Eon", |
| 5862 | .name = "EN29GL064H/L", |
| 5863 | .bustype = BUS_PARALLEL, |
| 5864 | .manufacture_id = EON_ID, |
| 5865 | .model_id = EON_EN29GL064HL, |
| 5866 | .total_size = 8192, |
| 5867 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5868 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5869 | .tested = TEST_UNTESTED, |
| 5870 | .probe = probe_jedec_29gl, |
| 5871 | .probe_timing = TIMING_ZERO, |
| 5872 | .block_erasers = |
| 5873 | { |
| 5874 | { |
| 5875 | .eraseblocks = { {64 * 1024, 128} }, |
| 5876 | .block_erase = erase_sector_jedec, |
| 5877 | }, { |
| 5878 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5879 | .block_erase = erase_chip_block_jedec, |
| 5880 | }, |
| 5881 | }, |
| 5882 | .write = write_jedec_1, |
| 5883 | .read = read_memmapped, |
| 5884 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5885 | .prepare_access = prepare_memory_access, |
| 5886 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5887 | }, |
| 5888 | |
| 5889 | { |
| 5890 | .vendor = "Eon", |
| 5891 | .name = "EN29GL128", |
| 5892 | .bustype = BUS_PARALLEL, |
| 5893 | .manufacture_id = EON_ID, |
| 5894 | .model_id = EON_EN29GL128HL, |
| 5895 | .total_size = 16384, |
| 5896 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5897 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5898 | .tested = TEST_UNTESTED, |
| 5899 | .probe = probe_jedec_29gl, |
| 5900 | .probe_timing = TIMING_ZERO, |
| 5901 | .block_erasers = |
| 5902 | { |
| 5903 | { |
| 5904 | .eraseblocks = { {128 * 1024, 128} }, |
| 5905 | .block_erase = erase_sector_jedec, |
| 5906 | }, { |
| 5907 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5908 | .block_erase = erase_chip_block_jedec, |
| 5909 | }, |
| 5910 | }, |
| 5911 | .write = write_jedec_1, |
| 5912 | .read = read_memmapped, |
| 5913 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5914 | .prepare_access = prepare_memory_access, |
| 5915 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5916 | }, |
| 5917 | |
| 5918 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5919 | .vendor = "Eon", |
| 5920 | .name = "EN29LV040(A)", |
| 5921 | .bustype = BUS_PARALLEL, |
| 5922 | .manufacture_id = EON_ID, |
| 5923 | .model_id = EON_EN29LV040, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5924 | .total_size = 512, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5925 | .page_size = 4 * 1024, |
| 5926 | .tested = TEST_OK_PREW, |
| 5927 | .probe = probe_jedec, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5928 | .probe_timing = TIMING_ZERO, |
| 5929 | .block_erasers = |
| 5930 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5931 | { |
| 5932 | .eraseblocks = { {64 * 1024, 8} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5933 | .block_erase = erase_sector_jedec, |
| 5934 | }, |
| 5935 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5936 | .eraseblocks = { {512 * 1024, 1} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5937 | .block_erase = erase_chip_block_jedec, |
| 5938 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5939 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5940 | .write = write_jedec_1, |
| 5941 | .read = read_memmapped, |
| 5942 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5943 | .prepare_access = prepare_memory_access, |
| 5944 | .finish_access = finish_memory_access, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5945 | }, |
| 5946 | |
| 5947 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5948 | .vendor = "Eon", |
| 5949 | .name = "EN29LV640B", |
| 5950 | .bustype = BUS_PARALLEL, |
| 5951 | .manufacture_id = EON_ID, |
| 5952 | .model_id = EON_EN29LV640B, |
| 5953 | .total_size = 8192, |
| 5954 | .page_size = 8192, |
| 5955 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5956 | .tested = TEST_OK_PREW, |
| 5957 | .probe = probe_en29lv640b, |
| 5958 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5959 | .block_erasers = |
| 5960 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5961 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5962 | .eraseblocks = { |
| 5963 | {8 * 1024, 8}, |
| 5964 | {64 * 1024, 127}, |
| 5965 | }, |
| 5966 | .block_erase = erase_block_jedec, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5967 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5968 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5969 | .block_erase = erase_chip_block_jedec, |
| 5970 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5971 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5972 | .write = write_en29lv640b, |
| 5973 | .read = read_memmapped, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5974 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5975 | .prepare_access = prepare_memory_access, |
| 5976 | .finish_access = finish_memory_access, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5977 | }, |
| 5978 | |
| 5979 | { |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 5980 | .vendor = "Fudan", |
| 5981 | .name = "FM25F005", |
| 5982 | .bustype = BUS_SPI, |
| 5983 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5984 | .model_id = FUDAN_FM25F005, |
| 5985 | .total_size = 64, |
| 5986 | .page_size = 256, |
| 5987 | /* OTP: 256B total; enter 0x3A */ |
| 5988 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5989 | .tested = TEST_UNTESTED, |
| 5990 | .probe = probe_spi_rdid, |
| 5991 | .probe_timing = TIMING_ZERO, |
| 5992 | .block_erasers = { |
| 5993 | { |
| 5994 | .eraseblocks = { {4 * 1024, 16} }, |
| 5995 | .block_erase = spi_block_erase_20, |
| 5996 | }, { |
| 5997 | .eraseblocks = { {32 * 1024, 2} }, |
| 5998 | .block_erase = spi_block_erase_52, |
| 5999 | }, { |
| 6000 | .eraseblocks = { {64 * 1024, 1} }, |
| 6001 | .block_erase = spi_block_erase_d8, |
| 6002 | }, { |
| 6003 | .eraseblocks = { {64 * 1024, 1} }, |
| 6004 | .block_erase = spi_block_erase_60, |
| 6005 | }, { |
| 6006 | .eraseblocks = { {64 * 1024, 1} }, |
| 6007 | .block_erase = spi_block_erase_c7, |
| 6008 | } |
| 6009 | }, |
| 6010 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6011 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6012 | .write = spi_chip_write_256, |
| 6013 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6014 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6015 | }, |
| 6016 | |
| 6017 | { |
| 6018 | .vendor = "Fudan", |
| 6019 | .name = "FM25F01", |
| 6020 | .bustype = BUS_SPI, |
| 6021 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6022 | .model_id = FUDAN_FM25F01, |
| 6023 | .total_size = 128, |
| 6024 | .page_size = 256, |
| 6025 | /* OTP: 256B total; enter 0x3A */ |
| 6026 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6027 | .tested = TEST_UNTESTED, |
| 6028 | .probe = probe_spi_rdid, |
| 6029 | .probe_timing = TIMING_ZERO, |
| 6030 | .block_erasers = { |
| 6031 | { |
| 6032 | .eraseblocks = { {4 * 1024, 32} }, |
| 6033 | .block_erase = spi_block_erase_20, |
| 6034 | }, { |
| 6035 | .eraseblocks = { {32 * 1024, 4} }, |
| 6036 | .block_erase = spi_block_erase_52, |
| 6037 | }, { |
| 6038 | .eraseblocks = { {64 * 1024, 2} }, |
| 6039 | .block_erase = spi_block_erase_d8, |
| 6040 | }, { |
| 6041 | .eraseblocks = { {128 * 1024, 1} }, |
| 6042 | .block_erase = spi_block_erase_60, |
| 6043 | }, { |
| 6044 | .eraseblocks = { {128 * 1024, 1} }, |
| 6045 | .block_erase = spi_block_erase_c7, |
| 6046 | } |
| 6047 | }, |
| 6048 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6049 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6050 | .write = spi_chip_write_256, |
| 6051 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6052 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6053 | }, |
| 6054 | |
| 6055 | { |
| 6056 | .vendor = "Fudan", |
| 6057 | .name = "FM25F02(A)", |
| 6058 | .bustype = BUS_SPI, |
| 6059 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6060 | .model_id = FUDAN_FM25F02, |
| 6061 | .total_size = 256, |
| 6062 | .page_size = 256, |
| 6063 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 6064 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6065 | .tested = TEST_UNTESTED, |
| 6066 | .probe = probe_spi_rdid, |
| 6067 | .probe_timing = TIMING_ZERO, |
| 6068 | .block_erasers = { |
| 6069 | { |
| 6070 | .eraseblocks = { {4 * 1024, 64} }, |
| 6071 | .block_erase = spi_block_erase_20, |
| 6072 | }, { |
| 6073 | .eraseblocks = { {32 * 1024, 8} }, |
| 6074 | .block_erase = spi_block_erase_52, |
| 6075 | }, { |
| 6076 | .eraseblocks = { {64 * 1024, 4} }, |
| 6077 | .block_erase = spi_block_erase_d8, |
| 6078 | }, { |
| 6079 | .eraseblocks = { {1024 * 256, 1} }, |
| 6080 | .block_erase = spi_block_erase_60, |
| 6081 | }, { |
| 6082 | .eraseblocks = { {1024 * 256, 1} }, |
| 6083 | .block_erase = spi_block_erase_c7, |
| 6084 | }, |
| 6085 | }, |
| 6086 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6087 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6088 | .write = spi_chip_write_256, |
| 6089 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6090 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6091 | }, |
| 6092 | |
| 6093 | { |
| 6094 | .vendor = "Fudan", |
| 6095 | .name = "FM25F04(A)", |
| 6096 | .bustype = BUS_SPI, |
| 6097 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6098 | .model_id = FUDAN_FM25F04, |
| 6099 | .total_size = 512, |
| 6100 | .page_size = 256, |
| 6101 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 6102 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6103 | .tested = TEST_UNTESTED, |
| 6104 | .probe = probe_spi_rdid, |
| 6105 | .probe_timing = TIMING_ZERO, |
| 6106 | .block_erasers = { |
| 6107 | { |
| 6108 | .eraseblocks = { {4 * 1024, 128} }, |
| 6109 | .block_erase = spi_block_erase_20, |
| 6110 | }, { |
| 6111 | .eraseblocks = { {32 * 1024, 16} }, |
| 6112 | .block_erase = spi_block_erase_52, |
| 6113 | }, { |
| 6114 | .eraseblocks = { {64 * 1024, 8} }, |
| 6115 | .block_erase = spi_block_erase_d8, |
| 6116 | }, { |
| 6117 | .eraseblocks = { {1024 * 512, 1} }, |
| 6118 | .block_erase = spi_block_erase_60, |
| 6119 | }, { |
| 6120 | .eraseblocks = { {1024 * 512, 1} }, |
| 6121 | .block_erase = spi_block_erase_c7, |
| 6122 | }, |
| 6123 | }, |
| 6124 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6125 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6126 | .write = spi_chip_write_256, |
| 6127 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6128 | .voltage = {2700, 3600}, |
| 6129 | }, |
| 6130 | |
| 6131 | { |
| 6132 | .vendor = "Fudan", |
| 6133 | .name = "FM25Q08", |
| 6134 | .bustype = BUS_SPI, |
| 6135 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6136 | .model_id = FUDAN_FM25Q08, |
| 6137 | .total_size = 1024, |
| 6138 | .page_size = 256, |
| 6139 | /* supports SFDP */ |
| 6140 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 6141 | /* QPI enable 0x38, disable 0xFF */ |
| 6142 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6143 | .tested = TEST_UNTESTED, |
| 6144 | .probe = probe_spi_rdid, |
| 6145 | .probe_timing = TIMING_ZERO, |
| 6146 | .block_erasers = { |
| 6147 | { |
| 6148 | .eraseblocks = { {4 * 1024, 256} }, |
| 6149 | .block_erase = spi_block_erase_20, |
| 6150 | }, { |
| 6151 | .eraseblocks = { {32 * 1024, 32} }, |
| 6152 | .block_erase = spi_block_erase_52, |
| 6153 | }, { |
| 6154 | .eraseblocks = { {64 * 1024, 16} }, |
| 6155 | .block_erase = spi_block_erase_d8, |
| 6156 | }, { |
| 6157 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6158 | .block_erase = spi_block_erase_60, |
| 6159 | }, { |
| 6160 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6161 | .block_erase = spi_block_erase_c7, |
| 6162 | }, |
| 6163 | }, |
| 6164 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6165 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6166 | .write = spi_chip_write_256, |
| 6167 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6168 | .voltage = {2700, 3600}, |
| 6169 | }, |
| 6170 | |
| 6171 | { |
| 6172 | .vendor = "Fudan", |
| 6173 | .name = "FM25Q16", |
| 6174 | .bustype = BUS_SPI, |
| 6175 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6176 | .model_id = FUDAN_FM25Q16, |
| 6177 | .total_size = 2048, |
| 6178 | .page_size = 256, |
| 6179 | /* supports SFDP */ |
| 6180 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 6181 | /* QPI enable 0x38, disable 0xFF */ |
| 6182 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6183 | .tested = TEST_UNTESTED, |
| 6184 | .probe = probe_spi_rdid, |
| 6185 | .probe_timing = TIMING_ZERO, |
| 6186 | .block_erasers = { |
| 6187 | { |
| 6188 | .eraseblocks = { {4 * 1024, 512} }, |
| 6189 | .block_erase = spi_block_erase_20, |
| 6190 | }, { |
| 6191 | .eraseblocks = { {32 * 1024, 64} }, |
| 6192 | .block_erase = spi_block_erase_52, |
| 6193 | }, { |
| 6194 | .eraseblocks = { {64 * 1024, 32} }, |
| 6195 | .block_erase = spi_block_erase_d8, |
| 6196 | }, { |
| 6197 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6198 | .block_erase = spi_block_erase_60, |
| 6199 | }, { |
| 6200 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6201 | .block_erase = spi_block_erase_c7, |
| 6202 | } |
| 6203 | }, |
| 6204 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6205 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6206 | .write = spi_chip_write_256, |
| 6207 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6208 | .voltage = {2700, 3600}, |
| 6209 | }, |
| 6210 | |
| 6211 | { |
| 6212 | .vendor = "Fudan", |
| 6213 | .name = "FM25Q32", |
| 6214 | .bustype = BUS_SPI, |
| 6215 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6216 | .model_id = FUDAN_FM25Q32, |
| 6217 | .total_size = 4096, |
| 6218 | .page_size = 256, |
| 6219 | /* supports SFDP */ |
| 6220 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 6221 | /* QPI enable 0x38, disable 0xFF */ |
| 6222 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6223 | .tested = TEST_UNTESTED, |
| 6224 | .probe = probe_spi_rdid, |
| 6225 | .probe_timing = TIMING_ZERO, |
| 6226 | .block_erasers = { |
| 6227 | { |
| 6228 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6229 | .block_erase = spi_block_erase_20, |
| 6230 | }, { |
| 6231 | .eraseblocks = { {32 * 1024, 128} }, |
| 6232 | .block_erase = spi_block_erase_52, |
| 6233 | }, { |
| 6234 | .eraseblocks = { {64 * 1024, 64} }, |
| 6235 | .block_erase = spi_block_erase_d8, |
| 6236 | }, { |
| 6237 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6238 | .block_erase = spi_block_erase_60, |
| 6239 | }, { |
| 6240 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6241 | .block_erase = spi_block_erase_c7, |
| 6242 | }, |
| 6243 | }, |
| 6244 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6245 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6246 | .write = spi_chip_write_256, |
| 6247 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6248 | .voltage = {2700, 3600}, |
| 6249 | }, |
| 6250 | |
| 6251 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6252 | .vendor = "Fujitsu", |
| 6253 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6254 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6255 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6256 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6257 | .total_size = 512, |
| 6258 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6259 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6260 | .tested = TEST_UNTESTED, |
| 6261 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6262 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6263 | .block_erasers = |
| 6264 | { |
| 6265 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6266 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6267 | {16 * 1024, 1}, |
| 6268 | {8 * 1024, 2}, |
| 6269 | {32 * 1024, 1}, |
| 6270 | {64 * 1024, 7}, |
| 6271 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6272 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6273 | }, { |
| 6274 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6275 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6276 | }, |
| 6277 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6278 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6279 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6280 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6281 | .prepare_access = prepare_memory_access, |
| 6282 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6283 | }, |
| 6284 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6285 | { |
| 6286 | .vendor = "Fujitsu", |
| 6287 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6288 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6289 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6290 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6291 | .total_size = 512, |
| 6292 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6293 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6294 | .tested = TEST_UNTESTED, |
| 6295 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6296 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6297 | .block_erasers = |
| 6298 | { |
| 6299 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6300 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6301 | {64 * 1024, 7}, |
| 6302 | {32 * 1024, 1}, |
| 6303 | {8 * 1024, 2}, |
| 6304 | {16 * 1024, 1}, |
| 6305 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6306 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6307 | }, { |
| 6308 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6309 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6310 | }, |
| 6311 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6312 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6313 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6314 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6315 | .prepare_access = prepare_memory_access, |
| 6316 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6317 | }, |
| 6318 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6319 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6320 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6321 | .vendor = "Fujitsu", |
| 6322 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6323 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6324 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6325 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6326 | .total_size = 512, |
| 6327 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6328 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6329 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6330 | .probe = probe_jedec, |
| 6331 | .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] | 6332 | .block_erasers = |
| 6333 | { |
| 6334 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6335 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6336 | {16 * 1024, 1}, |
| 6337 | {8 * 1024, 2}, |
| 6338 | {32 * 1024, 1}, |
| 6339 | {64 * 1024, 7}, |
| 6340 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6341 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6342 | }, { |
| 6343 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6344 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6345 | }, |
| 6346 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6347 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6348 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6349 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6350 | .prepare_access = prepare_memory_access, |
| 6351 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6352 | }, |
| 6353 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6354 | { |
| 6355 | .vendor = "Fujitsu", |
| 6356 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6357 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6358 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6359 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6360 | .total_size = 512, |
| 6361 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6362 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6363 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6364 | .probe = probe_jedec, |
| 6365 | .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] | 6366 | .block_erasers = |
| 6367 | { |
| 6368 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6369 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6370 | {64 * 1024, 7}, |
| 6371 | {32 * 1024, 1}, |
| 6372 | {8 * 1024, 2}, |
| 6373 | {16 * 1024, 1}, |
| 6374 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6375 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6376 | }, { |
| 6377 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6378 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6379 | }, |
| 6380 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6381 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6382 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6383 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6384 | .prepare_access = prepare_memory_access, |
| 6385 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6386 | }, |
| 6387 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6388 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6389 | .vendor = "Fujitsu", |
| 6390 | .name = "MBM29LV160BE", |
| 6391 | .bustype = BUS_PARALLEL, |
| 6392 | .manufacture_id = FUJITSU_ID, |
| 6393 | .model_id = FUJITSU_MBM29LV160BE, |
| 6394 | .total_size = 2 * 1024, |
| 6395 | .page_size = 0, |
| 6396 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6397 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6398 | .probe = probe_jedec, |
| 6399 | .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] | 6400 | .block_erasers = |
| 6401 | { |
| 6402 | { |
| 6403 | .eraseblocks = { |
| 6404 | {16 * 1024, 1}, |
| 6405 | {8 * 1024, 2}, |
| 6406 | {32 * 1024, 1}, |
| 6407 | {64 * 1024, 31}, |
| 6408 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6409 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6410 | }, { |
| 6411 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6412 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6413 | }, |
| 6414 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6415 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6416 | .read = read_memmapped, |
| 6417 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6418 | .prepare_access = prepare_memory_access, |
| 6419 | .finish_access = finish_memory_access, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6420 | }, |
| 6421 | |
| 6422 | { |
| 6423 | .vendor = "Fujitsu", |
| 6424 | .name = "MBM29LV160TE", |
| 6425 | .bustype = BUS_PARALLEL, |
| 6426 | .manufacture_id = FUJITSU_ID, |
| 6427 | .model_id = FUJITSU_MBM29LV160TE, |
| 6428 | .total_size = 2 * 1024, |
| 6429 | .page_size = 0, |
| 6430 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6431 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6432 | .probe = probe_jedec, |
| 6433 | .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] | 6434 | .block_erasers = |
| 6435 | { |
| 6436 | { |
| 6437 | .eraseblocks = { |
| 6438 | {64 * 1024, 31}, |
| 6439 | {32 * 1024, 1}, |
| 6440 | {8 * 1024, 2}, |
| 6441 | {16 * 1024, 1}, |
| 6442 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6443 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6444 | }, { |
| 6445 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6446 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6447 | }, |
| 6448 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6449 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6450 | .read = read_memmapped, |
| 6451 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6452 | .prepare_access = prepare_memory_access, |
| 6453 | .finish_access = finish_memory_access, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6454 | }, |
| 6455 | |
| 6456 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6457 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6458 | .name = "GD25B128B/GD25Q128B", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6459 | .bustype = BUS_SPI, |
| 6460 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6461 | .model_id = GIGADEVICE_GD25Q128, |
| 6462 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6463 | .page_size = 256, |
| 6464 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6465 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6466 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6467 | .probe = probe_spi_rdid, |
| 6468 | .probe_timing = TIMING_ZERO, |
| 6469 | .block_erasers = |
| 6470 | { |
| 6471 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6472 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6473 | .block_erase = spi_block_erase_20, |
| 6474 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6475 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6476 | .block_erase = spi_block_erase_52, |
| 6477 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6478 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6479 | .block_erase = spi_block_erase_d8, |
| 6480 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6481 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6482 | .block_erase = spi_block_erase_60, |
| 6483 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6484 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6485 | .block_erase = spi_block_erase_c7, |
| 6486 | } |
| 6487 | }, |
| 6488 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6489 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6490 | .write = spi_chip_write_256, |
| 6491 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6492 | .voltage = {2700, 3600}, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6493 | }, |
| 6494 | |
| 6495 | { |
| 6496 | .vendor = "GigaDevice", |
Edward O'Callaghan | 981a344 | 2021-06-22 11:16:55 +1000 | [diff] [blame] | 6497 | .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6498 | .bustype = BUS_SPI, |
| 6499 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 6500 | .model_id = GIGADEVICE_GD25LQ128CD, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6501 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6502 | .page_size = 256, |
| 6503 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 6504 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6505 | .tested = TEST_OK_PREWB, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6506 | .probe = probe_spi_rdid, |
| 6507 | .probe_timing = TIMING_ZERO, |
| 6508 | .block_erasers = |
| 6509 | { |
| 6510 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6511 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6512 | .block_erase = spi_block_erase_20, |
| 6513 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6514 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6515 | .block_erase = spi_block_erase_52, |
| 6516 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6517 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6518 | .block_erase = spi_block_erase_d8, |
| 6519 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6520 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6521 | .block_erase = spi_block_erase_60, |
| 6522 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6523 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6524 | .block_erase = spi_block_erase_c7, |
| 6525 | } |
| 6526 | }, |
| 6527 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6528 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6529 | .write = spi_chip_write_256, |
| 6530 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6531 | .voltage = {1695, 1950}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6532 | .reg_bits = |
| 6533 | { |
| 6534 | .srp = {STATUS1, 7, RW}, |
| 6535 | .srl = {STATUS2, 0, RW}, |
| 6536 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6537 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6538 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6539 | .cmp = {STATUS2, 6, RW}, |
| 6540 | }, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 6541 | .decode_range = decode_range_spi25, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6542 | }, |
| 6543 | |
| 6544 | { |
| 6545 | .vendor = "GigaDevice", |
| 6546 | .name = "GD25LQ16", |
| 6547 | .bustype = BUS_SPI, |
| 6548 | .manufacture_id = GIGADEVICE_ID, |
| 6549 | .model_id = GIGADEVICE_GD25LQ16, |
| 6550 | .total_size = 2048, |
| 6551 | .page_size = 256, |
| 6552 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6553 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6554 | .tested = TEST_UNTESTED, |
| 6555 | .probe = probe_spi_rdid, |
| 6556 | .probe_timing = TIMING_ZERO, |
| 6557 | .block_erasers = |
| 6558 | { |
| 6559 | { |
| 6560 | .eraseblocks = { {4 * 1024, 512} }, |
| 6561 | .block_erase = spi_block_erase_20, |
| 6562 | }, { |
| 6563 | .eraseblocks = { {32 * 1024, 64} }, |
| 6564 | .block_erase = spi_block_erase_52, |
| 6565 | }, { |
| 6566 | .eraseblocks = { {64 * 1024, 32} }, |
| 6567 | .block_erase = spi_block_erase_d8, |
| 6568 | }, { |
| 6569 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6570 | .block_erase = spi_block_erase_60, |
| 6571 | }, { |
| 6572 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6573 | .block_erase = spi_block_erase_c7, |
| 6574 | } |
| 6575 | }, |
| 6576 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6577 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6578 | .write = spi_chip_write_256, |
| 6579 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6580 | .voltage = {1695, 1950}, |
| 6581 | }, |
| 6582 | |
| 6583 | { |
| 6584 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6585 | .name = "GD25LQ32", |
| 6586 | .bustype = BUS_SPI, |
| 6587 | .manufacture_id = GIGADEVICE_ID, |
| 6588 | .model_id = GIGADEVICE_GD25LQ32, |
| 6589 | .total_size = 4096, |
| 6590 | .page_size = 256, |
| 6591 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6592 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6593 | .tested = TEST_OK_PREW, |
| 6594 | .probe = probe_spi_rdid, |
| 6595 | .probe_timing = TIMING_ZERO, |
| 6596 | .block_erasers = |
| 6597 | { |
| 6598 | { |
| 6599 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6600 | .block_erase = spi_block_erase_20, |
| 6601 | }, { |
| 6602 | .eraseblocks = { {32 * 1024, 128} }, |
| 6603 | .block_erase = spi_block_erase_52, |
| 6604 | }, { |
| 6605 | .eraseblocks = { {64 * 1024, 64} }, |
| 6606 | .block_erase = spi_block_erase_d8, |
| 6607 | }, { |
| 6608 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6609 | .block_erase = spi_block_erase_60, |
| 6610 | }, { |
| 6611 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6612 | .block_erase = spi_block_erase_c7, |
| 6613 | } |
| 6614 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6615 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6616 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6617 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6618 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6619 | .voltage = {1695, 1950}, |
| 6620 | }, |
| 6621 | |
| 6622 | { |
| 6623 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6624 | .name = "GD25LQ40", |
| 6625 | .bustype = BUS_SPI, |
| 6626 | .manufacture_id = GIGADEVICE_ID, |
| 6627 | .model_id = GIGADEVICE_GD25LQ40, |
| 6628 | .total_size = 512, |
| 6629 | .page_size = 256, |
| 6630 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6631 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6632 | .tested = TEST_UNTESTED, |
| 6633 | .probe = probe_spi_rdid, |
| 6634 | .probe_timing = TIMING_ZERO, |
| 6635 | .block_erasers = |
| 6636 | { |
| 6637 | { |
| 6638 | .eraseblocks = { {4 * 1024, 128} }, |
| 6639 | .block_erase = spi_block_erase_20, |
| 6640 | }, { |
| 6641 | .eraseblocks = { {32 * 1024, 16} }, |
| 6642 | .block_erase = spi_block_erase_52, |
| 6643 | }, { |
| 6644 | .eraseblocks = { {64 * 1024, 8} }, |
| 6645 | .block_erase = spi_block_erase_d8, |
| 6646 | }, { |
| 6647 | .eraseblocks = { {512 * 1024, 1} }, |
| 6648 | .block_erase = spi_block_erase_60, |
| 6649 | }, { |
| 6650 | .eraseblocks = { {512 * 1024, 1} }, |
| 6651 | .block_erase = spi_block_erase_c7, |
| 6652 | } |
| 6653 | }, |
| 6654 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6655 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6656 | .write = spi_chip_write_256, |
| 6657 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6658 | .voltage = {1695, 1950}, |
| 6659 | }, |
| 6660 | |
| 6661 | { |
| 6662 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6663 | .name = "GD25LQ64(B)", |
| 6664 | .bustype = BUS_SPI, |
| 6665 | .manufacture_id = GIGADEVICE_ID, |
| 6666 | .model_id = GIGADEVICE_GD25LQ64, |
| 6667 | .total_size = 8192, |
| 6668 | .page_size = 256, |
| 6669 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 6670 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6671 | .tested = TEST_OK_PREWB, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6672 | .probe = probe_spi_rdid, |
| 6673 | .probe_timing = TIMING_ZERO, |
| 6674 | .block_erasers = |
| 6675 | { |
| 6676 | { |
| 6677 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6678 | .block_erase = spi_block_erase_20, |
| 6679 | }, { |
| 6680 | .eraseblocks = { {32 * 1024, 256} }, |
| 6681 | .block_erase = spi_block_erase_52, |
| 6682 | }, { |
| 6683 | .eraseblocks = { {64 * 1024, 128} }, |
| 6684 | .block_erase = spi_block_erase_d8, |
| 6685 | }, { |
| 6686 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6687 | .block_erase = spi_block_erase_60, |
| 6688 | }, { |
| 6689 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6690 | .block_erase = spi_block_erase_c7, |
| 6691 | } |
| 6692 | }, |
| 6693 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6694 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6695 | .write = spi_chip_write_256, |
| 6696 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6697 | .voltage = {1695, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6698 | .reg_bits = |
| 6699 | { |
| 6700 | .srp = {STATUS1, 7, RW}, |
| 6701 | .srl = {STATUS2, 0, RW}, |
| 6702 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6703 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6704 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6705 | .cmp = {STATUS2, 6, RW}, |
| 6706 | }, |
| 6707 | .decode_range = decode_range_spi25, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6708 | }, |
| 6709 | |
| 6710 | { |
| 6711 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6712 | .name = "GD25LQ80", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6713 | .bustype = BUS_SPI, |
| 6714 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6715 | .model_id = GIGADEVICE_GD25LQ80, |
| 6716 | .total_size = 1024, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6717 | .page_size = 256, |
| 6718 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6719 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6720 | .tested = TEST_UNTESTED, |
| 6721 | .probe = probe_spi_rdid, |
| 6722 | .probe_timing = TIMING_ZERO, |
| 6723 | .block_erasers = |
| 6724 | { |
| 6725 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6726 | .eraseblocks = { {4 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6727 | .block_erase = spi_block_erase_20, |
| 6728 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6729 | .eraseblocks = { {32 * 1024, 32} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6730 | .block_erase = spi_block_erase_52, |
| 6731 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6732 | .eraseblocks = { {64 * 1024, 16} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6733 | .block_erase = spi_block_erase_d8, |
| 6734 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6735 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6736 | .block_erase = spi_block_erase_60, |
| 6737 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6738 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6739 | .block_erase = spi_block_erase_c7, |
| 6740 | } |
| 6741 | }, |
| 6742 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6743 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6744 | .write = spi_chip_write_256, |
| 6745 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6746 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6747 | }, |
| 6748 | |
| 6749 | { |
| 6750 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6751 | .name = "GD25Q10", |
| 6752 | .bustype = BUS_SPI, |
| 6753 | .manufacture_id = GIGADEVICE_ID, |
| 6754 | .model_id = GIGADEVICE_GD25Q10, |
| 6755 | .total_size = 128, |
| 6756 | .page_size = 256, |
| 6757 | .feature_bits = FEATURE_WRSR_WREN, |
| 6758 | .tested = TEST_UNTESTED, |
| 6759 | .probe = probe_spi_rdid, |
| 6760 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6761 | .block_erasers = |
| 6762 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6763 | { |
| 6764 | .eraseblocks = { {4 * 1024, 32} }, |
| 6765 | .block_erase = spi_block_erase_20, |
| 6766 | }, { |
| 6767 | .eraseblocks = { {32 * 1024, 4} }, |
| 6768 | .block_erase = spi_block_erase_52, |
| 6769 | }, { |
| 6770 | .eraseblocks = { {64 * 1024, 2} }, |
| 6771 | .block_erase = spi_block_erase_d8, |
| 6772 | }, { |
| 6773 | .eraseblocks = { {128 * 1024, 1} }, |
| 6774 | .block_erase = spi_block_erase_60, |
| 6775 | }, { |
| 6776 | .eraseblocks = { {128 * 1024, 1} }, |
| 6777 | .block_erase = spi_block_erase_c7, |
| 6778 | } |
| 6779 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6780 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6781 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6782 | .write = spi_chip_write_256, |
| 6783 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6784 | .voltage = {2700, 3600}, |
| 6785 | }, |
| 6786 | |
| 6787 | { |
| 6788 | .vendor = "GigaDevice", |
Alan Green | 4f00912 | 2019-08-26 10:45:18 +1000 | [diff] [blame] | 6789 | .name = "GD25Q127C/GD25Q128C", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6790 | .bustype = BUS_SPI, |
| 6791 | .manufacture_id = GIGADEVICE_ID, |
| 6792 | .model_id = GIGADEVICE_GD25Q128, |
| 6793 | .total_size = 16384, |
| 6794 | .page_size = 256, |
| 6795 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6796 | /* QPI: enable 0x38, disable 0xFF */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6797 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6798 | .tested = TEST_OK_PREWB, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6799 | .probe = probe_spi_rdid, |
| 6800 | .probe_timing = TIMING_ZERO, |
| 6801 | .block_erasers = |
| 6802 | { |
| 6803 | { |
| 6804 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6805 | .block_erase = spi_block_erase_20, |
| 6806 | }, { |
| 6807 | .eraseblocks = { {32 * 1024, 512} }, |
| 6808 | .block_erase = spi_block_erase_52, |
| 6809 | }, { |
| 6810 | .eraseblocks = { {64 * 1024, 256} }, |
| 6811 | .block_erase = spi_block_erase_d8, |
| 6812 | }, { |
| 6813 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6814 | .block_erase = spi_block_erase_60, |
| 6815 | }, { |
| 6816 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6817 | .block_erase = spi_block_erase_c7, |
| 6818 | } |
| 6819 | }, |
| 6820 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6821 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6822 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6823 | .write = spi_chip_write_256, |
| 6824 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6825 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6826 | .reg_bits = |
| 6827 | { |
| 6828 | .srp = {STATUS1, 7, RW}, |
| 6829 | .srl = {STATUS2, 0, RW}, |
| 6830 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6831 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6832 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6833 | .cmp = {STATUS2, 6, RW}, |
| 6834 | }, |
| 6835 | .decode_range = decode_range_spi25, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6836 | }, |
| 6837 | |
| 6838 | { |
| 6839 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6840 | .name = "GD25Q16(B)", |
| 6841 | .bustype = BUS_SPI, |
| 6842 | .manufacture_id = GIGADEVICE_ID, |
| 6843 | .model_id = GIGADEVICE_GD25Q16, |
| 6844 | .total_size = 2048, |
| 6845 | .page_size = 256, |
| 6846 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6847 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6848 | .tested = TEST_OK_PREW, |
| 6849 | .probe = probe_spi_rdid, |
| 6850 | .probe_timing = TIMING_ZERO, |
| 6851 | .block_erasers = |
| 6852 | { |
| 6853 | { |
| 6854 | .eraseblocks = { {4 * 1024, 512} }, |
| 6855 | .block_erase = spi_block_erase_20, |
| 6856 | }, { |
| 6857 | .eraseblocks = { {32 * 1024, 64} }, |
| 6858 | .block_erase = spi_block_erase_52, |
| 6859 | }, { |
| 6860 | .eraseblocks = { {64 * 1024, 32} }, |
| 6861 | .block_erase = spi_block_erase_d8, |
| 6862 | }, { |
| 6863 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6864 | .block_erase = spi_block_erase_60, |
| 6865 | }, { |
| 6866 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6867 | .block_erase = spi_block_erase_c7, |
| 6868 | } |
| 6869 | }, |
| 6870 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6871 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6872 | .write = spi_chip_write_256, |
| 6873 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6874 | .voltage = {2700, 3600}, |
| 6875 | }, |
| 6876 | |
| 6877 | { |
| 6878 | .vendor = "GigaDevice", |
| 6879 | .name = "GD25Q20(B)", |
| 6880 | .bustype = BUS_SPI, |
| 6881 | .manufacture_id = GIGADEVICE_ID, |
| 6882 | .model_id = GIGADEVICE_GD25Q20, |
| 6883 | .total_size = 256, |
| 6884 | .page_size = 256, |
| 6885 | .feature_bits = FEATURE_WRSR_WREN, |
| 6886 | .tested = TEST_OK_PREW, |
| 6887 | .probe = probe_spi_rdid, |
| 6888 | .probe_timing = TIMING_ZERO, |
| 6889 | .block_erasers = |
| 6890 | { |
| 6891 | { |
| 6892 | .eraseblocks = { {4 * 1024, 64} }, |
| 6893 | .block_erase = spi_block_erase_20, |
| 6894 | }, { |
| 6895 | .eraseblocks = { {32 * 1024, 8} }, |
| 6896 | .block_erase = spi_block_erase_52, |
| 6897 | }, { |
| 6898 | .eraseblocks = { {64 * 1024, 4} }, |
| 6899 | .block_erase = spi_block_erase_d8, |
| 6900 | }, { |
| 6901 | .eraseblocks = { {256 * 1024, 1} }, |
| 6902 | .block_erase = spi_block_erase_60, |
| 6903 | }, { |
| 6904 | .eraseblocks = { {256 * 1024, 1} }, |
| 6905 | .block_erase = spi_block_erase_c7, |
| 6906 | } |
| 6907 | }, |
| 6908 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6909 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6910 | .write = spi_chip_write_256, |
| 6911 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6912 | .voltage = {2700, 3600}, |
| 6913 | }, |
| 6914 | |
| 6915 | { |
| 6916 | .vendor = "GigaDevice", |
Nikolai Artemiev | 3ca0af0 | 2022-06-17 15:10:18 +1000 | [diff] [blame] | 6917 | .name = "GD25Q256D/GD25Q256E", |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6918 | .bustype = BUS_SPI, |
| 6919 | .manufacture_id = GIGADEVICE_ID, |
| 6920 | .model_id = GIGADEVICE_GD25Q256D, |
| 6921 | .total_size = 32768, |
| 6922 | .page_size = 256, |
Nikolai Artemiev | b931e7a | 2022-12-05 13:06:14 +1100 | [diff] [blame] | 6923 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 6924 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6925 | .tested = TEST_OK_PREWB, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6926 | .probe = probe_spi_rdid, |
| 6927 | .probe_timing = TIMING_ZERO, |
| 6928 | .block_erasers = |
| 6929 | { |
| 6930 | { |
| 6931 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6932 | .block_erase = spi_block_erase_21, |
| 6933 | }, { |
| 6934 | .eraseblocks = { {4 * 1024, 8192} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6935 | .block_erase = spi_block_erase_20, |
| 6936 | }, { |
| 6937 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6938 | .block_erase = spi_block_erase_5c, |
| 6939 | }, { |
| 6940 | .eraseblocks = { {32 * 1024, 1024} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6941 | .block_erase = spi_block_erase_52, |
| 6942 | }, { |
| 6943 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6944 | .block_erase = spi_block_erase_dc, |
| 6945 | }, { |
| 6946 | .eraseblocks = { {64 * 1024, 512} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6947 | .block_erase = spi_block_erase_d8, |
| 6948 | }, { |
| 6949 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6950 | .block_erase = spi_block_erase_60, |
| 6951 | }, { |
| 6952 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6953 | .block_erase = spi_block_erase_c7, |
| 6954 | } |
| 6955 | }, |
| 6956 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 6957 | .unlock = spi_disable_blockprotect, |
| 6958 | .write = spi_chip_write_256, |
| 6959 | .read = spi_chip_read, |
| 6960 | .voltage = {2700, 3600}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6961 | .reg_bits = |
| 6962 | { |
| 6963 | .srp = {STATUS1, 7, RW}, |
| 6964 | .srl = {STATUS2, 6, RW}, |
| 6965 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 6966 | .tb = {STATUS1, 6, RW}, |
| 6967 | }, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 6968 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 6969 | .prepare_access = spi_prepare_4ba, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6970 | }, |
| 6971 | |
| 6972 | { |
| 6973 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6974 | .name = "GD25Q32(B)", |
| 6975 | .bustype = BUS_SPI, |
| 6976 | .manufacture_id = GIGADEVICE_ID, |
| 6977 | .model_id = GIGADEVICE_GD25Q32, |
| 6978 | .total_size = 4096, |
| 6979 | .page_size = 256, |
| 6980 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nikolai Artemiev | 9de3f87 | 2021-10-20 22:32:25 +1100 | [diff] [blame] | 6981 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6982 | .tested = TEST_OK_PREWB, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6983 | .probe = probe_spi_rdid, |
| 6984 | .probe_timing = TIMING_ZERO, |
| 6985 | .block_erasers = |
| 6986 | { |
| 6987 | { |
| 6988 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6989 | .block_erase = spi_block_erase_20, |
| 6990 | }, { |
| 6991 | .eraseblocks = { {32 * 1024, 128} }, |
| 6992 | .block_erase = spi_block_erase_52, |
| 6993 | }, { |
| 6994 | .eraseblocks = { {64 * 1024, 64} }, |
| 6995 | .block_erase = spi_block_erase_d8, |
| 6996 | }, { |
| 6997 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6998 | .block_erase = spi_block_erase_60, |
| 6999 | }, { |
| 7000 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7001 | .block_erase = spi_block_erase_c7, |
| 7002 | } |
| 7003 | }, |
| 7004 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7005 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7006 | .write = spi_chip_write_256, |
| 7007 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7008 | .voltage = {2700, 3600}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7009 | .reg_bits = |
| 7010 | { |
| 7011 | .srp = {STATUS1, 7, RW}, |
| 7012 | .srl = {STATUS2, 0, RW}, |
| 7013 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7014 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7015 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7016 | .cmp = {STATUS2, 6, RW}, |
| 7017 | }, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 7018 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7019 | }, |
| 7020 | |
| 7021 | { |
| 7022 | .vendor = "GigaDevice", |
| 7023 | .name = "GD25Q40(B)", |
| 7024 | .bustype = BUS_SPI, |
| 7025 | .manufacture_id = GIGADEVICE_ID, |
| 7026 | .model_id = GIGADEVICE_GD25Q40, |
| 7027 | .total_size = 512, |
| 7028 | .page_size = 256, |
| 7029 | .feature_bits = FEATURE_WRSR_WREN, |
Simon Buhrow | 551664c | 2022-03-09 16:09:08 +0100 | [diff] [blame] | 7030 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7031 | .probe = probe_spi_rdid, |
| 7032 | .probe_timing = TIMING_ZERO, |
| 7033 | .block_erasers = |
| 7034 | { |
| 7035 | { |
| 7036 | .eraseblocks = { {4 * 1024, 128} }, |
| 7037 | .block_erase = spi_block_erase_20, |
| 7038 | }, { |
| 7039 | .eraseblocks = { {32 * 1024, 16} }, |
| 7040 | .block_erase = spi_block_erase_52, |
| 7041 | }, { |
| 7042 | .eraseblocks = { {64 * 1024, 8} }, |
| 7043 | .block_erase = spi_block_erase_d8, |
| 7044 | }, { |
| 7045 | .eraseblocks = { {512 * 1024, 1} }, |
| 7046 | .block_erase = spi_block_erase_60, |
| 7047 | }, { |
| 7048 | .eraseblocks = { {512 * 1024, 1} }, |
| 7049 | .block_erase = spi_block_erase_c7, |
| 7050 | } |
| 7051 | }, |
| 7052 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7053 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7054 | .write = spi_chip_write_256, |
| 7055 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7056 | .voltage = {2700, 3600}, |
| 7057 | }, |
| 7058 | |
| 7059 | { |
| 7060 | .vendor = "GigaDevice", |
| 7061 | .name = "GD25Q512", |
| 7062 | .bustype = BUS_SPI, |
| 7063 | .manufacture_id = GIGADEVICE_ID, |
| 7064 | .model_id = GIGADEVICE_GD25Q512, |
| 7065 | .total_size = 64, |
| 7066 | .page_size = 256, |
| 7067 | .feature_bits = FEATURE_WRSR_WREN, |
| 7068 | .tested = TEST_OK_PREW, |
| 7069 | .probe = probe_spi_rdid, |
| 7070 | .probe_timing = TIMING_ZERO, |
| 7071 | .block_erasers = |
| 7072 | { |
| 7073 | { |
| 7074 | .eraseblocks = { {4 * 1024, 16} }, |
| 7075 | .block_erase = spi_block_erase_20, |
| 7076 | }, { |
| 7077 | .eraseblocks = { {32 * 1024, 2} }, |
| 7078 | .block_erase = spi_block_erase_52, |
| 7079 | }, { |
| 7080 | .eraseblocks = { {64 * 1024, 1} }, |
| 7081 | .block_erase = spi_block_erase_60, |
| 7082 | }, { |
| 7083 | .eraseblocks = { {64 * 1024, 1} }, |
| 7084 | .block_erase = spi_block_erase_c7, |
| 7085 | } |
| 7086 | }, |
| 7087 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7088 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7089 | .write = spi_chip_write_256, |
| 7090 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7091 | .voltage = {2700, 3600}, |
| 7092 | }, |
| 7093 | |
| 7094 | { |
| 7095 | .vendor = "GigaDevice", |
| 7096 | .name = "GD25Q64(B)", |
| 7097 | .bustype = BUS_SPI, |
| 7098 | .manufacture_id = GIGADEVICE_ID, |
| 7099 | .model_id = GIGADEVICE_GD25Q64, |
| 7100 | .total_size = 8192, |
| 7101 | .page_size = 256, |
| 7102 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7103 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 7104 | .tested = TEST_OK_PREWB, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7105 | .probe = probe_spi_rdid, |
| 7106 | .probe_timing = TIMING_ZERO, |
| 7107 | .block_erasers = |
| 7108 | { |
| 7109 | { |
| 7110 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7111 | .block_erase = spi_block_erase_20, |
| 7112 | }, { |
| 7113 | .eraseblocks = { {32 * 1024, 256} }, |
| 7114 | .block_erase = spi_block_erase_52, |
| 7115 | }, { |
| 7116 | .eraseblocks = { {64 * 1024, 128} }, |
| 7117 | .block_erase = spi_block_erase_d8, |
| 7118 | }, { |
| 7119 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7120 | .block_erase = spi_block_erase_60, |
| 7121 | }, { |
| 7122 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7123 | .block_erase = spi_block_erase_c7, |
| 7124 | } |
| 7125 | }, |
| 7126 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7127 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7128 | .write = spi_chip_write_256, |
| 7129 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7130 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7131 | .reg_bits = |
| 7132 | { |
| 7133 | .srp = {STATUS1, 7, RW}, |
| 7134 | .srl = {STATUS2, 0, RW}, |
| 7135 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7136 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7137 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7138 | .cmp = {STATUS2, 6, RW}, |
| 7139 | }, |
| 7140 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7141 | }, |
| 7142 | |
| 7143 | { |
| 7144 | .vendor = "GigaDevice", |
| 7145 | .name = "GD25Q80(B)", |
| 7146 | .bustype = BUS_SPI, |
| 7147 | .manufacture_id = GIGADEVICE_ID, |
| 7148 | .model_id = GIGADEVICE_GD25Q80, |
| 7149 | .total_size = 1024, |
| 7150 | .page_size = 256, |
| 7151 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 7152 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7153 | .tested = TEST_OK_PREW, |
| 7154 | .probe = probe_spi_rdid, |
| 7155 | .probe_timing = TIMING_ZERO, |
| 7156 | .block_erasers = |
| 7157 | { |
| 7158 | { |
| 7159 | .eraseblocks = { {4 * 1024, 256} }, |
| 7160 | .block_erase = spi_block_erase_20, |
| 7161 | }, { |
| 7162 | .eraseblocks = { {32 * 1024, 32} }, |
| 7163 | .block_erase = spi_block_erase_52, |
| 7164 | }, { |
| 7165 | .eraseblocks = { {64 * 1024, 16} }, |
| 7166 | .block_erase = spi_block_erase_d8, |
| 7167 | }, { |
| 7168 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7169 | .block_erase = spi_block_erase_60, |
| 7170 | }, { |
| 7171 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7172 | .block_erase = spi_block_erase_c7, |
| 7173 | } |
| 7174 | }, |
| 7175 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7176 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7177 | .write = spi_chip_write_256, |
| 7178 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7179 | .voltage = {2700, 3600}, |
| 7180 | }, |
| 7181 | |
| 7182 | { |
| 7183 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 7184 | .name = "GD25T80", |
| 7185 | .bustype = BUS_SPI, |
| 7186 | .manufacture_id = GIGADEVICE_ID, |
| 7187 | .model_id = GIGADEVICE_GD25T80, |
| 7188 | .total_size = 1024, |
| 7189 | .page_size = 256, |
| 7190 | /* OTP: 256B total; enter 0x3A */ |
| 7191 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7192 | .tested = TEST_UNTESTED, |
| 7193 | .probe = probe_spi_rdid, |
| 7194 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 7195 | .block_erasers = |
| 7196 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 7197 | { |
| 7198 | .eraseblocks = { {4 * 1024, 256} }, |
| 7199 | .block_erase = spi_block_erase_20, |
| 7200 | }, { |
| 7201 | .eraseblocks = { {64 * 1024, 16} }, |
| 7202 | .block_erase = spi_block_erase_52, |
| 7203 | }, { |
| 7204 | .eraseblocks = { {64 * 1024, 16} }, |
| 7205 | .block_erase = spi_block_erase_d8, |
| 7206 | }, { |
| 7207 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7208 | .block_erase = spi_block_erase_60, |
| 7209 | }, { |
| 7210 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7211 | .block_erase = spi_block_erase_c7, |
| 7212 | } |
| 7213 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7214 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 7215 | .unlock = spi_disable_blockprotect, |
| 7216 | .write = spi_chip_write_256, |
| 7217 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 7218 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 7219 | }, |
| 7220 | |
| 7221 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7222 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7223 | .name = "GD25VQ16C", |
| 7224 | .bustype = BUS_SPI, |
| 7225 | .manufacture_id = GIGADEVICE_ID, |
| 7226 | .model_id = GIGADEVICE_GD25VQ16C, |
| 7227 | .total_size = 2 * 1024, |
| 7228 | .page_size = 256, |
| 7229 | /* Supports SFDP */ |
| 7230 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 7231 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7232 | .tested = TEST_UNTESTED, |
| 7233 | .probe = probe_spi_rdid, |
| 7234 | .probe_timing = TIMING_ZERO, |
| 7235 | .block_erasers = |
| 7236 | { |
| 7237 | { |
| 7238 | .eraseblocks = { { 4 * 1024, 512} }, |
| 7239 | .block_erase = spi_block_erase_20, |
| 7240 | }, { |
| 7241 | .eraseblocks = { { 32 * 1024, 64} }, |
| 7242 | .block_erase = spi_block_erase_52, |
| 7243 | }, { |
| 7244 | .eraseblocks = { { 64 * 1024, 32} }, |
| 7245 | .block_erase = spi_block_erase_d8, |
| 7246 | }, { |
| 7247 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7248 | .block_erase = spi_block_erase_60, |
| 7249 | }, { |
| 7250 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7251 | .block_erase = spi_block_erase_c7, |
| 7252 | } |
| 7253 | }, |
| 7254 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7255 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7256 | .write = spi_chip_write_256, |
| 7257 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7258 | .voltage = {2300, 3600}, |
| 7259 | }, |
| 7260 | |
| 7261 | { |
| 7262 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7263 | .name = "GD25VQ21B", |
| 7264 | .bustype = BUS_SPI, |
| 7265 | .manufacture_id = GIGADEVICE_ID, |
| 7266 | .model_id = GIGADEVICE_GD25VQ21B, |
| 7267 | .total_size = 256, |
| 7268 | .page_size = 256, |
| 7269 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 7270 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7271 | .tested = TEST_UNTESTED, |
| 7272 | .probe = probe_spi_rdid, |
| 7273 | .probe_timing = TIMING_ZERO, |
| 7274 | .block_erasers = |
| 7275 | { |
| 7276 | { |
| 7277 | .eraseblocks = { { 4 * 1024, 64} }, |
| 7278 | .block_erase = spi_block_erase_20, |
| 7279 | }, { |
| 7280 | .eraseblocks = { { 32 * 1024, 8} }, |
| 7281 | .block_erase = spi_block_erase_52, |
| 7282 | }, { |
| 7283 | .eraseblocks = { { 64 * 1024, 4} }, |
| 7284 | .block_erase = spi_block_erase_d8, |
| 7285 | }, { |
| 7286 | .eraseblocks = { {256 * 1024, 1} }, |
| 7287 | .block_erase = spi_block_erase_60, |
| 7288 | }, { |
| 7289 | .eraseblocks = { {256 * 1024, 1} }, |
| 7290 | .block_erase = spi_block_erase_c7, |
| 7291 | } |
| 7292 | }, |
| 7293 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7294 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7295 | .write = spi_chip_write_256, |
| 7296 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7297 | .voltage = {2300, 3600}, |
| 7298 | }, |
| 7299 | |
| 7300 | { |
| 7301 | .vendor = "GigaDevice", |
| 7302 | .name = "GD25VQ40C", |
| 7303 | .bustype = BUS_SPI, |
| 7304 | .manufacture_id = GIGADEVICE_ID, |
| 7305 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7306 | .total_size = 512, |
| 7307 | .page_size = 256, |
| 7308 | /* Supports SFDP */ |
| 7309 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 7310 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7311 | .tested = TEST_UNTESTED, |
| 7312 | .probe = probe_spi_rdid, |
| 7313 | .probe_timing = TIMING_ZERO, |
| 7314 | .block_erasers = |
| 7315 | { |
| 7316 | { |
| 7317 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7318 | .block_erase = spi_block_erase_20, |
| 7319 | }, { |
| 7320 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7321 | .block_erase = spi_block_erase_52, |
| 7322 | }, { |
| 7323 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7324 | .block_erase = spi_block_erase_d8, |
| 7325 | }, { |
| 7326 | .eraseblocks = { {512 * 1024, 1} }, |
| 7327 | .block_erase = spi_block_erase_60, |
| 7328 | }, { |
| 7329 | .eraseblocks = { {512 * 1024, 1} }, |
| 7330 | .block_erase = spi_block_erase_c7, |
| 7331 | } |
| 7332 | }, |
| 7333 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7334 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7335 | .write = spi_chip_write_256, |
| 7336 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7337 | .voltage = {2300, 3600}, |
| 7338 | }, |
| 7339 | |
| 7340 | { |
| 7341 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7342 | .name = "GD25VQ41B", |
| 7343 | .bustype = BUS_SPI, |
| 7344 | .manufacture_id = GIGADEVICE_ID, |
| 7345 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7346 | .total_size = 512, |
| 7347 | .page_size = 256, |
| 7348 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 7349 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7350 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7351 | .probe = probe_spi_rdid, |
| 7352 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7353 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7354 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7355 | { |
| 7356 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7357 | .block_erase = spi_block_erase_20, |
| 7358 | }, { |
| 7359 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7360 | .block_erase = spi_block_erase_52, |
| 7361 | }, { |
| 7362 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7363 | .block_erase = spi_block_erase_d8, |
| 7364 | }, { |
| 7365 | .eraseblocks = { {512 * 1024, 1} }, |
| 7366 | .block_erase = spi_block_erase_60, |
| 7367 | }, { |
| 7368 | .eraseblocks = { {512 * 1024, 1} }, |
| 7369 | .block_erase = spi_block_erase_c7, |
| 7370 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7371 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7372 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7373 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7374 | .write = spi_chip_write_256, |
| 7375 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7376 | .voltage = {2300, 3600}, |
| 7377 | }, |
| 7378 | |
| 7379 | { |
| 7380 | .vendor = "GigaDevice", |
| 7381 | .name = "GD25VQ80C", |
| 7382 | .bustype = BUS_SPI, |
| 7383 | .manufacture_id = GIGADEVICE_ID, |
| 7384 | .model_id = GIGADEVICE_GD25VQ80C, |
| 7385 | .total_size = 1024, |
| 7386 | .page_size = 256, |
| 7387 | /* Supports SFDP */ |
| 7388 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 7389 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7390 | .tested = TEST_UNTESTED, |
| 7391 | .probe = probe_spi_rdid, |
| 7392 | .probe_timing = TIMING_ZERO, |
| 7393 | .block_erasers = |
| 7394 | { |
| 7395 | { |
| 7396 | .eraseblocks = { { 4 * 1024, 256} }, |
| 7397 | .block_erase = spi_block_erase_20, |
| 7398 | }, { |
| 7399 | .eraseblocks = { { 32 * 1024, 32} }, |
| 7400 | .block_erase = spi_block_erase_52, |
| 7401 | }, { |
| 7402 | .eraseblocks = { { 64 * 1024, 16} }, |
| 7403 | .block_erase = spi_block_erase_d8, |
| 7404 | }, { |
| 7405 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7406 | .block_erase = spi_block_erase_60, |
| 7407 | }, { |
| 7408 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7409 | .block_erase = spi_block_erase_c7, |
| 7410 | } |
| 7411 | }, |
| 7412 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7413 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7414 | .write = spi_chip_write_256, |
| 7415 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7416 | .voltage = {2300, 3600}, |
| 7417 | }, |
| 7418 | |
| 7419 | { |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7420 | .vendor = "GigaDevice", |
| 7421 | .name = "GD25WQ80E", |
| 7422 | .bustype = BUS_SPI, |
| 7423 | .manufacture_id = GIGADEVICE_ID, |
| 7424 | .model_id = GIGADEVICE_GD25WQ80E, |
| 7425 | .total_size = 1024, |
| 7426 | .page_size = 256, |
| 7427 | .feature_bits = FEATURE_WRSR_WREN, |
| 7428 | .tested = TEST_OK_PREW, |
| 7429 | .probe = probe_spi_rdid, |
| 7430 | .probe_timing = TIMING_ZERO, |
| 7431 | .block_erasers = |
| 7432 | { |
| 7433 | { |
| 7434 | .eraseblocks = { {4 * 1024, 256} }, |
| 7435 | .block_erase = spi_block_erase_20, |
| 7436 | }, { |
| 7437 | .eraseblocks = { {32 * 1024, 32} }, |
| 7438 | .block_erase = spi_block_erase_52, |
| 7439 | }, { |
| 7440 | .eraseblocks = { {64 * 1024, 16} }, |
| 7441 | .block_erase = spi_block_erase_d8, |
| 7442 | }, { |
| 7443 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7444 | .block_erase = spi_block_erase_60, |
| 7445 | }, { |
| 7446 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7447 | .block_erase = spi_block_erase_c7, |
| 7448 | } |
| 7449 | }, |
| 7450 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7451 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 7452 | .write = spi_chip_write_256, |
| 7453 | .read = spi_chip_read, |
| 7454 | .voltage = {1650, 3600}, |
| 7455 | }, |
| 7456 | |
| 7457 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7458 | .vendor = "Hyundai", |
| 7459 | .name = "HY29F002B", |
| 7460 | .bustype = BUS_PARALLEL, |
| 7461 | .manufacture_id = HYUNDAI_ID, |
| 7462 | .model_id = HYUNDAI_HY29F002B, |
| 7463 | .total_size = 256, |
| 7464 | .page_size = 256 * 1024, |
| 7465 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7466 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7467 | .probe = probe_jedec, |
| 7468 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7469 | .block_erasers = |
| 7470 | { |
| 7471 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7472 | .eraseblocks = { |
| 7473 | {16 * 1024, 1}, |
| 7474 | {8 * 1024, 2}, |
| 7475 | {32 * 1024, 1}, |
| 7476 | {64 * 1024, 3}, |
| 7477 | }, |
| 7478 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7479 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7480 | .eraseblocks = { {256 * 1024, 1} }, |
| 7481 | .block_erase = erase_chip_block_jedec, |
| 7482 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7483 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7484 | .write = write_jedec_1, |
| 7485 | .read = read_memmapped, |
| 7486 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7487 | .prepare_access = prepare_memory_access, |
| 7488 | .finish_access = finish_memory_access, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7489 | }, |
| 7490 | |
| 7491 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7492 | .vendor = "Hyundai", |
| 7493 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7494 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7495 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7496 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7497 | .total_size = 256, |
| 7498 | .page_size = 256 * 1024, |
| 7499 | .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] | 7500 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7501 | .probe = probe_jedec, |
| 7502 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7503 | .block_erasers = |
| 7504 | { |
| 7505 | { |
| 7506 | .eraseblocks = { |
| 7507 | {64 * 1024, 3}, |
| 7508 | {32 * 1024, 1}, |
| 7509 | {8 * 1024, 2}, |
| 7510 | {16 * 1024, 1}, |
| 7511 | }, |
| 7512 | .block_erase = erase_sector_jedec, |
| 7513 | }, { |
| 7514 | .eraseblocks = { {256 * 1024, 1} }, |
| 7515 | .block_erase = erase_chip_block_jedec, |
| 7516 | }, |
| 7517 | }, |
| 7518 | .write = write_jedec_1, |
| 7519 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7520 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7521 | .prepare_access = prepare_memory_access, |
| 7522 | .finish_access = finish_memory_access, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7523 | }, |
| 7524 | |
| 7525 | { |
| 7526 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7527 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7528 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7529 | .manufacture_id = HYUNDAI_ID, |
| 7530 | .model_id = HYUNDAI_HY29F040A, |
| 7531 | .total_size = 512, |
| 7532 | .page_size = 64 * 1024, |
| 7533 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7534 | .tested = TEST_UNTESTED, |
| 7535 | .probe = probe_jedec, |
| 7536 | .probe_timing = TIMING_ZERO, |
| 7537 | .block_erasers = |
| 7538 | { |
| 7539 | { |
| 7540 | .eraseblocks = { {64 * 1024, 8} }, |
| 7541 | .block_erase = erase_sector_jedec, |
| 7542 | }, { |
| 7543 | .eraseblocks = { {512 * 1024, 1} }, |
| 7544 | .block_erase = erase_chip_block_jedec, |
| 7545 | }, |
| 7546 | }, |
| 7547 | .write = write_jedec_1, |
| 7548 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7549 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7550 | .prepare_access = prepare_memory_access, |
| 7551 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7552 | }, |
| 7553 | |
| 7554 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7555 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7556 | .name = "IS25LP064", |
| 7557 | .bustype = BUS_SPI, |
| 7558 | .manufacture_id = ISSI_ID_SPI, |
| 7559 | .model_id = ISSI_IS25LP064, |
| 7560 | .total_size = 8192, |
| 7561 | .page_size = 256, |
| 7562 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7563 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Simon Buhrow | 9bf829d | 2021-10-20 17:09:09 +0200 | [diff] [blame] | 7564 | .tested = TEST_OK_PREW, |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7565 | .probe = probe_spi_rdid, |
| 7566 | .probe_timing = TIMING_ZERO, |
| 7567 | .block_erasers = |
| 7568 | { |
| 7569 | { |
| 7570 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7571 | .block_erase = spi_block_erase_20, |
| 7572 | }, { |
| 7573 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7574 | .block_erase = spi_block_erase_d7, |
| 7575 | }, { |
| 7576 | .eraseblocks = { {32 * 1024, 256} }, |
| 7577 | .block_erase = spi_block_erase_52, |
| 7578 | }, { |
| 7579 | .eraseblocks = { {64 * 1024, 128} }, |
| 7580 | .block_erase = spi_block_erase_d8, |
| 7581 | }, { |
| 7582 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7583 | .block_erase = spi_block_erase_60, |
| 7584 | }, { |
| 7585 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7586 | .block_erase = spi_block_erase_c7, |
| 7587 | } |
| 7588 | }, |
| 7589 | .unlock = spi_disable_blockprotect, |
| 7590 | .write = spi_chip_write_256, |
| 7591 | .read = spi_chip_read, |
| 7592 | .voltage = {2300, 3600}, |
| 7593 | }, |
| 7594 | |
| 7595 | { |
| 7596 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7597 | .name = "IS25LP128", |
| 7598 | .bustype = BUS_SPI, |
| 7599 | .manufacture_id = ISSI_ID_SPI, |
| 7600 | .model_id = ISSI_IS25LP128, |
| 7601 | .total_size = 16384, |
| 7602 | .page_size = 256, |
| 7603 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7604 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7605 | .tested = TEST_OK_PREW, |
| 7606 | .probe = probe_spi_rdid, |
| 7607 | .probe_timing = TIMING_ZERO, |
| 7608 | .block_erasers = |
| 7609 | { |
| 7610 | { |
| 7611 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7612 | .block_erase = spi_block_erase_20, |
| 7613 | }, { |
| 7614 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7615 | .block_erase = spi_block_erase_d7, |
| 7616 | }, { |
| 7617 | .eraseblocks = { {32 * 1024, 512} }, |
| 7618 | .block_erase = spi_block_erase_52, |
| 7619 | }, { |
| 7620 | .eraseblocks = { {64 * 1024, 256} }, |
| 7621 | .block_erase = spi_block_erase_d8, |
| 7622 | }, { |
| 7623 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7624 | .block_erase = spi_block_erase_60, |
| 7625 | }, { |
| 7626 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7627 | .block_erase = spi_block_erase_c7, |
| 7628 | } |
| 7629 | }, |
| 7630 | .unlock = spi_disable_blockprotect, |
| 7631 | .write = spi_chip_write_256, |
| 7632 | .read = spi_chip_read, |
| 7633 | .voltage = {2300, 3600}, |
| 7634 | }, |
| 7635 | |
| 7636 | { |
| 7637 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7638 | .name = "IS25LP256", |
| 7639 | .bustype = BUS_SPI, |
| 7640 | .manufacture_id = ISSI_ID_SPI, |
| 7641 | .model_id = ISSI_IS25LP256, |
| 7642 | .total_size = 32768, |
| 7643 | .page_size = 256, |
| 7644 | /* supports SFDP */ |
| 7645 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
Nico Huber | ad55d5a | 2022-06-20 19:32:16 +0200 | [diff] [blame] | 7646 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 7647 | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7648 | .tested = TEST_OK_PREW, |
| 7649 | .probe = probe_spi_rdid, |
| 7650 | .probe_timing = TIMING_ZERO, |
| 7651 | .block_erasers = |
| 7652 | { |
| 7653 | { |
| 7654 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7655 | .block_erase = spi_block_erase_21, |
| 7656 | }, { |
| 7657 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7658 | .block_erase = spi_block_erase_20, |
| 7659 | /* could also use spi_block_erase_d7 */ |
| 7660 | }, { |
| 7661 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7662 | .block_erase = spi_block_erase_5c, |
| 7663 | }, { |
| 7664 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7665 | .block_erase = spi_block_erase_52, |
| 7666 | }, { |
| 7667 | .eraseblocks = { {64 * 1024, 512} }, |
| 7668 | .block_erase = spi_block_erase_dc, |
| 7669 | }, { |
| 7670 | .eraseblocks = { {64 * 1024, 512} }, |
| 7671 | .block_erase = spi_block_erase_d8, |
| 7672 | }, { |
| 7673 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7674 | .block_erase = spi_block_erase_60, |
| 7675 | }, { |
| 7676 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7677 | .block_erase = spi_block_erase_c7, |
| 7678 | } |
| 7679 | }, |
| 7680 | .unlock = spi_disable_blockprotect, |
| 7681 | .write = spi_chip_write_256, |
| 7682 | .read = spi_chip_read, |
| 7683 | .voltage = {2300, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 7684 | .prepare_access = spi_prepare_4ba, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7685 | }, |
| 7686 | |
| 7687 | { |
| 7688 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7689 | .name = "IS25WP032", |
| 7690 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7691 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7692 | .model_id = ISSI_IS25WP032, |
| 7693 | .total_size = 4096, |
| 7694 | .page_size = 256, |
| 7695 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7696 | /* QPI enable 0x35, disable 0xF5 */ |
| 7697 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7698 | .tested = TEST_UNTESTED, |
| 7699 | .probe = probe_spi_rdid, |
| 7700 | .probe_timing = TIMING_ZERO, |
| 7701 | .block_erasers = |
| 7702 | { |
| 7703 | { |
| 7704 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7705 | .block_erase = spi_block_erase_20, |
| 7706 | }, { |
| 7707 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7708 | .block_erase = spi_block_erase_d7, |
| 7709 | }, { |
| 7710 | .eraseblocks = { {32 * 1024, 128} }, |
| 7711 | .block_erase = spi_block_erase_52, |
| 7712 | }, { |
| 7713 | .eraseblocks = { {64 * 1024, 64} }, |
| 7714 | .block_erase = spi_block_erase_d8, |
| 7715 | }, { |
| 7716 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7717 | .block_erase = spi_block_erase_60, |
| 7718 | }, { |
| 7719 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7720 | .block_erase = spi_block_erase_c7, |
| 7721 | } |
| 7722 | }, |
| 7723 | .unlock = spi_disable_blockprotect, |
| 7724 | .write = spi_chip_write_256, |
| 7725 | .read = spi_chip_read, |
| 7726 | .voltage = {1650, 1950}, |
| 7727 | }, |
| 7728 | |
| 7729 | { |
| 7730 | .vendor = "ISSI", |
| 7731 | .name = "IS25WP064", |
| 7732 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7733 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7734 | .model_id = ISSI_IS25WP064, |
| 7735 | .total_size = 8192, |
| 7736 | .page_size = 256, |
| 7737 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7738 | /* QPI enable 0x35, disable 0xF5 */ |
| 7739 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7740 | .tested = TEST_OK_PREW, |
| 7741 | .probe = probe_spi_rdid, |
| 7742 | .probe_timing = TIMING_ZERO, |
| 7743 | .block_erasers = |
| 7744 | { |
| 7745 | { |
| 7746 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7747 | .block_erase = spi_block_erase_20, |
| 7748 | }, { |
| 7749 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7750 | .block_erase = spi_block_erase_d7, |
| 7751 | }, { |
| 7752 | .eraseblocks = { {32 * 1024, 256} }, |
| 7753 | .block_erase = spi_block_erase_52, |
| 7754 | }, { |
| 7755 | .eraseblocks = { {64 * 1024, 128} }, |
| 7756 | .block_erase = spi_block_erase_d8, |
| 7757 | }, { |
| 7758 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7759 | .block_erase = spi_block_erase_60, |
| 7760 | }, { |
| 7761 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7762 | .block_erase = spi_block_erase_c7, |
| 7763 | } |
| 7764 | }, |
| 7765 | .unlock = spi_disable_blockprotect, |
| 7766 | .write = spi_chip_write_256, |
| 7767 | .read = spi_chip_read, |
| 7768 | .voltage = {1650, 1950}, |
| 7769 | }, |
| 7770 | |
| 7771 | { |
| 7772 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7773 | .name = "IS25WP128", |
| 7774 | .bustype = BUS_SPI, |
| 7775 | .manufacture_id = ISSI_ID_SPI, |
| 7776 | .model_id = ISSI_IS25WP128, |
| 7777 | .total_size = 16384, |
| 7778 | .page_size = 256, |
| 7779 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7780 | /* QPI enable 0x35, disable 0xF5 */ |
| 7781 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7782 | .tested = TEST_OK_PREW, |
| 7783 | .probe = probe_spi_rdid, |
| 7784 | .probe_timing = TIMING_ZERO, |
| 7785 | .block_erasers = |
| 7786 | { |
| 7787 | { |
| 7788 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7789 | .block_erase = spi_block_erase_20, |
| 7790 | }, { |
| 7791 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7792 | .block_erase = spi_block_erase_d7, |
| 7793 | }, { |
| 7794 | .eraseblocks = { {32 * 1024, 512} }, |
| 7795 | .block_erase = spi_block_erase_52, |
| 7796 | }, { |
| 7797 | .eraseblocks = { {64 * 1024, 256} }, |
| 7798 | .block_erase = spi_block_erase_d8, |
| 7799 | }, { |
| 7800 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7801 | .block_erase = spi_block_erase_60, |
| 7802 | }, { |
| 7803 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7804 | .block_erase = spi_block_erase_c7, |
| 7805 | } |
| 7806 | }, |
| 7807 | .unlock = spi_disable_blockprotect, |
| 7808 | .write = spi_chip_write_256, |
| 7809 | .read = spi_chip_read, |
| 7810 | .voltage = {1650, 1950}, |
| 7811 | }, |
| 7812 | |
| 7813 | { |
| 7814 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7815 | .name = "IS25WP256", |
| 7816 | .bustype = BUS_SPI, |
| 7817 | .manufacture_id = ISSI_ID_SPI, |
| 7818 | .model_id = ISSI_IS25WP256, |
| 7819 | .total_size = 32768, |
| 7820 | .page_size = 256, |
| 7821 | /* supports SFDP */ |
| 7822 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
Nico Huber | ad55d5a | 2022-06-20 19:32:16 +0200 | [diff] [blame] | 7823 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 7824 | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7825 | .tested = TEST_OK_PREW, |
| 7826 | .probe = probe_spi_rdid, |
| 7827 | .probe_timing = TIMING_ZERO, |
| 7828 | .block_erasers = |
| 7829 | { |
| 7830 | { |
| 7831 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7832 | .block_erase = spi_block_erase_21, |
| 7833 | }, { |
| 7834 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7835 | .block_erase = spi_block_erase_20, |
| 7836 | /* could also use spi_block_erase_d7 */ |
| 7837 | }, { |
| 7838 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7839 | .block_erase = spi_block_erase_5c, |
| 7840 | }, { |
| 7841 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7842 | .block_erase = spi_block_erase_52, |
| 7843 | }, { |
| 7844 | .eraseblocks = { {64 * 1024, 512} }, |
| 7845 | .block_erase = spi_block_erase_dc, |
| 7846 | }, { |
| 7847 | .eraseblocks = { {64 * 1024, 512} }, |
| 7848 | .block_erase = spi_block_erase_d8, |
| 7849 | }, { |
| 7850 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7851 | .block_erase = spi_block_erase_60, |
| 7852 | }, { |
| 7853 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7854 | .block_erase = spi_block_erase_c7, |
| 7855 | } |
| 7856 | }, |
| 7857 | .unlock = spi_disable_blockprotect, |
| 7858 | .write = spi_chip_write_256, |
| 7859 | .read = spi_chip_read, |
| 7860 | .voltage = {1650, 1950}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 7861 | .prepare_access = spi_prepare_4ba, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7862 | }, |
| 7863 | |
| 7864 | { |
| 7865 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7866 | .name = "IS29GL064B", |
| 7867 | .bustype = BUS_PARALLEL, |
| 7868 | .manufacture_id = ISSI_ID, |
| 7869 | .model_id = ISSI_PMC_IS29GL064B, |
| 7870 | .total_size = 8192, |
| 7871 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7872 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7873 | .tested = TEST_UNTESTED, |
| 7874 | .probe = probe_jedec_29gl, |
| 7875 | .probe_timing = TIMING_ZERO, |
| 7876 | .block_erasers = |
| 7877 | { |
| 7878 | { |
| 7879 | .eraseblocks = { |
| 7880 | {8 * 1024, 8}, |
| 7881 | {64 * 1024, 127}, |
| 7882 | }, |
| 7883 | .block_erase = erase_sector_jedec, |
| 7884 | }, { |
| 7885 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7886 | .block_erase = erase_chip_block_jedec, |
| 7887 | }, |
| 7888 | }, |
| 7889 | .write = write_jedec_1, |
| 7890 | .read = read_memmapped, |
| 7891 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7892 | .prepare_access = prepare_memory_access, |
| 7893 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7894 | }, |
| 7895 | |
| 7896 | { |
| 7897 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7898 | .name = "IS29GL064H/L", |
| 7899 | .bustype = BUS_PARALLEL, |
| 7900 | .manufacture_id = ISSI_ID, |
| 7901 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7902 | .total_size = 8192, |
| 7903 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7904 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7905 | .tested = TEST_UNTESTED, |
| 7906 | .probe = probe_jedec_29gl, |
| 7907 | .probe_timing = TIMING_ZERO, |
| 7908 | .block_erasers = |
| 7909 | { |
| 7910 | { |
| 7911 | .eraseblocks = { {64 * 1024, 128} }, |
| 7912 | .block_erase = erase_sector_jedec, |
| 7913 | }, { |
| 7914 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7915 | .block_erase = erase_chip_block_jedec, |
| 7916 | }, |
| 7917 | }, |
| 7918 | .write = write_jedec_1, |
| 7919 | .read = read_memmapped, |
| 7920 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7921 | .prepare_access = prepare_memory_access, |
| 7922 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7923 | }, |
| 7924 | |
| 7925 | { |
| 7926 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7927 | .name = "IS29GL064T", |
| 7928 | .bustype = BUS_PARALLEL, |
| 7929 | .manufacture_id = ISSI_ID, |
| 7930 | .model_id = ISSI_PMC_IS29GL064T, |
| 7931 | .total_size = 8192, |
| 7932 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7933 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7934 | .tested = TEST_UNTESTED, |
| 7935 | .probe = probe_jedec_29gl, |
| 7936 | .probe_timing = TIMING_ZERO, |
| 7937 | .block_erasers = |
| 7938 | { |
| 7939 | { |
| 7940 | .eraseblocks = { |
| 7941 | {64 * 1024, 127}, |
| 7942 | {8 * 1024, 8}, |
| 7943 | }, |
| 7944 | .block_erase = erase_sector_jedec, |
| 7945 | }, { |
| 7946 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7947 | .block_erase = erase_chip_block_jedec, |
| 7948 | }, |
| 7949 | }, |
| 7950 | .write = write_jedec_1, |
| 7951 | .read = read_memmapped, |
| 7952 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7953 | .prepare_access = prepare_memory_access, |
| 7954 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7955 | }, |
| 7956 | |
| 7957 | { |
| 7958 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7959 | .name = "IS29GL128H/L", |
| 7960 | .bustype = BUS_PARALLEL, |
| 7961 | .manufacture_id = ISSI_ID, |
| 7962 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7963 | .total_size = 16384, |
| 7964 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7965 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7966 | .tested = TEST_UNTESTED, |
| 7967 | .probe = probe_jedec_29gl, |
| 7968 | .probe_timing = TIMING_ZERO, |
| 7969 | .block_erasers = |
| 7970 | { |
| 7971 | { |
| 7972 | .eraseblocks = { {128 * 1024, 128} }, |
| 7973 | .block_erase = erase_sector_jedec, |
| 7974 | }, { |
| 7975 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7976 | .block_erase = erase_chip_block_jedec, |
| 7977 | }, |
| 7978 | }, |
| 7979 | .write = write_jedec_1, |
| 7980 | .read = read_memmapped, |
| 7981 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7982 | .prepare_access = prepare_memory_access, |
| 7983 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7984 | }, |
| 7985 | |
| 7986 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7987 | .vendor = "Intel", |
| 7988 | .name = "25F160S33B8", |
| 7989 | .bustype = BUS_SPI, |
| 7990 | .manufacture_id = INTEL_ID, |
| 7991 | .model_id = INTEL_25F160S33B8, |
| 7992 | .total_size = 2048, |
| 7993 | .page_size = 256, |
| 7994 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7995 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7996 | .tested = TEST_UNTESTED, |
| 7997 | .probe = probe_spi_rdid, |
| 7998 | .probe_timing = TIMING_ZERO, |
| 7999 | .block_erasers = |
| 8000 | { |
| 8001 | { |
| 8002 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8003 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8004 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8005 | .eraseblocks = { |
| 8006 | {8 * 1024, 8}, |
| 8007 | {64 * 1024, 31} // inaccessible |
| 8008 | }, |
| 8009 | .block_erase = spi_block_erase_40, |
| 8010 | }, { */ |
| 8011 | .eraseblocks = { {64 * 1024, 32} }, |
| 8012 | .block_erase = spi_block_erase_d8, |
| 8013 | }, { |
| 8014 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8015 | .block_erase = spi_block_erase_c7, |
| 8016 | } |
| 8017 | }, |
| 8018 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8019 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8020 | .write = spi_chip_write_256, |
| 8021 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8022 | .voltage = {2700, 3600}, |
| 8023 | }, |
| 8024 | |
| 8025 | { |
| 8026 | .vendor = "Intel", |
| 8027 | .name = "25F160S33T8", |
| 8028 | .bustype = BUS_SPI, |
| 8029 | .manufacture_id = INTEL_ID, |
| 8030 | .model_id = INTEL_25F160S33T8, |
| 8031 | .total_size = 2048, |
| 8032 | .page_size = 256, |
| 8033 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8034 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8035 | .tested = TEST_UNTESTED, |
| 8036 | .probe = probe_spi_rdid, |
| 8037 | .probe_timing = TIMING_ZERO, |
| 8038 | .block_erasers = |
| 8039 | { |
| 8040 | { |
| 8041 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8042 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8043 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8044 | .eraseblocks = { |
| 8045 | {64 * 1024, 31}, // inaccessible |
| 8046 | {8 * 1024, 8} |
| 8047 | }, |
| 8048 | .block_erase = spi_block_erase_40, |
| 8049 | }, { */ |
| 8050 | .eraseblocks = { {64 * 1024, 32} }, |
| 8051 | .block_erase = spi_block_erase_d8, |
| 8052 | }, { |
| 8053 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8054 | .block_erase = spi_block_erase_c7, |
| 8055 | } |
| 8056 | }, |
| 8057 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8058 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8059 | .write = spi_chip_write_256, |
| 8060 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8061 | .voltage = {2700, 3600}, |
| 8062 | }, |
| 8063 | |
| 8064 | { |
| 8065 | .vendor = "Intel", |
| 8066 | .name = "25F320S33B8", |
| 8067 | .bustype = BUS_SPI, |
| 8068 | .manufacture_id = INTEL_ID, |
| 8069 | .model_id = INTEL_25F320S33B8, |
| 8070 | .total_size = 4096, |
| 8071 | .page_size = 256, |
| 8072 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8073 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8074 | .tested = TEST_UNTESTED, |
| 8075 | .probe = probe_spi_rdid, |
| 8076 | .probe_timing = TIMING_ZERO, |
| 8077 | .block_erasers = |
| 8078 | { |
| 8079 | { |
| 8080 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8081 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8082 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8083 | .eraseblocks = { |
| 8084 | {8 * 1024, 8}, |
| 8085 | {64 * 1024, 63} // inaccessible |
| 8086 | }, |
| 8087 | .block_erase = spi_block_erase_40, |
| 8088 | }, { */ |
| 8089 | .eraseblocks = { {64 * 1024, 64} }, |
| 8090 | .block_erase = spi_block_erase_d8, |
| 8091 | }, { |
| 8092 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8093 | .block_erase = spi_block_erase_c7, |
| 8094 | } |
| 8095 | }, |
| 8096 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8097 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8098 | .write = spi_chip_write_256, |
| 8099 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8100 | .voltage = {2700, 3600}, |
| 8101 | }, |
| 8102 | |
| 8103 | { |
| 8104 | .vendor = "Intel", |
| 8105 | .name = "25F320S33T8", |
| 8106 | .bustype = BUS_SPI, |
| 8107 | .manufacture_id = INTEL_ID, |
| 8108 | .model_id = INTEL_25F320S33T8, |
| 8109 | .total_size = 4096, |
| 8110 | .page_size = 256, |
| 8111 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8112 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8113 | .tested = TEST_UNTESTED, |
| 8114 | .probe = probe_spi_rdid, |
| 8115 | .probe_timing = TIMING_ZERO, |
| 8116 | .block_erasers = |
| 8117 | { |
| 8118 | { |
| 8119 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8120 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8121 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8122 | .eraseblocks = { |
| 8123 | {64 * 1024, 63}, // inaccessible |
| 8124 | {8 * 1024, 8} |
| 8125 | }, |
| 8126 | .block_erase = spi_block_erase_40, |
| 8127 | }, { */ |
| 8128 | .eraseblocks = { {64 * 1024, 64} }, |
| 8129 | .block_erase = spi_block_erase_d8, |
| 8130 | }, { |
| 8131 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8132 | .block_erase = spi_block_erase_c7, |
| 8133 | } |
| 8134 | }, |
| 8135 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8136 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8137 | .write = spi_chip_write_256, |
| 8138 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8139 | .voltage = {2700, 3600}, |
| 8140 | }, |
| 8141 | |
| 8142 | { |
| 8143 | .vendor = "Intel", |
| 8144 | .name = "25F640S33B8", |
| 8145 | .bustype = BUS_SPI, |
| 8146 | .manufacture_id = INTEL_ID, |
| 8147 | .model_id = INTEL_25F640S33B8, |
| 8148 | .total_size = 8192, |
| 8149 | .page_size = 256, |
| 8150 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8151 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Zoltan HERPAI | e0e8b2b | 2020-08-08 16:04:34 +0200 | [diff] [blame] | 8152 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8153 | .probe = probe_spi_rdid, |
| 8154 | .probe_timing = TIMING_ZERO, |
| 8155 | .block_erasers = |
| 8156 | { |
| 8157 | { |
| 8158 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8159 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8160 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8161 | .eraseblocks = { |
| 8162 | {8 * 1024, 8}, |
| 8163 | {64 * 1024, 127} // inaccessible |
| 8164 | }, |
| 8165 | .block_erase = spi_block_erase_40, |
| 8166 | }, { */ |
| 8167 | .eraseblocks = { {64 * 1024, 128} }, |
| 8168 | .block_erase = spi_block_erase_d8, |
| 8169 | }, { |
| 8170 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8171 | .block_erase = spi_block_erase_c7, |
| 8172 | } |
| 8173 | }, |
| 8174 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8175 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8176 | .write = spi_chip_write_256, |
| 8177 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8178 | .voltage = {2700, 3600}, |
| 8179 | }, |
| 8180 | |
| 8181 | { |
| 8182 | .vendor = "Intel", |
| 8183 | .name = "25F640S33T8", |
| 8184 | .bustype = BUS_SPI, |
| 8185 | .manufacture_id = INTEL_ID, |
| 8186 | .model_id = INTEL_25F640S33T8, |
| 8187 | .total_size = 8192, |
| 8188 | .page_size = 256, |
| 8189 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8190 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8191 | .tested = TEST_UNTESTED, |
| 8192 | .probe = probe_spi_rdid, |
| 8193 | .probe_timing = TIMING_ZERO, |
| 8194 | .block_erasers = |
| 8195 | { |
| 8196 | { |
| 8197 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8198 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8199 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8200 | .eraseblocks = { |
| 8201 | {64 * 1024, 127}, // inaccessible |
| 8202 | {8 * 1024, 8} |
| 8203 | }, |
| 8204 | .block_erase = spi_block_erase_40, |
| 8205 | }, { */ |
| 8206 | .eraseblocks = { {64 * 1024, 128} }, |
| 8207 | .block_erase = spi_block_erase_d8, |
| 8208 | }, { |
| 8209 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8210 | .block_erase = spi_block_erase_c7, |
| 8211 | } |
| 8212 | }, |
| 8213 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8214 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8215 | .write = spi_chip_write_256, |
| 8216 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8217 | .voltage = {2700, 3600}, |
| 8218 | }, |
| 8219 | |
| 8220 | { |
| 8221 | .vendor = "Intel", |
| 8222 | .name = "28F001BN/BX-B", |
| 8223 | .bustype = BUS_PARALLEL, |
| 8224 | .manufacture_id = INTEL_ID, |
| 8225 | .model_id = INTEL_28F001B, |
| 8226 | .total_size = 128, |
| 8227 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 8228 | .tested = TEST_UNTESTED, |
| 8229 | .probe = probe_jedec, |
| 8230 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8231 | .block_erasers = |
| 8232 | { |
| 8233 | { |
| 8234 | .eraseblocks = { |
| 8235 | {8 * 1024, 1}, |
| 8236 | {4 * 1024, 2}, |
| 8237 | {112 * 1024, 1}, |
| 8238 | }, |
| 8239 | .block_erase = erase_block_82802ab, |
| 8240 | }, |
| 8241 | }, |
| 8242 | .write = write_82802ab, |
| 8243 | .read = read_memmapped, |
| 8244 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8245 | .prepare_access = prepare_memory_access, |
| 8246 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8247 | }, |
| 8248 | |
| 8249 | { |
| 8250 | .vendor = "Intel", |
| 8251 | .name = "28F001BN/BX-T", |
| 8252 | .bustype = BUS_PARALLEL, |
| 8253 | .manufacture_id = INTEL_ID, |
| 8254 | .model_id = INTEL_28F001T, |
| 8255 | .total_size = 128, |
| 8256 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 8257 | .tested = TEST_OK_PREW, |
| 8258 | .probe = probe_jedec, |
| 8259 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8260 | .block_erasers = |
| 8261 | { |
| 8262 | { |
| 8263 | .eraseblocks = { |
| 8264 | {112 * 1024, 1}, |
| 8265 | {4 * 1024, 2}, |
| 8266 | {8 * 1024, 1}, |
| 8267 | }, |
| 8268 | .block_erase = erase_block_82802ab, |
| 8269 | }, |
| 8270 | }, |
| 8271 | .write = write_82802ab, |
| 8272 | .read = read_memmapped, |
| 8273 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8274 | .prepare_access = prepare_memory_access, |
| 8275 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8276 | }, |
| 8277 | |
| 8278 | { |
| 8279 | .vendor = "Intel", |
| 8280 | .name = "28F002BC/BL/BV/BX-T", |
| 8281 | .bustype = BUS_PARALLEL, |
| 8282 | .manufacture_id = INTEL_ID, |
| 8283 | .model_id = INTEL_28F002T, |
| 8284 | .total_size = 256, |
| 8285 | .page_size = 256 * 1024, |
| 8286 | .tested = TEST_OK_PRE, |
| 8287 | .probe = probe_82802ab, |
| 8288 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8289 | .block_erasers = |
| 8290 | { |
| 8291 | { |
| 8292 | .eraseblocks = { |
| 8293 | {128 * 1024, 1}, |
| 8294 | {96 * 1024, 1}, |
| 8295 | {8 * 1024, 2}, |
| 8296 | {16 * 1024, 1}, |
| 8297 | }, |
| 8298 | .block_erase = erase_block_82802ab, |
| 8299 | }, |
| 8300 | }, |
| 8301 | .write = write_82802ab, |
| 8302 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8303 | .prepare_access = prepare_memory_access, |
| 8304 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8305 | }, |
| 8306 | |
| 8307 | { |
| 8308 | .vendor = "Intel", |
| 8309 | .name = "28F004B5/BE/BV/BX-B", |
| 8310 | .bustype = BUS_PARALLEL, |
| 8311 | .manufacture_id = INTEL_ID, |
| 8312 | .model_id = INTEL_28F004B, |
| 8313 | .total_size = 512, |
| 8314 | .page_size = 128 * 1024, /* maximal block size */ |
| 8315 | .tested = TEST_UNTESTED, |
| 8316 | .probe = probe_82802ab, |
| 8317 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8318 | .block_erasers = |
| 8319 | { |
| 8320 | { |
| 8321 | .eraseblocks = { |
| 8322 | {16 * 1024, 1}, |
| 8323 | {8 * 1024, 2}, |
| 8324 | {96 * 1024, 1}, |
| 8325 | {128 * 1024, 3}, |
| 8326 | }, |
| 8327 | .block_erase = erase_block_82802ab, |
| 8328 | }, |
| 8329 | }, |
| 8330 | .write = write_82802ab, |
| 8331 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8332 | .prepare_access = prepare_memory_access, |
| 8333 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8334 | }, |
| 8335 | |
| 8336 | { |
| 8337 | .vendor = "Intel", |
| 8338 | .name = "28F004B5/BE/BV/BX-T", |
| 8339 | .bustype = BUS_PARALLEL, |
| 8340 | .manufacture_id = INTEL_ID, |
| 8341 | .model_id = INTEL_28F004T, |
| 8342 | .total_size = 512, |
| 8343 | .page_size = 128 * 1024, /* maximal block size */ |
| 8344 | .tested = TEST_UNTESTED, |
| 8345 | .probe = probe_82802ab, |
| 8346 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8347 | .block_erasers = |
| 8348 | { |
| 8349 | { |
| 8350 | .eraseblocks = { |
| 8351 | {128 * 1024, 3}, |
| 8352 | {96 * 1024, 1}, |
| 8353 | {8 * 1024, 2}, |
| 8354 | {16 * 1024, 1}, |
| 8355 | }, |
| 8356 | .block_erase = erase_block_82802ab, |
| 8357 | }, |
| 8358 | }, |
| 8359 | .write = write_82802ab, |
| 8360 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8361 | .prepare_access = prepare_memory_access, |
| 8362 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8363 | }, |
| 8364 | |
| 8365 | { |
| 8366 | .vendor = "Intel", |
| 8367 | .name = "28F008S3/S5/SC", |
| 8368 | .bustype = BUS_PARALLEL, |
| 8369 | .manufacture_id = INTEL_ID, |
| 8370 | .model_id = INTEL_28F004S3, |
| 8371 | .total_size = 512, |
| 8372 | .page_size = 256, |
| 8373 | .tested = TEST_UNTESTED, |
| 8374 | .probe = probe_82802ab, |
| 8375 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8376 | .block_erasers = |
| 8377 | { |
| 8378 | { |
| 8379 | .eraseblocks = { {64 * 1024, 8} }, |
| 8380 | .block_erase = erase_block_82802ab, |
| 8381 | }, |
| 8382 | }, |
| 8383 | .unlock = unlock_28f004s5, |
| 8384 | .write = write_82802ab, |
| 8385 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8386 | .prepare_access = prepare_memory_access, |
| 8387 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8388 | }, |
| 8389 | |
| 8390 | { |
| 8391 | .vendor = "Intel", |
| 8392 | .name = "28F400BV/BX/CE/CV-B", |
| 8393 | .bustype = BUS_PARALLEL, |
| 8394 | .manufacture_id = INTEL_ID, |
| 8395 | .model_id = INTEL_28F400B, |
| 8396 | .total_size = 512, |
| 8397 | .page_size = 128 * 1024, /* maximal block size */ |
| 8398 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8399 | .tested = TEST_UNTESTED, |
| 8400 | .probe = probe_82802ab, |
| 8401 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8402 | .block_erasers = |
| 8403 | { |
| 8404 | { |
| 8405 | .eraseblocks = { |
| 8406 | {16 * 1024, 1}, |
| 8407 | {8 * 1024, 2}, |
| 8408 | {96 * 1024, 1}, |
| 8409 | {128 * 1024, 3}, |
| 8410 | }, |
| 8411 | .block_erase = erase_block_82802ab, |
| 8412 | }, |
| 8413 | }, |
| 8414 | .write = write_82802ab, |
| 8415 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8416 | .prepare_access = prepare_memory_access, |
| 8417 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8418 | }, |
| 8419 | |
| 8420 | { |
| 8421 | .vendor = "Intel", |
| 8422 | .name = "28F400BV/BX/CE/CV-T", |
| 8423 | .bustype = BUS_PARALLEL, |
| 8424 | .manufacture_id = INTEL_ID, |
| 8425 | .model_id = INTEL_28F400T, |
| 8426 | .total_size = 512, |
| 8427 | .page_size = 128 * 1024, /* maximal block size */ |
| 8428 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8429 | .tested = TEST_UNTESTED, |
| 8430 | .probe = probe_82802ab, |
| 8431 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8432 | .block_erasers = |
| 8433 | { |
| 8434 | { |
| 8435 | .eraseblocks = { |
| 8436 | {128 * 1024, 3}, |
| 8437 | {96 * 1024, 1}, |
| 8438 | {8 * 1024, 2}, |
| 8439 | {16 * 1024, 1}, |
| 8440 | }, |
| 8441 | .block_erase = erase_block_82802ab, |
| 8442 | }, |
| 8443 | }, |
| 8444 | .write = write_82802ab, |
| 8445 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8446 | .prepare_access = prepare_memory_access, |
| 8447 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8448 | }, |
| 8449 | |
| 8450 | { |
| 8451 | .vendor = "Intel", |
| 8452 | .name = "82802AB", |
| 8453 | .bustype = BUS_FWH, |
| 8454 | .manufacture_id = INTEL_ID, |
| 8455 | .model_id = INTEL_82802AB, |
| 8456 | .total_size = 512, |
| 8457 | .page_size = 64 * 1024, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 8458 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8459 | .probe = probe_82802ab, |
| 8460 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8461 | .block_erasers = |
| 8462 | { |
| 8463 | { |
| 8464 | .eraseblocks = { {64 * 1024, 8} }, |
| 8465 | .block_erase = erase_block_82802ab, |
| 8466 | }, |
| 8467 | }, |
| 8468 | .unlock = unlock_regspace2_uniform_64k, |
| 8469 | .write = write_82802ab, |
| 8470 | .read = read_memmapped, |
| 8471 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 8472 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8473 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8474 | }, |
| 8475 | |
| 8476 | { |
| 8477 | .vendor = "Intel", |
| 8478 | .name = "82802AC", |
| 8479 | .bustype = BUS_FWH, |
| 8480 | .manufacture_id = INTEL_ID, |
| 8481 | .model_id = INTEL_82802AC, |
| 8482 | .total_size = 1024, |
| 8483 | .page_size = 64 * 1024, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8484 | .tested = TEST_OK_PR, |
| 8485 | .probe = probe_82802ab, |
| 8486 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8487 | .block_erasers = |
| 8488 | { |
| 8489 | { |
| 8490 | .eraseblocks = { {64 * 1024, 16} }, |
| 8491 | .block_erase = erase_block_82802ab, |
| 8492 | }, |
| 8493 | }, |
| 8494 | .unlock = unlock_regspace2_uniform_64k, |
| 8495 | .write = write_82802ab, |
| 8496 | .read = read_memmapped, |
| 8497 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 8498 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8499 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8500 | }, |
| 8501 | |
| 8502 | { |
| 8503 | .vendor = "Macronix", |
| 8504 | .name = "MX23L12854", |
| 8505 | .bustype = BUS_SPI, |
| 8506 | .manufacture_id = MACRONIX_ID, |
| 8507 | .model_id = MACRONIX_MX23L12854, |
| 8508 | .total_size = 16384, |
| 8509 | .page_size = 256, |
| 8510 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8511 | .probe = probe_spi_rdid, |
| 8512 | .probe_timing = TIMING_ZERO, |
| 8513 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 8514 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8515 | .voltage = {3000, 3600}, |
| 8516 | }, |
| 8517 | |
| 8518 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8519 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8520 | .name = "MX23L1654", |
| 8521 | .bustype = BUS_SPI, |
| 8522 | .manufacture_id = MACRONIX_ID, |
| 8523 | .model_id = MACRONIX_MX23L1654, |
| 8524 | .total_size = 2048, |
| 8525 | .page_size = 256, |
| 8526 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8527 | .probe = probe_spi_rdid, |
| 8528 | .probe_timing = TIMING_ZERO, |
| 8529 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 8530 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8531 | .voltage = {3000, 3600}, |
| 8532 | }, |
| 8533 | |
| 8534 | { |
| 8535 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8536 | .name = "MX23L3254", |
| 8537 | .bustype = BUS_SPI, |
| 8538 | .manufacture_id = MACRONIX_ID, |
| 8539 | .model_id = MACRONIX_MX23L3254, |
| 8540 | .total_size = 4096, |
| 8541 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 8542 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8543 | .probe = probe_spi_rdid, |
| 8544 | .probe_timing = TIMING_ZERO, |
| 8545 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 8546 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8547 | .voltage = {3000, 3600}, |
| 8548 | }, |
| 8549 | |
| 8550 | { |
| 8551 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8552 | .name = "MX23L6454", |
| 8553 | .bustype = BUS_SPI, |
| 8554 | .manufacture_id = MACRONIX_ID, |
| 8555 | .model_id = MACRONIX_MX23L6454, |
| 8556 | .total_size = 8192, |
| 8557 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8558 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8559 | .probe = probe_spi_rdid, |
| 8560 | .probe_timing = TIMING_ZERO, |
| 8561 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 8562 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8563 | .voltage = {3000, 3600}, |
| 8564 | }, |
| 8565 | |
| 8566 | { |
| 8567 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8568 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8569 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8570 | .manufacture_id = MACRONIX_ID, |
| 8571 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8572 | .total_size = 128, |
| 8573 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8574 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8575 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 8576 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8577 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8578 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8579 | .block_erasers = |
| 8580 | { |
| 8581 | { |
| 8582 | .eraseblocks = { {4 * 1024, 32} }, |
| 8583 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8584 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8585 | .eraseblocks = { {64 * 1024, 2} }, |
| 8586 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8587 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8588 | .eraseblocks = { {128 * 1024, 1} }, |
| 8589 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8590 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8591 | .eraseblocks = { {128 * 1024, 1} }, |
| 8592 | .block_erase = spi_block_erase_c7, |
| 8593 | }, |
| 8594 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8595 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8596 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8597 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8598 | .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] | 8599 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8600 | }, |
| 8601 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8602 | { |
| 8603 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8604 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8605 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8606 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8607 | .model_id = MACRONIX_MX25L12805D, |
| 8608 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8609 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8610 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8611 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8612 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8613 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8614 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8615 | .block_erasers = |
| 8616 | { |
| 8617 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8618 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8619 | .block_erase = spi_block_erase_20, |
| 8620 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8621 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8622 | .block_erase = spi_block_erase_d8, |
| 8623 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8624 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8625 | .block_erase = spi_block_erase_60, |
| 8626 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8627 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8628 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8629 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8630 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8631 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8632 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8633 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8634 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8635 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8636 | }, |
| 8637 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8638 | { |
| 8639 | .vendor = "Macronix", |
Tao Xia | 571f6ad | 2021-07-21 16:41:53 +0800 | [diff] [blame] | 8640 | .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8641 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8642 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8643 | .model_id = MACRONIX_MX25L12805D, |
| 8644 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8645 | .page_size = 256, |
Tao Xia | 571f6ad | 2021-07-21 16:41:53 +0800 | [diff] [blame] | 8646 | /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8647 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 8648 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8649 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8650 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8651 | .block_erasers = |
| 8652 | { |
| 8653 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8654 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8655 | .block_erase = spi_block_erase_20, |
| 8656 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8657 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8658 | .block_erase = spi_block_erase_52, |
| 8659 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8660 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8661 | .block_erase = spi_block_erase_d8, |
| 8662 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8663 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8664 | .block_erase = spi_block_erase_60, |
| 8665 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8666 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8667 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8668 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8669 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8670 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8671 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8672 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8673 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8674 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8675 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8676 | }, |
| 8677 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8678 | { |
| 8679 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8680 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8681 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8682 | .manufacture_id = MACRONIX_ID, |
| 8683 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8684 | .total_size = 2048, |
| 8685 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8686 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 8687 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8688 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8689 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8690 | .block_erasers = |
| 8691 | { |
| 8692 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8693 | .eraseblocks = { {64 * 1024, 32} }, |
| 8694 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8695 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8696 | .eraseblocks = { {64 * 1024, 32} }, |
| 8697 | .block_erase = spi_block_erase_d8, |
| 8698 | }, { |
| 8699 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8700 | .block_erase = spi_block_erase_60, |
| 8701 | }, { |
| 8702 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8703 | .block_erase = spi_block_erase_c7, |
| 8704 | }, |
| 8705 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8706 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8707 | .unlock = spi_disable_blockprotect, |
| 8708 | .write = spi_chip_write_256, |
| 8709 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8710 | .voltage = {2700, 3600}, |
| 8711 | }, |
| 8712 | |
| 8713 | { |
| 8714 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8715 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8716 | .bustype = BUS_SPI, |
| 8717 | .manufacture_id = MACRONIX_ID, |
| 8718 | .model_id = MACRONIX_MX25L1605, |
| 8719 | .total_size = 2048, |
| 8720 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8721 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8722 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8723 | .tested = TEST_OK_PREW, |
| 8724 | .probe = probe_spi_rdid, |
| 8725 | .probe_timing = TIMING_ZERO, |
| 8726 | .block_erasers = |
| 8727 | { |
| 8728 | { |
| 8729 | .eraseblocks = { {4 * 1024, 512} }, |
| 8730 | .block_erase = spi_block_erase_20, |
| 8731 | }, { |
| 8732 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8733 | .block_erase = spi_block_erase_52, |
| 8734 | }, { |
| 8735 | .eraseblocks = { {64 * 1024, 32} }, |
| 8736 | .block_erase = spi_block_erase_d8, |
| 8737 | }, { |
| 8738 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8739 | .block_erase = spi_block_erase_60, |
| 8740 | }, { |
| 8741 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8742 | .block_erase = spi_block_erase_c7, |
| 8743 | }, |
| 8744 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8745 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8746 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8747 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8748 | .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] | 8749 | .voltage = {2700, 3600}, |
| 8750 | }, |
| 8751 | |
| 8752 | { |
| 8753 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8754 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8755 | .bustype = BUS_SPI, |
| 8756 | .manufacture_id = MACRONIX_ID, |
| 8757 | .model_id = MACRONIX_MX25L1605, |
| 8758 | .total_size = 2048, |
| 8759 | .page_size = 256, |
| 8760 | .feature_bits = FEATURE_WRSR_WREN, |
| 8761 | .tested = TEST_OK_PREW, |
| 8762 | .probe = probe_spi_rdid, |
| 8763 | .probe_timing = TIMING_ZERO, |
| 8764 | .block_erasers = |
| 8765 | { |
| 8766 | { |
| 8767 | .eraseblocks = { {4 * 1024, 512} }, |
| 8768 | .block_erase = spi_block_erase_20, |
| 8769 | }, { |
| 8770 | .eraseblocks = { {64 * 1024, 32} }, |
| 8771 | .block_erase = spi_block_erase_d8, |
| 8772 | }, { |
| 8773 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8774 | .block_erase = spi_block_erase_60, |
| 8775 | }, { |
| 8776 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8777 | .block_erase = spi_block_erase_c7, |
| 8778 | }, |
| 8779 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8780 | .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] | 8781 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8782 | .write = spi_chip_write_256, |
| 8783 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8784 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8785 | }, |
| 8786 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8787 | { |
| 8788 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8789 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8790 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8791 | .manufacture_id = MACRONIX_ID, |
| 8792 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8793 | .total_size = 2048, |
| 8794 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8795 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8796 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | c205487 | 2021-01-15 18:57:32 +0100 | [diff] [blame] | 8797 | .tested = TEST_OK_PREW, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8798 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8799 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8800 | .block_erasers = |
| 8801 | { |
| 8802 | { |
| 8803 | .eraseblocks = { {4 * 1024, 512} }, |
| 8804 | .block_erase = spi_block_erase_20, |
| 8805 | }, { |
| 8806 | .eraseblocks = { {64 * 1024, 32} }, |
| 8807 | .block_erase = spi_block_erase_d8, |
| 8808 | }, { |
| 8809 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8810 | .block_erase = spi_block_erase_60, |
| 8811 | }, { |
| 8812 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8813 | .block_erase = spi_block_erase_c7, |
| 8814 | } |
| 8815 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8816 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8817 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8818 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8819 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8820 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8821 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 8822 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8823 | { |
| 8824 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8825 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8826 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8827 | .manufacture_id = MACRONIX_ID, |
| 8828 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8829 | .total_size = 2048, |
| 8830 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8831 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8832 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8833 | .tested = TEST_UNTESTED, |
| 8834 | .probe = probe_spi_rdid, |
| 8835 | .probe_timing = TIMING_ZERO, |
| 8836 | .block_erasers = |
| 8837 | { |
| 8838 | { |
| 8839 | .eraseblocks = { {4 * 1024, 512} }, |
| 8840 | .block_erase = spi_block_erase_20, |
| 8841 | }, { |
| 8842 | .eraseblocks = { {64 * 1024, 32} }, |
| 8843 | .block_erase = spi_block_erase_d8, |
| 8844 | }, { |
| 8845 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8846 | .block_erase = spi_block_erase_60, |
| 8847 | }, { |
| 8848 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8849 | .block_erase = spi_block_erase_c7, |
| 8850 | } |
| 8851 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8852 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8853 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8854 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8855 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8856 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8857 | }, |
| 8858 | |
| 8859 | { |
| 8860 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8861 | .name = "MX25L2005(C)/MX25L2006E", |
| 8862 | .bustype = BUS_SPI, |
| 8863 | .manufacture_id = MACRONIX_ID, |
| 8864 | .model_id = MACRONIX_MX25L2005, |
| 8865 | .total_size = 256, |
| 8866 | .page_size = 256, |
| 8867 | .feature_bits = FEATURE_WRSR_WREN, |
| 8868 | .tested = TEST_OK_PREW, |
| 8869 | .probe = probe_spi_rdid, |
| 8870 | .probe_timing = TIMING_ZERO, |
| 8871 | .block_erasers = |
| 8872 | { |
| 8873 | { |
| 8874 | .eraseblocks = { {4 * 1024, 64} }, |
| 8875 | .block_erase = spi_block_erase_20, |
| 8876 | }, { |
| 8877 | .eraseblocks = { {64 * 1024, 4} }, |
| 8878 | .block_erase = spi_block_erase_52, |
| 8879 | }, { |
| 8880 | .eraseblocks = { {64 * 1024, 4} }, |
| 8881 | .block_erase = spi_block_erase_d8, |
| 8882 | }, { |
| 8883 | .eraseblocks = { {256 * 1024, 1} }, |
| 8884 | .block_erase = spi_block_erase_60, |
| 8885 | }, { |
| 8886 | .eraseblocks = { {256 * 1024, 1} }, |
| 8887 | .block_erase = spi_block_erase_c7, |
| 8888 | }, |
| 8889 | }, |
| 8890 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8891 | .unlock = spi_disable_blockprotect, |
| 8892 | .write = spi_chip_write_256, |
| 8893 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8894 | .voltage = {2700, 3600}, |
| 8895 | }, |
| 8896 | |
| 8897 | { |
| 8898 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 8899 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8900 | .bustype = BUS_SPI, |
| 8901 | .manufacture_id = MACRONIX_ID, |
| 8902 | .model_id = MACRONIX_MX25L25635F, |
| 8903 | .total_size = 32768, |
| 8904 | .page_size = 256, |
| 8905 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8906 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8907 | .tested = TEST_OK_PREW, |
| 8908 | .probe = probe_spi_rdid, |
| 8909 | .probe_timing = TIMING_ZERO, |
| 8910 | .block_erasers = |
| 8911 | { |
| 8912 | { |
| 8913 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8914 | .block_erase = spi_block_erase_21, |
| 8915 | }, { |
| 8916 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8917 | .block_erase = spi_block_erase_20, |
| 8918 | }, { |
| 8919 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8920 | .block_erase = spi_block_erase_5c, |
| 8921 | }, { |
| 8922 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8923 | .block_erase = spi_block_erase_52, |
| 8924 | }, { |
| 8925 | .eraseblocks = { {64 * 1024, 512} }, |
| 8926 | .block_erase = spi_block_erase_dc, |
| 8927 | }, { |
| 8928 | .eraseblocks = { {64 * 1024, 512} }, |
| 8929 | .block_erase = spi_block_erase_d8, |
| 8930 | }, { |
| 8931 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8932 | .block_erase = spi_block_erase_60, |
| 8933 | }, { |
| 8934 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8935 | .block_erase = spi_block_erase_c7, |
| 8936 | } |
| 8937 | }, |
| 8938 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8939 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8940 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8941 | .write = spi_chip_write_256, |
| 8942 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8943 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 8944 | .prepare_access = spi_prepare_4ba, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8945 | }, |
| 8946 | |
| 8947 | { |
| 8948 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8949 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8950 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8951 | .manufacture_id = MACRONIX_ID, |
| 8952 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8953 | .total_size = 4096, |
| 8954 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8955 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 8956 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8957 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8958 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8959 | .block_erasers = |
| 8960 | { |
| 8961 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8962 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8963 | .block_erase = spi_block_erase_20, |
| 8964 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8965 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8966 | .block_erase = spi_block_erase_d8, |
| 8967 | }, { |
| 8968 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8969 | .block_erase = spi_block_erase_60, |
| 8970 | }, { |
| 8971 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8972 | .block_erase = spi_block_erase_c7, |
| 8973 | }, |
| 8974 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8975 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8976 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8977 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8978 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8979 | .voltage = {2700, 3600}, |
| 8980 | }, |
| 8981 | |
| 8982 | { |
| 8983 | .vendor = "Macronix", |
| 8984 | .name = "MX25L3205D/MX25L3208D", |
| 8985 | .bustype = BUS_SPI, |
| 8986 | .manufacture_id = MACRONIX_ID, |
| 8987 | .model_id = MACRONIX_MX25L3205, |
| 8988 | .total_size = 4096, |
| 8989 | .page_size = 256, |
| 8990 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8991 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8992 | .tested = TEST_OK_PREW, |
| 8993 | .probe = probe_spi_rdid, |
| 8994 | .probe_timing = TIMING_ZERO, |
| 8995 | .block_erasers = |
| 8996 | { |
| 8997 | { |
| 8998 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8999 | .block_erase = spi_block_erase_20, |
| 9000 | }, { |
| 9001 | .eraseblocks = { {64 * 1024, 64} }, |
| 9002 | .block_erase = spi_block_erase_d8, |
| 9003 | }, { |
| 9004 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9005 | .block_erase = spi_block_erase_60, |
| 9006 | }, { |
| 9007 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9008 | .block_erase = spi_block_erase_c7, |
| 9009 | }, |
| 9010 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9011 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9012 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9013 | .write = spi_chip_write_256, |
| 9014 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 9015 | .voltage = {2700, 3600}, |
| 9016 | }, |
| 9017 | |
| 9018 | { |
| 9019 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9020 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9021 | .bustype = BUS_SPI, |
| 9022 | .manufacture_id = MACRONIX_ID, |
| 9023 | .model_id = MACRONIX_MX25L3205, |
| 9024 | .total_size = 4096, |
| 9025 | .page_size = 256, |
| 9026 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 9027 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9028 | .tested = TEST_OK_PREW, |
| 9029 | .probe = probe_spi_rdid, |
| 9030 | .probe_timing = TIMING_ZERO, |
| 9031 | .block_erasers = |
| 9032 | { |
| 9033 | { |
| 9034 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9035 | .block_erase = spi_block_erase_20, |
| 9036 | }, { |
| 9037 | .eraseblocks = { {64 * 1024, 64} }, |
| 9038 | .block_erase = spi_block_erase_d8, |
| 9039 | }, { |
| 9040 | .eraseblocks = { {64 * 1024, 64} }, |
| 9041 | .block_erase = spi_block_erase_52, |
| 9042 | }, { |
| 9043 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9044 | .block_erase = spi_block_erase_60, |
| 9045 | }, { |
| 9046 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9047 | .block_erase = spi_block_erase_c7, |
| 9048 | }, |
| 9049 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9050 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9051 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9052 | .write = spi_chip_write_256, |
| 9053 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9054 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9055 | }, |
| 9056 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9057 | { |
| 9058 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9059 | .name = "MX25L3235D", |
| 9060 | .bustype = BUS_SPI, |
| 9061 | .manufacture_id = MACRONIX_ID, |
| 9062 | .model_id = MACRONIX_MX25L3235D, |
| 9063 | .total_size = 4096, |
| 9064 | .page_size = 256, |
| 9065 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 9066 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9067 | .tested = TEST_UNTESTED, |
| 9068 | .probe = probe_spi_rdid, |
| 9069 | .probe_timing = TIMING_ZERO, |
| 9070 | .block_erasers = |
| 9071 | { |
| 9072 | { |
| 9073 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9074 | .block_erase = spi_block_erase_20, |
| 9075 | }, { |
| 9076 | .eraseblocks = { {64 * 1024, 64} }, |
| 9077 | .block_erase = spi_block_erase_d8, |
| 9078 | }, { |
| 9079 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9080 | .block_erase = spi_block_erase_60, |
| 9081 | }, { |
| 9082 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9083 | .block_erase = spi_block_erase_c7, |
| 9084 | } |
| 9085 | }, |
| 9086 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9087 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9088 | .write = spi_chip_write_256, |
| 9089 | .read = spi_chip_read, |
| 9090 | .voltage = {2700, 3600}, |
| 9091 | }, |
| 9092 | |
| 9093 | { |
| 9094 | .vendor = "Macronix", |
Nico Huber | b6683e0 | 2021-04-21 13:04:29 +0200 | [diff] [blame] | 9095 | .name = "MX25L3233F/MX25L3273E", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9096 | .bustype = BUS_SPI, |
| 9097 | .manufacture_id = MACRONIX_ID, |
| 9098 | .model_id = MACRONIX_MX25L3205, |
| 9099 | .total_size = 4096, |
| 9100 | .page_size = 256, |
Nico Huber | 6e69e2b | 2021-04-21 13:03:13 +0200 | [diff] [blame] | 9101 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9102 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9103 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9104 | .probe = probe_spi_rdid, |
| 9105 | .probe_timing = TIMING_ZERO, |
| 9106 | .block_erasers = |
| 9107 | { |
| 9108 | { |
| 9109 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9110 | .block_erase = spi_block_erase_20, |
| 9111 | }, { |
| 9112 | .eraseblocks = { {32 * 1024, 128} }, |
| 9113 | .block_erase = spi_block_erase_52, |
| 9114 | }, { |
| 9115 | .eraseblocks = { {64 * 1024, 64} }, |
| 9116 | .block_erase = spi_block_erase_d8, |
| 9117 | }, { |
| 9118 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9119 | .block_erase = spi_block_erase_60, |
| 9120 | }, { |
| 9121 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9122 | .block_erase = spi_block_erase_c7, |
| 9123 | }, |
| 9124 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9125 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9126 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9127 | .write = spi_chip_write_256, |
| 9128 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Nico Huber | b6683e0 | 2021-04-21 13:04:29 +0200 | [diff] [blame] | 9129 | .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */ |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9130 | }, |
| 9131 | |
| 9132 | { |
| 9133 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9134 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9135 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9136 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9137 | .model_id = MACRONIX_MX25L4005, |
| 9138 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9139 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9140 | .feature_bits = FEATURE_WRSR_WREN, |
| 9141 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9142 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9143 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9144 | .block_erasers = |
| 9145 | { |
| 9146 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9147 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9148 | .block_erase = spi_block_erase_20, |
| 9149 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9150 | .eraseblocks = { {64 * 1024, 8} }, |
| 9151 | .block_erase = spi_block_erase_52, |
| 9152 | }, { |
| 9153 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9154 | .block_erase = spi_block_erase_d8, |
| 9155 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9156 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9157 | .block_erase = spi_block_erase_60, |
| 9158 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9159 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9160 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9161 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9162 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9163 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9164 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9165 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9166 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9167 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9168 | }, |
| 9169 | |
| 9170 | { |
| 9171 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9172 | .name = "MX25L512(E)/MX25V512(C)", |
| 9173 | .bustype = BUS_SPI, |
| 9174 | .manufacture_id = MACRONIX_ID, |
| 9175 | .model_id = MACRONIX_MX25L512, |
| 9176 | .total_size = 64, |
| 9177 | .page_size = 256, |
| 9178 | /* MX25L512E supports SFDP */ |
| 9179 | .feature_bits = FEATURE_WRSR_WREN, |
| 9180 | .tested = TEST_OK_PREW, |
| 9181 | .probe = probe_spi_rdid, |
| 9182 | .probe_timing = TIMING_ZERO, |
| 9183 | .block_erasers = |
| 9184 | { |
| 9185 | { |
| 9186 | .eraseblocks = { {4 * 1024, 16} }, |
| 9187 | .block_erase = spi_block_erase_20, |
| 9188 | }, { |
| 9189 | .eraseblocks = { {64 * 1024, 1} }, |
| 9190 | .block_erase = spi_block_erase_52, |
| 9191 | }, { |
| 9192 | .eraseblocks = { {64 * 1024, 1} }, |
| 9193 | .block_erase = spi_block_erase_d8, |
| 9194 | }, { |
| 9195 | .eraseblocks = { {64 * 1024, 1} }, |
| 9196 | .block_erase = spi_block_erase_60, |
| 9197 | }, { |
| 9198 | .eraseblocks = { {64 * 1024, 1} }, |
| 9199 | .block_erase = spi_block_erase_c7, |
| 9200 | }, |
| 9201 | }, |
| 9202 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9203 | .unlock = spi_disable_blockprotect, |
| 9204 | .write = spi_chip_write_256, |
| 9205 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 9206 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 9207 | }, |
| 9208 | |
| 9209 | { |
| 9210 | .vendor = "Macronix", |
Steve Markgraf | 7e6f3a7 | 2020-07-13 18:22:56 +0200 | [diff] [blame] | 9211 | .name = "MX25L5121E", |
| 9212 | .bustype = BUS_SPI, |
| 9213 | .manufacture_id = MACRONIX_ID, |
| 9214 | .model_id = MACRONIX_MX25L5121E, |
| 9215 | .total_size = 64, |
| 9216 | .page_size = 32, |
| 9217 | .feature_bits = FEATURE_WRSR_WREN, |
| 9218 | .tested = TEST_OK_PREW, |
| 9219 | .probe = probe_spi_rdid, |
| 9220 | .probe_timing = TIMING_ZERO, |
| 9221 | .block_erasers = |
| 9222 | { |
| 9223 | { |
| 9224 | .eraseblocks = { {4 * 1024, 16} }, |
| 9225 | .block_erase = spi_block_erase_20, |
| 9226 | }, { |
| 9227 | .eraseblocks = { {64 * 1024, 1} }, |
| 9228 | .block_erase = spi_block_erase_52, |
| 9229 | }, { |
| 9230 | .eraseblocks = { {64 * 1024, 1} }, |
| 9231 | .block_erase = spi_block_erase_d8, |
| 9232 | }, { |
| 9233 | .eraseblocks = { {64 * 1024, 1} }, |
| 9234 | .block_erase = spi_block_erase_60, |
| 9235 | }, { |
| 9236 | .eraseblocks = { {64 * 1024, 1} }, |
| 9237 | .block_erase = spi_block_erase_c7, |
| 9238 | }, |
| 9239 | }, |
| 9240 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9241 | .unlock = spi_disable_blockprotect, |
| 9242 | .write = spi_chip_write_256, |
| 9243 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9244 | .voltage = {2700, 3600}, |
| 9245 | }, |
| 9246 | |
| 9247 | { |
| 9248 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9249 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9250 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9251 | .manufacture_id = MACRONIX_ID, |
| 9252 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9253 | .total_size = 8192, |
| 9254 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9255 | /* Has an additional 512B EEPROM sector */ |
| 9256 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 9257 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9258 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9259 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9260 | .block_erasers = |
| 9261 | { |
| 9262 | { |
| 9263 | .eraseblocks = { {64 * 1024, 128} }, |
| 9264 | .block_erase = spi_block_erase_20, |
| 9265 | }, { |
| 9266 | .eraseblocks = { {64 * 1024, 128} }, |
| 9267 | .block_erase = spi_block_erase_d8, |
| 9268 | }, { |
| 9269 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9270 | .block_erase = spi_block_erase_60, |
| 9271 | }, { |
| 9272 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9273 | .block_erase = spi_block_erase_c7, |
| 9274 | } |
| 9275 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9276 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9277 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9278 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9279 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9280 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9281 | }, |
| 9282 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9283 | { |
| 9284 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9285 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9286 | .bustype = BUS_SPI, |
| 9287 | .manufacture_id = MACRONIX_ID, |
| 9288 | .model_id = MACRONIX_MX25L6405, |
| 9289 | .total_size = 8192, |
| 9290 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9291 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9292 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9293 | .tested = TEST_OK_PREW, |
| 9294 | .probe = probe_spi_rdid, |
| 9295 | .probe_timing = TIMING_ZERO, |
| 9296 | .block_erasers = |
| 9297 | { |
| 9298 | { |
| 9299 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9300 | .block_erase = spi_block_erase_20, |
| 9301 | }, { |
| 9302 | .eraseblocks = { {64 * 1024, 128} }, |
| 9303 | .block_erase = spi_block_erase_d8, |
| 9304 | }, { |
| 9305 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9306 | .block_erase = spi_block_erase_60, |
| 9307 | }, { |
| 9308 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9309 | .block_erase = spi_block_erase_c7, |
| 9310 | } |
| 9311 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9312 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9313 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9314 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9315 | .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] | 9316 | .voltage = {2700, 3600}, |
| 9317 | }, |
| 9318 | |
| 9319 | { |
| 9320 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9321 | .name = "MX25L6406E/MX25L6408E", |
| 9322 | .bustype = BUS_SPI, |
| 9323 | .manufacture_id = MACRONIX_ID, |
| 9324 | .model_id = MACRONIX_MX25L6405, |
| 9325 | .total_size = 8192, |
| 9326 | .page_size = 256, |
| 9327 | /* MX25L6406E supports SFDP */ |
| 9328 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 9329 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9330 | .tested = TEST_OK_PREW, |
| 9331 | .probe = probe_spi_rdid, |
| 9332 | .probe_timing = TIMING_ZERO, |
| 9333 | .block_erasers = |
| 9334 | { |
| 9335 | { |
| 9336 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9337 | .block_erase = spi_block_erase_20, |
| 9338 | }, { |
| 9339 | .eraseblocks = { {64 * 1024, 128} }, |
| 9340 | .block_erase = spi_block_erase_52, |
| 9341 | }, { |
| 9342 | .eraseblocks = { {64 * 1024, 128} }, |
| 9343 | .block_erase = spi_block_erase_d8, |
| 9344 | }, { |
| 9345 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9346 | .block_erase = spi_block_erase_60, |
| 9347 | }, { |
| 9348 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9349 | .block_erase = spi_block_erase_c7, |
| 9350 | } |
| 9351 | }, |
| 9352 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 9353 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9354 | .write = spi_chip_write_256, |
| 9355 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 9356 | .voltage = {2700, 3600}, |
| 9357 | }, |
| 9358 | |
| 9359 | { |
| 9360 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 9361 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9362 | .bustype = BUS_SPI, |
| 9363 | .manufacture_id = MACRONIX_ID, |
| 9364 | .model_id = MACRONIX_MX25L6405, |
| 9365 | .total_size = 8192, |
| 9366 | .page_size = 256, |
| 9367 | /* supports SFDP */ |
| 9368 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9369 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9370 | .tested = TEST_OK_PREW, |
| 9371 | .probe = probe_spi_rdid, |
| 9372 | .probe_timing = TIMING_ZERO, |
| 9373 | .block_erasers = |
| 9374 | { |
| 9375 | { |
| 9376 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9377 | .block_erase = spi_block_erase_20, |
| 9378 | }, { |
| 9379 | .eraseblocks = { {32 * 1024, 256} }, |
| 9380 | .block_erase = spi_block_erase_52, |
| 9381 | }, { |
| 9382 | .eraseblocks = { {64 * 1024, 128} }, |
| 9383 | .block_erase = spi_block_erase_d8, |
| 9384 | }, { |
| 9385 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9386 | .block_erase = spi_block_erase_60, |
| 9387 | }, { |
| 9388 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9389 | .block_erase = spi_block_erase_c7, |
| 9390 | } |
| 9391 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9392 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9393 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9394 | .write = spi_chip_write_256, |
| 9395 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9396 | .voltage = {2700, 3600}, |
| 9397 | }, |
| 9398 | |
| 9399 | { |
| 9400 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9401 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9402 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9403 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9404 | .model_id = MACRONIX_MX25L6495F, |
| 9405 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9406 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9407 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9408 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9409 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9410 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9411 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9412 | .block_erasers = |
| 9413 | { |
| 9414 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9415 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9416 | .block_erase = spi_block_erase_20, |
| 9417 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9418 | .eraseblocks = { {32 * 1024, 256} }, |
| 9419 | .block_erase = spi_block_erase_52, |
| 9420 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9421 | .eraseblocks = { {64 * 1024, 128} }, |
| 9422 | .block_erase = spi_block_erase_d8, |
| 9423 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9424 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9425 | .block_erase = spi_block_erase_60, |
| 9426 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9427 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9428 | .block_erase = spi_block_erase_c7, |
| 9429 | } |
| 9430 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9431 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9432 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9433 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9434 | .voltage = {2700, 3600}, |
| 9435 | }, |
| 9436 | |
| 9437 | { |
| 9438 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9439 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9440 | .bustype = BUS_SPI, |
| 9441 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9442 | .model_id = MACRONIX_MX25L8005, |
| 9443 | .total_size = 1024, |
| 9444 | .page_size = 256, |
| 9445 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 9446 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
| 9447 | .feature_bits = FEATURE_WRSR_WREN, |
| 9448 | .tested = TEST_OK_PREW, |
| 9449 | .probe = probe_spi_rdid, |
| 9450 | .probe_timing = TIMING_ZERO, |
| 9451 | .block_erasers = |
| 9452 | { |
| 9453 | { |
| 9454 | .eraseblocks = { {4 * 1024, 256} }, |
| 9455 | .block_erase = spi_block_erase_20, |
| 9456 | }, { |
| 9457 | .eraseblocks = { {64 * 1024, 16} }, |
| 9458 | .block_erase = spi_block_erase_52, |
| 9459 | }, { |
| 9460 | .eraseblocks = { {64 * 1024, 16} }, |
| 9461 | .block_erase = spi_block_erase_d8, |
| 9462 | }, { |
| 9463 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9464 | .block_erase = spi_block_erase_60, |
| 9465 | }, { |
| 9466 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9467 | .block_erase = spi_block_erase_c7, |
| 9468 | }, |
| 9469 | }, |
| 9470 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9471 | .unlock = spi_disable_blockprotect, |
| 9472 | .write = spi_chip_write_256, |
| 9473 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9474 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 9475 | }, |
| 9476 | |
| 9477 | { |
| 9478 | .vendor = "Macronix", |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9479 | .name = "MX25R3235F", |
| 9480 | .bustype = BUS_SPI, |
| 9481 | .manufacture_id = MACRONIX_ID, |
| 9482 | .model_id = MACRONIX_MX25R3235F, |
| 9483 | .total_size = 4096, |
| 9484 | .page_size = 256, |
| 9485 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 9486 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9487 | .tested = TEST_OK_PREW, |
| 9488 | .probe = probe_spi_rdid, |
| 9489 | .probe_timing = TIMING_ZERO, |
| 9490 | .block_erasers = |
| 9491 | { |
| 9492 | { |
| 9493 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9494 | .block_erase = spi_block_erase_20, |
| 9495 | }, { |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9496 | .eraseblocks = { {32 * 1024, 128} }, |
| 9497 | .block_erase = spi_block_erase_52, |
| 9498 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9499 | .eraseblocks = { {64 * 1024, 64} }, |
| 9500 | .block_erase = spi_block_erase_d8, |
| 9501 | }, { |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9502 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9503 | .block_erase = spi_block_erase_60, |
| 9504 | }, { |
| 9505 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9506 | .block_erase = spi_block_erase_c7, |
| 9507 | } |
| 9508 | }, |
| 9509 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */ |
| 9510 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9511 | .write = spi_chip_write_256, |
| 9512 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9513 | .voltage = {1650, 3600}, |
| 9514 | }, |
| 9515 | |
| 9516 | { |
| 9517 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9518 | .name = "MX25R6435F", |
| 9519 | .bustype = BUS_SPI, |
| 9520 | .manufacture_id = MACRONIX_ID, |
| 9521 | .model_id = MACRONIX_MX25R6435F, |
| 9522 | .total_size = 8192, |
| 9523 | .page_size = 256, |
| 9524 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 9525 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9526 | .tested = TEST_OK_PREW, |
| 9527 | .probe = probe_spi_rdid, |
| 9528 | .probe_timing = TIMING_ZERO, |
| 9529 | .block_erasers = |
| 9530 | { |
| 9531 | { |
| 9532 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9533 | .block_erase = spi_block_erase_20, |
| 9534 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9535 | .eraseblocks = { {32 * 1024, 256} }, |
| 9536 | .block_erase = spi_block_erase_52, |
| 9537 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9538 | .eraseblocks = { {64 * 1024, 128} }, |
| 9539 | .block_erase = spi_block_erase_d8, |
| 9540 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9541 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9542 | .block_erase = spi_block_erase_60, |
| 9543 | }, { |
| 9544 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9545 | .block_erase = spi_block_erase_c7, |
| 9546 | } |
| 9547 | }, |
| 9548 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9549 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9550 | .write = spi_chip_write_256, |
| 9551 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9552 | .voltage = {1650, 3600}, |
| 9553 | }, |
| 9554 | |
| 9555 | { |
| 9556 | .vendor = "Macronix", |
| 9557 | .name = "MX25U12835F", |
| 9558 | .bustype = BUS_SPI, |
| 9559 | .manufacture_id = MACRONIX_ID, |
| 9560 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9561 | .total_size = 16384, |
| 9562 | .page_size = 256, |
| 9563 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9564 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9565 | .tested = TEST_OK_PREW, |
| 9566 | .probe = probe_spi_rdid, |
| 9567 | .probe_timing = TIMING_ZERO, |
| 9568 | .block_erasers = |
| 9569 | { |
| 9570 | { |
| 9571 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9572 | .block_erase = spi_block_erase_20, |
| 9573 | }, { |
| 9574 | .eraseblocks = { {32 * 1024, 512} }, |
| 9575 | .block_erase = spi_block_erase_52, |
| 9576 | }, { |
| 9577 | .eraseblocks = { {64 * 1024, 256} }, |
| 9578 | .block_erase = spi_block_erase_d8, |
| 9579 | }, { |
| 9580 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9581 | .block_erase = spi_block_erase_60, |
| 9582 | }, { |
| 9583 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9584 | .block_erase = spi_block_erase_c7, |
| 9585 | } |
| 9586 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 9587 | /* TODO: security register */ |
| 9588 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9589 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9590 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 9591 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9592 | .voltage = {1650, 2000}, |
| 9593 | }, |
| 9594 | |
| 9595 | { |
| 9596 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9597 | .name = "MX25U1635E", |
| 9598 | .bustype = BUS_SPI, |
| 9599 | .manufacture_id = MACRONIX_ID, |
| 9600 | .model_id = MACRONIX_MX25U1635E, |
| 9601 | .total_size = 2048, |
| 9602 | .page_size = 256, |
| 9603 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9604 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9605 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9606 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9607 | .probe = probe_spi_rdid, |
| 9608 | .probe_timing = TIMING_ZERO, |
| 9609 | .block_erasers = |
| 9610 | { |
| 9611 | { |
| 9612 | .eraseblocks = { {4 * 1024, 512} }, |
| 9613 | .block_erase = spi_block_erase_20, |
| 9614 | }, { |
| 9615 | .eraseblocks = { {32 * 1024, 64} }, |
| 9616 | .block_erase = spi_block_erase_52, |
| 9617 | }, { |
| 9618 | .eraseblocks = { {64 * 1024, 32} }, |
| 9619 | .block_erase = spi_block_erase_d8, |
| 9620 | }, { |
| 9621 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9622 | .block_erase = spi_block_erase_60, |
| 9623 | }, { |
| 9624 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9625 | .block_erase = spi_block_erase_c7, |
| 9626 | } |
| 9627 | }, |
| 9628 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9629 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9630 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9631 | .write = spi_chip_write_256, |
| 9632 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9633 | .voltage = {1650, 2000}, |
| 9634 | }, |
| 9635 | |
| 9636 | { |
| 9637 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9638 | .name = "MX25U25635F", |
| 9639 | .bustype = BUS_SPI, |
| 9640 | .manufacture_id = MACRONIX_ID, |
| 9641 | .model_id = MACRONIX_MX25U25635F, |
| 9642 | .total_size = 32768, |
| 9643 | .page_size = 256, |
| 9644 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9645 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
Nikolai Artemiev | 148254b | 2021-03-23 17:21:10 +1100 | [diff] [blame] | 9646 | .tested = TEST_OK_PREW, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9647 | .probe = probe_spi_rdid, |
| 9648 | .probe_timing = TIMING_ZERO, |
| 9649 | .block_erasers = |
| 9650 | { |
| 9651 | { |
| 9652 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9653 | .block_erase = spi_block_erase_21, |
| 9654 | }, { |
| 9655 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9656 | .block_erase = spi_block_erase_20, |
| 9657 | }, { |
| 9658 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9659 | .block_erase = spi_block_erase_5c, |
| 9660 | }, { |
| 9661 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9662 | .block_erase = spi_block_erase_52, |
| 9663 | }, { |
| 9664 | .eraseblocks = { {64 * 1024, 512} }, |
| 9665 | .block_erase = spi_block_erase_dc, |
| 9666 | }, { |
| 9667 | .eraseblocks = { {64 * 1024, 512} }, |
| 9668 | .block_erase = spi_block_erase_d8, |
| 9669 | }, { |
| 9670 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9671 | .block_erase = spi_block_erase_60, |
| 9672 | }, { |
| 9673 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9674 | .block_erase = spi_block_erase_c7, |
| 9675 | } |
| 9676 | }, |
| 9677 | /* TODO: security register */ |
| 9678 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9679 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9680 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9681 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9682 | .voltage = {1650, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 9683 | .prepare_access = spi_prepare_4ba, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9684 | }, |
| 9685 | |
| 9686 | { |
| 9687 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9688 | .name = "MX25U3235E/F", |
| 9689 | .bustype = BUS_SPI, |
| 9690 | .manufacture_id = MACRONIX_ID, |
| 9691 | .model_id = MACRONIX_MX25U3235E, |
| 9692 | .total_size = 4096, |
| 9693 | .page_size = 256, |
| 9694 | /* F model supports SFDP */ |
| 9695 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9696 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9697 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 9698 | .tested = TEST_OK_PREW, |
| 9699 | .probe = probe_spi_rdid, |
| 9700 | .probe_timing = TIMING_ZERO, |
| 9701 | .block_erasers = |
| 9702 | { |
| 9703 | { |
| 9704 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9705 | .block_erase = spi_block_erase_20, |
| 9706 | }, { |
| 9707 | .eraseblocks = { {32 * 1024, 128} }, |
| 9708 | .block_erase = spi_block_erase_52, |
| 9709 | }, { |
| 9710 | .eraseblocks = { {64 * 1024, 64} }, |
| 9711 | .block_erase = spi_block_erase_d8, |
| 9712 | }, { |
| 9713 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9714 | .block_erase = spi_block_erase_60, |
| 9715 | }, { |
| 9716 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9717 | .block_erase = spi_block_erase_c7, |
| 9718 | } |
| 9719 | }, |
| 9720 | /* TODO: security register */ |
| 9721 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9722 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9723 | .write = spi_chip_write_256, |
| 9724 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9725 | .voltage = {1650, 2000}, |
| 9726 | }, |
| 9727 | |
| 9728 | { |
| 9729 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9730 | .name = "MX25U51245G", |
| 9731 | .bustype = BUS_SPI, |
| 9732 | .manufacture_id = MACRONIX_ID, |
| 9733 | .model_id = MACRONIX_MX25U51245G, |
| 9734 | .total_size = 65536, |
| 9735 | .page_size = 256, |
| 9736 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
| 9737 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 9738 | .tested = TEST_OK_PREW, |
| 9739 | .probe = probe_spi_rdid, |
| 9740 | .probe_timing = TIMING_ZERO, |
| 9741 | .block_erasers = |
| 9742 | { |
| 9743 | { |
| 9744 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9745 | .block_erase = spi_block_erase_21, |
| 9746 | }, { |
| 9747 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9748 | .block_erase = spi_block_erase_20, |
| 9749 | }, { |
| 9750 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9751 | .block_erase = spi_block_erase_5c, |
| 9752 | }, { |
| 9753 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9754 | .block_erase = spi_block_erase_52, |
| 9755 | }, { |
| 9756 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9757 | .block_erase = spi_block_erase_dc, |
| 9758 | }, { |
| 9759 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9760 | .block_erase = spi_block_erase_d8, |
| 9761 | }, { |
| 9762 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9763 | .block_erase = spi_block_erase_60, |
| 9764 | }, { |
| 9765 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9766 | .block_erase = spi_block_erase_c7, |
| 9767 | } |
| 9768 | }, |
| 9769 | /* TODO: security register */ |
| 9770 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9771 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9772 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9773 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9774 | .voltage = {1650, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 9775 | .prepare_access = spi_prepare_4ba, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9776 | }, |
| 9777 | |
| 9778 | { |
| 9779 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9780 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9781 | .bustype = BUS_SPI, |
| 9782 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9783 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9784 | .total_size = 8192, |
| 9785 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9786 | /* F model supports SFDP */ |
| 9787 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9788 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9789 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9790 | .tested = TEST_OK_PREW, |
| 9791 | .probe = probe_spi_rdid, |
| 9792 | .probe_timing = TIMING_ZERO, |
| 9793 | .block_erasers = |
| 9794 | { |
| 9795 | { |
| 9796 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9797 | .block_erase = spi_block_erase_20, |
| 9798 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9799 | .eraseblocks = { {32 * 1024, 256} }, |
| 9800 | .block_erase = spi_block_erase_52, |
| 9801 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9802 | .eraseblocks = { {64 * 1024, 128} }, |
| 9803 | .block_erase = spi_block_erase_d8, |
| 9804 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9805 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9806 | .block_erase = spi_block_erase_60, |
| 9807 | }, { |
| 9808 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9809 | .block_erase = spi_block_erase_c7, |
| 9810 | } |
| 9811 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9812 | /* TODO: security register */ |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9813 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9814 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9815 | .write = spi_chip_write_256, |
| 9816 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9817 | .voltage = {1650, 2000}, |
| 9818 | }, |
| 9819 | |
| 9820 | { |
| 9821 | .vendor = "Macronix", |
| 9822 | .name = "MX25U8032E", |
| 9823 | .bustype = BUS_SPI, |
| 9824 | .manufacture_id = MACRONIX_ID, |
| 9825 | .model_id = MACRONIX_MX25U8032E, |
| 9826 | .total_size = 1024, |
| 9827 | .page_size = 256, |
| 9828 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 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, 256} }, |
| 9837 | .block_erase = spi_block_erase_20, |
| 9838 | }, { |
| 9839 | .eraseblocks = { {32 * 1024, 32} }, |
| 9840 | .block_erase = spi_block_erase_52, |
| 9841 | }, { |
| 9842 | .eraseblocks = { {64 * 1024, 16} }, |
| 9843 | .block_erase = spi_block_erase_d8, |
| 9844 | }, { |
| 9845 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9846 | .block_erase = spi_block_erase_60, |
| 9847 | }, { |
| 9848 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9849 | .block_erase = spi_block_erase_c7, |
| 9850 | } |
| 9851 | }, |
| 9852 | /* TODO: security register */ |
| 9853 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9854 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9855 | .write = spi_chip_write_256, |
| 9856 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9857 | .voltage = {1650, 2000}, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9858 | }, |
| 9859 | |
| 9860 | { |
| 9861 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9862 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9863 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9864 | .manufacture_id = MACRONIX_ID, |
| 9865 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9866 | .total_size = 128, |
| 9867 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9868 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9869 | .tested = TEST_UNTESTED, |
| 9870 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9871 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9872 | .block_erasers = |
| 9873 | { |
| 9874 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9875 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9876 | {8 * 1024, 1}, |
| 9877 | {4 * 1024, 2}, |
| 9878 | {8 * 1024, 2}, |
| 9879 | {32 * 1024, 1}, |
| 9880 | {64 * 1024, 1}, |
| 9881 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9882 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9883 | }, { |
| 9884 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9885 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9886 | } |
| 9887 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9888 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9889 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9890 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 9891 | .prepare_access = prepare_memory_access, |
| 9892 | .finish_access = finish_memory_access, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9893 | }, |
| 9894 | |
| 9895 | { |
| 9896 | .vendor = "Macronix", |
| 9897 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9898 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9899 | .manufacture_id = MACRONIX_ID, |
| 9900 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9901 | .total_size = 128, |
| 9902 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9903 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 9904 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9905 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9906 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9907 | .block_erasers = |
| 9908 | { |
| 9909 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9910 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9911 | {64 * 1024, 1}, |
| 9912 | {32 * 1024, 1}, |
| 9913 | {8 * 1024, 2}, |
| 9914 | {4 * 1024, 2}, |
| 9915 | {8 * 1024, 1}, |
| 9916 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9917 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9918 | }, { |
| 9919 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9920 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9921 | } |
| 9922 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9923 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9924 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9925 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 9926 | .prepare_access = prepare_memory_access, |
| 9927 | .finish_access = finish_memory_access, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9928 | }, |
| 9929 | |
| 9930 | { |
| 9931 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9932 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9933 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9934 | .manufacture_id = MACRONIX_ID, |
| 9935 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9936 | .total_size = 256, |
| 9937 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9938 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9939 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9940 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9941 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9942 | .block_erasers = |
| 9943 | { |
| 9944 | { |
| 9945 | .eraseblocks = { |
| 9946 | {16 * 1024, 1}, |
| 9947 | {8 * 1024, 2}, |
| 9948 | {32 * 1024, 1}, |
| 9949 | {64 * 1024, 3}, |
| 9950 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9951 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9952 | }, { |
| 9953 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9954 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9955 | }, |
| 9956 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9957 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9958 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9959 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 9960 | .prepare_access = prepare_memory_access, |
| 9961 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9962 | }, |
| 9963 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9964 | { |
| 9965 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9966 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9967 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9968 | .manufacture_id = MACRONIX_ID, |
| 9969 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9970 | .total_size = 256, |
| 9971 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9972 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9973 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9974 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9975 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9976 | .block_erasers = |
| 9977 | { |
| 9978 | { |
| 9979 | .eraseblocks = { |
| 9980 | {64 * 1024, 3}, |
| 9981 | {32 * 1024, 1}, |
| 9982 | {8 * 1024, 2}, |
| 9983 | {16 * 1024, 1}, |
| 9984 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9985 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9986 | }, { |
| 9987 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9988 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9989 | }, |
| 9990 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9991 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9992 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9993 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 9994 | .prepare_access = prepare_memory_access, |
| 9995 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9996 | }, |
| 9997 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9998 | { |
| 9999 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10000 | .name = "MX29F022(N)B", |
| 10001 | .bustype = BUS_PARALLEL, |
| 10002 | .manufacture_id = MACRONIX_ID, |
| 10003 | .model_id = MACRONIX_MX29F022B, |
| 10004 | .total_size = 256, |
| 10005 | .page_size = 0, /* unused */ |
| 10006 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10007 | .tested = TEST_UNTESTED, |
| 10008 | .probe = probe_jedec, |
| 10009 | .probe_timing = TIMING_ZERO, |
| 10010 | .block_erasers = |
| 10011 | { |
| 10012 | { |
| 10013 | .eraseblocks = { |
| 10014 | {16 * 1024, 1}, |
| 10015 | {8 * 1024, 2}, |
| 10016 | {32 * 1024, 1}, |
| 10017 | {64 * 1024, 3}, |
| 10018 | }, |
| 10019 | .block_erase = erase_sector_jedec, |
| 10020 | }, { |
| 10021 | .eraseblocks = { {256 * 1024, 1} }, |
| 10022 | .block_erase = erase_chip_block_jedec, |
| 10023 | } |
| 10024 | }, |
| 10025 | .write = write_jedec_1, |
| 10026 | .read = read_memmapped, |
| 10027 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10028 | .prepare_access = prepare_memory_access, |
| 10029 | .finish_access = finish_memory_access, |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10030 | }, |
| 10031 | |
| 10032 | { |
| 10033 | .vendor = "Macronix", |
| 10034 | .name = "MX29F022(N)T", |
| 10035 | .bustype = BUS_PARALLEL, |
| 10036 | .manufacture_id = MACRONIX_ID, |
| 10037 | .model_id = MACRONIX_MX29F022T, |
| 10038 | .total_size = 256, |
| 10039 | .page_size = 0, /* unused */ |
| 10040 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10041 | .tested = TEST_OK_PREW, |
| 10042 | .probe = probe_jedec, |
| 10043 | .probe_timing = TIMING_ZERO, |
| 10044 | .block_erasers = |
| 10045 | { |
| 10046 | { |
| 10047 | .eraseblocks = { |
| 10048 | {64 * 1024, 3}, |
| 10049 | {32 * 1024, 1}, |
| 10050 | {8 * 1024, 2}, |
| 10051 | {16 * 1024, 1}, |
| 10052 | }, |
| 10053 | .block_erase = erase_sector_jedec, |
| 10054 | }, { |
| 10055 | .eraseblocks = { {256 * 1024, 1} }, |
| 10056 | .block_erase = erase_chip_block_jedec, |
| 10057 | } |
| 10058 | }, |
| 10059 | .write = write_jedec_1, |
| 10060 | .read = read_memmapped, |
| 10061 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10062 | .prepare_access = prepare_memory_access, |
| 10063 | .finish_access = finish_memory_access, |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10064 | }, |
| 10065 | |
| 10066 | { |
| 10067 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10068 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10069 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10070 | .manufacture_id = MACRONIX_ID, |
| 10071 | .model_id = MACRONIX_MX29F040, |
| 10072 | .total_size = 512, |
| 10073 | .page_size = 64 * 1024, |
| 10074 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10075 | .tested = TEST_UNTESTED, |
| 10076 | .probe = probe_jedec, |
| 10077 | .probe_timing = TIMING_ZERO, |
| 10078 | .block_erasers = |
| 10079 | { |
| 10080 | { |
| 10081 | .eraseblocks = { {64 * 1024, 8} }, |
| 10082 | .block_erase = erase_sector_jedec, |
| 10083 | }, { |
| 10084 | .eraseblocks = { {512 * 1024, 1} }, |
| 10085 | .block_erase = erase_chip_block_jedec, |
| 10086 | }, |
| 10087 | }, |
| 10088 | .write = write_jedec_1, |
| 10089 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10090 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10091 | .prepare_access = prepare_memory_access, |
| 10092 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10093 | }, |
| 10094 | |
| 10095 | { |
| 10096 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10097 | .name = "MX29GL128F", |
| 10098 | .bustype = BUS_PARALLEL, |
| 10099 | .manufacture_id = MACRONIX_ID, |
| 10100 | .model_id = MACRONIX_MX29GL128F, |
| 10101 | .total_size = 16384, |
| 10102 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10103 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10104 | .tested = TEST_UNTESTED, |
| 10105 | .probe = probe_jedec_29gl, |
| 10106 | .probe_timing = TIMING_ZERO, |
| 10107 | .block_erasers = |
| 10108 | { |
| 10109 | { |
| 10110 | .eraseblocks = { {128 * 1024, 128} }, |
| 10111 | .block_erase = erase_sector_jedec, |
| 10112 | }, { |
| 10113 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10114 | .block_erase = erase_chip_block_jedec, |
| 10115 | }, |
| 10116 | }, |
| 10117 | .write = write_jedec_1, |
| 10118 | .read = read_memmapped, |
| 10119 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10120 | .prepare_access = prepare_memory_access, |
| 10121 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10122 | }, |
| 10123 | |
| 10124 | { |
| 10125 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10126 | .name = "MX29GL320EB", |
| 10127 | .bustype = BUS_PARALLEL, |
| 10128 | .manufacture_id = MACRONIX_ID, |
| 10129 | .model_id = MACRONIX_MX29GL320EB, |
| 10130 | .total_size = 4096, |
| 10131 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10132 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10133 | .tested = TEST_UNTESTED, |
| 10134 | .probe = probe_jedec_29gl, |
| 10135 | .probe_timing = TIMING_ZERO, |
| 10136 | .block_erasers = |
| 10137 | { |
| 10138 | { |
| 10139 | .eraseblocks = { |
| 10140 | {8 * 1024, 8}, |
| 10141 | {64 * 1024, 63}, |
| 10142 | }, |
| 10143 | .block_erase = erase_sector_jedec, |
| 10144 | }, { |
| 10145 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10146 | .block_erase = erase_chip_block_jedec, |
| 10147 | }, |
| 10148 | }, |
| 10149 | .write = write_jedec_1, |
| 10150 | .read = read_memmapped, |
| 10151 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10152 | .prepare_access = prepare_memory_access, |
| 10153 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10154 | }, |
| 10155 | |
| 10156 | { |
| 10157 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10158 | .name = "MX29GL320EH/L", |
| 10159 | .bustype = BUS_PARALLEL, |
| 10160 | .manufacture_id = MACRONIX_ID, |
| 10161 | .model_id = MACRONIX_MX29GL320EHL, |
| 10162 | .total_size = 4096, |
| 10163 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10164 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10165 | .tested = TEST_UNTESTED, |
| 10166 | .probe = probe_jedec_29gl, |
| 10167 | .probe_timing = TIMING_ZERO, |
| 10168 | .block_erasers = |
| 10169 | { |
| 10170 | { |
| 10171 | .eraseblocks = { {64 * 1024, 64} }, |
| 10172 | .block_erase = erase_sector_jedec, |
| 10173 | }, { |
| 10174 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10175 | .block_erase = erase_chip_block_jedec, |
| 10176 | }, |
| 10177 | }, |
| 10178 | .write = write_jedec_1, |
| 10179 | .read = read_memmapped, |
| 10180 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10181 | .prepare_access = prepare_memory_access, |
| 10182 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10183 | }, |
| 10184 | |
| 10185 | { |
| 10186 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10187 | .name = "MX29GL320ET", |
| 10188 | .bustype = BUS_PARALLEL, |
| 10189 | .manufacture_id = MACRONIX_ID, |
| 10190 | .model_id = MACRONIX_MX29GL320ET, |
| 10191 | .total_size = 4096, |
| 10192 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10193 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10194 | .tested = TEST_UNTESTED, |
| 10195 | .probe = probe_jedec_29gl, |
| 10196 | .probe_timing = TIMING_ZERO, |
| 10197 | .block_erasers = |
| 10198 | { |
| 10199 | { |
| 10200 | .eraseblocks = { |
| 10201 | {64 * 1024, 63}, |
| 10202 | {8 * 1024, 8}, |
| 10203 | }, |
| 10204 | .block_erase = erase_sector_jedec, |
| 10205 | }, { |
| 10206 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10207 | .block_erase = erase_chip_block_jedec, |
| 10208 | }, |
| 10209 | }, |
| 10210 | .write = write_jedec_1, |
| 10211 | .read = read_memmapped, |
| 10212 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10213 | .prepare_access = prepare_memory_access, |
| 10214 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10215 | }, |
| 10216 | |
| 10217 | { |
| 10218 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10219 | .name = "MX29GL640EB", |
| 10220 | .bustype = BUS_PARALLEL, |
| 10221 | .manufacture_id = MACRONIX_ID, |
| 10222 | .model_id = MACRONIX_MX29GL640EB, |
| 10223 | .total_size = 8192, |
| 10224 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10225 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10226 | .tested = TEST_UNTESTED, |
| 10227 | .probe = probe_jedec_29gl, |
| 10228 | .probe_timing = TIMING_ZERO, |
| 10229 | .block_erasers = |
| 10230 | { |
| 10231 | { |
| 10232 | .eraseblocks = { |
| 10233 | {8 * 1024, 8}, |
| 10234 | {64 * 1024, 127}, |
| 10235 | }, |
| 10236 | .block_erase = erase_sector_jedec, |
| 10237 | }, { |
| 10238 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10239 | .block_erase = erase_chip_block_jedec, |
| 10240 | }, |
| 10241 | }, |
| 10242 | .write = write_jedec_1, |
| 10243 | .read = read_memmapped, |
| 10244 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10245 | .prepare_access = prepare_memory_access, |
| 10246 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10247 | }, |
| 10248 | |
| 10249 | { |
| 10250 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10251 | .name = "MX29GL640EH/L", |
| 10252 | .bustype = BUS_PARALLEL, |
| 10253 | .manufacture_id = MACRONIX_ID, |
| 10254 | .model_id = MACRONIX_MX29GL640EHL, |
| 10255 | .total_size = 8192, |
| 10256 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10257 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10258 | .tested = TEST_UNTESTED, |
| 10259 | .probe = probe_jedec_29gl, |
| 10260 | .probe_timing = TIMING_ZERO, |
| 10261 | .block_erasers = |
| 10262 | { |
| 10263 | { |
| 10264 | .eraseblocks = { {64 * 1024, 128} }, |
| 10265 | .block_erase = erase_sector_jedec, |
| 10266 | }, { |
| 10267 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10268 | .block_erase = erase_chip_block_jedec, |
| 10269 | }, |
| 10270 | }, |
| 10271 | .write = write_jedec_1, |
| 10272 | .read = read_memmapped, |
| 10273 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10274 | .prepare_access = prepare_memory_access, |
| 10275 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10276 | }, |
| 10277 | |
| 10278 | { |
| 10279 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10280 | .name = "MX29GL640ET", |
| 10281 | .bustype = BUS_PARALLEL, |
| 10282 | .manufacture_id = MACRONIX_ID, |
| 10283 | .model_id = MACRONIX_MX29GL640ET, |
| 10284 | .total_size = 8192, |
| 10285 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10286 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10287 | .tested = TEST_UNTESTED, |
| 10288 | .probe = probe_jedec_29gl, |
| 10289 | .probe_timing = TIMING_ZERO, |
| 10290 | .block_erasers = |
| 10291 | { |
| 10292 | { |
| 10293 | .eraseblocks = { |
| 10294 | {64 * 1024, 127}, |
| 10295 | {8 * 1024, 8}, |
| 10296 | }, |
| 10297 | .block_erase = erase_sector_jedec, |
| 10298 | }, { |
| 10299 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10300 | .block_erase = erase_chip_block_jedec, |
| 10301 | }, |
| 10302 | }, |
| 10303 | .write = write_jedec_1, |
| 10304 | .read = read_memmapped, |
| 10305 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10306 | .prepare_access = prepare_memory_access, |
| 10307 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10308 | }, |
| 10309 | |
| 10310 | { |
| 10311 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 10312 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10313 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10314 | .manufacture_id = MACRONIX_ID, |
| 10315 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10316 | .total_size = 512, |
| 10317 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10318 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10319 | .tested = TEST_UNTESTED, |
| 10320 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10321 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10322 | .block_erasers = |
| 10323 | { |
| 10324 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10325 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10326 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10327 | }, { |
| 10328 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10329 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10330 | }, |
| 10331 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10332 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10333 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10334 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10335 | .prepare_access = prepare_memory_access, |
| 10336 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 10337 | }, |
| 10338 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10339 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10340 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 10341 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10342 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10343 | .manufacture_id = MACRONIX_ID, |
| 10344 | .model_id = MACRONIX_MX66L51235F, |
| 10345 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10346 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10347 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10348 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10349 | .tested = TEST_OK_PREW, |
| 10350 | .probe = probe_spi_rdid, |
| 10351 | .probe_timing = TIMING_ZERO, |
| 10352 | .block_erasers = |
| 10353 | { |
| 10354 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10355 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10356 | .block_erase = spi_block_erase_21, |
| 10357 | }, { |
| 10358 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10359 | .block_erase = spi_block_erase_20, |
| 10360 | }, { |
| 10361 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10362 | .block_erase = spi_block_erase_5c, |
| 10363 | }, { |
| 10364 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10365 | .block_erase = spi_block_erase_52, |
| 10366 | }, { |
| 10367 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10368 | .block_erase = spi_block_erase_dc, |
| 10369 | }, { |
| 10370 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10371 | .block_erase = spi_block_erase_d8, |
| 10372 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10373 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 10374 | .block_erase = spi_block_erase_60, |
| 10375 | }, { |
| 10376 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10377 | .block_erase = spi_block_erase_c7, |
| 10378 | } |
| 10379 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10380 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 10381 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10382 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10383 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10384 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10385 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 10386 | .prepare_access = spi_prepare_4ba, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10387 | }, |
| 10388 | |
Patrick Rudolph | 3ba8315 | 2021-06-08 10:52:19 +0200 | [diff] [blame] | 10389 | { |
| 10390 | .vendor = "Macronix", |
| 10391 | .name = "MX66L1G45G", |
| 10392 | .bustype = BUS_SPI, |
| 10393 | .manufacture_id = MACRONIX_ID, |
| 10394 | .model_id = MACRONIX_MX66L1G45G, |
| 10395 | .total_size = 131072, |
| 10396 | .page_size = 256, |
| 10397 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10398 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 10399 | .tested = TEST_OK_PREW, |
| 10400 | .probe = probe_spi_rdid, |
| 10401 | .probe_timing = TIMING_ZERO, |
| 10402 | .block_erasers = |
| 10403 | { |
| 10404 | { |
| 10405 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10406 | .block_erase = spi_block_erase_21, |
| 10407 | }, { |
| 10408 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10409 | .block_erase = spi_block_erase_20, |
| 10410 | }, { |
| 10411 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10412 | .block_erase = spi_block_erase_5c, |
| 10413 | }, { |
| 10414 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10415 | .block_erase = spi_block_erase_52, |
| 10416 | }, { |
| 10417 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10418 | .block_erase = spi_block_erase_dc, |
| 10419 | }, { |
| 10420 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10421 | .block_erase = spi_block_erase_d8, |
| 10422 | }, { |
| 10423 | .eraseblocks = { {128 * 1024 * 1024, 1} }, |
| 10424 | .block_erase = spi_block_erase_60, |
| 10425 | }, { |
| 10426 | .eraseblocks = { {128 * 1024 * 1024, 1} }, |
| 10427 | .block_erase = spi_block_erase_c7, |
| 10428 | } |
| 10429 | }, |
| 10430 | /* TODO: security register and SBLK/SBULK, configuration register */ |
| 10431 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10432 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10433 | .write = spi_chip_write_256, |
| 10434 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10435 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 10436 | .prepare_access = spi_prepare_4ba, |
Patrick Rudolph | 3ba8315 | 2021-06-08 10:52:19 +0200 | [diff] [blame] | 10437 | }, |
| 10438 | |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10439 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 10440 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 10441 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 10442 | * only is successful if RDID does not work. |
| 10443 | */ |
| 10444 | { |
| 10445 | .vendor = "Micron/Numonyx/ST", |
| 10446 | .name = "M25P05", |
| 10447 | .bustype = BUS_SPI, |
| 10448 | .manufacture_id = 0, /* Not used. */ |
| 10449 | .model_id = ST_M25P05_RES, |
| 10450 | .total_size = 64, |
| 10451 | .page_size = 256, |
| 10452 | .feature_bits = FEATURE_WRSR_WREN, |
| 10453 | .tested = TEST_UNTESTED, |
| 10454 | .probe = probe_spi_res1, |
| 10455 | .probe_timing = TIMING_ZERO, |
| 10456 | .block_erasers = |
| 10457 | { |
| 10458 | { |
| 10459 | .eraseblocks = { {32 * 1024, 2} }, |
| 10460 | .block_erase = spi_block_erase_d8, |
| 10461 | }, { |
| 10462 | .eraseblocks = { {64 * 1024, 1} }, |
| 10463 | .block_erase = spi_block_erase_c7, |
| 10464 | } |
| 10465 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10466 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10467 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10468 | .write = spi_chip_write_1, /* 128 */ |
| 10469 | .read = spi_chip_read, |
| 10470 | .voltage = {2700, 3600}, |
| 10471 | }, |
| 10472 | |
| 10473 | { |
| 10474 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10475 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10476 | .bustype = BUS_SPI, |
| 10477 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10478 | .model_id = ST_M25P05A, |
| 10479 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10480 | .page_size = 256, |
| 10481 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10482 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10483 | .probe = probe_spi_rdid, |
| 10484 | .probe_timing = TIMING_ZERO, |
| 10485 | .block_erasers = |
| 10486 | { |
| 10487 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10488 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10489 | .block_erase = spi_block_erase_d8, |
| 10490 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10491 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10492 | .block_erase = spi_block_erase_c7, |
| 10493 | } |
| 10494 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10495 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10496 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10497 | .write = spi_chip_write_256, |
| 10498 | .read = spi_chip_read, |
| 10499 | .voltage = {2700, 3600}, |
| 10500 | }, |
| 10501 | |
| 10502 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 10503 | { |
| 10504 | .vendor = "Micron/Numonyx/ST", |
| 10505 | .name = "M25P10", |
| 10506 | .bustype = BUS_SPI, |
| 10507 | .manufacture_id = 0, /* Not used. */ |
| 10508 | .model_id = ST_M25P10_RES, |
| 10509 | .total_size = 128, |
| 10510 | .page_size = 256, |
| 10511 | .feature_bits = FEATURE_WRSR_WREN, |
| 10512 | .tested = TEST_UNTESTED, |
| 10513 | .probe = probe_spi_res1, |
| 10514 | .probe_timing = TIMING_ZERO, |
| 10515 | .block_erasers = |
| 10516 | { |
| 10517 | { |
| 10518 | .eraseblocks = { {32 * 1024, 4} }, |
| 10519 | .block_erase = spi_block_erase_d8, |
| 10520 | }, { |
| 10521 | .eraseblocks = { {128 * 1024, 1} }, |
| 10522 | .block_erase = spi_block_erase_c7, |
| 10523 | } |
| 10524 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10525 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10526 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10527 | .write = spi_chip_write_1, /* 128 */ |
| 10528 | .read = spi_chip_read, |
| 10529 | .voltage = {2700, 3600}, |
| 10530 | }, |
| 10531 | |
| 10532 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10533 | .vendor = "Micron/Numonyx/ST", |
| 10534 | .name = "M25P10-A", |
| 10535 | .bustype = BUS_SPI, |
| 10536 | .manufacture_id = ST_ID, |
| 10537 | .model_id = ST_M25P10A, |
| 10538 | .total_size = 128, |
| 10539 | .page_size = 256, |
| 10540 | .feature_bits = FEATURE_WRSR_WREN, |
| 10541 | .tested = TEST_OK_PREW, |
| 10542 | .probe = probe_spi_rdid, |
| 10543 | .probe_timing = TIMING_ZERO, |
| 10544 | .block_erasers = |
| 10545 | { |
| 10546 | { |
| 10547 | .eraseblocks = { {32 * 1024, 4} }, |
| 10548 | .block_erase = spi_block_erase_d8, |
| 10549 | }, { |
| 10550 | .eraseblocks = { {128 * 1024, 1} }, |
| 10551 | .block_erase = spi_block_erase_c7, |
| 10552 | } |
| 10553 | }, |
| 10554 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10555 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10556 | .write = spi_chip_write_256, |
| 10557 | .read = spi_chip_read, |
| 10558 | .voltage = {2700, 3600}, |
| 10559 | }, |
| 10560 | |
| 10561 | { |
| 10562 | .vendor = "Micron/Numonyx/ST", |
| 10563 | .name = "M25P128", |
| 10564 | .bustype = BUS_SPI, |
| 10565 | .manufacture_id = ST_ID, |
| 10566 | .model_id = ST_M25P128, |
| 10567 | .total_size = 16384, |
| 10568 | .page_size = 256, |
| 10569 | .feature_bits = FEATURE_WRSR_WREN, |
| 10570 | .tested = TEST_OK_PREW, |
| 10571 | .probe = probe_spi_rdid, |
| 10572 | .probe_timing = TIMING_ZERO, |
| 10573 | .block_erasers = |
| 10574 | { |
| 10575 | { |
| 10576 | .eraseblocks = { {256 * 1024, 64} }, |
| 10577 | .block_erase = spi_block_erase_d8, |
| 10578 | }, { |
| 10579 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10580 | .block_erase = spi_block_erase_c7, |
| 10581 | } |
| 10582 | }, |
| 10583 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10584 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10585 | .write = spi_chip_write_256, |
| 10586 | .read = spi_chip_read, |
| 10587 | .voltage = {2700, 3600}, |
| 10588 | }, |
| 10589 | |
| 10590 | { |
| 10591 | .vendor = "Micron/Numonyx/ST", |
| 10592 | .name = "M25P16", |
| 10593 | .bustype = BUS_SPI, |
| 10594 | .manufacture_id = ST_ID, |
| 10595 | .model_id = ST_M25P16, |
| 10596 | .total_size = 2048, |
| 10597 | .page_size = 256, |
| 10598 | .feature_bits = FEATURE_WRSR_WREN, |
| 10599 | .tested = TEST_OK_PREW, |
| 10600 | .probe = probe_spi_rdid, |
| 10601 | .probe_timing = TIMING_ZERO, |
| 10602 | .block_erasers = |
| 10603 | { |
| 10604 | { |
| 10605 | .eraseblocks = { {64 * 1024, 32} }, |
| 10606 | .block_erase = spi_block_erase_d8, |
| 10607 | }, { |
| 10608 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10609 | .block_erase = spi_block_erase_c7, |
| 10610 | } |
| 10611 | }, |
| 10612 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10613 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10614 | .write = spi_chip_write_256, |
| 10615 | .read = spi_chip_read, |
| 10616 | .voltage = {2700, 3600}, |
| 10617 | }, |
| 10618 | |
| 10619 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10620 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 10621 | .name = "M25P20", |
| 10622 | .bustype = BUS_SPI, |
| 10623 | .manufacture_id = ST_ID, |
| 10624 | .model_id = ST_M25P20, |
| 10625 | .total_size = 256, |
| 10626 | .page_size = 256, |
| 10627 | .feature_bits = FEATURE_WRSR_WREN, |
| 10628 | .tested = TEST_UNTESTED, |
| 10629 | .probe = probe_spi_rdid, |
| 10630 | .probe_timing = TIMING_ZERO, |
| 10631 | .block_erasers = |
| 10632 | { |
| 10633 | { |
| 10634 | .eraseblocks = { {64 * 1024, 4} }, |
| 10635 | .block_erase = spi_block_erase_d8, |
| 10636 | }, { |
| 10637 | .eraseblocks = { {256 * 1024, 1} }, |
| 10638 | .block_erase = spi_block_erase_c7, |
| 10639 | } |
| 10640 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10641 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10642 | .unlock = spi_disable_blockprotect, |
| 10643 | .write = spi_chip_write_256, |
| 10644 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10645 | .voltage = {2700, 3600}, |
| 10646 | }, |
| 10647 | |
| 10648 | { |
| 10649 | .vendor = "Micron/Numonyx/ST", |
| 10650 | .name = "M25P20-old", |
| 10651 | .bustype = BUS_SPI, |
| 10652 | .manufacture_id = 0, /* Not used. */ |
| 10653 | .model_id = ST_M25P20_RES, |
| 10654 | .total_size = 256, |
| 10655 | .page_size = 256, |
| 10656 | .feature_bits = FEATURE_WRSR_WREN, |
| 10657 | .tested = TEST_OK_PREW, |
| 10658 | .probe = probe_spi_res1, |
| 10659 | .probe_timing = TIMING_ZERO, |
| 10660 | .block_erasers = |
| 10661 | { |
| 10662 | { |
| 10663 | .eraseblocks = { {64 * 1024, 4} }, |
| 10664 | .block_erase = spi_block_erase_d8, |
| 10665 | }, { |
| 10666 | .eraseblocks = { {256 * 1024, 1} }, |
| 10667 | .block_erase = spi_block_erase_c7, |
| 10668 | } |
| 10669 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10670 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10671 | .unlock = spi_disable_blockprotect, |
| 10672 | .write = spi_chip_write_256, |
| 10673 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10674 | .voltage = {2700, 3600}, |
| 10675 | }, |
| 10676 | |
| 10677 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10678 | .vendor = "Micron/Numonyx/ST", |
| 10679 | .name = "M25P32", |
| 10680 | .bustype = BUS_SPI, |
| 10681 | .manufacture_id = ST_ID, |
| 10682 | .model_id = ST_M25P32, |
| 10683 | .total_size = 4096, |
| 10684 | .page_size = 256, |
| 10685 | .feature_bits = FEATURE_WRSR_WREN, |
| 10686 | .tested = TEST_OK_PREW, |
| 10687 | .probe = probe_spi_rdid, |
| 10688 | .probe_timing = TIMING_ZERO, |
| 10689 | .block_erasers = |
| 10690 | { |
| 10691 | { |
| 10692 | .eraseblocks = { {64 * 1024, 64} }, |
| 10693 | .block_erase = spi_block_erase_d8, |
| 10694 | }, { |
| 10695 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10696 | .block_erase = spi_block_erase_c7, |
| 10697 | } |
| 10698 | }, |
| 10699 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10700 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10701 | .write = spi_chip_write_256, |
| 10702 | .read = spi_chip_read, |
| 10703 | .voltage = {2700, 3600}, |
| 10704 | }, |
| 10705 | |
| 10706 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10707 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 10708 | .name = "M25P40", |
| 10709 | .bustype = BUS_SPI, |
| 10710 | .manufacture_id = ST_ID, |
| 10711 | .model_id = ST_M25P40, |
| 10712 | .total_size = 512, |
| 10713 | .page_size = 256, |
| 10714 | .feature_bits = FEATURE_WRSR_WREN, |
| 10715 | .tested = TEST_OK_PREW, |
| 10716 | .probe = probe_spi_rdid, |
| 10717 | .probe_timing = TIMING_ZERO, |
| 10718 | .block_erasers = |
| 10719 | { |
| 10720 | { |
| 10721 | .eraseblocks = { {64 * 1024, 8} }, |
| 10722 | .block_erase = spi_block_erase_d8, |
| 10723 | }, { |
| 10724 | .eraseblocks = { {512 * 1024, 1} }, |
| 10725 | .block_erase = spi_block_erase_c7, |
| 10726 | } |
| 10727 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10728 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10729 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10730 | .write = spi_chip_write_256, |
| 10731 | .read = spi_chip_read, |
| 10732 | .voltage = {2700, 3600}, |
| 10733 | }, |
| 10734 | |
| 10735 | { |
| 10736 | .vendor = "Micron/Numonyx/ST", |
| 10737 | .name = "M25P40-old", |
| 10738 | .bustype = BUS_SPI, |
| 10739 | .manufacture_id = 0, /* Not used. */ |
| 10740 | .model_id = ST_M25P40_RES, |
| 10741 | .total_size = 512, |
| 10742 | .page_size = 256, |
| 10743 | .feature_bits = FEATURE_WRSR_WREN, |
| 10744 | .tested = TEST_UNTESTED, |
| 10745 | .probe = probe_spi_res1, |
| 10746 | .probe_timing = TIMING_ZERO, |
| 10747 | .block_erasers = |
| 10748 | { |
| 10749 | { |
| 10750 | .eraseblocks = { {64 * 1024, 8} }, |
| 10751 | .block_erase = spi_block_erase_d8, |
| 10752 | }, { |
| 10753 | .eraseblocks = { {512 * 1024, 1} }, |
| 10754 | .block_erase = spi_block_erase_c7, |
| 10755 | } |
| 10756 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10757 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10758 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10759 | .write = spi_chip_write_256, |
| 10760 | .read = spi_chip_read, |
| 10761 | }, |
| 10762 | |
| 10763 | { |
| 10764 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10765 | .name = "M25P64", |
| 10766 | .bustype = BUS_SPI, |
| 10767 | .manufacture_id = ST_ID, |
| 10768 | .model_id = ST_M25P64, |
| 10769 | .total_size = 8192, |
| 10770 | .page_size = 256, |
| 10771 | .feature_bits = FEATURE_WRSR_WREN, |
| 10772 | .tested = TEST_OK_PREW, |
| 10773 | .probe = probe_spi_rdid, |
| 10774 | .probe_timing = TIMING_ZERO, |
| 10775 | .block_erasers = |
| 10776 | { |
| 10777 | { |
| 10778 | .eraseblocks = { {64 * 1024, 128} }, |
| 10779 | .block_erase = spi_block_erase_d8, |
| 10780 | }, { |
| 10781 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10782 | .block_erase = spi_block_erase_c7, |
| 10783 | } |
| 10784 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10785 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10786 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10787 | .write = spi_chip_write_256, |
| 10788 | .read = spi_chip_read, |
| 10789 | .voltage = {2700, 3600}, |
| 10790 | }, |
| 10791 | |
| 10792 | { |
| 10793 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10794 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10795 | .bustype = BUS_SPI, |
| 10796 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10797 | .model_id = ST_M25P80, |
| 10798 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10799 | .page_size = 256, |
| 10800 | .feature_bits = FEATURE_WRSR_WREN, |
| 10801 | .tested = TEST_OK_PREW, |
| 10802 | .probe = probe_spi_rdid, |
| 10803 | .probe_timing = TIMING_ZERO, |
| 10804 | .block_erasers = |
| 10805 | { |
| 10806 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10807 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10808 | .block_erase = spi_block_erase_d8, |
| 10809 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10810 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10811 | .block_erase = spi_block_erase_c7, |
| 10812 | } |
| 10813 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10814 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10815 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10816 | .write = spi_chip_write_256, |
| 10817 | .read = spi_chip_read, |
| 10818 | .voltage = {2700, 3600}, |
| 10819 | }, |
| 10820 | |
| 10821 | { |
| 10822 | .vendor = "Micron/Numonyx/ST", |
| 10823 | .name = "M25PE10", |
| 10824 | .bustype = BUS_SPI, |
| 10825 | .manufacture_id = ST_ID, |
| 10826 | .model_id = ST_M25PE10, |
| 10827 | .total_size = 128, |
| 10828 | .page_size = 256, |
| 10829 | .feature_bits = FEATURE_WRSR_WREN, |
| 10830 | .tested = TEST_UNTESTED, |
| 10831 | .probe = probe_spi_rdid, |
| 10832 | .probe_timing = TIMING_ZERO, |
| 10833 | .block_erasers = |
| 10834 | { |
| 10835 | { |
| 10836 | .eraseblocks = { {4 * 1024, 32} }, |
| 10837 | .block_erase = spi_block_erase_20, |
| 10838 | }, { |
| 10839 | .eraseblocks = { {64 * 1024, 2} }, |
| 10840 | .block_erase = spi_block_erase_d8, |
| 10841 | }, { |
| 10842 | .eraseblocks = { {128 * 1024, 1} }, |
| 10843 | .block_erase = spi_block_erase_c7, |
| 10844 | } |
| 10845 | }, |
| 10846 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10847 | .unlock = spi_disable_blockprotect, |
| 10848 | .write = spi_chip_write_256, |
| 10849 | .read = spi_chip_read, |
| 10850 | .voltage = {2700, 3600}, |
| 10851 | }, |
| 10852 | |
| 10853 | { |
| 10854 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10855 | .name = "M25PE16", |
| 10856 | .bustype = BUS_SPI, |
| 10857 | .manufacture_id = ST_ID, |
| 10858 | .model_id = ST_M25PE16, |
| 10859 | .total_size = 2048, |
| 10860 | .page_size = 256, |
| 10861 | .feature_bits = FEATURE_WRSR_WREN, |
| 10862 | .tested = TEST_UNTESTED, |
| 10863 | .probe = probe_spi_rdid, |
| 10864 | .probe_timing = TIMING_ZERO, |
| 10865 | .block_erasers = |
| 10866 | { |
| 10867 | { |
| 10868 | .eraseblocks = { {4 * 1024, 512} }, |
| 10869 | .block_erase = spi_block_erase_20, |
| 10870 | }, { |
| 10871 | .eraseblocks = { {64 * 1024, 32} }, |
| 10872 | .block_erase = spi_block_erase_d8, |
| 10873 | }, { |
| 10874 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10875 | .block_erase = spi_block_erase_c7, |
| 10876 | } |
| 10877 | }, |
| 10878 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10879 | .unlock = spi_disable_blockprotect, |
| 10880 | .write = spi_chip_write_256, |
| 10881 | .read = spi_chip_read, |
| 10882 | .voltage = {2700, 3600}, |
| 10883 | }, |
| 10884 | |
| 10885 | { |
| 10886 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10887 | .name = "M25PE20", |
| 10888 | .bustype = BUS_SPI, |
| 10889 | .manufacture_id = ST_ID, |
| 10890 | .model_id = ST_M25PE20, |
| 10891 | .total_size = 256, |
| 10892 | .page_size = 256, |
| 10893 | .feature_bits = FEATURE_WRSR_WREN, |
| 10894 | .tested = TEST_UNTESTED, |
| 10895 | .probe = probe_spi_rdid, |
| 10896 | .probe_timing = TIMING_ZERO, |
| 10897 | .block_erasers = |
| 10898 | { |
| 10899 | { |
| 10900 | .eraseblocks = { {4 * 1024, 64} }, |
| 10901 | .block_erase = spi_block_erase_20, |
| 10902 | }, { |
| 10903 | .eraseblocks = { {64 * 1024, 4} }, |
| 10904 | .block_erase = spi_block_erase_d8, |
| 10905 | }, { |
| 10906 | .eraseblocks = { {256 * 1024, 1} }, |
| 10907 | .block_erase = spi_block_erase_c7, |
| 10908 | } |
| 10909 | }, |
| 10910 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10911 | .unlock = spi_disable_blockprotect, |
| 10912 | .write = spi_chip_write_256, |
| 10913 | .read = spi_chip_read, |
| 10914 | .voltage = {2700, 3600}, |
| 10915 | }, |
| 10916 | |
| 10917 | { |
| 10918 | .vendor = "Micron/Numonyx/ST", |
| 10919 | .name = "M25PE40", |
| 10920 | .bustype = BUS_SPI, |
| 10921 | .manufacture_id = ST_ID, |
| 10922 | .model_id = ST_M25PE40, |
| 10923 | .total_size = 512, |
| 10924 | .page_size = 256, |
| 10925 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10926 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10927 | .probe = probe_spi_rdid, |
| 10928 | .probe_timing = TIMING_ZERO, |
| 10929 | .block_erasers = |
| 10930 | { |
| 10931 | { |
| 10932 | .eraseblocks = { {4 * 1024, 128} }, |
| 10933 | .block_erase = spi_block_erase_20, |
| 10934 | }, { |
| 10935 | .eraseblocks = { {64 * 1024, 8} }, |
| 10936 | .block_erase = spi_block_erase_d8, |
| 10937 | }, { |
| 10938 | .eraseblocks = { {512 * 1024, 1} }, |
| 10939 | .block_erase = spi_block_erase_c7, |
| 10940 | } |
| 10941 | }, |
| 10942 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10943 | .unlock = spi_disable_blockprotect, |
| 10944 | .write = spi_chip_write_256, |
| 10945 | .read = spi_chip_read, |
| 10946 | .voltage = {2700, 3600}, |
| 10947 | }, |
| 10948 | |
| 10949 | { |
| 10950 | .vendor = "Micron/Numonyx/ST", |
| 10951 | .name = "M25PE80", |
| 10952 | .bustype = BUS_SPI, |
| 10953 | .manufacture_id = ST_ID, |
| 10954 | .model_id = ST_M25PE80, |
| 10955 | .total_size = 1024, |
| 10956 | .page_size = 256, |
| 10957 | .feature_bits = FEATURE_WRSR_WREN, |
| 10958 | .tested = TEST_OK_PREW, |
| 10959 | .probe = probe_spi_rdid, |
| 10960 | .probe_timing = TIMING_ZERO, |
| 10961 | .block_erasers = |
| 10962 | { |
| 10963 | { |
| 10964 | .eraseblocks = { {4 * 1024, 256} }, |
| 10965 | .block_erase = spi_block_erase_20, |
| 10966 | }, { |
| 10967 | .eraseblocks = { {64 * 1024, 16} }, |
| 10968 | .block_erase = spi_block_erase_d8, |
| 10969 | }, { |
| 10970 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10971 | .block_erase = spi_block_erase_c7, |
| 10972 | } |
| 10973 | }, |
| 10974 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10975 | .unlock = spi_disable_blockprotect, |
| 10976 | .write = spi_chip_write_256, |
| 10977 | .read = spi_chip_read, |
| 10978 | .voltage = {2700, 3600}, |
| 10979 | }, |
| 10980 | |
| 10981 | { |
| 10982 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10983 | .name = "M25PX16", |
| 10984 | .bustype = BUS_SPI, |
| 10985 | .manufacture_id = ST_ID, |
| 10986 | .model_id = ST_M25PX16, |
| 10987 | .total_size = 2048, |
| 10988 | .page_size = 256, |
| 10989 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10990 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10991 | .tested = TEST_OK_PREW, |
| 10992 | .probe = probe_spi_rdid, |
| 10993 | .probe_timing = TIMING_ZERO, |
| 10994 | .block_erasers = |
| 10995 | { |
| 10996 | { |
| 10997 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10998 | .block_erase = spi_block_erase_20, |
| 10999 | }, { |
| 11000 | .eraseblocks = { {64 * 1024, 32} }, |
| 11001 | .block_erase = spi_block_erase_d8, |
| 11002 | }, { |
| 11003 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11004 | .block_erase = spi_block_erase_c7, |
| 11005 | } |
| 11006 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11007 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11008 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11009 | .write = spi_chip_write_256, |
| 11010 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11011 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11012 | }, |
| 11013 | |
| 11014 | { |
| 11015 | .vendor = "Micron/Numonyx/ST", |
| 11016 | .name = "M25PX32", |
| 11017 | .bustype = BUS_SPI, |
| 11018 | .manufacture_id = ST_ID, |
| 11019 | .model_id = ST_M25PX32, |
| 11020 | .total_size = 4096, |
| 11021 | .page_size = 256, |
| 11022 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 11023 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11024 | .tested = TEST_OK_PRE, |
| 11025 | .probe = probe_spi_rdid, |
| 11026 | .probe_timing = TIMING_ZERO, |
| 11027 | .block_erasers = |
| 11028 | { |
| 11029 | { |
| 11030 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 11031 | .block_erase = spi_block_erase_20, |
| 11032 | }, { |
| 11033 | .eraseblocks = { {64 * 1024, 64} }, |
| 11034 | .block_erase = spi_block_erase_d8, |
| 11035 | }, { |
| 11036 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11037 | .block_erase = spi_block_erase_c7, |
| 11038 | } |
| 11039 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11040 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11041 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11042 | .write = spi_chip_write_256, |
| 11043 | .read = spi_chip_read, |
| 11044 | .voltage = {2700, 3600}, |
| 11045 | }, |
| 11046 | |
| 11047 | { |
| 11048 | .vendor = "Micron/Numonyx/ST", |
| 11049 | .name = "M25PX64", |
| 11050 | .bustype = BUS_SPI, |
| 11051 | .manufacture_id = ST_ID, |
| 11052 | .model_id = ST_M25PX64, |
| 11053 | .total_size = 8192, |
| 11054 | .page_size = 256, |
| 11055 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 11056 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11057 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11058 | .probe = probe_spi_rdid, |
| 11059 | .probe_timing = TIMING_ZERO, |
| 11060 | .block_erasers = |
| 11061 | { |
| 11062 | { |
| 11063 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 11064 | .block_erase = spi_block_erase_20, |
| 11065 | }, { |
| 11066 | .eraseblocks = { {64 * 1024, 128} }, |
| 11067 | .block_erase = spi_block_erase_d8, |
| 11068 | }, { |
| 11069 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11070 | .block_erase = spi_block_erase_c7, |
| 11071 | } |
| 11072 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11073 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11074 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11075 | .write = spi_chip_write_256, |
| 11076 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11077 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11078 | }, |
| 11079 | |
| 11080 | { |
| 11081 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11082 | .name = "M25PX80", |
| 11083 | .bustype = BUS_SPI, |
| 11084 | .manufacture_id = ST_ID, |
| 11085 | .model_id = ST_M25PX80, |
| 11086 | .total_size = 1024, |
| 11087 | .page_size = 256, |
| 11088 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11089 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11090 | .tested = TEST_OK_PREW, |
| 11091 | .probe = probe_spi_rdid, |
| 11092 | .probe_timing = TIMING_ZERO, |
| 11093 | .block_erasers = |
| 11094 | { |
| 11095 | { |
| 11096 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 11097 | .block_erase = spi_block_erase_20, |
| 11098 | }, { |
| 11099 | .eraseblocks = { {64 * 1024, 16} }, |
| 11100 | .block_erase = spi_block_erase_d8, |
| 11101 | }, { |
| 11102 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11103 | .block_erase = spi_block_erase_c7, |
| 11104 | } |
| 11105 | }, |
| 11106 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 11107 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11108 | .write = spi_chip_write_256, |
| 11109 | .read = spi_chip_read, |
| 11110 | .voltage = {2700, 3600}, |
| 11111 | }, |
| 11112 | |
| 11113 | { |
| 11114 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11115 | .name = "M45PE10", |
| 11116 | .bustype = BUS_SPI, |
| 11117 | .manufacture_id = ST_ID, |
| 11118 | .model_id = ST_M45PE10, |
| 11119 | .total_size = 128, |
| 11120 | .page_size = 256, |
| 11121 | .tested = TEST_UNTESTED, |
| 11122 | .probe = probe_spi_rdid, |
| 11123 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11124 | .block_erasers = |
| 11125 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11126 | { |
| 11127 | .eraseblocks = { {256, 512} }, |
| 11128 | .block_erase = spi_block_erase_db, |
| 11129 | }, { |
| 11130 | .eraseblocks = { {64 * 1024, 2} }, |
| 11131 | .block_erase = spi_block_erase_d8, |
| 11132 | } |
| 11133 | }, |
| 11134 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11135 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11136 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11137 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11138 | .voltage = {2700, 3600}, |
| 11139 | }, |
| 11140 | |
| 11141 | { |
| 11142 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11143 | .name = "M45PE16", |
| 11144 | .bustype = BUS_SPI, |
| 11145 | .manufacture_id = ST_ID, |
| 11146 | .model_id = ST_M45PE16, |
| 11147 | .total_size = 2048, |
| 11148 | .page_size = 256, |
| 11149 | .tested = TEST_UNTESTED, |
| 11150 | .probe = probe_spi_rdid, |
| 11151 | .probe_timing = TIMING_ZERO, |
| 11152 | .block_erasers = |
| 11153 | { |
| 11154 | { |
| 11155 | .eraseblocks = { {256, 8192} }, |
| 11156 | .block_erase = spi_block_erase_db, |
| 11157 | }, { |
| 11158 | .eraseblocks = { {64 * 1024, 32} }, |
| 11159 | .block_erase = spi_block_erase_d8, |
| 11160 | } |
| 11161 | }, |
| 11162 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11163 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11164 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11165 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11166 | .voltage = {2700, 3600}, |
| 11167 | }, |
| 11168 | |
| 11169 | { |
| 11170 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11171 | .name = "M45PE20", |
| 11172 | .bustype = BUS_SPI, |
| 11173 | .manufacture_id = ST_ID, |
| 11174 | .model_id = ST_M45PE20, |
| 11175 | .total_size = 256, |
| 11176 | .page_size = 256, |
| 11177 | .tested = TEST_UNTESTED, |
| 11178 | .probe = probe_spi_rdid, |
| 11179 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11180 | .block_erasers = |
| 11181 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11182 | { |
| 11183 | .eraseblocks = { {256, 1024} }, |
| 11184 | .block_erase = spi_block_erase_db, |
| 11185 | }, { |
| 11186 | .eraseblocks = { {64 * 1024, 4} }, |
| 11187 | .block_erase = spi_block_erase_d8, |
| 11188 | } |
| 11189 | }, |
| 11190 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11191 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11192 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11193 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11194 | .voltage = {2700, 3600}, |
| 11195 | }, |
| 11196 | |
| 11197 | { |
| 11198 | .vendor = "Micron/Numonyx/ST", |
| 11199 | .name = "M45PE40", |
| 11200 | .bustype = BUS_SPI, |
| 11201 | .manufacture_id = ST_ID, |
| 11202 | .model_id = ST_M45PE40, |
| 11203 | .total_size = 512, |
| 11204 | .page_size = 256, |
| 11205 | .tested = TEST_UNTESTED, |
| 11206 | .probe = probe_spi_rdid, |
| 11207 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11208 | .block_erasers = |
| 11209 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11210 | { |
| 11211 | .eraseblocks = { {256, 2048} }, |
| 11212 | .block_erase = spi_block_erase_db, |
| 11213 | }, { |
| 11214 | .eraseblocks = { {64 * 1024, 8} }, |
| 11215 | .block_erase = spi_block_erase_d8, |
| 11216 | } |
| 11217 | }, |
| 11218 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11219 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11220 | .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] | 11221 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11222 | .voltage = {2700, 3600}, |
| 11223 | }, |
| 11224 | |
| 11225 | { |
| 11226 | .vendor = "Micron/Numonyx/ST", |
| 11227 | .name = "M45PE80", |
| 11228 | .bustype = BUS_SPI, |
| 11229 | .manufacture_id = ST_ID, |
| 11230 | .model_id = ST_M45PE80, |
| 11231 | .total_size = 1024, |
| 11232 | .page_size = 256, |
| 11233 | .tested = TEST_UNTESTED, |
| 11234 | .probe = probe_spi_rdid, |
| 11235 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11236 | .block_erasers = |
| 11237 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11238 | { |
| 11239 | .eraseblocks = { {256, 4096} }, |
| 11240 | .block_erase = spi_block_erase_db, |
| 11241 | }, { |
| 11242 | .eraseblocks = { {64 * 1024, 16} }, |
| 11243 | .block_erase = spi_block_erase_d8, |
| 11244 | } |
| 11245 | }, |
| 11246 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11247 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11248 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11249 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11250 | .voltage = {2700, 3600}, |
| 11251 | }, |
| 11252 | |
| 11253 | { |
| 11254 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11255 | .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11256 | .bustype = BUS_SPI, |
| 11257 | .manufacture_id = ST_ID, |
| 11258 | .model_id = ST_N25Q00A__1G, |
| 11259 | .total_size = 131072, |
| 11260 | .page_size = 256, |
| 11261 | /* supports SFDP */ |
| 11262 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11263 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11264 | .tested = TEST_UNTESTED, |
| 11265 | .probe = probe_spi_rdid, |
| 11266 | .probe_timing = TIMING_ZERO, |
| 11267 | .block_erasers = |
| 11268 | { |
| 11269 | { |
| 11270 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11271 | .block_erase = spi_block_erase_21, |
| 11272 | }, { |
| 11273 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11274 | .block_erase = spi_block_erase_20, |
| 11275 | }, { |
| 11276 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11277 | .block_erase = spi_block_erase_dc, |
| 11278 | }, { |
| 11279 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11280 | .block_erase = spi_block_erase_d8, |
| 11281 | }, { |
| 11282 | .eraseblocks = { {32768 * 1024, 4} }, |
| 11283 | .block_erase = spi_block_erase_c4, |
| 11284 | } |
| 11285 | }, |
| 11286 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11287 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11288 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11289 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11290 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11291 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11292 | }, |
| 11293 | |
| 11294 | { |
| 11295 | .vendor = "Micron/Numonyx/ST", |
| 11296 | .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11297 | .bustype = BUS_SPI, |
| 11298 | .manufacture_id = ST_ID, |
| 11299 | .model_id = ST_N25Q00A__3G, |
| 11300 | .total_size = 131072, |
| 11301 | .page_size = 256, |
| 11302 | /* supports SFDP */ |
| 11303 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11304 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11305 | .tested = TEST_UNTESTED, |
| 11306 | .probe = probe_spi_rdid, |
| 11307 | .probe_timing = TIMING_ZERO, |
| 11308 | .block_erasers = |
| 11309 | { |
| 11310 | { |
| 11311 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11312 | .block_erase = spi_block_erase_21, |
| 11313 | }, { |
| 11314 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11315 | .block_erase = spi_block_erase_20, |
| 11316 | }, { |
| 11317 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11318 | .block_erase = spi_block_erase_dc, |
| 11319 | }, { |
| 11320 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11321 | .block_erase = spi_block_erase_d8, |
| 11322 | }, { |
| 11323 | .eraseblocks = { {32768 * 1024, 4} }, |
| 11324 | .block_erase = spi_block_erase_c4, |
| 11325 | } |
| 11326 | }, |
| 11327 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11328 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11329 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11330 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11331 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11332 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11333 | }, |
| 11334 | |
| 11335 | { |
| 11336 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11337 | .name = "N25Q016", |
| 11338 | .bustype = BUS_SPI, |
| 11339 | .manufacture_id = ST_ID, |
| 11340 | .model_id = ST_N25Q016__1E, |
| 11341 | .total_size = 2048, |
| 11342 | .page_size = 256, |
| 11343 | /* supports SFDP */ |
| 11344 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11345 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11346 | .tested = TEST_UNTESTED, |
| 11347 | .probe = probe_spi_rdid, |
| 11348 | .probe_timing = TIMING_ZERO, |
| 11349 | .block_erasers = |
| 11350 | { |
| 11351 | { |
| 11352 | .eraseblocks = { {4 * 1024, 512} }, |
| 11353 | .block_erase = spi_block_erase_20, |
| 11354 | }, { |
| 11355 | .eraseblocks = { {32 * 1024, 64} }, |
| 11356 | .block_erase = spi_block_erase_52, |
| 11357 | }, { |
| 11358 | .eraseblocks = { {64 * 1024, 32} }, |
| 11359 | .block_erase = spi_block_erase_d8, |
| 11360 | }, { |
| 11361 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11362 | .block_erase = spi_block_erase_c7, |
| 11363 | } |
| 11364 | }, |
| 11365 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11366 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11367 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11368 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11369 | .voltage = {1700, 2000}, |
| 11370 | }, |
| 11371 | |
| 11372 | { |
| 11373 | .vendor = "Micron/Numonyx/ST", |
| 11374 | .name = "N25Q032..1E", |
| 11375 | .bustype = BUS_SPI, |
| 11376 | .manufacture_id = ST_ID, |
| 11377 | .model_id = ST_N25Q032__1E, |
| 11378 | .total_size = 4096, |
| 11379 | .page_size = 256, |
| 11380 | /* supports SFDP */ |
| 11381 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11382 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11383 | .tested = TEST_UNTESTED, |
| 11384 | .probe = probe_spi_rdid, |
| 11385 | .probe_timing = TIMING_ZERO, |
| 11386 | .block_erasers = |
| 11387 | { |
| 11388 | { |
| 11389 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11390 | .block_erase = spi_block_erase_20, |
| 11391 | }, { |
| 11392 | .eraseblocks = { {64 * 1024, 64} }, |
| 11393 | .block_erase = spi_block_erase_d8, |
| 11394 | }, { |
| 11395 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11396 | .block_erase = spi_block_erase_c7, |
| 11397 | } |
| 11398 | }, |
| 11399 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11400 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11401 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11402 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11403 | .voltage = {1700, 2000}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11404 | .reg_bits = |
| 11405 | { |
| 11406 | /* |
| 11407 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11408 | * mutually exclusive with BP-based protection. |
| 11409 | */ |
| 11410 | .srp = {STATUS1, 7, RW}, |
| 11411 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 11412 | .tb = {STATUS1, 5, RW}, |
| 11413 | }, |
| 11414 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11415 | }, |
| 11416 | |
| 11417 | { |
| 11418 | .vendor = "Micron/Numonyx/ST", |
| 11419 | .name = "N25Q032..3E", |
| 11420 | .bustype = BUS_SPI, |
| 11421 | .manufacture_id = ST_ID, |
| 11422 | .model_id = ST_N25Q032__3E, |
| 11423 | .total_size = 4096, |
| 11424 | .page_size = 256, |
| 11425 | /* supports SFDP */ |
| 11426 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11427 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11428 | .tested = TEST_OK_PREW, |
| 11429 | .probe = probe_spi_rdid, |
| 11430 | .probe_timing = TIMING_ZERO, |
| 11431 | .block_erasers = |
| 11432 | { |
| 11433 | { |
| 11434 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11435 | .block_erase = spi_block_erase_20, |
| 11436 | }, { |
| 11437 | .eraseblocks = { {64 * 1024, 64} }, |
| 11438 | .block_erase = spi_block_erase_d8, |
| 11439 | }, { |
| 11440 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11441 | .block_erase = spi_block_erase_c7, |
| 11442 | } |
| 11443 | }, |
| 11444 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11445 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11446 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11447 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11448 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11449 | .reg_bits = |
| 11450 | { |
| 11451 | /* |
| 11452 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11453 | * mutually exclusive with BP-based protection. |
| 11454 | */ |
| 11455 | .srp = {STATUS1, 7, RW}, |
| 11456 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 11457 | .tb = {STATUS1, 5, RW}, |
| 11458 | }, |
| 11459 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11460 | }, |
| 11461 | |
| 11462 | { |
| 11463 | .vendor = "Micron/Numonyx/ST", |
| 11464 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11465 | .bustype = BUS_SPI, |
| 11466 | .manufacture_id = ST_ID, |
| 11467 | .model_id = ST_N25Q064__1E, |
| 11468 | .total_size = 8192, |
| 11469 | .page_size = 256, |
| 11470 | /* supports SFDP */ |
| 11471 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11472 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11473 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11474 | .probe = probe_spi_rdid, |
| 11475 | .probe_timing = TIMING_ZERO, |
| 11476 | .block_erasers = |
| 11477 | { |
| 11478 | { |
| 11479 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 11480 | .block_erase = spi_block_erase_20, |
| 11481 | }, { |
| 11482 | .eraseblocks = { {64 * 1024, 128} }, |
| 11483 | .block_erase = spi_block_erase_d8, |
| 11484 | }, { |
| 11485 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11486 | .block_erase = spi_block_erase_c7, |
| 11487 | } |
| 11488 | }, |
| 11489 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11490 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11491 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11492 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11493 | .voltage = {1700, 2000}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11494 | .reg_bits = |
| 11495 | { |
| 11496 | /* |
| 11497 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11498 | * mutually exclusive with BP-based protection. |
| 11499 | */ |
| 11500 | .srp = {STATUS1, 7, RW}, |
| 11501 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 11502 | .tb = {STATUS1, 5, RW}, |
| 11503 | }, |
| 11504 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11505 | }, |
| 11506 | |
| 11507 | { |
| 11508 | .vendor = "Micron/Numonyx/ST", |
| 11509 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11510 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11511 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11512 | .model_id = ST_N25Q064__3E, |
| 11513 | .total_size = 8192, |
| 11514 | .page_size = 256, |
| 11515 | /* supports SFDP */ |
| 11516 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11517 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11518 | .tested = TEST_OK_PREW, |
| 11519 | .probe = probe_spi_rdid, |
| 11520 | .probe_timing = TIMING_ZERO, |
| 11521 | .block_erasers = |
| 11522 | { |
| 11523 | { |
| 11524 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 11525 | .block_erase = spi_block_erase_20, |
| 11526 | }, { |
| 11527 | .eraseblocks = { {64 * 1024, 128} }, |
| 11528 | .block_erase = spi_block_erase_d8, |
| 11529 | }, { |
| 11530 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11531 | .block_erase = spi_block_erase_c7, |
| 11532 | } |
| 11533 | }, |
| 11534 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11535 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11536 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11537 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11538 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11539 | .reg_bits = |
| 11540 | { |
| 11541 | /* |
| 11542 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11543 | * mutually exclusive with BP-based protection. |
| 11544 | */ |
| 11545 | .srp = {STATUS1, 7, RW}, |
| 11546 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 11547 | .tb = {STATUS1, 5, RW}, |
| 11548 | }, |
| 11549 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11550 | }, |
| 11551 | |
| 11552 | { |
| 11553 | .vendor = "Micron/Numonyx/ST", |
| 11554 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11555 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11556 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11557 | .model_id = ST_N25Q128__1E, |
| 11558 | .total_size = 16384, |
| 11559 | .page_size = 256, |
| 11560 | /* supports SFDP */ |
| 11561 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11562 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11563 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11564 | .probe = probe_spi_rdid, |
| 11565 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11566 | .block_erasers = |
| 11567 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11568 | { |
| 11569 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 11570 | .block_erase = spi_block_erase_20, |
| 11571 | }, { |
| 11572 | .eraseblocks = { {64 * 1024, 256} }, |
| 11573 | .block_erase = spi_block_erase_d8, |
| 11574 | }, { |
| 11575 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11576 | .block_erase = spi_block_erase_c7, |
| 11577 | } |
| 11578 | }, |
| 11579 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11580 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11581 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11582 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11583 | .voltage = {1700, 2000}, |
| 11584 | }, |
| 11585 | |
| 11586 | { |
| 11587 | .vendor = "Micron/Numonyx/ST", |
| 11588 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11589 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11590 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11591 | .model_id = ST_N25Q128__3E, |
| 11592 | .total_size = 16384, |
| 11593 | .page_size = 256, |
| 11594 | /* supports SFDP */ |
| 11595 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11596 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11597 | .tested = TEST_OK_PREW, |
| 11598 | .probe = probe_spi_rdid, |
| 11599 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11600 | .block_erasers = |
| 11601 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11602 | { |
| 11603 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 11604 | .block_erase = spi_block_erase_20, |
| 11605 | }, { |
| 11606 | .eraseblocks = { {64 * 1024, 256} }, |
| 11607 | .block_erase = spi_block_erase_d8, |
| 11608 | }, { |
| 11609 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11610 | .block_erase = spi_block_erase_c7, |
| 11611 | } |
| 11612 | }, |
| 11613 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11614 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11615 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11616 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11617 | .voltage = {2700, 3600}, |
| 11618 | }, |
| 11619 | |
| 11620 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11621 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11622 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11623 | .bustype = BUS_SPI, |
| 11624 | .manufacture_id = ST_ID, |
| 11625 | .model_id = ST_N25Q256__1E, |
| 11626 | .total_size = 32768, |
| 11627 | .page_size = 256, |
| 11628 | /* supports SFDP */ |
| 11629 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11630 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11631 | .tested = TEST_UNTESTED, |
| 11632 | .probe = probe_spi_rdid, |
| 11633 | .probe_timing = TIMING_ZERO, |
| 11634 | .block_erasers = |
| 11635 | { |
| 11636 | { |
| 11637 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11638 | .block_erase = spi_block_erase_21, |
| 11639 | }, { |
| 11640 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11641 | .block_erase = spi_block_erase_20, |
| 11642 | }, { |
| 11643 | .eraseblocks = { {64 * 1024, 512} }, |
| 11644 | .block_erase = spi_block_erase_dc, |
| 11645 | }, { |
| 11646 | .eraseblocks = { {64 * 1024, 512} }, |
| 11647 | .block_erase = spi_block_erase_d8, |
| 11648 | }, { |
| 11649 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11650 | .block_erase = spi_block_erase_c7, |
| 11651 | } |
| 11652 | }, |
| 11653 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11654 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11655 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11656 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11657 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11658 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11659 | }, |
| 11660 | |
| 11661 | { |
| 11662 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11663 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11664 | .bustype = BUS_SPI, |
| 11665 | .manufacture_id = ST_ID, |
| 11666 | .model_id = ST_N25Q256__3E, |
| 11667 | .total_size = 32768, |
| 11668 | .page_size = 256, |
| 11669 | /* supports SFDP */ |
| 11670 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11671 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11672 | .tested = TEST_UNTESTED, |
| 11673 | .probe = probe_spi_rdid, |
| 11674 | .probe_timing = TIMING_ZERO, |
| 11675 | .block_erasers = |
| 11676 | { |
| 11677 | { |
| 11678 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11679 | .block_erase = spi_block_erase_21, |
| 11680 | }, { |
| 11681 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11682 | .block_erase = spi_block_erase_20, |
| 11683 | }, { |
| 11684 | .eraseblocks = { {64 * 1024, 512} }, |
| 11685 | .block_erase = spi_block_erase_dc, |
| 11686 | }, { |
| 11687 | .eraseblocks = { {64 * 1024, 512} }, |
| 11688 | .block_erase = spi_block_erase_d8, |
| 11689 | }, { |
| 11690 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11691 | .block_erase = spi_block_erase_c7, |
| 11692 | } |
| 11693 | }, |
| 11694 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11695 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11696 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11697 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11698 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11699 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11700 | }, |
| 11701 | |
| 11702 | { |
| 11703 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11704 | .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11705 | .bustype = BUS_SPI, |
| 11706 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11707 | .model_id = ST_N25Q512__1G, |
| 11708 | .total_size = 65536, |
| 11709 | .page_size = 256, |
| 11710 | /* supports SFDP */ |
| 11711 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11712 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11713 | .tested = TEST_UNTESTED, |
| 11714 | .probe = probe_spi_rdid, |
| 11715 | .probe_timing = TIMING_ZERO, |
| 11716 | .block_erasers = |
| 11717 | { |
| 11718 | { |
| 11719 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11720 | .block_erase = spi_block_erase_21, |
| 11721 | }, { |
| 11722 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11723 | .block_erase = spi_block_erase_20, |
| 11724 | }, { |
| 11725 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11726 | .block_erase = spi_block_erase_dc, |
| 11727 | }, { |
| 11728 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11729 | .block_erase = spi_block_erase_d8, |
| 11730 | }, { |
| 11731 | .eraseblocks = { {32768 * 1024, 2} }, |
| 11732 | .block_erase = spi_block_erase_c4, |
| 11733 | } |
| 11734 | }, |
| 11735 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11736 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11737 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11738 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11739 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11740 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11741 | }, |
| 11742 | |
| 11743 | { |
| 11744 | .vendor = "Micron/Numonyx/ST", |
| 11745 | .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11746 | .bustype = BUS_SPI, |
| 11747 | .manufacture_id = ST_ID, |
| 11748 | .model_id = ST_N25Q512__3G, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11749 | .total_size = 65536, |
| 11750 | .page_size = 256, |
| 11751 | /* supports SFDP */ |
| 11752 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11753 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11754 | .tested = TEST_OK_PREW, |
| 11755 | .probe = probe_spi_rdid, |
| 11756 | .probe_timing = TIMING_ZERO, |
| 11757 | .block_erasers = |
| 11758 | { |
| 11759 | { |
| 11760 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11761 | .block_erase = spi_block_erase_21, |
| 11762 | }, { |
| 11763 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11764 | .block_erase = spi_block_erase_20, |
| 11765 | }, { |
| 11766 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11767 | .block_erase = spi_block_erase_dc, |
| 11768 | }, { |
| 11769 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11770 | .block_erase = spi_block_erase_d8, |
| 11771 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 11772 | .eraseblocks = { {32768 * 1024, 2} }, |
| 11773 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11774 | } |
| 11775 | }, |
| 11776 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11777 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11778 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11779 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11780 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11781 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11782 | }, |
| 11783 | |
| 11784 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11785 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11786 | .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11787 | .bustype = BUS_SPI, |
| 11788 | .manufacture_id = ST_ID, |
| 11789 | .model_id = ST_N25Q00A__3G, |
| 11790 | .total_size = 131072, |
| 11791 | .page_size = 256, |
| 11792 | /* supports SFDP */ |
| 11793 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11794 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11795 | .tested = TEST_OK_PREW, |
| 11796 | .probe = probe_spi_rdid, |
| 11797 | .probe_timing = TIMING_ZERO, |
| 11798 | .block_erasers = |
| 11799 | { |
| 11800 | { |
| 11801 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11802 | .block_erase = spi_block_erase_21, |
| 11803 | }, { |
| 11804 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11805 | .block_erase = spi_block_erase_20, |
| 11806 | }, { |
| 11807 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11808 | .block_erase = spi_block_erase_5c, |
| 11809 | }, { |
| 11810 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11811 | .block_erase = spi_block_erase_52, |
| 11812 | }, { |
| 11813 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11814 | .block_erase = spi_block_erase_dc, |
| 11815 | }, { |
| 11816 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11817 | .block_erase = spi_block_erase_d8, |
| 11818 | }, { |
| 11819 | .eraseblocks = { {65536 * 1024, 2} }, |
| 11820 | .block_erase = spi_block_erase_c4, |
| 11821 | } |
| 11822 | }, |
| 11823 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11824 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11825 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11826 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11827 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11828 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11829 | }, |
| 11830 | |
| 11831 | { |
| 11832 | .vendor = "Micron", |
| 11833 | .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11834 | .bustype = BUS_SPI, |
| 11835 | .manufacture_id = ST_ID, |
| 11836 | .model_id = ST_N25Q00A__1G, |
| 11837 | .total_size = 131072, |
| 11838 | .page_size = 256, |
| 11839 | /* supports SFDP */ |
| 11840 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11841 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11842 | .tested = TEST_UNTESTED, |
| 11843 | .probe = probe_spi_rdid, |
| 11844 | .probe_timing = TIMING_ZERO, |
| 11845 | .block_erasers = |
| 11846 | { |
| 11847 | { |
| 11848 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11849 | .block_erase = spi_block_erase_21, |
| 11850 | }, { |
| 11851 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11852 | .block_erase = spi_block_erase_20, |
| 11853 | }, { |
| 11854 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11855 | .block_erase = spi_block_erase_5c, |
| 11856 | }, { |
| 11857 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11858 | .block_erase = spi_block_erase_52, |
| 11859 | }, { |
| 11860 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11861 | .block_erase = spi_block_erase_dc, |
| 11862 | }, { |
| 11863 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11864 | .block_erase = spi_block_erase_d8, |
| 11865 | }, { |
| 11866 | .eraseblocks = { {65536 * 1024, 2} }, |
| 11867 | .block_erase = spi_block_erase_c4, |
| 11868 | } |
| 11869 | }, |
| 11870 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11871 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11872 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11873 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11874 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11875 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11876 | }, |
| 11877 | |
| 11878 | { |
| 11879 | .vendor = "Micron", |
| 11880 | .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11881 | .bustype = BUS_SPI, |
| 11882 | .manufacture_id = ST_ID, |
| 11883 | .model_id = ST_MT25QL02G, |
| 11884 | .total_size = 262144, |
| 11885 | .page_size = 256, |
| 11886 | /* supports SFDP */ |
| 11887 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11888 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11889 | .tested = TEST_UNTESTED, |
| 11890 | .probe = probe_spi_rdid, |
| 11891 | .probe_timing = TIMING_ZERO, |
| 11892 | .block_erasers = |
| 11893 | { |
| 11894 | { |
| 11895 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11896 | .block_erase = spi_block_erase_21, |
| 11897 | }, { |
| 11898 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11899 | .block_erase = spi_block_erase_20, |
| 11900 | }, { |
| 11901 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11902 | .block_erase = spi_block_erase_5c, |
| 11903 | }, { |
| 11904 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11905 | .block_erase = spi_block_erase_52, |
| 11906 | }, { |
| 11907 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11908 | .block_erase = spi_block_erase_dc, |
| 11909 | }, { |
| 11910 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11911 | .block_erase = spi_block_erase_d8, |
| 11912 | }, { |
| 11913 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11914 | .block_erase = spi_block_erase_c4, |
| 11915 | } |
| 11916 | }, |
| 11917 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11918 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11919 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11920 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11921 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11922 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11923 | }, |
| 11924 | |
| 11925 | { |
| 11926 | .vendor = "Micron", |
| 11927 | .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11928 | .bustype = BUS_SPI, |
| 11929 | .manufacture_id = ST_ID, |
| 11930 | .model_id = ST_MT25QU02G, |
| 11931 | .total_size = 262144, |
| 11932 | .page_size = 256, |
| 11933 | /* supports SFDP */ |
| 11934 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11936 | .tested = TEST_UNTESTED, |
| 11937 | .probe = probe_spi_rdid, |
| 11938 | .probe_timing = TIMING_ZERO, |
| 11939 | .block_erasers = |
| 11940 | { |
| 11941 | { |
| 11942 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11943 | .block_erase = spi_block_erase_21, |
| 11944 | }, { |
| 11945 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11946 | .block_erase = spi_block_erase_20, |
| 11947 | }, { |
| 11948 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11949 | .block_erase = spi_block_erase_5c, |
| 11950 | }, { |
| 11951 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11952 | .block_erase = spi_block_erase_52, |
| 11953 | }, { |
| 11954 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11955 | .block_erase = spi_block_erase_dc, |
| 11956 | }, { |
| 11957 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11958 | .block_erase = spi_block_erase_d8, |
| 11959 | }, { |
| 11960 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11961 | .block_erase = spi_block_erase_c4, |
| 11962 | } |
| 11963 | }, |
| 11964 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11965 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11966 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11967 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11968 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11969 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11970 | }, |
| 11971 | |
| 11972 | { |
| 11973 | .vendor = "Micron", |
| 11974 | .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11975 | .bustype = BUS_SPI, |
| 11976 | .manufacture_id = ST_ID, |
| 11977 | .model_id = ST_N25Q128__1E, |
| 11978 | .total_size = 16384, |
| 11979 | .page_size = 256, |
| 11980 | /* supports SFDP */ |
| 11981 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | 48dc090 | 2023-03-05 17:20:55 +0100 | [diff] [blame] | 11982 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11983 | .tested = TEST_UNTESTED, |
| 11984 | .probe = probe_spi_rdid, |
| 11985 | .probe_timing = TIMING_ZERO, |
| 11986 | .block_erasers = |
| 11987 | { |
| 11988 | { |
| 11989 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11990 | .block_erase = spi_block_erase_20, |
| 11991 | }, { |
| 11992 | .eraseblocks = { {32 * 1024, 512} }, |
| 11993 | .block_erase = spi_block_erase_52, |
| 11994 | }, { |
| 11995 | .eraseblocks = { {64 * 1024, 256} }, |
| 11996 | .block_erase = spi_block_erase_d8, |
| 11997 | }, { |
| 11998 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11999 | .block_erase = spi_block_erase_c7, |
| 12000 | }, { |
| 12001 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12002 | .block_erase = spi_block_erase_60, |
| 12003 | } |
| 12004 | }, |
| 12005 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12006 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12007 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12008 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12009 | .voltage = {1700, 2000}, |
| 12010 | }, |
| 12011 | |
| 12012 | { |
| 12013 | .vendor = "Micron", |
| 12014 | .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12015 | .bustype = BUS_SPI, |
| 12016 | .manufacture_id = ST_ID, |
| 12017 | .model_id = ST_N25Q128__3E, |
| 12018 | .total_size = 16384, |
| 12019 | .page_size = 256, |
| 12020 | /* supports SFDP */ |
| 12021 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Rick Altherr | 1e56360 | 2022-12-22 10:25:34 -0800 | [diff] [blame] | 12022 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12023 | .tested = TEST_OK_PREW, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12024 | .probe = probe_spi_rdid, |
| 12025 | .probe_timing = TIMING_ZERO, |
| 12026 | .block_erasers = |
| 12027 | { |
| 12028 | { |
| 12029 | .eraseblocks = { {4 * 1024, 4096} }, |
| 12030 | .block_erase = spi_block_erase_20, |
| 12031 | }, { |
| 12032 | .eraseblocks = { {32 * 1024, 512} }, |
| 12033 | .block_erase = spi_block_erase_52, |
| 12034 | }, { |
| 12035 | .eraseblocks = { {64 * 1024, 256} }, |
| 12036 | .block_erase = spi_block_erase_d8, |
| 12037 | }, { |
| 12038 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12039 | .block_erase = spi_block_erase_c7, |
| 12040 | }, { |
| 12041 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12042 | .block_erase = spi_block_erase_60, |
| 12043 | } |
| 12044 | }, |
| 12045 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12046 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12047 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12048 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12049 | .voltage = {2700, 3600}, |
| 12050 | }, |
| 12051 | |
| 12052 | { |
| 12053 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12054 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12055 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12056 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12057 | .model_id = ST_N25Q256__3E, |
| 12058 | .total_size = 32768, |
| 12059 | .page_size = 256, |
| 12060 | /* supports SFDP */ |
| 12061 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12062 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Simon Buhrow | b7014f9 | 2021-02-15 13:16:57 +0100 | [diff] [blame] | 12063 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12064 | .probe = probe_spi_rdid, |
| 12065 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 12066 | .block_erasers = |
| 12067 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12068 | { |
| 12069 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12070 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12071 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12072 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12073 | .block_erase = spi_block_erase_20, |
| 12074 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12075 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12076 | .block_erase = spi_block_erase_5c, |
| 12077 | }, { |
| 12078 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12079 | .block_erase = spi_block_erase_52, |
| 12080 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12081 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12082 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12083 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12084 | .eraseblocks = { {64 * 1024, 512} }, |
| 12085 | .block_erase = spi_block_erase_d8, |
| 12086 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12087 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12088 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12089 | }, { |
| 12090 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12091 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12092 | } |
| 12093 | }, |
| 12094 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12095 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12096 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12097 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12098 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12099 | .prepare_access = spi_prepare_4ba, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12100 | }, |
| 12101 | |
| 12102 | { |
| 12103 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12104 | .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12105 | .bustype = BUS_SPI, |
| 12106 | .manufacture_id = ST_ID, |
| 12107 | .model_id = ST_N25Q256__1E, |
| 12108 | .total_size = 32768, |
| 12109 | .page_size = 256, |
| 12110 | /* supports SFDP */ |
| 12111 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12112 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 5905258 | 2022-03-08 15:23:58 +0100 | [diff] [blame] | 12113 | .tested = TEST_OK_PREW, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12114 | .probe = probe_spi_rdid, |
| 12115 | .probe_timing = TIMING_ZERO, |
| 12116 | .block_erasers = |
| 12117 | { |
| 12118 | { |
| 12119 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12120 | .block_erase = spi_block_erase_21, |
| 12121 | }, { |
| 12122 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12123 | .block_erase = spi_block_erase_20, |
| 12124 | }, { |
| 12125 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12126 | .block_erase = spi_block_erase_5c, |
| 12127 | }, { |
| 12128 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12129 | .block_erase = spi_block_erase_52, |
| 12130 | }, { |
| 12131 | .eraseblocks = { {64 * 1024, 512} }, |
| 12132 | .block_erase = spi_block_erase_dc, |
| 12133 | }, { |
| 12134 | .eraseblocks = { {64 * 1024, 512} }, |
| 12135 | .block_erase = spi_block_erase_d8, |
| 12136 | }, { |
| 12137 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12138 | .block_erase = spi_block_erase_c7, |
| 12139 | }, { |
| 12140 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12141 | .block_erase = spi_block_erase_60, |
| 12142 | } |
| 12143 | }, |
| 12144 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12145 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12146 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12147 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12148 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12149 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12150 | }, |
| 12151 | |
| 12152 | { |
| 12153 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12154 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12155 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12156 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12157 | .model_id = ST_N25Q512__3G, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12158 | .total_size = 65536, |
| 12159 | .page_size = 256, |
| 12160 | /* supports SFDP */ |
| 12161 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12162 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 12163 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12164 | .probe = probe_spi_rdid, |
| 12165 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 12166 | .block_erasers = |
| 12167 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12168 | { |
| 12169 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12170 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12171 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12172 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12173 | .block_erase = spi_block_erase_20, |
| 12174 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12175 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12176 | .block_erase = spi_block_erase_5c, |
| 12177 | }, { |
| 12178 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12179 | .block_erase = spi_block_erase_52, |
| 12180 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12181 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12182 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12183 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12184 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12185 | .block_erase = spi_block_erase_d8, |
| 12186 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12187 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12188 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12189 | }, { |
| 12190 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12191 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12192 | } |
| 12193 | }, |
| 12194 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12195 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12196 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12197 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12198 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12199 | .reg_bits = |
| 12200 | { |
| 12201 | .srp = {STATUS1, 7, RW}, |
| 12202 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 12203 | .tb = {STATUS1, 5, RW}, |
| 12204 | }, |
| 12205 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12206 | .prepare_access = spi_prepare_4ba, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12207 | }, |
| 12208 | |
| 12209 | { |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12210 | .vendor = "Micron", |
| 12211 | .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12212 | .bustype = BUS_SPI, |
| 12213 | .manufacture_id = ST_ID, |
| 12214 | .model_id = ST_N25Q512__1G, |
| 12215 | .total_size = 65536, |
| 12216 | .page_size = 256, |
| 12217 | /* supports SFDP */ |
| 12218 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12219 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12220 | .tested = TEST_OK_PREW, |
| 12221 | .probe = probe_spi_rdid, |
| 12222 | .probe_timing = TIMING_ZERO, |
| 12223 | .block_erasers = |
| 12224 | { |
| 12225 | { |
| 12226 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12227 | .block_erase = spi_block_erase_21, |
| 12228 | }, { |
| 12229 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12230 | .block_erase = spi_block_erase_20, |
| 12231 | }, { |
| 12232 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12233 | .block_erase = spi_block_erase_5c, |
| 12234 | }, { |
| 12235 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12236 | .block_erase = spi_block_erase_52, |
| 12237 | }, { |
| 12238 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12239 | .block_erase = spi_block_erase_dc, |
| 12240 | }, { |
| 12241 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12242 | .block_erase = spi_block_erase_d8, |
| 12243 | }, { |
| 12244 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12245 | .block_erase = spi_block_erase_c7, |
| 12246 | }, { |
| 12247 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12248 | .block_erase = spi_block_erase_60, |
| 12249 | } |
| 12250 | }, |
| 12251 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12252 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12253 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12254 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12255 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12256 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12257 | }, |
| 12258 | |
| 12259 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12260 | .vendor = "MoselVitelic", |
| 12261 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12262 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12263 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12264 | .model_id = MVC_V29C51000B, |
| 12265 | .total_size = 64, |
| 12266 | .page_size = 512, |
| 12267 | .feature_bits = FEATURE_EITHER_RESET, |
| 12268 | .tested = TEST_UNTESTED, |
| 12269 | .probe = probe_jedec, |
| 12270 | .probe_timing = TIMING_ZERO, |
| 12271 | .block_erasers = |
| 12272 | { |
| 12273 | { |
| 12274 | .eraseblocks = { {512, 128} }, |
| 12275 | .block_erase = erase_sector_jedec, |
| 12276 | }, { |
| 12277 | .eraseblocks = { {64 * 1024, 1} }, |
| 12278 | .block_erase = erase_chip_block_jedec, |
| 12279 | }, |
| 12280 | }, |
| 12281 | .write = write_jedec_1, |
| 12282 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12283 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12284 | .prepare_access = prepare_memory_access, |
| 12285 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12286 | }, |
| 12287 | |
| 12288 | { |
| 12289 | .vendor = "MoselVitelic", |
| 12290 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12291 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12292 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12293 | .model_id = MVC_V29C51000T, |
| 12294 | .total_size = 64, |
| 12295 | .page_size = 512, |
| 12296 | .feature_bits = FEATURE_EITHER_RESET, |
| 12297 | .tested = TEST_UNTESTED, |
| 12298 | .probe = probe_jedec, |
| 12299 | .probe_timing = TIMING_ZERO, |
| 12300 | .block_erasers = |
| 12301 | { |
| 12302 | { |
| 12303 | .eraseblocks = { {512, 128} }, |
| 12304 | .block_erase = erase_sector_jedec, |
| 12305 | }, { |
| 12306 | .eraseblocks = { {64 * 1024, 1} }, |
| 12307 | .block_erase = erase_chip_block_jedec, |
| 12308 | }, |
| 12309 | }, |
| 12310 | .write = write_jedec_1, |
| 12311 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12312 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12313 | .prepare_access = prepare_memory_access, |
| 12314 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12315 | }, |
| 12316 | |
| 12317 | { |
| 12318 | .vendor = "MoselVitelic", |
| 12319 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12320 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12321 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12322 | .model_id = MVC_V29C51400B, |
| 12323 | .total_size = 512, |
| 12324 | .page_size = 1024, |
| 12325 | .feature_bits = FEATURE_EITHER_RESET, |
| 12326 | .tested = TEST_UNTESTED, |
| 12327 | .probe = probe_jedec, |
| 12328 | .probe_timing = TIMING_ZERO, |
| 12329 | .block_erasers = |
| 12330 | { |
| 12331 | { |
| 12332 | .eraseblocks = { {1024, 512} }, |
| 12333 | .block_erase = erase_sector_jedec, |
| 12334 | }, { |
| 12335 | .eraseblocks = { {512 * 1024, 1} }, |
| 12336 | .block_erase = erase_chip_block_jedec, |
| 12337 | }, |
| 12338 | }, |
| 12339 | .write = write_jedec_1, |
| 12340 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12341 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12342 | .prepare_access = prepare_memory_access, |
| 12343 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12344 | }, |
| 12345 | |
| 12346 | { |
| 12347 | .vendor = "MoselVitelic", |
| 12348 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12349 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12350 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12351 | .model_id = MVC_V29C51400T, |
| 12352 | .total_size = 512, |
| 12353 | .page_size = 1024, |
| 12354 | .feature_bits = FEATURE_EITHER_RESET, |
| 12355 | .tested = TEST_UNTESTED, |
| 12356 | .probe = probe_jedec, |
| 12357 | .probe_timing = TIMING_ZERO, |
| 12358 | .block_erasers = |
| 12359 | { |
| 12360 | { |
| 12361 | .eraseblocks = { {1024, 512} }, |
| 12362 | .block_erase = erase_sector_jedec, |
| 12363 | }, { |
| 12364 | .eraseblocks = { {512 * 1024, 1} }, |
| 12365 | .block_erase = erase_chip_block_jedec, |
| 12366 | }, |
| 12367 | }, |
| 12368 | .write = write_jedec_1, |
| 12369 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12370 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12371 | .prepare_access = prepare_memory_access, |
| 12372 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12373 | }, |
| 12374 | |
| 12375 | { |
| 12376 | .vendor = "MoselVitelic", |
| 12377 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12378 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12379 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12380 | .model_id = MVC_V29LC51000, |
| 12381 | .total_size = 64, |
| 12382 | .page_size = 512, |
| 12383 | .feature_bits = FEATURE_EITHER_RESET, |
| 12384 | .tested = TEST_UNTESTED, |
| 12385 | .probe = probe_jedec, |
| 12386 | .probe_timing = TIMING_ZERO, |
| 12387 | .block_erasers = |
| 12388 | { |
| 12389 | { |
| 12390 | .eraseblocks = { {512, 128} }, |
| 12391 | .block_erase = erase_sector_jedec, |
| 12392 | }, { |
| 12393 | .eraseblocks = { {64 * 1024, 1} }, |
| 12394 | .block_erase = erase_chip_block_jedec, |
| 12395 | }, |
| 12396 | }, |
| 12397 | .write = write_jedec_1, |
| 12398 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12399 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12400 | .prepare_access = prepare_memory_access, |
| 12401 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12402 | }, |
| 12403 | |
| 12404 | { |
| 12405 | .vendor = "MoselVitelic", |
| 12406 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12407 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12408 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12409 | .model_id = MVC_V29LC51001, |
| 12410 | .total_size = 128, |
| 12411 | .page_size = 512, |
| 12412 | .feature_bits = FEATURE_EITHER_RESET, |
| 12413 | .tested = TEST_UNTESTED, |
| 12414 | .probe = probe_jedec, |
| 12415 | .probe_timing = TIMING_ZERO, |
| 12416 | .block_erasers = |
| 12417 | { |
| 12418 | { |
| 12419 | .eraseblocks = { {512, 256} }, |
| 12420 | .block_erase = erase_sector_jedec, |
| 12421 | }, { |
| 12422 | .eraseblocks = { {128 * 1024, 1} }, |
| 12423 | .block_erase = erase_chip_block_jedec, |
| 12424 | }, |
| 12425 | }, |
| 12426 | .write = write_jedec_1, |
| 12427 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12428 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12429 | .prepare_access = prepare_memory_access, |
| 12430 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12431 | }, |
| 12432 | |
| 12433 | { |
| 12434 | .vendor = "MoselVitelic", |
| 12435 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12436 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12437 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12438 | .model_id = MVC_V29LC51002, |
| 12439 | .total_size = 256, |
| 12440 | .page_size = 512, |
| 12441 | .feature_bits = FEATURE_EITHER_RESET, |
| 12442 | .tested = TEST_UNTESTED, |
| 12443 | .probe = probe_jedec, |
| 12444 | .probe_timing = TIMING_ZERO, |
| 12445 | .block_erasers = |
| 12446 | { |
| 12447 | { |
| 12448 | .eraseblocks = { {512, 512} }, |
| 12449 | .block_erase = erase_sector_jedec, |
| 12450 | }, { |
| 12451 | .eraseblocks = { {256 * 1024, 1} }, |
| 12452 | .block_erase = erase_chip_block_jedec, |
| 12453 | }, |
| 12454 | }, |
| 12455 | .write = write_jedec_1, |
| 12456 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12457 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12458 | .prepare_access = prepare_memory_access, |
| 12459 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12460 | }, |
| 12461 | |
| 12462 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12463 | .vendor = "Nantronics", |
| 12464 | .name = "N25S10", |
| 12465 | .bustype = BUS_SPI, |
| 12466 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12467 | .model_id = NANTRONICS_N25S10, |
| 12468 | .total_size = 128, |
| 12469 | .page_size = 256, |
| 12470 | .feature_bits = FEATURE_WRSR_WREN, |
| 12471 | .tested = TEST_UNTESTED, |
| 12472 | .probe = probe_spi_rdid, |
| 12473 | .probe_timing = TIMING_ZERO, |
| 12474 | .block_erasers = |
| 12475 | { |
| 12476 | { |
| 12477 | .eraseblocks = { {4 * 1024, 32} }, |
| 12478 | .block_erase = spi_block_erase_20, |
| 12479 | }, { |
| 12480 | .eraseblocks = { {4 * 1024, 32} }, |
| 12481 | .block_erase = spi_block_erase_d7, |
| 12482 | }, { |
| 12483 | .eraseblocks = { {32 * 1024, 4} }, |
| 12484 | .block_erase = spi_block_erase_52, |
| 12485 | }, { |
| 12486 | .eraseblocks = { {64 * 1024, 2} }, |
| 12487 | .block_erase = spi_block_erase_d8, |
| 12488 | }, { |
| 12489 | .eraseblocks = { {128 * 1024, 1} }, |
| 12490 | .block_erase = spi_block_erase_60, |
| 12491 | }, { |
| 12492 | .eraseblocks = { {128 * 1024, 1} }, |
| 12493 | .block_erase = spi_block_erase_c7, |
| 12494 | } |
| 12495 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12496 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12497 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12498 | .write = spi_chip_write_256, |
| 12499 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12500 | .voltage = {2700, 3600}, |
| 12501 | }, |
| 12502 | |
| 12503 | { |
| 12504 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12505 | .name = "N25S16", |
| 12506 | .bustype = BUS_SPI, |
| 12507 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12508 | .model_id = NANTRONICS_N25S16, |
| 12509 | .total_size = 2048, |
| 12510 | .page_size = 256, |
| 12511 | .feature_bits = FEATURE_WRSR_WREN, |
| 12512 | .tested = TEST_UNTESTED, |
| 12513 | .probe = probe_spi_rdid, |
| 12514 | .probe_timing = TIMING_ZERO, |
| 12515 | .block_erasers = |
| 12516 | { |
| 12517 | { |
| 12518 | .eraseblocks = { {4 * 1024, 512} }, |
| 12519 | .block_erase = spi_block_erase_20, |
| 12520 | }, { |
| 12521 | .eraseblocks = { {64 * 1024, 32} }, |
| 12522 | .block_erase = spi_block_erase_d8, |
| 12523 | }, { |
| 12524 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12525 | .block_erase = spi_block_erase_60, |
| 12526 | }, { |
| 12527 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12528 | .block_erase = spi_block_erase_c7, |
| 12529 | } |
| 12530 | }, |
| 12531 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 12532 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12533 | .write = spi_chip_write_256, |
| 12534 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12535 | .voltage = {2700, 3600}, |
| 12536 | }, |
| 12537 | |
| 12538 | { |
| 12539 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12540 | .name = "N25S20", |
| 12541 | .bustype = BUS_SPI, |
| 12542 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12543 | .model_id = NANTRONICS_N25S20, |
| 12544 | .total_size = 256, |
| 12545 | .page_size = 256, |
| 12546 | .feature_bits = FEATURE_WRSR_WREN, |
| 12547 | .tested = TEST_UNTESTED, |
| 12548 | .probe = probe_spi_rdid, |
| 12549 | .probe_timing = TIMING_ZERO, |
| 12550 | .block_erasers = |
| 12551 | { |
| 12552 | { |
| 12553 | .eraseblocks = { {4 * 1024, 64} }, |
| 12554 | .block_erase = spi_block_erase_20, |
| 12555 | }, { |
| 12556 | .eraseblocks = { {4 * 1024, 64} }, |
| 12557 | .block_erase = spi_block_erase_d7, |
| 12558 | }, { |
| 12559 | .eraseblocks = { {32 * 1024, 8} }, |
| 12560 | .block_erase = spi_block_erase_52, |
| 12561 | }, { |
| 12562 | .eraseblocks = { {64 * 1024, 4} }, |
| 12563 | .block_erase = spi_block_erase_d8, |
| 12564 | }, { |
| 12565 | .eraseblocks = { {256 * 1024, 1} }, |
| 12566 | .block_erase = spi_block_erase_60, |
| 12567 | }, { |
| 12568 | .eraseblocks = { {256 * 1024, 1} }, |
| 12569 | .block_erase = spi_block_erase_c7, |
| 12570 | } |
| 12571 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12572 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12573 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12574 | .write = spi_chip_write_256, |
| 12575 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12576 | .voltage = {2700, 3600}, |
| 12577 | }, |
| 12578 | |
| 12579 | { |
| 12580 | .vendor = "Nantronics", |
| 12581 | .name = "N25S40", |
| 12582 | .bustype = BUS_SPI, |
| 12583 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12584 | .model_id = NANTRONICS_N25S40, |
| 12585 | .total_size = 512, |
| 12586 | .page_size = 256, |
| 12587 | .feature_bits = FEATURE_WRSR_WREN, |
| 12588 | .tested = TEST_UNTESTED, |
| 12589 | .probe = probe_spi_rdid, |
| 12590 | .probe_timing = TIMING_ZERO, |
| 12591 | .block_erasers = |
| 12592 | { |
| 12593 | { |
| 12594 | .eraseblocks = { {4 * 1024, 128} }, |
| 12595 | .block_erase = spi_block_erase_20, |
| 12596 | }, { |
| 12597 | .eraseblocks = { {4 * 1024, 128} }, |
| 12598 | .block_erase = spi_block_erase_d7, |
| 12599 | }, { |
| 12600 | .eraseblocks = { {32 * 1024, 16} }, |
| 12601 | .block_erase = spi_block_erase_52, |
| 12602 | }, { |
| 12603 | .eraseblocks = { {64 * 1024, 8} }, |
| 12604 | .block_erase = spi_block_erase_d8, |
| 12605 | }, { |
| 12606 | .eraseblocks = { {512 * 1024, 1} }, |
| 12607 | .block_erase = spi_block_erase_60, |
| 12608 | }, { |
| 12609 | .eraseblocks = { {512 * 1024, 1} }, |
| 12610 | .block_erase = spi_block_erase_c7, |
| 12611 | } |
| 12612 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12613 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12614 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12615 | .write = spi_chip_write_256, |
| 12616 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12617 | .voltage = {2700, 3600}, |
| 12618 | }, |
| 12619 | |
| 12620 | { |
| 12621 | .vendor = "Nantronics", |
| 12622 | .name = "N25S80", |
| 12623 | .bustype = BUS_SPI, |
| 12624 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12625 | .model_id = NANTRONICS_N25S80, |
| 12626 | .total_size = 1024, |
| 12627 | .page_size = 256, |
| 12628 | .feature_bits = FEATURE_WRSR_WREN, |
| 12629 | .tested = TEST_UNTESTED, |
| 12630 | .probe = probe_spi_rdid, |
| 12631 | .probe_timing = TIMING_ZERO, |
| 12632 | .block_erasers = |
| 12633 | { |
| 12634 | { |
| 12635 | .eraseblocks = { {4 * 1024, 256} }, |
| 12636 | .block_erase = spi_block_erase_20, |
| 12637 | }, { |
| 12638 | .eraseblocks = { {32 * 1024, 32} }, |
| 12639 | .block_erase = spi_block_erase_52, |
| 12640 | }, { |
| 12641 | .eraseblocks = { {64 * 1024, 16} }, |
| 12642 | .block_erase = spi_block_erase_d8, |
| 12643 | }, { |
| 12644 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12645 | .block_erase = spi_block_erase_60, |
| 12646 | }, { |
| 12647 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12648 | .block_erase = spi_block_erase_c7, |
| 12649 | } |
| 12650 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12651 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12652 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12653 | .write = spi_chip_write_256, |
| 12654 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12655 | .voltage = {2700, 3600}, |
| 12656 | }, |
| 12657 | |
| 12658 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12659 | .vendor = "PMC", |
| 12660 | .name = "Pm25LD010(C)", |
| 12661 | .bustype = BUS_SPI, |
| 12662 | .manufacture_id = PMC_ID, |
| 12663 | .model_id = PMC_PM25LD010, |
| 12664 | .total_size = 128, |
| 12665 | .page_size = 256, |
| 12666 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12667 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12668 | .probe = probe_spi_rdid, |
| 12669 | .probe_timing = TIMING_ZERO, |
| 12670 | .block_erasers = |
| 12671 | { |
| 12672 | { |
| 12673 | .eraseblocks = { {4 * 1024, 32} }, |
| 12674 | .block_erase = spi_block_erase_20, |
| 12675 | }, { |
| 12676 | .eraseblocks = { {4 * 1024, 32} }, |
| 12677 | .block_erase = spi_block_erase_d7, |
| 12678 | }, { |
| 12679 | .eraseblocks = { {32 * 1024, 4} }, |
| 12680 | .block_erase = spi_block_erase_d8, |
| 12681 | }, { |
| 12682 | .eraseblocks = { {128 * 1024, 1} }, |
| 12683 | .block_erase = spi_block_erase_60, |
| 12684 | }, { |
| 12685 | .eraseblocks = { {128 * 1024, 1} }, |
| 12686 | .block_erase = spi_block_erase_c7, |
| 12687 | } |
| 12688 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12689 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12690 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12691 | .write = spi_chip_write_256, |
| 12692 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12693 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 12694 | }, |
| 12695 | |
| 12696 | { |
| 12697 | .vendor = "PMC", |
| 12698 | .name = "Pm25LD020(C)", |
| 12699 | .bustype = BUS_SPI, |
| 12700 | .manufacture_id = PMC_ID, |
| 12701 | .model_id = PMC_PM25LD020, |
| 12702 | .total_size = 256, |
| 12703 | .page_size = 256, |
| 12704 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 12705 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12706 | .probe = probe_spi_rdid, |
| 12707 | .probe_timing = TIMING_ZERO, |
| 12708 | .block_erasers = |
| 12709 | { |
| 12710 | { |
| 12711 | .eraseblocks = { {4 * 1024, 64} }, |
| 12712 | .block_erase = spi_block_erase_20, |
| 12713 | }, { |
| 12714 | .eraseblocks = { {4 * 1024, 64} }, |
| 12715 | .block_erase = spi_block_erase_d7, |
| 12716 | }, { |
| 12717 | .eraseblocks = { {64 * 1024, 4} }, |
| 12718 | .block_erase = spi_block_erase_d8, |
| 12719 | }, { |
| 12720 | .eraseblocks = { {256 * 1024, 1} }, |
| 12721 | .block_erase = spi_block_erase_60, |
| 12722 | }, { |
| 12723 | .eraseblocks = { {256 * 1024, 1} }, |
| 12724 | .block_erase = spi_block_erase_c7, |
| 12725 | } |
| 12726 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12727 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12728 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12729 | .write = spi_chip_write_256, |
| 12730 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12731 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 12732 | }, |
| 12733 | |
| 12734 | { |
| 12735 | .vendor = "PMC", |
| 12736 | .name = "Pm25LD040(C)", |
| 12737 | .bustype = BUS_SPI, |
| 12738 | .manufacture_id = PMC_ID, |
| 12739 | .model_id = PMC_PM25LV040, |
| 12740 | .total_size = 512, |
| 12741 | .page_size = 256, |
| 12742 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 12743 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12744 | .probe = probe_spi_rdid, |
| 12745 | .probe_timing = TIMING_ZERO, |
| 12746 | .block_erasers = |
| 12747 | { |
| 12748 | { |
| 12749 | .eraseblocks = { {4 * 1024, 128} }, |
| 12750 | .block_erase = spi_block_erase_20, |
| 12751 | }, { |
| 12752 | .eraseblocks = { {4 * 1024, 128} }, |
| 12753 | .block_erase = spi_block_erase_d7, |
| 12754 | }, { |
| 12755 | .eraseblocks = { {64 * 1024, 8} }, |
| 12756 | .block_erase = spi_block_erase_d8, |
| 12757 | }, { |
| 12758 | .eraseblocks = { {512 * 1024, 1} }, |
| 12759 | .block_erase = spi_block_erase_60, |
| 12760 | }, { |
| 12761 | .eraseblocks = { {512 * 1024, 1} }, |
| 12762 | .block_erase = spi_block_erase_c7, |
| 12763 | } |
| 12764 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12765 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12766 | .unlock = spi_disable_blockprotect, |
| 12767 | .write = spi_chip_write_256, |
| 12768 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12769 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 12770 | }, |
| 12771 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12772 | { |
| 12773 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12774 | .name = "Pm25LD256C", |
| 12775 | .bustype = BUS_SPI, |
| 12776 | .manufacture_id = PMC_ID, |
| 12777 | .model_id = PMC_PM25LD256C, |
| 12778 | .total_size = 32, |
| 12779 | .page_size = 256, |
| 12780 | .feature_bits = FEATURE_WRSR_WREN, |
| 12781 | .tested = TEST_UNTESTED, |
| 12782 | .probe = probe_spi_rdid, |
| 12783 | .probe_timing = TIMING_ZERO, |
| 12784 | .block_erasers = |
| 12785 | { |
| 12786 | { |
| 12787 | .eraseblocks = { {4 * 1024, 8} }, |
| 12788 | .block_erase = spi_block_erase_20, |
| 12789 | }, { |
| 12790 | .eraseblocks = { {4 * 1024, 8} }, |
| 12791 | .block_erase = spi_block_erase_d7, |
| 12792 | }, { |
| 12793 | .eraseblocks = { {32 * 1024, 1} }, |
| 12794 | .block_erase = spi_block_erase_d8, |
| 12795 | }, { |
| 12796 | .eraseblocks = { {32 * 1024, 1} }, |
| 12797 | .block_erase = spi_block_erase_60, |
| 12798 | }, { |
| 12799 | .eraseblocks = { {32 * 1024, 1} }, |
| 12800 | .block_erase = spi_block_erase_c7, |
| 12801 | } |
| 12802 | }, |
| 12803 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12804 | .unlock = spi_disable_blockprotect, |
| 12805 | .write = spi_chip_write_256, |
| 12806 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12807 | .voltage = {2700, 3600}, |
| 12808 | }, |
| 12809 | |
| 12810 | { |
| 12811 | .vendor = "PMC", |
| 12812 | .name = "Pm25LD512(C)", |
| 12813 | .bustype = BUS_SPI, |
| 12814 | .manufacture_id = PMC_ID, |
| 12815 | .model_id = PMC_PM25LD512, |
| 12816 | .total_size = 64, |
| 12817 | .page_size = 256, |
| 12818 | .feature_bits = FEATURE_WRSR_WREN, |
| 12819 | .tested = TEST_OK_PREW, |
| 12820 | .probe = probe_spi_rdid, |
| 12821 | .probe_timing = TIMING_ZERO, |
| 12822 | .block_erasers = |
| 12823 | { |
| 12824 | { |
| 12825 | .eraseblocks = { {4 * 1024, 16} }, |
| 12826 | .block_erase = spi_block_erase_20, |
| 12827 | }, { |
| 12828 | .eraseblocks = { {4 * 1024, 16} }, |
| 12829 | .block_erase = spi_block_erase_d7, |
| 12830 | }, { |
| 12831 | .eraseblocks = { {32 * 1024, 2} }, |
| 12832 | .block_erase = spi_block_erase_d8, |
| 12833 | }, { |
| 12834 | .eraseblocks = { {64 * 1024, 1} }, |
| 12835 | .block_erase = spi_block_erase_60, |
| 12836 | }, { |
| 12837 | .eraseblocks = { {64 * 1024, 1} }, |
| 12838 | .block_erase = spi_block_erase_c7, |
| 12839 | } |
| 12840 | }, |
| 12841 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12842 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12843 | .write = spi_chip_write_256, |
| 12844 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12845 | .voltage = {2300, 3600}, |
| 12846 | }, |
| 12847 | |
| 12848 | { |
| 12849 | .vendor = "PMC", |
| 12850 | .name = "Pm25LQ016", |
| 12851 | .bustype = BUS_SPI, |
| 12852 | .manufacture_id = PMC_ID, |
| 12853 | .model_id = PMC_PM25LQ016, |
| 12854 | .total_size = 2048, |
| 12855 | .page_size = 256, |
| 12856 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12857 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12858 | .tested = TEST_UNTESTED, |
| 12859 | .probe = probe_spi_rdid, |
| 12860 | .probe_timing = TIMING_ZERO, |
| 12861 | .block_erasers = |
| 12862 | { |
| 12863 | { |
| 12864 | .eraseblocks = { {4 * 1024, 512} }, |
| 12865 | .block_erase = spi_block_erase_20, |
| 12866 | }, { |
| 12867 | .eraseblocks = { {4 * 1024, 512} }, |
| 12868 | .block_erase = spi_block_erase_d7, |
| 12869 | }, { |
| 12870 | .eraseblocks = { {64 * 1024, 32} }, |
| 12871 | .block_erase = spi_block_erase_d8, |
| 12872 | }, { |
| 12873 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12874 | .block_erase = spi_block_erase_60, |
| 12875 | }, { |
| 12876 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12877 | .block_erase = spi_block_erase_c7, |
| 12878 | } |
| 12879 | }, |
| 12880 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12881 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12882 | .write = spi_chip_write_256, |
| 12883 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12884 | .voltage = {2300, 3600}, |
| 12885 | }, |
| 12886 | |
| 12887 | { |
| 12888 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12889 | .name = "Pm25LQ020", |
| 12890 | .bustype = BUS_SPI, |
| 12891 | .manufacture_id = PMC_ID, |
| 12892 | .model_id = PMC_PM25LQ020, |
| 12893 | .total_size = 256, |
| 12894 | .page_size = 256, |
| 12895 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12897 | .tested = TEST_UNTESTED, |
| 12898 | .probe = probe_spi_rdid, |
| 12899 | .probe_timing = TIMING_ZERO, |
| 12900 | .block_erasers = |
| 12901 | { |
| 12902 | { |
| 12903 | .eraseblocks = { {4 * 1024, 64} }, |
| 12904 | .block_erase = spi_block_erase_20, |
| 12905 | }, { |
| 12906 | .eraseblocks = { {4 * 1024, 64} }, |
| 12907 | .block_erase = spi_block_erase_d7, |
| 12908 | }, { |
| 12909 | .eraseblocks = { {64 * 1024, 4} }, |
| 12910 | .block_erase = spi_block_erase_d8, |
| 12911 | }, { |
| 12912 | .eraseblocks = { {256 * 1024, 1} }, |
| 12913 | .block_erase = spi_block_erase_60, |
| 12914 | }, { |
| 12915 | .eraseblocks = { {256 * 1024, 1} }, |
| 12916 | .block_erase = spi_block_erase_c7, |
| 12917 | } |
| 12918 | }, |
| 12919 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12920 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12921 | .write = spi_chip_write_256, |
| 12922 | .read = spi_chip_read, |
| 12923 | .voltage = {2300, 3600}, |
| 12924 | }, |
| 12925 | |
| 12926 | { |
| 12927 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12928 | .name = "Pm25LQ032C", |
| 12929 | .bustype = BUS_SPI, |
| 12930 | .manufacture_id = PMC_ID, |
| 12931 | .model_id = PMC_PM25LQ032C, |
| 12932 | .total_size = 4096, |
| 12933 | .page_size = 256, |
| 12934 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12936 | .tested = TEST_OK_PREW, |
| 12937 | .probe = probe_spi_rdid, |
| 12938 | .probe_timing = TIMING_ZERO, |
| 12939 | .block_erasers = |
| 12940 | { |
| 12941 | { |
| 12942 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12943 | .block_erase = spi_block_erase_20, |
| 12944 | }, { |
| 12945 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12946 | .block_erase = spi_block_erase_d7, |
| 12947 | }, { |
| 12948 | .eraseblocks = { {64 * 1024, 64} }, |
| 12949 | .block_erase = spi_block_erase_d8, |
| 12950 | }, { |
| 12951 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12952 | .block_erase = spi_block_erase_60, |
| 12953 | }, { |
| 12954 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12955 | .block_erase = spi_block_erase_c7, |
| 12956 | } |
| 12957 | }, |
| 12958 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12959 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12960 | .write = spi_chip_write_256, |
| 12961 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12962 | .voltage = {2700, 3600}, |
| 12963 | }, |
| 12964 | |
| 12965 | { |
| 12966 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12967 | .name = "Pm25LQ040", |
| 12968 | .bustype = BUS_SPI, |
| 12969 | .manufacture_id = PMC_ID, |
| 12970 | .model_id = PMC_PM25LQ040, |
| 12971 | .total_size = 512, |
| 12972 | .page_size = 256, |
| 12973 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12975 | .tested = TEST_UNTESTED, |
| 12976 | .probe = probe_spi_rdid, |
| 12977 | .probe_timing = TIMING_ZERO, |
| 12978 | .block_erasers = |
| 12979 | { |
| 12980 | { |
| 12981 | .eraseblocks = { {4 * 1024, 128} }, |
| 12982 | .block_erase = spi_block_erase_20, |
| 12983 | }, { |
| 12984 | .eraseblocks = { {4 * 1024, 128} }, |
| 12985 | .block_erase = spi_block_erase_d7, |
| 12986 | }, { |
| 12987 | .eraseblocks = { {64 * 1024, 8} }, |
| 12988 | .block_erase = spi_block_erase_d8, |
| 12989 | }, { |
| 12990 | .eraseblocks = { {512 * 1024, 1} }, |
| 12991 | .block_erase = spi_block_erase_60, |
| 12992 | }, { |
| 12993 | .eraseblocks = { {512 * 1024, 1} }, |
| 12994 | .block_erase = spi_block_erase_c7, |
| 12995 | } |
| 12996 | }, |
| 12997 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12998 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12999 | .write = spi_chip_write_256, |
| 13000 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13001 | .voltage = {2300, 3600}, |
| 13002 | }, |
| 13003 | |
| 13004 | { |
| 13005 | .vendor = "PMC", |
| 13006 | .name = "Pm25LQ080", |
| 13007 | .bustype = BUS_SPI, |
| 13008 | .manufacture_id = PMC_ID, |
| 13009 | .model_id = PMC_PM25LQ080, |
| 13010 | .total_size = 1024, |
| 13011 | .page_size = 256, |
| 13012 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 13013 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13014 | .tested = TEST_UNTESTED, |
| 13015 | .probe = probe_spi_rdid, |
| 13016 | .probe_timing = TIMING_ZERO, |
| 13017 | .block_erasers = |
| 13018 | { |
| 13019 | { |
| 13020 | .eraseblocks = { {4 * 1024, 256} }, |
| 13021 | .block_erase = spi_block_erase_20, |
| 13022 | }, { |
| 13023 | .eraseblocks = { {4 * 1024, 256} }, |
| 13024 | .block_erase = spi_block_erase_d7, |
| 13025 | }, { |
| 13026 | .eraseblocks = { {64 * 1024, 16} }, |
| 13027 | .block_erase = spi_block_erase_d8, |
| 13028 | }, { |
| 13029 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13030 | .block_erase = spi_block_erase_60, |
| 13031 | }, { |
| 13032 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13033 | .block_erase = spi_block_erase_c7, |
| 13034 | } |
| 13035 | }, |
| 13036 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13037 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13038 | .write = spi_chip_write_256, |
| 13039 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13040 | .voltage = {2300, 3600}, |
| 13041 | }, |
| 13042 | |
| 13043 | { |
| 13044 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13045 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13046 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 13047 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13048 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13049 | .total_size = 128, |
| 13050 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13051 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 13052 | .tested = TEST_OK_PREW, |
| 13053 | .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] | 13054 | .probe_timing = TIMING_ZERO, |
| 13055 | .block_erasers = |
| 13056 | { |
| 13057 | { |
| 13058 | .eraseblocks = { {4 * 1024, 32} }, |
| 13059 | .block_erase = spi_block_erase_d7, |
| 13060 | }, { |
| 13061 | .eraseblocks = { {32 * 1024, 4} }, |
| 13062 | .block_erase = spi_block_erase_d8, |
| 13063 | }, { |
| 13064 | .eraseblocks = { {128 * 1024, 1} }, |
| 13065 | .block_erase = spi_block_erase_c7, |
| 13066 | } |
| 13067 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13068 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13069 | .unlock = spi_disable_blockprotect, |
| 13070 | .write = spi_chip_write_256, |
| 13071 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13072 | .voltage = {2700, 3600}, |
| 13073 | }, |
| 13074 | |
| 13075 | { |
| 13076 | .vendor = "PMC", |
| 13077 | .name = "Pm25LV010A", |
| 13078 | .bustype = BUS_SPI, |
| 13079 | .manufacture_id = PMC_ID, |
| 13080 | .model_id = PMC_PM25LV010, |
| 13081 | .total_size = 128, |
| 13082 | .page_size = 256, |
| 13083 | .feature_bits = FEATURE_WRSR_WREN, |
| 13084 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13085 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13086 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13087 | .block_erasers = |
| 13088 | { |
| 13089 | { |
| 13090 | .eraseblocks = { {4 * 1024, 32} }, |
| 13091 | .block_erase = spi_block_erase_d7, |
| 13092 | }, { |
| 13093 | .eraseblocks = { {32 * 1024, 4} }, |
| 13094 | .block_erase = spi_block_erase_d8, |
| 13095 | }, { |
| 13096 | .eraseblocks = { {128 * 1024, 1} }, |
| 13097 | .block_erase = spi_block_erase_c7, |
| 13098 | } |
| 13099 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13100 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13101 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13102 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13103 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13104 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13105 | }, |
| 13106 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13107 | { |
| 13108 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13109 | .name = "Pm25LV016B", |
| 13110 | .bustype = BUS_SPI, |
| 13111 | .manufacture_id = PMC_ID, |
| 13112 | .model_id = PMC_PM25LV016B, |
| 13113 | .total_size = 2048, |
| 13114 | .page_size = 256, |
| 13115 | .feature_bits = FEATURE_WRSR_WREN, |
| 13116 | .tested = TEST_UNTESTED, |
| 13117 | .probe = probe_spi_rdid, |
| 13118 | .probe_timing = TIMING_ZERO, |
| 13119 | .block_erasers = |
| 13120 | { |
| 13121 | { |
| 13122 | .eraseblocks = { {4 * 1024, 512} }, |
| 13123 | .block_erase = spi_block_erase_d7, |
| 13124 | }, { |
| 13125 | .eraseblocks = { {4 * 1024, 512} }, |
| 13126 | .block_erase = spi_block_erase_20, |
| 13127 | }, { |
| 13128 | .eraseblocks = { {64 * 1024, 32} }, |
| 13129 | .block_erase = spi_block_erase_d8, |
| 13130 | }, { |
| 13131 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13132 | .block_erase = spi_block_erase_60, |
| 13133 | }, { |
| 13134 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13135 | .block_erase = spi_block_erase_c7, |
| 13136 | } |
| 13137 | }, |
| 13138 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 13139 | .unlock = spi_disable_blockprotect, |
| 13140 | .write = spi_chip_write_256, |
| 13141 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13142 | .voltage = {2700, 3600}, |
| 13143 | }, |
| 13144 | |
| 13145 | { |
| 13146 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13147 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13148 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13149 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13150 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13151 | .total_size = 256, |
| 13152 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13153 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13154 | .tested = TEST_UNTESTED, |
| 13155 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13156 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13157 | .block_erasers = |
| 13158 | { |
| 13159 | { |
| 13160 | .eraseblocks = { {4 * 1024, 64} }, |
| 13161 | .block_erase = spi_block_erase_d7, |
| 13162 | }, { |
| 13163 | .eraseblocks = { {64 * 1024, 4} }, |
| 13164 | .block_erase = spi_block_erase_d8, |
| 13165 | }, { |
| 13166 | .eraseblocks = { {256 * 1024, 1} }, |
| 13167 | .block_erase = spi_block_erase_c7, |
| 13168 | } |
| 13169 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13170 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13171 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13172 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13173 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13174 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13175 | }, |
| 13176 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13177 | { |
| 13178 | .vendor = "PMC", |
| 13179 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13180 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13181 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13182 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13183 | .total_size = 512, |
| 13184 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13185 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13186 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13187 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13188 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13189 | .block_erasers = |
| 13190 | { |
| 13191 | { |
| 13192 | .eraseblocks = { {4 * 1024, 128} }, |
| 13193 | .block_erase = spi_block_erase_d7, |
| 13194 | }, { |
| 13195 | .eraseblocks = { {64 * 1024, 8} }, |
| 13196 | .block_erase = spi_block_erase_d8, |
| 13197 | }, { |
| 13198 | .eraseblocks = { {512 * 1024, 1} }, |
| 13199 | .block_erase = spi_block_erase_c7, |
| 13200 | } |
| 13201 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13202 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13203 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13204 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13205 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13206 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13207 | }, |
| 13208 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13209 | { |
| 13210 | .vendor = "PMC", |
| 13211 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13212 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13213 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13214 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13215 | .total_size = 1024, |
| 13216 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13217 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13218 | .tested = TEST_UNTESTED, |
| 13219 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13220 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13221 | .block_erasers = |
| 13222 | { |
| 13223 | { |
| 13224 | .eraseblocks = { {4 * 1024, 256} }, |
| 13225 | .block_erase = spi_block_erase_d7, |
| 13226 | }, { |
| 13227 | .eraseblocks = { {4 * 1024, 256} }, |
| 13228 | .block_erase = spi_block_erase_20, |
| 13229 | }, { |
| 13230 | .eraseblocks = { {64 * 1024, 16} }, |
| 13231 | .block_erase = spi_block_erase_d8, |
| 13232 | }, { |
| 13233 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13234 | .block_erase = spi_block_erase_60, |
| 13235 | }, { |
| 13236 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13237 | .block_erase = spi_block_erase_c7, |
| 13238 | } |
| 13239 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13240 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13241 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13242 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13243 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13244 | .voltage = {2700, 3600}, |
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 = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13249 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13250 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13251 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13252 | .model_id = PMC_PM25LV512, |
| 13253 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13254 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13255 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13256 | .tested = TEST_OK_PREW, |
| 13257 | .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */ |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13258 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13259 | .block_erasers = |
| 13260 | { |
| 13261 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13262 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13263 | .block_erase = spi_block_erase_d7, |
| 13264 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13265 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13266 | .block_erase = spi_block_erase_d8, |
| 13267 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13268 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13269 | .block_erase = spi_block_erase_c7, |
| 13270 | } |
| 13271 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13272 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13273 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13274 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13275 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13276 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13277 | }, |
| 13278 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13279 | { |
| 13280 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13281 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13282 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13283 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13284 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13285 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13286 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13287 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13288 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13289 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 13290 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13291 | .block_erasers = |
| 13292 | { |
| 13293 | { |
| 13294 | .eraseblocks = { |
| 13295 | {16 * 1024, 1}, |
| 13296 | {8 * 1024, 2}, |
| 13297 | {96 * 1024, 1}, |
| 13298 | {128 * 1024, 1}, |
| 13299 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13300 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13301 | }, { |
| 13302 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13303 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13304 | }, |
| 13305 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13306 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13307 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13308 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13309 | .prepare_access = prepare_memory_access, |
| 13310 | .finish_access = finish_memory_access, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13311 | }, |
| 13312 | |
| 13313 | { |
| 13314 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13315 | .name = "Pm29F002T", |
| 13316 | .bustype = BUS_PARALLEL, |
| 13317 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13318 | .model_id = PMC_PM29F002T, |
| 13319 | .total_size = 256, |
| 13320 | .page_size = 8 * 1024, |
| 13321 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13322 | .tested = TEST_OK_PREW, |
| 13323 | .probe = probe_jedec, |
| 13324 | .probe_timing = TIMING_FIXME, |
| 13325 | .block_erasers = |
| 13326 | { |
| 13327 | { |
| 13328 | .eraseblocks = { |
| 13329 | {128 * 1024, 1}, |
| 13330 | {96 * 1024, 1}, |
| 13331 | {8 * 1024, 2}, |
| 13332 | {16 * 1024, 1}, |
| 13333 | }, |
| 13334 | .block_erase = erase_sector_jedec, |
| 13335 | }, { |
| 13336 | .eraseblocks = { {256 * 1024, 1} }, |
| 13337 | .block_erase = erase_chip_block_jedec, |
| 13338 | }, |
| 13339 | }, |
| 13340 | .write = write_jedec_1, |
| 13341 | .read = read_memmapped, |
| 13342 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13343 | .prepare_access = prepare_memory_access, |
| 13344 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13345 | }, |
| 13346 | |
| 13347 | { |
| 13348 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13349 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13350 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13351 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13352 | .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] | 13353 | .total_size = 128, |
| 13354 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13355 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13356 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13357 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13358 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13359 | .block_erasers = |
| 13360 | { |
| 13361 | { |
| 13362 | .eraseblocks = { {4 * 1024, 32} }, |
| 13363 | .block_erase = erase_sector_jedec, |
| 13364 | }, { |
| 13365 | .eraseblocks = { {64 * 1024, 2} }, |
| 13366 | .block_erase = erase_block_jedec, |
| 13367 | }, { |
| 13368 | .eraseblocks = { {128 * 1024, 1} }, |
| 13369 | .block_erase = erase_chip_block_jedec, |
| 13370 | } |
| 13371 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13372 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13373 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13374 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13375 | .prepare_access = prepare_memory_access, |
| 13376 | .finish_access = finish_memory_access, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13377 | }, |
| 13378 | |
| 13379 | { |
| 13380 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13381 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13382 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13383 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13384 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13385 | .total_size = 256, |
| 13386 | .page_size = 4096, |
| 13387 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13388 | .tested = TEST_UNTESTED, |
| 13389 | .probe = probe_jedec, |
| 13390 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13391 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13392 | { |
| 13393 | { |
| 13394 | .eraseblocks = { {4 * 1024, 64} }, |
| 13395 | .block_erase = erase_sector_jedec, |
| 13396 | }, { |
| 13397 | .eraseblocks = { {64 * 1024, 4} }, |
| 13398 | .block_erase = erase_block_jedec, |
| 13399 | }, { |
| 13400 | .eraseblocks = { {256 * 1024, 1} }, |
| 13401 | .block_erase = erase_chip_block_jedec, |
| 13402 | } |
| 13403 | }, |
| 13404 | .write = write_jedec_1, |
| 13405 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13406 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13407 | .prepare_access = prepare_memory_access, |
| 13408 | .finish_access = finish_memory_access, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13409 | }, |
| 13410 | |
| 13411 | { |
| 13412 | .vendor = "PMC", |
| 13413 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13414 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13415 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13416 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13417 | .total_size = 512, |
| 13418 | .page_size = 4096, |
| 13419 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13420 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13421 | .probe = probe_jedec, |
| 13422 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13423 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13424 | { |
| 13425 | { |
| 13426 | .eraseblocks = { {4 * 1024, 128} }, |
| 13427 | .block_erase = erase_sector_jedec, |
| 13428 | }, { |
| 13429 | .eraseblocks = { {64 * 1024, 8} }, |
| 13430 | .block_erase = erase_block_jedec, |
| 13431 | }, { |
| 13432 | .eraseblocks = { {512 * 1024, 1} }, |
| 13433 | .block_erase = erase_chip_block_jedec, |
| 13434 | } |
| 13435 | }, |
| 13436 | .write = write_jedec_1, |
| 13437 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13438 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13439 | .prepare_access = prepare_memory_access, |
| 13440 | .finish_access = finish_memory_access, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13441 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 13442 | |
| 13443 | { |
| 13444 | .vendor = "PMC", |
| 13445 | .name = "Pm39LV512", |
| 13446 | .bustype = BUS_PARALLEL, |
| 13447 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13448 | .model_id = PMC_PM39LV512, |
| 13449 | .total_size = 64, |
| 13450 | .page_size = 4096, |
| 13451 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13452 | .tested = TEST_OK_PREW, |
| 13453 | .probe = probe_jedec, |
| 13454 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13455 | .block_erasers = |
| 13456 | { |
| 13457 | { |
| 13458 | .eraseblocks = { {4 * 1024, 16} }, |
| 13459 | .block_erase = erase_sector_jedec, |
| 13460 | }, { |
| 13461 | .eraseblocks = { {64 * 1024, 1} }, |
| 13462 | .block_erase = erase_block_jedec, |
| 13463 | }, { |
| 13464 | .eraseblocks = { {64 * 1024, 1} }, |
| 13465 | .block_erase = erase_chip_block_jedec, |
| 13466 | } |
| 13467 | }, |
| 13468 | .write = write_jedec_1, |
| 13469 | .read = read_memmapped, |
| 13470 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13471 | .prepare_access = prepare_memory_access, |
| 13472 | .finish_access = finish_memory_access, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 13473 | }, |
| 13474 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13475 | { |
| 13476 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13477 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13478 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13479 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13480 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13481 | .total_size = 256, |
| 13482 | .page_size = 16 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 13483 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13484 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13485 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13486 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13487 | .block_erasers = |
| 13488 | { |
| 13489 | { |
| 13490 | .eraseblocks = { {4 * 1024, 64} }, |
| 13491 | .block_erase = erase_sector_jedec, |
| 13492 | }, { |
| 13493 | .eraseblocks = { {16 * 1024, 16} }, |
| 13494 | .block_erase = erase_block_jedec, |
| 13495 | }, { |
| 13496 | .eraseblocks = { {256 * 1024, 1} }, |
| 13497 | .block_erase = erase_chip_block_jedec, |
| 13498 | } |
| 13499 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13500 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 13501 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13502 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13503 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 13504 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13505 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13506 | }, |
| 13507 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13508 | { |
| 13509 | .vendor = "PMC", |
| 13510 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13511 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13512 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13513 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13514 | .total_size = 512, |
| 13515 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 13516 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 13517 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13518 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 13519 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13520 | .block_erasers = |
| 13521 | { |
| 13522 | { |
| 13523 | .eraseblocks = { {4 * 1024, 128} }, |
| 13524 | .block_erase = erase_sector_jedec, |
| 13525 | }, { |
| 13526 | .eraseblocks = { {64 * 1024, 8} }, |
| 13527 | .block_erase = erase_block_jedec, |
| 13528 | }, { |
| 13529 | .eraseblocks = { {512 * 1024, 1} }, |
| 13530 | .block_erase = erase_chip_block_jedec, |
| 13531 | } |
| 13532 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13533 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 13534 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13535 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13536 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 13537 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13538 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13539 | }, |
| 13540 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13541 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13542 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 13543 | .name = "SST25LF020A", |
| 13544 | .bustype = BUS_SPI, |
| 13545 | .manufacture_id = SST_ID, |
| 13546 | .model_id = SST_SST25VF020_REMS, |
| 13547 | .total_size = 256, |
| 13548 | .page_size = 256, |
| 13549 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13550 | .tested = TEST_OK_PREW, |
| 13551 | .probe = probe_spi_rems, |
| 13552 | .probe_timing = TIMING_ZERO, |
| 13553 | .block_erasers = |
| 13554 | { |
| 13555 | { |
| 13556 | .eraseblocks = { {4 * 1024, 64} }, |
| 13557 | .block_erase = spi_block_erase_20, |
| 13558 | }, { |
| 13559 | .eraseblocks = { {32 * 1024, 8} }, |
| 13560 | .block_erase = spi_block_erase_52, |
| 13561 | }, { |
| 13562 | .eraseblocks = { {256 * 1024, 1} }, |
| 13563 | .block_erase = spi_block_erase_60, |
| 13564 | }, |
| 13565 | }, |
| 13566 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13567 | .unlock = spi_disable_blockprotect, |
| 13568 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13569 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13570 | .voltage = {2700, 3600}, |
| 13571 | }, |
| 13572 | |
| 13573 | { |
| 13574 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13575 | .name = "SST25LF040A", |
| 13576 | .bustype = BUS_SPI, |
| 13577 | .manufacture_id = SST_ID, |
| 13578 | .model_id = SST_SST25VF040_REMS, |
| 13579 | .total_size = 512, |
| 13580 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13581 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 13582 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13583 | .probe = probe_spi_res2, |
| 13584 | .probe_timing = TIMING_ZERO, |
| 13585 | .block_erasers = |
| 13586 | { |
| 13587 | { |
| 13588 | .eraseblocks = { {4 * 1024, 128} }, |
| 13589 | .block_erase = spi_block_erase_20, |
| 13590 | }, { |
| 13591 | .eraseblocks = { {32 * 1024, 16} }, |
| 13592 | .block_erase = spi_block_erase_52, |
| 13593 | }, { |
| 13594 | .eraseblocks = { {512 * 1024, 1} }, |
| 13595 | .block_erase = spi_block_erase_60, |
| 13596 | }, |
| 13597 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13598 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13599 | .unlock = spi_disable_blockprotect, |
| 13600 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13601 | .read = spi_chip_read, |
| 13602 | .voltage = {3000, 3600}, |
| 13603 | }, |
| 13604 | |
| 13605 | { |
| 13606 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13607 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13608 | .bustype = BUS_SPI, |
| 13609 | .manufacture_id = SST_ID, |
| 13610 | .model_id = SST_SST25VF080_REMS, |
| 13611 | .total_size = 1024, |
| 13612 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13613 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13614 | .tested = TEST_UNTESTED, |
| 13615 | .probe = probe_spi_res2, |
| 13616 | .probe_timing = TIMING_ZERO, |
| 13617 | .block_erasers = |
| 13618 | { |
| 13619 | { |
| 13620 | .eraseblocks = { {4 * 1024, 256} }, |
| 13621 | .block_erase = spi_block_erase_20, |
| 13622 | }, { |
| 13623 | .eraseblocks = { {32 * 1024, 32} }, |
| 13624 | .block_erase = spi_block_erase_52, |
| 13625 | }, { |
| 13626 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13627 | .block_erase = spi_block_erase_60, |
| 13628 | }, |
| 13629 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13630 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13631 | .unlock = spi_disable_blockprotect, |
| 13632 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13633 | .read = spi_chip_read, |
| 13634 | .voltage = {3000, 3600}, |
| 13635 | }, |
| 13636 | |
| 13637 | { |
| 13638 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13639 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13640 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13641 | .manufacture_id = SST_ID, |
| 13642 | .model_id = SST_SST25VF010_REMS, |
| 13643 | .total_size = 128, |
| 13644 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13645 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13646 | .tested = TEST_OK_PREW, |
| 13647 | .probe = probe_spi_rems, |
| 13648 | .probe_timing = TIMING_ZERO, |
| 13649 | .block_erasers = |
| 13650 | { |
| 13651 | { |
| 13652 | .eraseblocks = { {4 * 1024, 32} }, |
| 13653 | .block_erase = spi_block_erase_20, |
| 13654 | }, { |
| 13655 | .eraseblocks = { {32 * 1024, 4} }, |
| 13656 | .block_erase = spi_block_erase_52, |
| 13657 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13658 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13659 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13660 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13661 | .eraseblocks = { {128 * 1024, 1} }, |
| 13662 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13663 | }, { |
| 13664 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13665 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13666 | }, |
| 13667 | }, |
| 13668 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13669 | .unlock = spi_disable_blockprotect, |
| 13670 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13671 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13672 | .voltage = {2700, 3600}, |
| 13673 | }, |
| 13674 | |
| 13675 | { |
| 13676 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13677 | .name = "SST25VF016B", |
| 13678 | .bustype = BUS_SPI, |
| 13679 | .manufacture_id = SST_ID, |
| 13680 | .model_id = SST_SST25VF016B, |
| 13681 | .total_size = 2048, |
| 13682 | .page_size = 256, |
| 13683 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13684 | .tested = TEST_OK_PREW, |
| 13685 | .probe = probe_spi_rdid, |
| 13686 | .probe_timing = TIMING_ZERO, |
| 13687 | .block_erasers = |
| 13688 | { |
| 13689 | { |
| 13690 | .eraseblocks = { {4 * 1024, 512} }, |
| 13691 | .block_erase = spi_block_erase_20, |
| 13692 | }, { |
| 13693 | .eraseblocks = { {32 * 1024, 64} }, |
| 13694 | .block_erase = spi_block_erase_52, |
| 13695 | }, { |
| 13696 | .eraseblocks = { {64 * 1024, 32} }, |
| 13697 | .block_erase = spi_block_erase_d8, |
| 13698 | }, { |
| 13699 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13700 | .block_erase = spi_block_erase_60, |
| 13701 | }, { |
| 13702 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13703 | .block_erase = spi_block_erase_c7, |
| 13704 | }, |
| 13705 | }, |
| 13706 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 13707 | .unlock = spi_disable_blockprotect, |
| 13708 | .write = spi_aai_write, |
| 13709 | .read = spi_chip_read, |
| 13710 | .voltage = {2700, 3600}, |
| 13711 | }, |
| 13712 | |
| 13713 | { |
| 13714 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13715 | .name = "SST25VF020", |
| 13716 | .bustype = BUS_SPI, |
| 13717 | .manufacture_id = SST_ID, |
| 13718 | .model_id = SST_SST25VF020_REMS, |
| 13719 | .total_size = 256, |
| 13720 | .page_size = 256, |
| 13721 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13722 | .tested = TEST_UNTESTED, |
| 13723 | .probe = probe_spi_rems, |
| 13724 | .probe_timing = TIMING_ZERO, |
| 13725 | .block_erasers = |
| 13726 | { |
| 13727 | { |
| 13728 | .eraseblocks = { {4 * 1024, 64} }, |
| 13729 | .block_erase = spi_block_erase_20, |
| 13730 | }, { |
| 13731 | .eraseblocks = { {32 * 1024, 8} }, |
| 13732 | .block_erase = spi_block_erase_52, |
| 13733 | }, { |
| 13734 | .eraseblocks = { {256 * 1024, 1} }, |
| 13735 | .block_erase = spi_block_erase_60, |
| 13736 | }, |
| 13737 | }, |
| 13738 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13739 | .unlock = spi_disable_blockprotect, |
| 13740 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13741 | .read = spi_chip_read, /* only */ |
| 13742 | .voltage = {2700, 3600}, |
| 13743 | }, |
| 13744 | |
| 13745 | { |
| 13746 | .vendor = "SST", |
| 13747 | .name = "SST25VF020B", |
| 13748 | .bustype = BUS_SPI, |
| 13749 | .manufacture_id = SST_ID, |
| 13750 | .model_id = SST_SST25VF020B, |
| 13751 | .total_size = 256, |
| 13752 | .page_size = 256, |
| 13753 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13754 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13755 | .probe = probe_spi_rdid, |
| 13756 | .probe_timing = TIMING_ZERO, |
| 13757 | .block_erasers = |
| 13758 | { |
| 13759 | { |
| 13760 | .eraseblocks = { {4 * 1024, 64} }, |
| 13761 | .block_erase = spi_block_erase_20, |
| 13762 | }, { |
| 13763 | .eraseblocks = { {32 * 1024, 8} }, |
| 13764 | .block_erase = spi_block_erase_52, |
| 13765 | }, { |
| 13766 | .eraseblocks = { {64 * 1024, 4} }, |
| 13767 | .block_erase = spi_block_erase_d8, |
| 13768 | }, { |
| 13769 | .eraseblocks = { {256 * 1024, 1} }, |
| 13770 | .block_erase = spi_block_erase_60, |
| 13771 | }, { |
| 13772 | .eraseblocks = { {256 * 1024, 1} }, |
| 13773 | .block_erase = spi_block_erase_c7, |
| 13774 | }, |
| 13775 | }, |
| 13776 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 13777 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 13778 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 13779 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13780 | .voltage = {2700, 3600}, |
| 13781 | }, |
| 13782 | |
| 13783 | { |
| 13784 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13785 | .name = "SST25VF032B", |
| 13786 | .bustype = BUS_SPI, |
| 13787 | .manufacture_id = SST_ID, |
| 13788 | .model_id = SST_SST25VF032B, |
| 13789 | .total_size = 4096, |
| 13790 | .page_size = 256, |
| 13791 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13792 | .tested = TEST_OK_PREW, |
| 13793 | .probe = probe_spi_rdid, |
| 13794 | .probe_timing = TIMING_ZERO, |
| 13795 | .block_erasers = |
| 13796 | { |
| 13797 | { |
| 13798 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13799 | .block_erase = spi_block_erase_20, |
| 13800 | }, { |
| 13801 | .eraseblocks = { {32 * 1024, 128} }, |
| 13802 | .block_erase = spi_block_erase_52, |
| 13803 | }, { |
| 13804 | .eraseblocks = { {64 * 1024, 64} }, |
| 13805 | .block_erase = spi_block_erase_d8, |
| 13806 | }, { |
| 13807 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13808 | .block_erase = spi_block_erase_60, |
| 13809 | }, { |
| 13810 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13811 | .block_erase = spi_block_erase_c7, |
| 13812 | }, |
| 13813 | }, |
| 13814 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13815 | .unlock = spi_disable_blockprotect, |
| 13816 | .write = spi_aai_write, |
| 13817 | .read = spi_chip_read, |
| 13818 | .voltage = {2700, 3600}, |
| 13819 | }, |
| 13820 | |
| 13821 | { |
| 13822 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13823 | .name = "SST25VF040", |
| 13824 | .bustype = BUS_SPI, |
| 13825 | .manufacture_id = SST_ID, |
| 13826 | .model_id = SST_SST25VF040_REMS, |
| 13827 | .total_size = 512, |
| 13828 | .page_size = 256, |
| 13829 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13830 | .tested = TEST_OK_PR, |
| 13831 | .probe = probe_spi_rems, |
| 13832 | .probe_timing = TIMING_ZERO, |
| 13833 | .block_erasers = |
| 13834 | { |
| 13835 | { |
| 13836 | .eraseblocks = { {4 * 1024, 128} }, |
| 13837 | .block_erase = spi_block_erase_20, |
| 13838 | }, { |
| 13839 | .eraseblocks = { {32 * 1024, 16} }, |
| 13840 | .block_erase = spi_block_erase_52, |
| 13841 | }, { |
| 13842 | .eraseblocks = { {512 * 1024, 1} }, |
| 13843 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13844 | }, |
| 13845 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13846 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13847 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13848 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13849 | .read = spi_chip_read, |
| 13850 | .voltage = {2700, 3600}, |
| 13851 | }, |
| 13852 | |
| 13853 | { |
| 13854 | .vendor = "SST", |
| 13855 | .name = "SST25VF040B", |
| 13856 | .bustype = BUS_SPI, |
| 13857 | .manufacture_id = SST_ID, |
| 13858 | .model_id = SST_SST25VF040B, |
| 13859 | .total_size = 512, |
| 13860 | .page_size = 256, |
| 13861 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13862 | .tested = TEST_OK_PREW, |
| 13863 | .probe = probe_spi_rdid, |
| 13864 | .probe_timing = TIMING_ZERO, |
| 13865 | .block_erasers = |
| 13866 | { |
| 13867 | { |
| 13868 | .eraseblocks = { {4 * 1024, 128} }, |
| 13869 | .block_erase = spi_block_erase_20, |
| 13870 | }, { |
| 13871 | .eraseblocks = { {32 * 1024, 16} }, |
| 13872 | .block_erase = spi_block_erase_52, |
| 13873 | }, { |
| 13874 | .eraseblocks = { {64 * 1024, 8} }, |
| 13875 | .block_erase = spi_block_erase_d8, |
| 13876 | }, { |
| 13877 | .eraseblocks = { {512 * 1024, 1} }, |
| 13878 | .block_erase = spi_block_erase_60, |
| 13879 | }, { |
| 13880 | .eraseblocks = { {512 * 1024, 1} }, |
| 13881 | .block_erase = spi_block_erase_c7, |
| 13882 | }, |
| 13883 | }, |
| 13884 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 13885 | .unlock = spi_disable_blockprotect, |
| 13886 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 13887 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13888 | .voltage = {2700, 3600}, |
| 13889 | }, |
| 13890 | |
| 13891 | { |
| 13892 | .vendor = "SST", |
| 13893 | .name = "SST25VF040B.REMS", |
| 13894 | .bustype = BUS_SPI, |
| 13895 | .manufacture_id = SST_ID, |
| 13896 | .model_id = SST_SST25VF040B_REMS, |
| 13897 | .total_size = 512, |
| 13898 | .page_size = 256, |
| 13899 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13900 | .tested = TEST_OK_PREW, |
| 13901 | .probe = probe_spi_rems, |
| 13902 | .probe_timing = TIMING_ZERO, |
| 13903 | .block_erasers = |
| 13904 | { |
| 13905 | { |
| 13906 | .eraseblocks = { {4 * 1024, 128} }, |
| 13907 | .block_erase = spi_block_erase_20, |
| 13908 | }, { |
| 13909 | .eraseblocks = { {32 * 1024, 16} }, |
| 13910 | .block_erase = spi_block_erase_52, |
| 13911 | }, { |
| 13912 | .eraseblocks = { {64 * 1024, 8} }, |
| 13913 | .block_erase = spi_block_erase_d8, |
| 13914 | }, { |
| 13915 | .eraseblocks = { {512 * 1024, 1} }, |
| 13916 | .block_erase = spi_block_erase_60, |
| 13917 | }, { |
| 13918 | .eraseblocks = { {512 * 1024, 1} }, |
| 13919 | .block_erase = spi_block_erase_c7, |
| 13920 | }, |
| 13921 | }, |
| 13922 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 13923 | .unlock = spi_disable_blockprotect, |
| 13924 | .write = spi_aai_write, |
| 13925 | .read = spi_chip_read, |
| 13926 | .voltage = {2700, 3600}, |
| 13927 | }, |
| 13928 | |
| 13929 | { |
| 13930 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13931 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13932 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13933 | .manufacture_id = SST_ID, |
| 13934 | .model_id = SST_SST25VF064C, |
| 13935 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13936 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13937 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13938 | .tested = TEST_OK_PREW, |
| 13939 | .probe = probe_spi_rdid, |
| 13940 | .probe_timing = TIMING_ZERO, |
| 13941 | .block_erasers = |
| 13942 | { |
| 13943 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13944 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13945 | .block_erase = spi_block_erase_20, |
| 13946 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13947 | .eraseblocks = { {32 * 1024, 256} }, |
| 13948 | .block_erase = spi_block_erase_52, |
| 13949 | }, { |
| 13950 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13951 | .block_erase = spi_block_erase_d8, |
| 13952 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13953 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13954 | .block_erase = spi_block_erase_60, |
| 13955 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13956 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13957 | .block_erase = spi_block_erase_c7, |
| 13958 | }, |
| 13959 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13960 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13961 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13962 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13963 | .read = spi_chip_read, |
| 13964 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13965 | }, |
| 13966 | |
| 13967 | { |
| 13968 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13969 | .name = "SST25VF080B", |
| 13970 | .bustype = BUS_SPI, |
| 13971 | .manufacture_id = SST_ID, |
| 13972 | .model_id = SST_SST25VF080B, |
| 13973 | .total_size = 1024, |
| 13974 | .page_size = 256, |
| 13975 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13976 | .tested = TEST_OK_PREW, |
| 13977 | .probe = probe_spi_rdid, |
| 13978 | .probe_timing = TIMING_ZERO, |
| 13979 | .block_erasers = |
| 13980 | { |
| 13981 | { |
| 13982 | .eraseblocks = { {4 * 1024, 256} }, |
| 13983 | .block_erase = spi_block_erase_20, |
| 13984 | }, { |
| 13985 | .eraseblocks = { {32 * 1024, 32} }, |
| 13986 | .block_erase = spi_block_erase_52, |
| 13987 | }, { |
| 13988 | .eraseblocks = { {64 * 1024, 16} }, |
| 13989 | .block_erase = spi_block_erase_d8, |
| 13990 | }, { |
| 13991 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13992 | .block_erase = spi_block_erase_60, |
| 13993 | }, { |
| 13994 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13995 | .block_erase = spi_block_erase_c7, |
| 13996 | }, |
| 13997 | }, |
| 13998 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13999 | .unlock = spi_disable_blockprotect, |
| 14000 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14001 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14002 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14003 | }, |
| 14004 | |
| 14005 | { |
| 14006 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14007 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14008 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14009 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14010 | .model_id = SST_SST25VF512_REMS, |
| 14011 | .total_size = 64, |
| 14012 | .page_size = 256, |
| 14013 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14014 | .tested = TEST_OK_PREW, |
| 14015 | .probe = probe_spi_rems, |
| 14016 | .probe_timing = TIMING_ZERO, |
| 14017 | .block_erasers = |
| 14018 | { |
| 14019 | { |
| 14020 | .eraseblocks = { {4 * 1024, 16} }, |
| 14021 | .block_erase = spi_block_erase_20, |
| 14022 | }, { |
| 14023 | .eraseblocks = { {32 * 1024, 2} }, |
| 14024 | .block_erase = spi_block_erase_52, |
| 14025 | }, { |
| 14026 | .eraseblocks = { {32 * 1024, 2} }, |
| 14027 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 14028 | }, { |
| 14029 | .eraseblocks = { {64 * 1024, 1} }, |
| 14030 | .block_erase = spi_block_erase_60, |
| 14031 | }, { |
| 14032 | .eraseblocks = { {64 * 1024, 1} }, |
| 14033 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 14034 | }, |
| 14035 | }, |
| 14036 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 14037 | .unlock = spi_disable_blockprotect, |
| 14038 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14039 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 14040 | .voltage = {2700, 3600}, |
| 14041 | }, |
| 14042 | |
| 14043 | { |
| 14044 | .vendor = "SST", |
| 14045 | .name = "SST25WF010", |
| 14046 | .bustype = BUS_SPI, |
| 14047 | .manufacture_id = SST_ID, |
| 14048 | .model_id = SST_SST25WF010, |
| 14049 | .total_size = 128, |
| 14050 | .page_size = 256, |
| 14051 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14052 | .tested = TEST_UNTESTED, |
| 14053 | .probe = probe_spi_rdid, |
| 14054 | .probe_timing = TIMING_ZERO, |
| 14055 | .block_erasers = |
| 14056 | { |
| 14057 | { |
| 14058 | .eraseblocks = { {4 * 1024, 32} }, |
| 14059 | .block_erase = spi_block_erase_20, |
| 14060 | }, { |
| 14061 | .eraseblocks = { {32 * 1024, 4} }, |
| 14062 | .block_erase = spi_block_erase_52, |
| 14063 | }, { |
| 14064 | .eraseblocks = { {1024 * 128, 1} }, |
| 14065 | .block_erase = spi_block_erase_60, |
| 14066 | }, { |
| 14067 | .eraseblocks = { {1024 * 128, 1} }, |
| 14068 | .block_erase = spi_block_erase_c7, |
| 14069 | }, |
| 14070 | }, |
| 14071 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14072 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14073 | .write = spi_aai_write, |
| 14074 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14075 | .voltage = {1650, 1950}, |
| 14076 | }, |
| 14077 | |
| 14078 | { |
| 14079 | .vendor = "SST", |
| 14080 | .name = "SST25WF020", |
| 14081 | .bustype = BUS_SPI, |
| 14082 | .manufacture_id = SST_ID, |
| 14083 | .model_id = SST_SST25WF020, |
| 14084 | .total_size = 256, |
| 14085 | .page_size = 256, |
| 14086 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14087 | .tested = TEST_UNTESTED, |
| 14088 | .probe = probe_spi_rdid, |
| 14089 | .probe_timing = TIMING_ZERO, |
| 14090 | .block_erasers = |
| 14091 | { |
| 14092 | { |
| 14093 | .eraseblocks = { {4 * 1024, 64} }, |
| 14094 | .block_erase = spi_block_erase_20, |
| 14095 | }, { |
| 14096 | .eraseblocks = { {32 * 1024, 8} }, |
| 14097 | .block_erase = spi_block_erase_52, |
| 14098 | }, { |
| 14099 | .eraseblocks = { {64 * 1024, 4} }, |
| 14100 | .block_erase = spi_block_erase_d8, |
| 14101 | }, { |
| 14102 | .eraseblocks = { {1024 * 256, 1} }, |
| 14103 | .block_erase = spi_block_erase_60, |
| 14104 | }, { |
| 14105 | .eraseblocks = { {1024 * 256, 1} }, |
| 14106 | .block_erase = spi_block_erase_c7, |
| 14107 | }, |
| 14108 | }, |
| 14109 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14110 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14111 | .write = spi_aai_write, |
| 14112 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14113 | .voltage = {1650, 1950}, |
| 14114 | }, |
| 14115 | |
| 14116 | { |
| 14117 | .vendor = "SST", |
| 14118 | .name = "SST25WF020A", |
| 14119 | .bustype = BUS_SPI, |
| 14120 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14121 | .model_id = SST_SST25WF020A, |
| 14122 | .total_size = 256, |
| 14123 | .page_size = 256, |
| 14124 | .feature_bits = FEATURE_WRSR_WREN, |
| 14125 | .tested = TEST_UNTESTED, |
| 14126 | .probe = probe_spi_rdid, |
| 14127 | .probe_timing = TIMING_ZERO, |
| 14128 | .block_erasers = |
| 14129 | { |
| 14130 | { |
| 14131 | .eraseblocks = { {4 * 1024, 64} }, |
| 14132 | .block_erase = spi_block_erase_20, |
| 14133 | }, { |
| 14134 | .eraseblocks = { {64 * 1024, 4} }, |
| 14135 | .block_erase = spi_block_erase_d8, |
| 14136 | }, { |
| 14137 | .eraseblocks = { {256 * 1024, 1} }, |
| 14138 | .block_erase = spi_block_erase_60, |
| 14139 | }, { |
| 14140 | .eraseblocks = { {256 * 1024, 1} }, |
| 14141 | .block_erase = spi_block_erase_c7, |
| 14142 | }, |
| 14143 | }, |
| 14144 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14145 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14146 | .write = spi_chip_write_256, |
| 14147 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14148 | .voltage = {1650, 1950}, |
| 14149 | }, |
| 14150 | |
| 14151 | { |
| 14152 | .vendor = "SST", |
| 14153 | .name = "SST25WF040", |
| 14154 | .bustype = BUS_SPI, |
| 14155 | .manufacture_id = SST_ID, |
| 14156 | .model_id = SST_SST25WF040, |
| 14157 | .total_size = 512, |
| 14158 | .page_size = 256, |
| 14159 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14160 | .tested = TEST_UNTESTED, |
| 14161 | .probe = probe_spi_rdid, |
| 14162 | .probe_timing = TIMING_ZERO, |
| 14163 | .block_erasers = |
| 14164 | { |
| 14165 | { |
| 14166 | .eraseblocks = { {4 * 1024, 128} }, |
| 14167 | .block_erase = spi_block_erase_20, |
| 14168 | }, { |
| 14169 | .eraseblocks = { {32 * 1024, 16} }, |
| 14170 | .block_erase = spi_block_erase_52, |
| 14171 | }, { |
| 14172 | .eraseblocks = { {64 * 1024, 8} }, |
| 14173 | .block_erase = spi_block_erase_d8, |
| 14174 | }, { |
| 14175 | .eraseblocks = { {1024 * 512, 1} }, |
| 14176 | .block_erase = spi_block_erase_60, |
| 14177 | }, { |
| 14178 | .eraseblocks = { {1024 * 512, 1} }, |
| 14179 | .block_erase = spi_block_erase_c7, |
| 14180 | }, |
| 14181 | }, |
| 14182 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14183 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14184 | .write = spi_aai_write, |
| 14185 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14186 | .voltage = {1650, 1950}, |
| 14187 | }, |
| 14188 | |
| 14189 | { |
| 14190 | .vendor = "SST", |
| 14191 | .name = "SST25WF040B", |
| 14192 | .bustype = BUS_SPI, |
| 14193 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14194 | .model_id = SST_SST25WF040B, |
| 14195 | .total_size = 512, |
| 14196 | .page_size = 256, |
| 14197 | .feature_bits = FEATURE_WRSR_WREN, |
| 14198 | .tested = TEST_UNTESTED, |
| 14199 | .probe = probe_spi_rdid, |
| 14200 | .probe_timing = TIMING_ZERO, |
| 14201 | .block_erasers = |
| 14202 | { |
| 14203 | { |
| 14204 | .eraseblocks = { {4 * 1024, 128} }, |
| 14205 | .block_erase = spi_block_erase_20, |
| 14206 | }, { |
| 14207 | .eraseblocks = { {64 * 1024, 8} }, |
| 14208 | .block_erase = spi_block_erase_d8, |
| 14209 | }, { |
| 14210 | .eraseblocks = { {512 * 1024, 1} }, |
| 14211 | .block_erase = spi_block_erase_60, |
| 14212 | }, { |
| 14213 | .eraseblocks = { {512 * 1024, 1} }, |
| 14214 | .block_erase = spi_block_erase_c7, |
| 14215 | }, |
| 14216 | }, |
| 14217 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14218 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14219 | .write = spi_chip_write_256, |
| 14220 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 14221 | .voltage = {1650, 1950}, |
| 14222 | }, |
| 14223 | |
| 14224 | { |
| 14225 | .vendor = "SST", |
| 14226 | .name = "SST25WF080", |
| 14227 | .bustype = BUS_SPI, |
| 14228 | .manufacture_id = SST_ID, |
| 14229 | .model_id = SST_SST25WF080, |
| 14230 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14231 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14232 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14233 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14234 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14235 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14236 | .block_erasers = |
| 14237 | { |
| 14238 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14239 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14240 | .block_erase = spi_block_erase_20, |
| 14241 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14242 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14243 | .block_erase = spi_block_erase_52, |
| 14244 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14245 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14246 | .block_erase = spi_block_erase_d8, |
| 14247 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14248 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14249 | .block_erase = spi_block_erase_60, |
| 14250 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14251 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14252 | .block_erase = spi_block_erase_c7, |
| 14253 | }, |
| 14254 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14255 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 14256 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 14257 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14258 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14259 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14260 | }, |
| 14261 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14262 | { |
| 14263 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14264 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14265 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14266 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14267 | .model_id = SST_SST25WF080B, |
| 14268 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14269 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14270 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 14271 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14272 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14273 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14274 | .block_erasers = |
| 14275 | { |
| 14276 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14277 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14278 | .block_erase = spi_block_erase_20, |
| 14279 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14280 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14281 | .block_erase = spi_block_erase_d8, |
| 14282 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14283 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14284 | .block_erase = spi_block_erase_60, |
| 14285 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14286 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14287 | .block_erase = spi_block_erase_c7, |
| 14288 | }, |
| 14289 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14290 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14291 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 14292 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14293 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 14294 | .voltage = {1650, 1950}, |
| 14295 | }, |
| 14296 | |
| 14297 | { |
| 14298 | .vendor = "SST", |
| 14299 | .name = "SST25WF512", |
| 14300 | .bustype = BUS_SPI, |
| 14301 | .manufacture_id = SST_ID, |
| 14302 | .model_id = SST_SST25WF512, |
| 14303 | .total_size = 64, |
| 14304 | .page_size = 256, |
| 14305 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14306 | .tested = TEST_UNTESTED, |
| 14307 | .probe = probe_spi_rdid, |
| 14308 | .probe_timing = TIMING_ZERO, |
| 14309 | .block_erasers = |
| 14310 | { |
| 14311 | { |
| 14312 | .eraseblocks = { {4 * 1024, 16} }, |
| 14313 | .block_erase = spi_block_erase_20, |
| 14314 | }, { |
| 14315 | .eraseblocks = { {32 * 1024, 2} }, |
| 14316 | .block_erase = spi_block_erase_52, |
| 14317 | }, { |
| 14318 | .eraseblocks = { {1024 * 64, 1} }, |
| 14319 | .block_erase = spi_block_erase_60, |
| 14320 | }, { |
| 14321 | .eraseblocks = { {1024 * 64, 1} }, |
| 14322 | .block_erase = spi_block_erase_c7, |
| 14323 | }, |
| 14324 | }, |
| 14325 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14326 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14327 | .write = spi_aai_write, |
| 14328 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14329 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 14330 | }, |
| 14331 | |
| 14332 | { |
| 14333 | .vendor = "SST", |
Nico Huber | a2eaf4a | 2023-02-15 22:56:53 +0100 | [diff] [blame] | 14334 | .name = "SST26VF016", |
| 14335 | .bustype = BUS_SPI, |
| 14336 | .manufacture_id = SST_ID, |
| 14337 | .model_id = SST_SST26VF016, |
| 14338 | .total_size = 2048, |
| 14339 | .page_size = 256, |
| 14340 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14341 | .tested = TEST_UNTESTED, |
| 14342 | .probe = probe_spi_rdid, |
| 14343 | .probe_timing = TIMING_ZERO, |
| 14344 | .block_erasers = |
| 14345 | { |
| 14346 | { |
| 14347 | .eraseblocks = { {4 * 1024, 512} }, |
| 14348 | .block_erase = spi_block_erase_20, |
| 14349 | }, { |
| 14350 | .eraseblocks = { |
| 14351 | {8 * 1024, 4}, |
| 14352 | {32 * 1024, 1}, |
| 14353 | {64 * 1024, 30}, |
| 14354 | {32 * 1024, 1}, |
| 14355 | {8 * 1024, 4}, |
| 14356 | }, |
| 14357 | .block_erase = spi_block_erase_d8, |
| 14358 | }, { |
| 14359 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14360 | .block_erase = spi_block_erase_c7, |
| 14361 | }, |
| 14362 | }, |
| 14363 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14364 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14365 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14366 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14367 | .voltage = {2700, 3600}, |
| 14368 | }, |
| 14369 | |
| 14370 | { |
| 14371 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14372 | .name = "SST26VF016B(A)", |
| 14373 | .bustype = BUS_SPI, |
| 14374 | .manufacture_id = SST_ID, |
| 14375 | .model_id = SST_SST26VF016B, |
| 14376 | .total_size = 2048, |
| 14377 | .page_size = 256, |
| 14378 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14379 | .tested = TEST_OK_PREW, |
| 14380 | .probe = probe_spi_rdid, |
| 14381 | .probe_timing = TIMING_ZERO, |
| 14382 | .block_erasers = |
| 14383 | { |
| 14384 | { |
| 14385 | .eraseblocks = { {4 * 1024, 512} }, |
| 14386 | .block_erase = spi_block_erase_20, |
| 14387 | }, { |
| 14388 | .eraseblocks = { |
| 14389 | {8 * 1024, 4}, |
| 14390 | {32 * 1024, 1}, |
| 14391 | {64 * 1024, 30}, |
| 14392 | {32 * 1024, 1}, |
| 14393 | {8 * 1024, 4}, |
| 14394 | }, |
| 14395 | .block_erase = spi_block_erase_d8, |
| 14396 | }, { |
| 14397 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14398 | .block_erase = spi_block_erase_c7, |
| 14399 | }, |
| 14400 | }, |
| 14401 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14402 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14403 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14404 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14405 | .voltage = {2700, 3600}, |
| 14406 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14407 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14408 | { |
| 14409 | .vendor = "SST", |
Nico Huber | a2eaf4a | 2023-02-15 22:56:53 +0100 | [diff] [blame] | 14410 | .name = "SST26VF032", |
| 14411 | .bustype = BUS_SPI, |
| 14412 | .manufacture_id = SST_ID, |
| 14413 | .model_id = SST_SST26VF032, |
| 14414 | .total_size = 4096, |
| 14415 | .page_size = 256, |
| 14416 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14417 | .tested = TEST_UNTESTED, |
| 14418 | .probe = probe_spi_rdid, |
| 14419 | .probe_timing = TIMING_ZERO, |
| 14420 | .block_erasers = |
| 14421 | { |
| 14422 | { |
| 14423 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14424 | .block_erase = spi_block_erase_20, |
| 14425 | }, { |
| 14426 | .eraseblocks = { |
| 14427 | {8 * 1024, 4}, |
| 14428 | {32 * 1024, 1}, |
| 14429 | {64 * 1024, 62}, |
| 14430 | {32 * 1024, 1}, |
| 14431 | {8 * 1024, 4}, |
| 14432 | }, |
| 14433 | .block_erase = spi_block_erase_d8, |
| 14434 | }, { |
| 14435 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14436 | .block_erase = spi_block_erase_c7, |
| 14437 | }, |
| 14438 | }, |
| 14439 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14440 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14441 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14442 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14443 | .voltage = {2700, 3600}, |
| 14444 | }, |
| 14445 | |
| 14446 | { |
| 14447 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14448 | .name = "SST26VF032B(A)", |
| 14449 | .bustype = BUS_SPI, |
| 14450 | .manufacture_id = SST_ID, |
| 14451 | .model_id = SST_SST26VF032B, |
| 14452 | .total_size = 4096, |
| 14453 | .page_size = 256, |
| 14454 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14455 | .tested = TEST_UNTESTED, |
| 14456 | .probe = probe_spi_rdid, |
| 14457 | .probe_timing = TIMING_ZERO, |
| 14458 | .block_erasers = |
| 14459 | { |
| 14460 | { |
| 14461 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14462 | .block_erase = spi_block_erase_20, |
| 14463 | }, { |
| 14464 | .eraseblocks = { |
| 14465 | {8 * 1024, 4}, |
| 14466 | {32 * 1024, 1}, |
| 14467 | {64 * 1024, 62}, |
| 14468 | {32 * 1024, 1}, |
| 14469 | {8 * 1024, 4}, |
| 14470 | }, |
| 14471 | .block_erase = spi_block_erase_d8, |
| 14472 | }, { |
| 14473 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14474 | .block_erase = spi_block_erase_c7, |
| 14475 | }, |
| 14476 | }, |
| 14477 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14478 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14479 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14480 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14481 | .voltage = {2700, 3600}, |
| 14482 | }, |
| 14483 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14484 | { |
| 14485 | .vendor = "SST", |
| 14486 | .name = "SST26VF064B(A)", |
| 14487 | .bustype = BUS_SPI, |
| 14488 | .manufacture_id = SST_ID, |
| 14489 | .model_id = SST_SST26VF064B, |
| 14490 | .total_size = 8192, |
| 14491 | .page_size = 256, |
| 14492 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14493 | .tested = TEST_OK_PREW, |
| 14494 | .probe = probe_spi_rdid, |
| 14495 | .probe_timing = TIMING_ZERO, |
| 14496 | .block_erasers = |
| 14497 | { |
| 14498 | { |
| 14499 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14500 | .block_erase = spi_block_erase_20, |
| 14501 | }, { |
| 14502 | .eraseblocks = { |
| 14503 | {8 * 1024, 4}, |
| 14504 | {32 * 1024, 1}, |
| 14505 | {64 * 1024, 126}, |
| 14506 | {32 * 1024, 1}, |
| 14507 | {8 * 1024, 4}, |
| 14508 | }, |
| 14509 | .block_erase = spi_block_erase_d8, |
| 14510 | }, { |
| 14511 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14512 | .block_erase = spi_block_erase_c7, |
| 14513 | }, |
| 14514 | }, |
| 14515 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14516 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14517 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14518 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14519 | .voltage = {2700, 3600}, |
| 14520 | }, |
| 14521 | |
| 14522 | { |
| 14523 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14524 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14525 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14526 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14527 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14528 | .total_size = 512, |
| 14529 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14530 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14531 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14532 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14533 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14534 | .block_erasers = |
| 14535 | { |
| 14536 | { |
| 14537 | .eraseblocks = { {128, 4096} }, |
| 14538 | .block_erase = erase_sector_28sf040, |
| 14539 | }, { |
| 14540 | .eraseblocks = { {512 * 1024, 1} }, |
| 14541 | .block_erase = erase_chip_28sf040, |
| 14542 | } |
| 14543 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14544 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14545 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14546 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14547 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14548 | .prepare_access = prepare_memory_access, |
| 14549 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14550 | }, |
| 14551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14552 | { |
| 14553 | .vendor = "SST", |
| 14554 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14555 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14556 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14557 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14558 | .total_size = 128, |
| 14559 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14560 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14561 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14562 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14563 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14564 | .block_erasers = |
| 14565 | { |
| 14566 | { |
| 14567 | .eraseblocks = { {128 * 1024, 1} }, |
| 14568 | .block_erase = erase_chip_block_jedec, |
| 14569 | } |
| 14570 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14571 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14572 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14573 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14574 | .prepare_access = prepare_memory_access, |
| 14575 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14576 | }, |
| 14577 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14578 | { |
| 14579 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14580 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14581 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14582 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14583 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14584 | .total_size = 256, |
| 14585 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14586 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14587 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14588 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14589 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14590 | .block_erasers = |
| 14591 | { |
| 14592 | { |
| 14593 | .eraseblocks = { {256 * 1024, 1} }, |
| 14594 | .block_erase = erase_chip_block_jedec, |
| 14595 | } |
| 14596 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14597 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14598 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14599 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14600 | .prepare_access = prepare_memory_access, |
| 14601 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14602 | }, |
| 14603 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14604 | { |
| 14605 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14606 | .name = "SST29LE010", |
| 14607 | .bustype = BUS_PARALLEL, |
| 14608 | .manufacture_id = SST_ID, |
| 14609 | .model_id = SST_SST29LE010, |
| 14610 | .total_size = 128, |
| 14611 | .page_size = 128, |
| 14612 | .feature_bits = FEATURE_LONG_RESET, |
| 14613 | .tested = TEST_UNTESTED, |
| 14614 | .probe = probe_jedec, |
| 14615 | .probe_timing = 10, |
| 14616 | .block_erasers = |
| 14617 | { |
| 14618 | { |
| 14619 | .eraseblocks = { {128 * 1024, 1} }, |
| 14620 | .block_erase = erase_chip_block_jedec, |
| 14621 | } |
| 14622 | }, |
| 14623 | .write = write_jedec, |
| 14624 | .read = read_memmapped, |
| 14625 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14626 | .prepare_access = prepare_memory_access, |
| 14627 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14628 | }, |
| 14629 | |
| 14630 | { |
| 14631 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14632 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14633 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14634 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14635 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14636 | .total_size = 256, |
| 14637 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14638 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14639 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14640 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14641 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14642 | .block_erasers = |
| 14643 | { |
| 14644 | { |
| 14645 | .eraseblocks = { {256 * 1024, 1} }, |
| 14646 | .block_erase = erase_chip_block_jedec, |
| 14647 | } |
| 14648 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14649 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14650 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14651 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14652 | .prepare_access = prepare_memory_access, |
| 14653 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14654 | }, |
| 14655 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14656 | { |
| 14657 | .vendor = "SST", |
| 14658 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14659 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14660 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14661 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14662 | .total_size = 128, |
| 14663 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14664 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14665 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14666 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 14667 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14668 | .block_erasers = |
| 14669 | { |
| 14670 | { |
| 14671 | .eraseblocks = { {4 * 1024, 32} }, |
| 14672 | .block_erase = erase_sector_jedec, |
| 14673 | }, { |
| 14674 | .eraseblocks = { {128 * 1024, 1} }, |
| 14675 | .block_erase = erase_chip_block_jedec, |
| 14676 | } |
| 14677 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14678 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14679 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14680 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14681 | .prepare_access = prepare_memory_access, |
| 14682 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14683 | }, |
| 14684 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14685 | { |
| 14686 | .vendor = "SST", |
| 14687 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14688 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14689 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14690 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14691 | .total_size = 256, |
| 14692 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14693 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 14694 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14695 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14696 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14697 | .block_erasers = |
| 14698 | { |
| 14699 | { |
| 14700 | .eraseblocks = { {4 * 1024, 64} }, |
| 14701 | .block_erase = erase_sector_jedec, |
| 14702 | }, { |
| 14703 | .eraseblocks = { {256 * 1024, 1} }, |
| 14704 | .block_erase = erase_chip_block_jedec, |
| 14705 | } |
| 14706 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14707 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14708 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14709 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14710 | .prepare_access = prepare_memory_access, |
| 14711 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14712 | }, |
| 14713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14714 | { |
| 14715 | .vendor = "SST", |
| 14716 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14717 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14718 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14719 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14720 | .total_size = 512, |
| 14721 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14722 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 14723 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14724 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14725 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14726 | .block_erasers = |
| 14727 | { |
| 14728 | { |
| 14729 | .eraseblocks = { {4 * 1024, 128} }, |
| 14730 | .block_erase = erase_sector_jedec, |
| 14731 | }, { |
| 14732 | .eraseblocks = { {512 * 1024, 1} }, |
| 14733 | .block_erase = erase_chip_block_jedec, |
| 14734 | } |
| 14735 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14736 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14737 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14738 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14739 | .prepare_access = prepare_memory_access, |
| 14740 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14741 | }, |
| 14742 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14743 | { |
| 14744 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14745 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14746 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14747 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14748 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14749 | .total_size = 64, |
| 14750 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14751 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 14752 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14753 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14754 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14755 | .block_erasers = |
| 14756 | { |
| 14757 | { |
| 14758 | .eraseblocks = { {4 * 1024, 16} }, |
| 14759 | .block_erase = erase_sector_jedec, |
| 14760 | }, { |
| 14761 | .eraseblocks = { {64 * 1024, 1} }, |
| 14762 | .block_erase = erase_chip_block_jedec, |
| 14763 | } |
| 14764 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14765 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14766 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14767 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14768 | .prepare_access = prepare_memory_access, |
| 14769 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14770 | }, |
| 14771 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14772 | { |
| 14773 | .vendor = "SST", |
| 14774 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14775 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14776 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14777 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14778 | .total_size = 128, |
| 14779 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14780 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 14781 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14782 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14783 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14784 | .block_erasers = |
| 14785 | { |
| 14786 | { |
| 14787 | .eraseblocks = { {4 * 1024, 32} }, |
| 14788 | .block_erase = erase_sector_jedec, |
| 14789 | }, { |
| 14790 | .eraseblocks = { {128 * 1024, 1} }, |
| 14791 | .block_erase = erase_chip_block_jedec, |
| 14792 | } |
| 14793 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14794 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14795 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14796 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14797 | .prepare_access = prepare_memory_access, |
| 14798 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14799 | }, |
| 14800 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14801 | { |
| 14802 | .vendor = "SST", |
| 14803 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14804 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14805 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14806 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14807 | .total_size = 256, |
| 14808 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14809 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14810 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14811 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14812 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14813 | .block_erasers = |
| 14814 | { |
| 14815 | { |
| 14816 | .eraseblocks = { {4 * 1024, 64} }, |
| 14817 | .block_erase = erase_sector_jedec, |
| 14818 | }, { |
| 14819 | .eraseblocks = { {256 * 1024, 1} }, |
| 14820 | .block_erase = erase_chip_block_jedec, |
| 14821 | } |
| 14822 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14823 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14824 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14825 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14826 | .prepare_access = prepare_memory_access, |
| 14827 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14828 | }, |
| 14829 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14830 | { |
| 14831 | .vendor = "SST", |
| 14832 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14833 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14834 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14835 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14836 | .total_size = 512, |
| 14837 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14838 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14839 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14840 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14841 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14842 | .block_erasers = |
| 14843 | { |
| 14844 | { |
| 14845 | .eraseblocks = { {4 * 1024, 128} }, |
| 14846 | .block_erase = erase_sector_jedec, |
| 14847 | }, { |
| 14848 | .eraseblocks = { {512 * 1024, 1} }, |
| 14849 | .block_erase = erase_chip_block_jedec, |
| 14850 | } |
| 14851 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14852 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14853 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14854 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14855 | .prepare_access = prepare_memory_access, |
| 14856 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 14857 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14858 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14859 | { |
| 14860 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14861 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14862 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 14863 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14864 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14865 | .total_size = 1024, |
| 14866 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14867 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14868 | .tested = TEST_UNTESTED, |
| 14869 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14870 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14871 | .block_erasers = |
| 14872 | { |
| 14873 | { |
| 14874 | .eraseblocks = { {4 * 1024, 256} }, |
| 14875 | .block_erase = erase_sector_jedec, |
| 14876 | }, { |
| 14877 | .eraseblocks = { {64 * 1024, 16} }, |
| 14878 | .block_erase = erase_block_jedec, |
| 14879 | }, { |
| 14880 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14881 | .block_erase = erase_chip_block_jedec, |
| 14882 | } |
| 14883 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14884 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14885 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14886 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14887 | .prepare_access = prepare_memory_access, |
| 14888 | .finish_access = finish_memory_access, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14889 | }, |
| 14890 | |
| 14891 | { |
| 14892 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14893 | .name = "SST39VF512", |
| 14894 | .bustype = BUS_PARALLEL, |
| 14895 | .manufacture_id = SST_ID, |
| 14896 | .model_id = SST_SST39VF512, |
| 14897 | .total_size = 64, |
| 14898 | .page_size = 4096, |
| 14899 | .feature_bits = FEATURE_EITHER_RESET, |
| 14900 | .tested = TEST_OK_PREW, |
| 14901 | .probe = probe_jedec, |
| 14902 | .probe_timing = 1, /* 150 ns */ |
| 14903 | .block_erasers = |
| 14904 | { |
| 14905 | { |
| 14906 | .eraseblocks = { {4 * 1024, 16} }, |
| 14907 | .block_erase = erase_sector_jedec, |
| 14908 | }, { |
| 14909 | .eraseblocks = { {64 * 1024, 1} }, |
| 14910 | .block_erase = erase_chip_block_jedec, |
| 14911 | } |
| 14912 | }, |
| 14913 | .write = write_jedec_1, |
| 14914 | .read = read_memmapped, |
| 14915 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14916 | .prepare_access = prepare_memory_access, |
| 14917 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14918 | }, |
| 14919 | |
| 14920 | { |
| 14921 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14922 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14923 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14924 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14925 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14926 | .total_size = 256, |
| 14927 | .page_size = 16 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 14928 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 14929 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14930 | .probe = probe_jedec, |
| 14931 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14932 | .block_erasers = |
| 14933 | { |
| 14934 | { |
| 14935 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14936 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14937 | }, { |
| 14938 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14939 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14940 | }, { |
| 14941 | .eraseblocks = { {256 * 1024, 1} }, |
| 14942 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14943 | } |
| 14944 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14945 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14946 | .unlock = unlock_sst_fwhub, |
| 14947 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14948 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14949 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 14950 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14951 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14952 | }, |
| 14953 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14954 | { |
| 14955 | .vendor = "SST", |
| 14956 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14957 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14958 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14959 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14960 | .total_size = 384, |
| 14961 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 14962 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14963 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14964 | .probe = probe_jedec, |
| 14965 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14966 | .block_erasers = |
| 14967 | { |
| 14968 | { |
| 14969 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14970 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14971 | }, { |
| 14972 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14973 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14974 | }, { |
| 14975 | .eraseblocks = { {384 * 1024, 1} }, |
| 14976 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14977 | } |
| 14978 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14979 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14980 | .unlock = unlock_sst_fwhub, |
| 14981 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14982 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14983 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 14984 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14985 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14986 | }, |
| 14987 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14988 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14989 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 14990 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 14991 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14992 | .vendor = "SST", |
| 14993 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14994 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14995 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14996 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14997 | .total_size = 512, |
| 14998 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 14999 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 15000 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15001 | .probe = probe_jedec, |
| 15002 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15003 | .block_erasers = |
| 15004 | { |
| 15005 | { |
| 15006 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15007 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15008 | }, { |
| 15009 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15010 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15011 | }, { |
| 15012 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15013 | .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] | 15014 | }, |
| 15015 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15016 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15017 | .unlock = unlock_sst_fwhub, |
| 15018 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15019 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15020 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15021 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15022 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15023 | }, |
| 15024 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15025 | { |
| 15026 | .vendor = "SST", |
| 15027 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15028 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15029 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15030 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15031 | .total_size = 512, |
| 15032 | .page_size = 4 * 1024, |
| 15033 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15034 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15035 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15036 | .block_erasers = |
| 15037 | { |
| 15038 | { |
| 15039 | .eraseblocks = { {4 * 1024, 128} }, |
| 15040 | .block_erase = erase_sector_49lfxxxc, |
| 15041 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15042 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15043 | {64 * 1024, 7}, |
| 15044 | {32 * 1024, 1}, |
| 15045 | {8 * 1024, 2}, |
| 15046 | {16 * 1024, 1}, |
| 15047 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15048 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15049 | } |
| 15050 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15051 | .printlock = printlock_regspace2_block_eraser_1, |
| 15052 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15053 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15054 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15055 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15056 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15057 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15058 | }, |
| 15059 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15060 | { |
| 15061 | .vendor = "SST", |
| 15062 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15063 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15064 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15065 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15066 | .total_size = 1024, |
| 15067 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15068 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15069 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15070 | .probe = probe_jedec, |
| 15071 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15072 | .block_erasers = |
| 15073 | { |
| 15074 | { |
| 15075 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15076 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15077 | }, { |
| 15078 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15079 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15080 | }, { |
| 15081 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15082 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 15083 | } |
| 15084 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15085 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15086 | .unlock = unlock_sst_fwhub, |
| 15087 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15088 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15089 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15090 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15091 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15092 | }, |
| 15093 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15094 | { |
| 15095 | .vendor = "SST", |
| 15096 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15097 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15098 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15099 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15100 | .total_size = 1024, |
| 15101 | .page_size = 4 * 1024, |
| 15102 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15103 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15104 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15105 | .block_erasers = |
| 15106 | { |
| 15107 | { |
| 15108 | .eraseblocks = { {4 * 1024, 256} }, |
| 15109 | .block_erase = erase_sector_49lfxxxc, |
| 15110 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15111 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15112 | {64 * 1024, 15}, |
| 15113 | {32 * 1024, 1}, |
| 15114 | {8 * 1024, 2}, |
| 15115 | {16 * 1024, 1}, |
| 15116 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15117 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15118 | } |
| 15119 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15120 | .printlock = printlock_regspace2_block_eraser_1, |
| 15121 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15122 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15123 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15124 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15125 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15126 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15127 | }, |
| 15128 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15129 | { |
| 15130 | .vendor = "SST", |
| 15131 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15132 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15133 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15134 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15135 | .total_size = 2048, |
| 15136 | .page_size = 4 * 1024, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15137 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15138 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15139 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15140 | .block_erasers = |
| 15141 | { |
| 15142 | { |
| 15143 | .eraseblocks = { {4 * 1024, 512} }, |
| 15144 | .block_erase = erase_sector_49lfxxxc, |
| 15145 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15146 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15147 | {64 * 1024, 31}, |
| 15148 | {32 * 1024, 1}, |
| 15149 | {8 * 1024, 2}, |
| 15150 | {16 * 1024, 1}, |
| 15151 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15152 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15153 | } |
| 15154 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15155 | .printlock = printlock_regspace2_block_eraser_1, |
| 15156 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15157 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15158 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15159 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15160 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15161 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15162 | }, |
| 15163 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15164 | { |
| 15165 | .vendor = "SST", |
| 15166 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15167 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15168 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15169 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15170 | .total_size = 256, |
| 15171 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15172 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 15173 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15174 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15175 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15176 | .block_erasers = |
| 15177 | { |
| 15178 | { |
| 15179 | .eraseblocks = { {4 * 1024, 64} }, |
| 15180 | .block_erase = erase_sector_jedec, |
| 15181 | }, { |
| 15182 | .eraseblocks = { {16 * 1024, 16} }, |
| 15183 | .block_erase = erase_block_jedec, |
| 15184 | }, { |
| 15185 | .eraseblocks = { {256 * 1024, 1} }, |
| 15186 | .block_erase = NULL, |
| 15187 | } |
| 15188 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15189 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15190 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15191 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15192 | .prepare_access = prepare_memory_access, |
| 15193 | .finish_access = finish_memory_access, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 15194 | }, |
| 15195 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15196 | { |
| 15197 | .vendor = "SST", |
| 15198 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15199 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15200 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15201 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15202 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 15203 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15204 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 15205 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15206 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15207 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15208 | .block_erasers = |
| 15209 | { |
| 15210 | { |
| 15211 | .eraseblocks = { {4 * 1024, 64} }, |
| 15212 | .block_erase = erase_sector_jedec, |
| 15213 | }, { |
| 15214 | .eraseblocks = { {16 * 1024, 16} }, |
| 15215 | .block_erase = erase_block_jedec, |
| 15216 | }, { |
| 15217 | .eraseblocks = { {256 * 1024, 1} }, |
| 15218 | .block_erase = NULL, |
| 15219 | } |
| 15220 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15221 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15222 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15223 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15224 | .prepare_access = prepare_memory_access, |
| 15225 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15226 | }, |
| 15227 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15228 | { |
| 15229 | .vendor = "SST", |
| 15230 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15231 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15232 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15233 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15234 | .total_size = 512, |
| 15235 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15236 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 15237 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15238 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15239 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15240 | .block_erasers = |
| 15241 | { |
| 15242 | { |
| 15243 | .eraseblocks = { {4 * 1024, 128} }, |
| 15244 | .block_erase = erase_sector_jedec, |
| 15245 | }, { |
| 15246 | .eraseblocks = { {64 * 1024, 8} }, |
| 15247 | .block_erase = erase_block_jedec, |
| 15248 | }, { |
| 15249 | .eraseblocks = { {512 * 1024, 1} }, |
| 15250 | .block_erase = NULL, |
| 15251 | } |
| 15252 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15253 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15254 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15255 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15256 | .prepare_access = prepare_memory_access, |
| 15257 | .finish_access = finish_memory_access, |
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 = "SST", |
| 15262 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15263 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15264 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15265 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15266 | .total_size = 512, |
| 15267 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15268 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15269 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15270 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15271 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15272 | .block_erasers = |
| 15273 | { |
| 15274 | { |
| 15275 | .eraseblocks = { {4 * 1024, 128} }, |
| 15276 | .block_erase = erase_sector_jedec, |
| 15277 | }, { |
| 15278 | .eraseblocks = { {64 * 1024, 8} }, |
| 15279 | .block_erase = erase_block_jedec, |
| 15280 | }, { |
| 15281 | .eraseblocks = { {512 * 1024, 1} }, |
| 15282 | .block_erase = NULL, |
| 15283 | } |
| 15284 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15285 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15286 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15287 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15288 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15289 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15290 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15291 | }, |
| 15292 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15293 | { |
| 15294 | .vendor = "SST", |
| 15295 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15296 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15297 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 15298 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15299 | .total_size = 1024, |
| 15300 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15301 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 15302 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15303 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15304 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15305 | .block_erasers = |
| 15306 | { |
| 15307 | { |
| 15308 | .eraseblocks = { {4 * 1024, 256} }, |
| 15309 | .block_erase = erase_sector_jedec, |
| 15310 | }, { |
| 15311 | .eraseblocks = { {64 * 1024, 16} }, |
| 15312 | .block_erase = erase_block_jedec, |
| 15313 | }, { |
| 15314 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15315 | .block_erase = NULL, |
| 15316 | } |
| 15317 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15318 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15319 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15320 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15321 | .prepare_access = prepare_memory_access, |
| 15322 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15323 | }, |
| 15324 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15325 | { |
| 15326 | .vendor = "SST", |
| 15327 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15328 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15329 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15330 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15331 | .total_size = 2048, |
| 15332 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15333 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15334 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15335 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15336 | .block_erasers = |
| 15337 | { |
| 15338 | { |
| 15339 | .eraseblocks = { {4 * 1024, 512} }, |
| 15340 | .block_erase = erase_sector_49lfxxxc, |
| 15341 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15342 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15343 | {64 * 1024, 31}, |
| 15344 | {32 * 1024, 1}, |
| 15345 | {8 * 1024, 2}, |
| 15346 | {16 * 1024, 1}, |
| 15347 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15348 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15349 | } |
| 15350 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15351 | .printlock = printlock_regspace2_block_eraser_1, |
| 15352 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15353 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15354 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15355 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15356 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15357 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15358 | }, |
| 15359 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15360 | { |
| 15361 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15362 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15363 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15364 | .manufacture_id = ST_ID, |
| 15365 | .model_id = ST_M29F002B, |
| 15366 | .total_size = 256, |
| 15367 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15368 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15369 | .tested = TEST_UNTESTED, |
| 15370 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15371 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15372 | .block_erasers = |
| 15373 | { |
| 15374 | { |
| 15375 | .eraseblocks = { |
| 15376 | {16 * 1024, 1}, |
| 15377 | {8 * 1024, 2}, |
| 15378 | {32 * 1024, 1}, |
| 15379 | {64 * 1024, 3}, |
| 15380 | }, |
| 15381 | .block_erase = erase_sector_jedec, |
| 15382 | }, { |
| 15383 | .eraseblocks = { {256 * 1024, 1} }, |
| 15384 | .block_erase = erase_chip_block_jedec, |
| 15385 | } |
| 15386 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15387 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15388 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15389 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15390 | .prepare_access = prepare_memory_access, |
| 15391 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15392 | }, |
| 15393 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15394 | { |
| 15395 | .vendor = "ST", |
| 15396 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15397 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15398 | .manufacture_id = ST_ID, |
| 15399 | .model_id = ST_M29F002T, |
| 15400 | .total_size = 256, |
| 15401 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15402 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 15403 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15404 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15405 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15406 | .block_erasers = |
| 15407 | { |
| 15408 | { |
| 15409 | .eraseblocks = { |
| 15410 | {64 * 1024, 3}, |
| 15411 | {32 * 1024, 1}, |
| 15412 | {8 * 1024, 2}, |
| 15413 | {16 * 1024, 1}, |
| 15414 | }, |
| 15415 | .block_erase = erase_sector_jedec, |
| 15416 | }, { |
| 15417 | .eraseblocks = { {256 * 1024, 1} }, |
| 15418 | .block_erase = erase_chip_block_jedec, |
| 15419 | } |
| 15420 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15421 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15422 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15423 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15424 | .prepare_access = prepare_memory_access, |
| 15425 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15426 | }, |
| 15427 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15428 | { |
| 15429 | .vendor = "ST", |
| 15430 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15431 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15432 | .manufacture_id = ST_ID, |
| 15433 | .model_id = ST_M29F040B, |
| 15434 | .total_size = 512, |
| 15435 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15436 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 15437 | .tested = TEST_UNTESTED, |
| 15438 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 15439 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15440 | .block_erasers = |
| 15441 | { |
| 15442 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15443 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15444 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15445 | }, { |
| 15446 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15447 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15448 | } |
| 15449 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15450 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15451 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15452 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15453 | .prepare_access = prepare_memory_access, |
| 15454 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15455 | }, |
| 15456 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15457 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15458 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15459 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15460 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15461 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15462 | .manufacture_id = ST_ID, |
| 15463 | .model_id = ST_M29F400BB, |
| 15464 | .total_size = 512, |
| 15465 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15466 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15467 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15468 | .probe = probe_jedec, |
| 15469 | .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] | 15470 | .block_erasers = |
| 15471 | { |
| 15472 | { |
| 15473 | .eraseblocks = { |
| 15474 | {16 * 1024, 1}, |
| 15475 | {8 * 1024, 2}, |
| 15476 | {32 * 1024, 1}, |
| 15477 | {64 * 1024, 7}, |
| 15478 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15479 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15480 | }, { |
| 15481 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15482 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15483 | } |
| 15484 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15485 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15486 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15487 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15488 | .prepare_access = prepare_memory_access, |
| 15489 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15490 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 15491 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15492 | { |
| 15493 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 15494 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15495 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15496 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15497 | .manufacture_id = ST_ID, |
| 15498 | .model_id = ST_M29F400BT, |
| 15499 | .total_size = 512, |
| 15500 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15501 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15502 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15503 | .probe = probe_jedec, |
| 15504 | .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] | 15505 | .block_erasers = |
| 15506 | { |
| 15507 | { |
| 15508 | .eraseblocks = { |
| 15509 | {64 * 1024, 7}, |
| 15510 | {32 * 1024, 1}, |
| 15511 | {8 * 1024, 2}, |
| 15512 | {16 * 1024, 1}, |
| 15513 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15514 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15515 | }, { |
| 15516 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15517 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15518 | } |
| 15519 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15520 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15521 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15522 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15523 | .prepare_access = prepare_memory_access, |
| 15524 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15525 | }, |
| 15526 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15527 | { |
| 15528 | .vendor = "ST", |
| 15529 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15530 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15531 | .manufacture_id = ST_ID, |
| 15532 | .model_id = ST_M29W010B, |
| 15533 | .total_size = 128, |
| 15534 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15535 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15536 | .tested = TEST_UNTESTED, |
| 15537 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15538 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15539 | .block_erasers = |
| 15540 | { |
| 15541 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15542 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15543 | .block_erase = erase_sector_jedec, |
| 15544 | }, { |
| 15545 | .eraseblocks = { {128 * 1024, 1} }, |
| 15546 | .block_erase = erase_chip_block_jedec, |
| 15547 | } |
| 15548 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15549 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15550 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15551 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15552 | .prepare_access = prepare_memory_access, |
| 15553 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15554 | }, |
| 15555 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15556 | { |
| 15557 | .vendor = "ST", |
| 15558 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15559 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15560 | .manufacture_id = ST_ID, |
| 15561 | .model_id = ST_M29W040B, |
| 15562 | .total_size = 512, |
| 15563 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15564 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15565 | .tested = TEST_UNTESTED, |
| 15566 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15567 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15568 | .block_erasers = |
| 15569 | { |
| 15570 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15571 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15572 | .block_erase = erase_sector_jedec, |
| 15573 | }, { |
| 15574 | .eraseblocks = { {512 * 1024, 1} }, |
| 15575 | .block_erase = erase_chip_block_jedec, |
| 15576 | } |
| 15577 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15578 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15579 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15580 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15581 | .prepare_access = prepare_memory_access, |
| 15582 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15583 | }, |
| 15584 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15585 | { |
| 15586 | .vendor = "ST", |
| 15587 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15588 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 15589 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15590 | .model_id = ST_M29W512B, |
| 15591 | .total_size = 64, |
| 15592 | .page_size = 64 * 1024, |
| 15593 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15594 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15595 | .probe = probe_jedec, |
| 15596 | .probe_timing = TIMING_ZERO, |
| 15597 | .block_erasers = |
| 15598 | { |
| 15599 | { |
| 15600 | .eraseblocks = { {64 * 1024, 1} }, |
| 15601 | .block_erase = erase_chip_block_jedec, |
| 15602 | } |
| 15603 | }, |
| 15604 | .write = write_jedec_1, |
| 15605 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15606 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15607 | .prepare_access = prepare_memory_access, |
| 15608 | .finish_access = finish_memory_access, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15609 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 15610 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15611 | { |
| 15612 | .vendor = "ST", |
| 15613 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15614 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15615 | .manufacture_id = ST_ID, |
| 15616 | .model_id = ST_M50FLW040A, |
| 15617 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15618 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15619 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15620 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15621 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15622 | .block_erasers = |
| 15623 | { |
| 15624 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15625 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15626 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15627 | {64 * 1024, 5}, /* block */ |
| 15628 | {4 * 1024, 16}, /* sector */ |
| 15629 | {4 * 1024, 16}, /* sector */ |
| 15630 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15631 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15632 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15633 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15634 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15635 | } |
| 15636 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15637 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 15638 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15639 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15640 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15641 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15642 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15643 | }, |
| 15644 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15645 | { |
| 15646 | .vendor = "ST", |
| 15647 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15648 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15649 | .manufacture_id = ST_ID, |
| 15650 | .model_id = ST_M50FLW040B, |
| 15651 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15652 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15653 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15654 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15655 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15656 | .block_erasers = |
| 15657 | { |
| 15658 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15659 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15660 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15661 | {4 * 1024, 16}, /* sector */ |
| 15662 | {64 * 1024, 5}, /* block */ |
| 15663 | {4 * 1024, 16}, /* sector */ |
| 15664 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15665 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15666 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15667 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15668 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15669 | } |
| 15670 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15671 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 15672 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15673 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15674 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15675 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15676 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15677 | }, |
| 15678 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15679 | { |
| 15680 | .vendor = "ST", |
| 15681 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15682 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15683 | .manufacture_id = ST_ID, |
| 15684 | .model_id = ST_M50FLW080A, |
| 15685 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15686 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15687 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15688 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15689 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15690 | .block_erasers = |
| 15691 | { |
| 15692 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15693 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15694 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15695 | {64 * 1024, 13}, /* block */ |
| 15696 | {4 * 1024, 16}, /* sector */ |
| 15697 | {4 * 1024, 16}, /* sector */ |
| 15698 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15699 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15700 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15701 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15702 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15703 | } |
| 15704 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15705 | .printlock = printlock_regspace2_block_eraser_0, |
| 15706 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15707 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15708 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15709 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15710 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15711 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15712 | }, |
| 15713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15714 | { |
| 15715 | .vendor = "ST", |
| 15716 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15717 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15718 | .manufacture_id = ST_ID, |
| 15719 | .model_id = ST_M50FLW080B, |
| 15720 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15721 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15722 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15723 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15724 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15725 | .block_erasers = |
| 15726 | { |
| 15727 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15728 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15729 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15730 | {4 * 1024, 16}, /* sector */ |
| 15731 | {64 * 1024, 13}, /* block */ |
| 15732 | {4 * 1024, 16}, /* sector */ |
| 15733 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15734 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15735 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15736 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15737 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15738 | } |
| 15739 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15740 | .printlock = printlock_regspace2_block_eraser_0, |
| 15741 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15742 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15743 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15744 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15745 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15746 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15747 | }, |
| 15748 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15749 | { |
| 15750 | .vendor = "ST", |
| 15751 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15752 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15753 | .manufacture_id = ST_ID, |
| 15754 | .model_id = ST_M50FW002, |
| 15755 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15756 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15757 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15758 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15759 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15760 | .block_erasers = |
| 15761 | { |
| 15762 | { |
| 15763 | .eraseblocks = { |
| 15764 | {64 * 1024, 3}, |
| 15765 | {32 * 1024, 1}, |
| 15766 | {8 * 1024, 2}, |
| 15767 | {16 * 1024, 1}, |
| 15768 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15769 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15770 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 15771 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15772 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15773 | } |
| 15774 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15775 | .printlock = printlock_regspace2_block_eraser_0, |
| 15776 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15777 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15778 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15779 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15780 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15781 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15782 | }, |
| 15783 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15784 | { |
| 15785 | .vendor = "ST", |
| 15786 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15787 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15788 | .manufacture_id = ST_ID, |
| 15789 | .model_id = ST_M50FW016, |
| 15790 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15791 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15792 | .tested = TEST_UNTESTED, |
| 15793 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15794 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15795 | .block_erasers = |
| 15796 | { |
| 15797 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15798 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15799 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15800 | } |
| 15801 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15802 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15803 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15804 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15805 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15806 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15807 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15808 | }, |
| 15809 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15810 | { |
| 15811 | .vendor = "ST", |
| 15812 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15813 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15814 | .manufacture_id = ST_ID, |
| 15815 | .model_id = ST_M50FW040, |
| 15816 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15817 | .page_size = 0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15818 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15819 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15820 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15821 | .block_erasers = |
| 15822 | { |
| 15823 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15824 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15825 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15826 | } |
| 15827 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15828 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15829 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15830 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15831 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15832 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15833 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15834 | }, |
| 15835 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15836 | { |
| 15837 | .vendor = "ST", |
| 15838 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15839 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15840 | .manufacture_id = ST_ID, |
| 15841 | .model_id = ST_M50FW080, |
| 15842 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15843 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15844 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15845 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15846 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15847 | .block_erasers = |
| 15848 | { |
| 15849 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15850 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15851 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15852 | } |
| 15853 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15854 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15855 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15856 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15857 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15858 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15859 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15860 | }, |
| 15861 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15862 | { |
| 15863 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15864 | .name = "M50LPW080", |
| 15865 | .bustype = BUS_LPC, /* A/A Mux */ |
| 15866 | .manufacture_id = ST_ID, |
| 15867 | .model_id = ST_M50LPW080, |
| 15868 | .total_size = 1024, |
| 15869 | .page_size = 0, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15870 | .tested = TEST_UNTESTED, |
| 15871 | .probe = probe_82802ab, |
| 15872 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 15873 | .block_erasers = |
| 15874 | { |
| 15875 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15876 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15877 | .block_erase = erase_block_82802ab, |
| 15878 | } |
| 15879 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15880 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15881 | .write = write_82802ab, |
| 15882 | .read = read_memmapped, |
| 15883 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15884 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15885 | .finish_access = finish_memory_access, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15886 | }, |
| 15887 | |
| 15888 | { |
| 15889 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15890 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15891 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15892 | .manufacture_id = ST_ID, |
| 15893 | .model_id = ST_M50LPW116, |
| 15894 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15895 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15896 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15897 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15898 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15899 | .block_erasers = |
| 15900 | { |
| 15901 | { |
| 15902 | .eraseblocks = { |
| 15903 | {4 * 1024, 16}, |
| 15904 | {64 * 1024, 30}, |
| 15905 | {32 * 1024, 1}, |
| 15906 | {8 * 1024, 2}, |
| 15907 | {16 * 1024, 1}, |
| 15908 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15909 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15910 | } |
| 15911 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15912 | .printlock = printlock_regspace2_block_eraser_0, |
| 15913 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15914 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15915 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15916 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 15917 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15918 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15919 | }, |
| 15920 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15921 | { |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 15922 | .vendor = "ST", |
| 15923 | .name = "M95M02", |
| 15924 | .bustype = BUS_SPI, |
| 15925 | .manufacture_id = ST_ID, |
| 15926 | .model_id = ST_M95M02, |
| 15927 | .total_size = 256, |
| 15928 | .page_size = 256, |
| 15929 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, |
| 15930 | .tested = TEST_OK_PREW, |
Nico Huber | 5455786 | 2023-05-15 12:01:04 +0200 | [diff] [blame] | 15931 | .spi_cmd_set = SPI95, |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 15932 | .probe = probe_spi_st95, |
| 15933 | .probe_timing = TIMING_ZERO, |
| 15934 | .block_erasers = |
| 15935 | { |
| 15936 | { |
| 15937 | .eraseblocks = { {256 * 1024, 1} }, |
| 15938 | .block_erase = spi_block_erase_emulation, |
| 15939 | } |
| 15940 | }, |
| 15941 | |
| 15942 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 15943 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15944 | .write = spi_chip_write_256, |
| 15945 | .read = spi_chip_read, |
| 15946 | .voltage = {2500, 5500}, |
| 15947 | }, |
| 15948 | |
| 15949 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15950 | .vendor = "Sanyo", |
| 15951 | .name = "LE25FU106B", |
| 15952 | .bustype = BUS_SPI, |
| 15953 | .manufacture_id = SANYO_ID, |
| 15954 | .model_id = SANYO_LE25FU106B, |
| 15955 | .total_size = 128, |
| 15956 | .page_size = 256, |
| 15957 | .feature_bits = FEATURE_WRSR_WREN, |
| 15958 | .tested = TEST_UNTESTED, |
| 15959 | .probe = probe_spi_res2, |
| 15960 | .probe_timing = TIMING_ZERO, |
| 15961 | .block_erasers = |
| 15962 | { |
| 15963 | /* FIXME: Is this correct? |
| 15964 | { |
| 15965 | .eraseblocks = { {2 * 1024, 64} }, |
| 15966 | .block_erase = spi_block_erase_d7, |
| 15967 | },*/ |
| 15968 | { |
| 15969 | .eraseblocks = { {32 * 1024, 4} }, |
| 15970 | .block_erase = spi_block_erase_d8, |
| 15971 | }, { |
| 15972 | .eraseblocks = { {128 * 1024, 1} }, |
| 15973 | .block_erase = spi_block_erase_c7, |
| 15974 | } |
| 15975 | }, |
| 15976 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 15977 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15978 | .write = spi_chip_write_256, |
| 15979 | .read = spi_chip_read, |
| 15980 | .voltage = {2300, 3600}, |
| 15981 | }, |
| 15982 | |
| 15983 | { |
| 15984 | .vendor = "Sanyo", |
| 15985 | .name = "LE25FU206", |
| 15986 | .bustype = BUS_SPI, |
| 15987 | .manufacture_id = SANYO_ID, |
| 15988 | .model_id = SANYO_LE25FU206, |
| 15989 | .total_size = 256, |
| 15990 | .page_size = 256, |
| 15991 | .feature_bits = FEATURE_WRSR_WREN, |
| 15992 | .tested = TEST_UNTESTED, |
| 15993 | .probe = probe_spi_res2, |
| 15994 | .probe_timing = TIMING_ZERO, |
| 15995 | .block_erasers = |
| 15996 | { |
| 15997 | { |
| 15998 | .eraseblocks = { {4 * 1024, 64} }, |
| 15999 | .block_erase = spi_block_erase_d7, |
| 16000 | }, { |
| 16001 | .eraseblocks = { {64 * 1024, 4} }, |
| 16002 | .block_erase = spi_block_erase_d8, |
| 16003 | }, { |
| 16004 | .eraseblocks = { {256 * 1024, 1} }, |
| 16005 | .block_erase = spi_block_erase_c7, |
| 16006 | } |
| 16007 | }, |
| 16008 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 16009 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16010 | .write = spi_chip_write_256, |
| 16011 | .read = spi_chip_read, |
| 16012 | .voltage = {2300, 3600}, |
| 16013 | }, |
| 16014 | |
| 16015 | { |
| 16016 | .vendor = "Sanyo", |
| 16017 | .name = "LE25FU206A", |
| 16018 | .bustype = BUS_SPI, |
| 16019 | .manufacture_id = SANYO_ID, |
| 16020 | .model_id = SANYO_LE25FU206A, |
| 16021 | .total_size = 256, |
| 16022 | .page_size = 256, |
| 16023 | .tested = TEST_UNTESTED, |
| 16024 | .probe = probe_spi_rdid, |
| 16025 | .probe_timing = TIMING_ZERO, |
| 16026 | .block_erasers = |
| 16027 | { |
| 16028 | { |
| 16029 | .eraseblocks = { {4 * 1024, 64} }, |
| 16030 | .block_erase = spi_block_erase_20, |
| 16031 | }, { |
| 16032 | .eraseblocks = { {4 * 1024, 64} }, |
| 16033 | .block_erase = spi_block_erase_d7, |
| 16034 | }, { |
| 16035 | .eraseblocks = { {64 * 1024, 4} }, |
| 16036 | .block_erase = spi_block_erase_d8, |
| 16037 | }, { |
| 16038 | .eraseblocks = { {256 * 1024, 1} }, |
| 16039 | .block_erase = spi_block_erase_60, |
| 16040 | }, { |
| 16041 | .eraseblocks = { {256 * 1024, 1} }, |
| 16042 | .block_erase = spi_block_erase_c7, |
| 16043 | } |
| 16044 | }, |
| 16045 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16046 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16047 | .write = spi_chip_write_256, |
| 16048 | .read = spi_chip_read, |
| 16049 | .voltage = {2300, 3600}, |
| 16050 | }, |
| 16051 | |
| 16052 | { |
| 16053 | .vendor = "Sanyo", |
| 16054 | .name = "LE25FU406B", |
| 16055 | .bustype = BUS_SPI, |
| 16056 | .manufacture_id = SANYO_ID, |
| 16057 | .model_id = SANYO_LE25FU406B, |
| 16058 | .total_size = 512, |
| 16059 | .page_size = 256, |
| 16060 | .feature_bits = FEATURE_WRSR_WREN, |
| 16061 | .tested = TEST_OK_PREW, |
| 16062 | .probe = probe_spi_res2, |
| 16063 | .probe_timing = TIMING_ZERO, |
| 16064 | .block_erasers = |
| 16065 | { |
| 16066 | { |
| 16067 | .eraseblocks = { {4 * 1024, 128} }, |
| 16068 | .block_erase = spi_block_erase_d7, |
| 16069 | }, { |
| 16070 | .eraseblocks = { {64 * 1024, 8} }, |
| 16071 | .block_erase = spi_block_erase_d8, |
| 16072 | }, { |
| 16073 | .eraseblocks = { {512 * 1024, 1} }, |
| 16074 | .block_erase = spi_block_erase_c7, |
| 16075 | } |
| 16076 | }, |
| 16077 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16078 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16079 | .write = spi_chip_write_256, |
| 16080 | .read = spi_chip_read, |
| 16081 | .voltage = {2300, 3600}, |
| 16082 | }, |
| 16083 | |
| 16084 | { |
| 16085 | .vendor = "Sanyo", |
| 16086 | .name = "LE25FU406C/LE25U40CMC", |
| 16087 | .bustype = BUS_SPI, |
| 16088 | .manufacture_id = SANYO_ID, |
| 16089 | .model_id = SANYO_LE25FU406C, |
| 16090 | .total_size = 512, |
| 16091 | .page_size = 256, |
| 16092 | .feature_bits = FEATURE_WRSR_WREN, |
| 16093 | .tested = TEST_OK_PREW, |
| 16094 | .probe = probe_spi_rdid, |
| 16095 | .probe_timing = TIMING_ZERO, |
| 16096 | .block_erasers = |
| 16097 | { |
| 16098 | { |
| 16099 | .eraseblocks = { {4 * 1024, 128} }, |
| 16100 | .block_erase = spi_block_erase_20, |
| 16101 | }, { |
| 16102 | .eraseblocks = { {4 * 1024, 128} }, |
| 16103 | .block_erase = spi_block_erase_d7, |
| 16104 | }, { |
| 16105 | .eraseblocks = { {64 * 1024, 8} }, |
| 16106 | .block_erase = spi_block_erase_d8, |
| 16107 | }, { |
| 16108 | .eraseblocks = { {512 * 1024, 1} }, |
| 16109 | .block_erase = spi_block_erase_60, |
| 16110 | }, { |
| 16111 | .eraseblocks = { {512 * 1024, 1} }, |
| 16112 | .block_erase = spi_block_erase_c7, |
| 16113 | } |
| 16114 | }, |
| 16115 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16116 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16117 | .write = spi_chip_write_256, |
| 16118 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 16119 | .voltage = {2300, 3600}, |
| 16120 | }, |
| 16121 | |
| 16122 | { |
| 16123 | .vendor = "Sanyo", |
| 16124 | .name = "LE25FW106", |
| 16125 | .bustype = BUS_SPI, |
| 16126 | .manufacture_id = SANYO_ID, |
| 16127 | .model_id = SANYO_LE25FW106, |
| 16128 | .total_size = 128, |
| 16129 | .page_size = 256, |
| 16130 | .feature_bits = FEATURE_WRSR_WREN, |
| 16131 | .tested = TEST_OK_PREW, |
| 16132 | .probe = probe_spi_res2, |
| 16133 | .probe_timing = TIMING_ZERO, |
| 16134 | .block_erasers = |
| 16135 | { |
| 16136 | { |
| 16137 | .eraseblocks = { {2 * 1024, 64} }, |
| 16138 | .block_erase = spi_block_erase_d7, |
| 16139 | }, { |
| 16140 | .eraseblocks = { {32 * 1024, 4} }, |
| 16141 | .block_erase = spi_block_erase_d8, |
| 16142 | }, { |
| 16143 | .eraseblocks = { {128 * 1024, 1} }, |
| 16144 | .block_erase = spi_block_erase_c7, |
| 16145 | } |
| 16146 | }, |
| 16147 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 16148 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16149 | .write = spi_chip_write_256, |
| 16150 | .read = spi_chip_read, |
| 16151 | .voltage = {2700, 3600}, |
| 16152 | }, |
| 16153 | |
| 16154 | { |
| 16155 | .vendor = "Sanyo", |
| 16156 | .name = "LE25FW203A", |
| 16157 | .bustype = BUS_SPI, |
| 16158 | .manufacture_id = SANYO_ID, |
| 16159 | .model_id = SANYO_LE25FW203A, |
| 16160 | .total_size = 256, |
| 16161 | .page_size = 256, |
| 16162 | .tested = TEST_UNTESTED, |
| 16163 | .probe = probe_spi_rdid, |
| 16164 | .probe_timing = TIMING_ZERO, |
| 16165 | .block_erasers = |
| 16166 | { |
| 16167 | { |
| 16168 | .eraseblocks = { {256, 1024} }, |
| 16169 | .block_erase = spi_block_erase_db, |
| 16170 | }, { |
| 16171 | .eraseblocks = { {64 * 1024, 4} }, |
| 16172 | .block_erase = spi_block_erase_d8, |
| 16173 | }, { |
| 16174 | .eraseblocks = { {256 * 1024, 1} }, |
| 16175 | .block_erase = spi_block_erase_c7, |
| 16176 | } |
| 16177 | }, |
| 16178 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 16179 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 16180 | .write = spi_chip_write_256, |
| 16181 | .read = spi_chip_read, |
| 16182 | .voltage = {2700, 3600}, |
| 16183 | }, |
| 16184 | |
| 16185 | { |
| 16186 | .vendor = "Sanyo", |
| 16187 | .name = "LE25FW403A", |
| 16188 | .bustype = BUS_SPI, |
| 16189 | .manufacture_id = SANYO_ID, |
| 16190 | .model_id = SANYO_LE25FW403A, |
| 16191 | .total_size = 512, |
| 16192 | .page_size = 256, |
| 16193 | .tested = TEST_UNTESTED, |
| 16194 | .probe = probe_spi_rdid, |
| 16195 | .probe_timing = TIMING_ZERO, |
| 16196 | .block_erasers = |
| 16197 | { |
| 16198 | { |
| 16199 | .eraseblocks = { {256, 2 * 1024} }, |
| 16200 | .block_erase = spi_block_erase_db, |
| 16201 | }, { |
| 16202 | .eraseblocks = { {64 * 1024, 8} }, |
| 16203 | .block_erase = spi_block_erase_d8, |
| 16204 | }, { |
| 16205 | .eraseblocks = { {512 * 1024, 1} }, |
| 16206 | .block_erase = spi_block_erase_c7, |
| 16207 | } |
| 16208 | }, |
| 16209 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 16210 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 16211 | .write = spi_chip_write_256, |
| 16212 | .read = spi_chip_read, |
| 16213 | .voltage = {2700, 3600}, |
| 16214 | }, |
| 16215 | |
| 16216 | { |
| 16217 | .vendor = "Sanyo", |
| 16218 | .name = "LE25FW406A", |
| 16219 | .bustype = BUS_SPI, |
| 16220 | .manufacture_id = SANYO_ID, |
| 16221 | .model_id = SANYO_LE25FW406A, |
| 16222 | .total_size = 512, |
| 16223 | .page_size = 256, |
| 16224 | .feature_bits = FEATURE_WRSR_WREN, |
| 16225 | .tested = TEST_OK_PREW, |
| 16226 | .probe = probe_spi_res2, |
| 16227 | .probe_timing = TIMING_ZERO, |
| 16228 | .block_erasers = |
| 16229 | { |
| 16230 | { |
| 16231 | .eraseblocks = { {4 * 1024, 128} }, |
| 16232 | .block_erase = spi_block_erase_d7, |
| 16233 | }, { |
| 16234 | .eraseblocks = { {64 * 1024, 8} }, |
| 16235 | .block_erase = spi_block_erase_d8, |
| 16236 | }, { |
| 16237 | .eraseblocks = { {512 * 1024, 1} }, |
| 16238 | .block_erase = spi_block_erase_c7, |
| 16239 | } |
| 16240 | }, |
| 16241 | .printlock = spi_prettyprint_status_register_plain, |
| 16242 | .unlock = spi_disable_blockprotect, |
| 16243 | .write = spi_chip_write_256, |
| 16244 | .read = spi_chip_read, |
| 16245 | .voltage = {2700, 3600}, |
| 16246 | }, |
| 16247 | |
| 16248 | { |
| 16249 | .vendor = "Sanyo", |
| 16250 | .name = "LE25FW418A", |
| 16251 | .bustype = BUS_SPI, |
| 16252 | .manufacture_id = SANYO_ID, |
| 16253 | .model_id = SANYO_LE25FW418A, |
| 16254 | .total_size = 512, |
| 16255 | .page_size = 256, |
| 16256 | .feature_bits = FEATURE_WRSR_WREN, |
| 16257 | .tested = TEST_UNTESTED, |
| 16258 | .probe = probe_spi_res2, |
| 16259 | .probe_timing = TIMING_ZERO, |
| 16260 | .block_erasers = |
| 16261 | { |
| 16262 | { |
| 16263 | .eraseblocks = { {4 * 1024, 128} }, |
| 16264 | .block_erase = spi_block_erase_d7, |
| 16265 | }, { |
| 16266 | .eraseblocks = { {64 * 1024, 8} }, |
| 16267 | .block_erase = spi_block_erase_d8, |
| 16268 | }, { |
| 16269 | .eraseblocks = { {512 * 1024, 1} }, |
| 16270 | .block_erase = spi_block_erase_c7, |
| 16271 | } |
| 16272 | }, |
| 16273 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16274 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16275 | .write = spi_chip_write_256, |
| 16276 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 16277 | .voltage = {2700, 3600}, |
| 16278 | }, |
| 16279 | |
| 16280 | { |
| 16281 | .vendor = "Sanyo", |
| 16282 | .name = "LE25FW806", |
| 16283 | .bustype = BUS_SPI, |
| 16284 | .manufacture_id = SANYO_ID, |
| 16285 | .model_id = SANYO_LE25FW806, |
| 16286 | .total_size = 1024, |
| 16287 | .page_size = 256, |
| 16288 | .feature_bits = FEATURE_WRSR_WREN, |
| 16289 | .tested = TEST_UNTESTED, |
| 16290 | .probe = probe_spi_res2, |
| 16291 | .probe_timing = TIMING_ZERO, |
| 16292 | .block_erasers = |
| 16293 | { |
| 16294 | { |
| 16295 | .eraseblocks = { {4 * 1024, 256} }, |
| 16296 | .block_erase = spi_block_erase_20, |
| 16297 | }, { |
| 16298 | .eraseblocks = { {4 * 1024, 256} }, |
| 16299 | .block_erase = spi_block_erase_d7, |
| 16300 | }, { |
| 16301 | .eraseblocks = { {64 * 1024, 16} }, |
| 16302 | .block_erase = spi_block_erase_d8, |
| 16303 | }, { |
| 16304 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16305 | .block_erase = spi_block_erase_c7, |
| 16306 | } |
| 16307 | }, |
| 16308 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16309 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16310 | .write = spi_chip_write_256, |
| 16311 | .read = spi_chip_read, |
| 16312 | .voltage = {2700, 3600}, |
| 16313 | }, |
| 16314 | |
| 16315 | { |
| 16316 | .vendor = "Sanyo", |
| 16317 | .name = "LE25FW808", |
| 16318 | .bustype = BUS_SPI, |
| 16319 | .manufacture_id = SANYO_ID, |
| 16320 | .model_id = SANYO_LE25FW808, |
| 16321 | .total_size = 1024, |
| 16322 | .page_size = 256, |
| 16323 | .feature_bits = FEATURE_WRSR_WREN, |
| 16324 | .tested = TEST_UNTESTED, |
| 16325 | .probe = probe_spi_res2, |
| 16326 | .probe_timing = TIMING_ZERO, |
| 16327 | .block_erasers = |
| 16328 | { |
| 16329 | { |
| 16330 | .eraseblocks = { {8 * 1024, 128} }, |
| 16331 | .block_erase = spi_block_erase_d7, |
| 16332 | }, { |
| 16333 | .eraseblocks = { {64 * 1024, 16} }, |
| 16334 | .block_erase = spi_block_erase_d8, |
| 16335 | }, { |
| 16336 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16337 | .block_erase = spi_block_erase_c7, |
| 16338 | } |
| 16339 | }, |
| 16340 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16341 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16342 | .write = spi_chip_write_256, |
| 16343 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 16344 | .voltage = {2700, 3600}, |
| 16345 | }, |
| 16346 | |
| 16347 | { |
| 16348 | .vendor = "Sharp", |
| 16349 | .name = "LH28F008BJT-BTLZ1", |
| 16350 | .bustype = BUS_PARALLEL, |
| 16351 | .manufacture_id = SHARP_ID, |
| 16352 | .model_id = SHARP_LH28F008BJ__PB, |
| 16353 | .total_size = 1024, |
| 16354 | .page_size = 64 * 1024, |
| 16355 | .tested = TEST_OK_PREW, |
| 16356 | .probe = probe_82802ab, |
| 16357 | .probe_timing = TIMING_ZERO, |
| 16358 | .block_erasers = |
| 16359 | { |
| 16360 | { |
| 16361 | .eraseblocks = { |
| 16362 | {8 * 1024, 8}, |
| 16363 | {64 * 1024, 15} |
| 16364 | }, |
| 16365 | .block_erase = erase_block_82802ab, |
| 16366 | }, { |
| 16367 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16368 | .block_erase = erase_sector_49lfxxxc, |
| 16369 | } |
| 16370 | }, |
| 16371 | .unlock = unlock_lh28f008bjt, |
| 16372 | .write = write_82802ab, |
| 16373 | .read = read_memmapped, |
| 16374 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16375 | .prepare_access = prepare_memory_access, |
| 16376 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16377 | }, |
| 16378 | |
| 16379 | { |
| 16380 | .vendor = "Sharp", |
| 16381 | .name = "LHF00L04", |
| 16382 | .bustype = BUS_FWH, /* A/A Mux */ |
| 16383 | .manufacture_id = SHARP_ID, |
| 16384 | .model_id = SHARP_LHF00L04, |
| 16385 | .total_size = 1024, |
| 16386 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 16387 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16388 | .tested = TEST_UNTESTED, |
| 16389 | .probe = probe_82802ab, |
| 16390 | .probe_timing = TIMING_ZERO, |
| 16391 | .block_erasers = |
| 16392 | { |
| 16393 | { |
| 16394 | .eraseblocks = { |
| 16395 | {64 * 1024, 15}, |
| 16396 | {8 * 1024, 8} |
| 16397 | }, |
| 16398 | .block_erase = erase_block_82802ab, |
| 16399 | }, { |
| 16400 | .eraseblocks = { |
| 16401 | {1024 * 1024, 1} |
| 16402 | }, |
| 16403 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 16404 | }, |
| 16405 | }, |
| 16406 | .unlock = unlock_regspace2_uniform_64k, |
| 16407 | .write = write_82802ab, |
| 16408 | .read = read_memmapped, |
| 16409 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 16410 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16411 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16412 | }, |
| 16413 | |
| 16414 | { |
| 16415 | .vendor = "Spansion", |
| 16416 | .name = "S25FL004A", |
| 16417 | .bustype = BUS_SPI, |
| 16418 | .manufacture_id = SPANSION_ID, |
| 16419 | .model_id = SPANSION_S25FL004A, |
| 16420 | .total_size = 512, |
| 16421 | .page_size = 256, |
| 16422 | .feature_bits = FEATURE_WRSR_WREN, |
| 16423 | .tested = TEST_UNTESTED, |
| 16424 | .probe = probe_spi_rdid, |
| 16425 | .probe_timing = TIMING_ZERO, |
| 16426 | .block_erasers = |
| 16427 | { |
| 16428 | { |
| 16429 | .eraseblocks = { {64 * 1024, 8} }, |
| 16430 | .block_erase = spi_block_erase_d8, |
| 16431 | }, { |
| 16432 | .eraseblocks = { {512 * 1024, 1} }, |
| 16433 | .block_erase = spi_block_erase_c7, |
| 16434 | } |
| 16435 | }, |
| 16436 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16437 | .unlock = spi_disable_blockprotect, |
| 16438 | .write = spi_chip_write_256, |
| 16439 | .read = spi_chip_read, |
| 16440 | .voltage = {2700, 3600}, |
| 16441 | }, |
| 16442 | |
| 16443 | { |
| 16444 | .vendor = "Spansion", |
| 16445 | .name = "S25FL008A", |
| 16446 | .bustype = BUS_SPI, |
| 16447 | .manufacture_id = SPANSION_ID, |
| 16448 | .model_id = SPANSION_S25FL008A, |
| 16449 | .total_size = 1024, |
| 16450 | .page_size = 256, |
| 16451 | .feature_bits = FEATURE_WRSR_WREN, |
| 16452 | .tested = TEST_OK_PRE, |
| 16453 | .probe = probe_spi_rdid, |
| 16454 | .probe_timing = TIMING_ZERO, |
| 16455 | .block_erasers = |
| 16456 | { |
| 16457 | { |
| 16458 | .eraseblocks = { {64 * 1024, 16} }, |
| 16459 | .block_erase = spi_block_erase_d8, |
| 16460 | }, { |
| 16461 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16462 | .block_erase = spi_block_erase_c7, |
| 16463 | } |
| 16464 | }, |
| 16465 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16466 | .unlock = spi_disable_blockprotect, |
| 16467 | .write = spi_chip_write_256, |
| 16468 | .read = spi_chip_read, |
| 16469 | .voltage = {2700, 3600}, |
| 16470 | }, |
| 16471 | |
| 16472 | { |
| 16473 | .vendor = "Spansion", |
| 16474 | .name = "S25FL016A", |
| 16475 | .bustype = BUS_SPI, |
| 16476 | .manufacture_id = SPANSION_ID, |
| 16477 | .model_id = SPANSION_S25FL016A, |
| 16478 | .total_size = 2048, |
| 16479 | .page_size = 256, |
| 16480 | .feature_bits = FEATURE_WRSR_WREN, |
| 16481 | .tested = TEST_OK_PREW, |
| 16482 | .probe = probe_spi_rdid, |
| 16483 | .probe_timing = TIMING_ZERO, |
| 16484 | .block_erasers = |
| 16485 | { |
| 16486 | { |
| 16487 | .eraseblocks = { {64 * 1024, 32} }, |
| 16488 | .block_erase = spi_block_erase_d8, |
| 16489 | }, { |
| 16490 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16491 | .block_erase = spi_block_erase_c7, |
| 16492 | } |
| 16493 | }, |
| 16494 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16495 | .unlock = spi_disable_blockprotect, |
| 16496 | .write = spi_chip_write_256, |
| 16497 | .read = spi_chip_read, |
| 16498 | .voltage = {2700, 3600}, |
| 16499 | }, |
| 16500 | |
| 16501 | { |
| 16502 | .vendor = "Spansion", |
| 16503 | .name = "S25FL032A/P", |
| 16504 | .bustype = BUS_SPI, |
| 16505 | .manufacture_id = SPANSION_ID, |
| 16506 | .model_id = SPANSION_S25FL032A, |
| 16507 | .total_size = 4096, |
| 16508 | .page_size = 256, |
| 16509 | .feature_bits = FEATURE_WRSR_WREN, |
| 16510 | .tested = TEST_OK_PREW, |
| 16511 | .probe = probe_spi_rdid, |
| 16512 | .probe_timing = TIMING_ZERO, |
| 16513 | .block_erasers = |
| 16514 | { |
| 16515 | { |
| 16516 | .eraseblocks = { {64 * 1024, 64} }, |
| 16517 | .block_erase = spi_block_erase_d8, |
| 16518 | }, { |
| 16519 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16520 | .block_erase = spi_block_erase_c7, |
| 16521 | } |
| 16522 | }, |
| 16523 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16524 | .unlock = spi_disable_blockprotect, |
| 16525 | .write = spi_chip_write_256, |
| 16526 | .read = spi_chip_read, |
| 16527 | .voltage = {2700, 3600}, |
| 16528 | }, |
| 16529 | |
| 16530 | { |
| 16531 | .vendor = "Spansion", |
| 16532 | .name = "S25FL064A/P", |
| 16533 | .bustype = BUS_SPI, |
| 16534 | .manufacture_id = SPANSION_ID, |
| 16535 | .model_id = SPANSION_S25FL064A, |
| 16536 | .total_size = 8192, |
| 16537 | .page_size = 256, |
| 16538 | .feature_bits = FEATURE_WRSR_WREN, |
| 16539 | .tested = TEST_OK_PREW, |
| 16540 | .probe = probe_spi_rdid, |
| 16541 | .probe_timing = TIMING_ZERO, |
| 16542 | .block_erasers = |
| 16543 | { |
| 16544 | { |
| 16545 | .eraseblocks = { {64 * 1024, 128} }, |
| 16546 | .block_erase = spi_block_erase_d8, |
| 16547 | }, { |
| 16548 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16549 | .block_erase = spi_block_erase_c7, |
| 16550 | } |
| 16551 | }, |
| 16552 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16553 | .unlock = spi_disable_blockprotect, |
| 16554 | .write = spi_chip_write_256, |
| 16555 | .read = spi_chip_read, |
| 16556 | .voltage = {2700, 3600}, |
| 16557 | }, |
| 16558 | |
| 16559 | { |
| 16560 | .vendor = "Spansion", |
| 16561 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 16562 | .bustype = BUS_SPI, |
| 16563 | .manufacture_id = SPANSION_ID, |
| 16564 | .model_id = SPANSION_S25FL216, |
| 16565 | .total_size = 2048, |
| 16566 | .page_size = 256, |
| 16567 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 16568 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16569 | .tested = TEST_UNTESTED, |
| 16570 | .probe = probe_spi_rdid, |
| 16571 | .probe_timing = TIMING_ZERO, |
| 16572 | .block_erasers = |
| 16573 | { |
| 16574 | { |
| 16575 | .eraseblocks = { {4 * 1024, 512} }, |
| 16576 | .block_erase = spi_block_erase_20, |
| 16577 | }, { |
| 16578 | .eraseblocks = { {64 * 1024, 32} }, |
| 16579 | .block_erase = spi_block_erase_d8, |
| 16580 | }, { |
| 16581 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 16582 | .block_erase = spi_block_erase_60, |
| 16583 | }, { |
| 16584 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 16585 | .block_erase = spi_block_erase_c7, |
| 16586 | } |
| 16587 | }, |
| 16588 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16589 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16590 | .write = spi_chip_write_256, |
| 16591 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 16592 | .voltage = {2700, 3600}, |
| 16593 | }, |
| 16594 | |
| 16595 | { |
| 16596 | .vendor = "Spansion", |
| 16597 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 16598 | .bustype = BUS_SPI, |
| 16599 | .manufacture_id = SPANSION_ID, |
| 16600 | .model_id = SPANSION_S25FL128, |
| 16601 | .total_size = 16384, |
| 16602 | .page_size = 512, |
| 16603 | /* supports 4B addressing */ |
| 16604 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16605 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16606 | .tested = TEST_UNTESTED, |
| 16607 | .probe = probe_spi_rdid, |
| 16608 | .probe_timing = TIMING_ZERO, |
| 16609 | .block_erasers = |
| 16610 | { |
| 16611 | { |
| 16612 | .eraseblocks = { {256 * 1024, 64} }, |
| 16613 | .block_erase = spi_block_erase_d8, |
| 16614 | }, { |
| 16615 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16616 | .block_erase = spi_block_erase_60, |
| 16617 | }, { |
| 16618 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16619 | .block_erase = spi_block_erase_c7, |
| 16620 | } |
| 16621 | }, |
| 16622 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16623 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16624 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16625 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16626 | .voltage = {2700, 3600}, |
| 16627 | }, |
| 16628 | |
| 16629 | { |
| 16630 | .vendor = "Spansion", |
| 16631 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16632 | .bustype = BUS_SPI, |
| 16633 | .manufacture_id = SPANSION_ID, |
| 16634 | .model_id = SPANSION_S25FL128, |
| 16635 | .total_size = 16384, |
| 16636 | .page_size = 256, |
| 16637 | /* supports 4B addressing */ |
| 16638 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16639 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16640 | .tested = TEST_OK_PREW, |
| 16641 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 16642 | .probe = probe_spi_rdid, |
| 16643 | .probe_timing = TIMING_ZERO, |
| 16644 | .block_erasers = |
| 16645 | { |
| 16646 | { |
| 16647 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 16648 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 16649 | * space. Trying to access an address outside these 4kB blocks does have no |
| 16650 | * effect on the memory contents, e.g. |
| 16651 | .eraseblocks = { |
| 16652 | {4 * 1024, 32}, |
| 16653 | {64 * 1024, 254} // inaccessible |
| 16654 | }, |
| 16655 | .block_erase = spi_block_erase_20, |
| 16656 | }, { */ |
| 16657 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16658 | .block_erase = spi_block_erase_d8, |
| 16659 | }, { |
| 16660 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16661 | .block_erase = spi_block_erase_60, |
| 16662 | }, { |
| 16663 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16664 | .block_erase = spi_block_erase_c7, |
| 16665 | } |
| 16666 | }, |
| 16667 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16668 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16669 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16670 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16671 | .voltage = {2700, 3600}, |
| 16672 | }, |
| 16673 | |
| 16674 | { |
| 16675 | .vendor = "Spansion", |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 16676 | .name = "S25FL128L", |
| 16677 | .bustype = BUS_SPI, |
| 16678 | .manufacture_id = SPANSION_ID, |
| 16679 | .model_id = SPANSION_S25FL128L, |
| 16680 | .total_size = 16384, |
| 16681 | .page_size = 256, |
| 16682 | /* 4 x 256B Security Region (OTP) */ |
| 16683 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP, |
| 16684 | .tested = TEST_UNTESTED, |
| 16685 | .probe = probe_spi_rdid, |
| 16686 | .probe_timing = TIMING_ZERO, |
| 16687 | .block_erasers = |
| 16688 | { |
| 16689 | { |
| 16690 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16691 | .block_erase = spi_block_erase_20, |
| 16692 | }, { |
| 16693 | .eraseblocks = { {32 * 1024, 512} }, |
| 16694 | .block_erase = spi_block_erase_52, |
| 16695 | }, { |
| 16696 | .eraseblocks = { {64 * 1024, 256} }, |
| 16697 | .block_erase = spi_block_erase_d8, |
| 16698 | }, { |
| 16699 | .eraseblocks = { {16384 * 1024, 1} }, |
| 16700 | .block_erase = spi_block_erase_60, |
| 16701 | }, { |
| 16702 | .eraseblocks = { {16384 * 1024, 1} }, |
| 16703 | .block_erase = spi_block_erase_c7, |
| 16704 | } |
| 16705 | }, |
| 16706 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16707 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16708 | .write = spi_chip_write_256, |
| 16709 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16710 | .voltage = {2700, 3600}, |
| 16711 | .reg_bits = |
| 16712 | { |
| 16713 | /* |
| 16714 | * Note: This chip has a read-only Status Register 2 that is not |
| 16715 | * counted here. Registers are mapped as follows: |
| 16716 | * STATUS1 ... Status Register 1 |
| 16717 | * STATUS2 ... Configuration Register 1 |
| 16718 | * STATUS3 ... Configuration Register 2 |
| 16719 | */ |
| 16720 | .srp = {STATUS1, 7, RW}, |
| 16721 | .srl = {STATUS2, 0, RW}, |
| 16722 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 16723 | .tb = {STATUS1, 5, RW}, |
| 16724 | .sec = {STATUS1, 6, RW}, |
| 16725 | .cmp = {STATUS2, 6, RW}, |
| 16726 | .wps = {STATUS3, 2, RW}, |
| 16727 | }, |
| 16728 | .decode_range = decode_range_spi25, |
| 16729 | }, |
| 16730 | |
| 16731 | { |
| 16732 | .vendor = "Spansion", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16733 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 16734 | .bustype = BUS_SPI, |
| 16735 | .manufacture_id = SPANSION_ID, |
| 16736 | .model_id = SPANSION_S25FL128, |
| 16737 | .total_size = 16384, |
| 16738 | .page_size = 256, |
| 16739 | .feature_bits = FEATURE_WRSR_WREN, |
| 16740 | .tested = TEST_OK_PREW, |
| 16741 | .probe = probe_spi_rdid, |
| 16742 | .probe_timing = TIMING_ZERO, |
| 16743 | .block_erasers = |
| 16744 | { |
| 16745 | { |
| 16746 | .eraseblocks = { {64 * 1024, 256} }, |
| 16747 | .block_erase = spi_block_erase_20, |
| 16748 | }, { |
| 16749 | .eraseblocks = { {64 * 1024, 256} }, |
| 16750 | .block_erase = spi_block_erase_d8, |
| 16751 | }, { |
| 16752 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16753 | .block_erase = spi_block_erase_60, |
| 16754 | }, { |
| 16755 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16756 | .block_erase = spi_block_erase_c7, |
| 16757 | } |
| 16758 | }, |
| 16759 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16760 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 16761 | .write = spi_chip_write_256, |
| 16762 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16763 | .voltage = {2700, 3600}, |
| 16764 | }, |
| 16765 | |
| 16766 | { |
| 16767 | .vendor = "Spansion", |
| 16768 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 16769 | .bustype = BUS_SPI, |
| 16770 | .manufacture_id = SPANSION_ID, |
| 16771 | .model_id = SPANSION_S25FL128, |
| 16772 | .total_size = 16384, |
| 16773 | .page_size = 256, |
| 16774 | .feature_bits = FEATURE_WRSR_WREN, |
| 16775 | .tested = TEST_UNTESTED, |
| 16776 | .probe = probe_spi_rdid, |
| 16777 | .probe_timing = TIMING_ZERO, |
| 16778 | .block_erasers = |
| 16779 | { |
| 16780 | { |
| 16781 | .eraseblocks = { {256 * 1024, 64} }, |
| 16782 | .block_erase = spi_block_erase_d8, |
| 16783 | }, { |
| 16784 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16785 | .block_erase = spi_block_erase_c7, |
| 16786 | } |
| 16787 | }, |
| 16788 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16789 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16790 | .write = spi_chip_write_256, |
| 16791 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16792 | .voltage = {2700, 3600}, |
| 16793 | }, |
| 16794 | |
| 16795 | { |
| 16796 | .vendor = "Spansion", |
| 16797 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16798 | .bustype = BUS_SPI, |
| 16799 | .manufacture_id = SPANSION_ID, |
| 16800 | .model_id = SPANSION_S25FL128, |
| 16801 | .total_size = 16384, |
| 16802 | .page_size = 256, |
| 16803 | /* supports 4B addressing */ |
| 16804 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16805 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16806 | .tested = TEST_OK_PREW, |
| 16807 | .probe = probe_spi_rdid, |
| 16808 | .probe_timing = TIMING_ZERO, |
| 16809 | .block_erasers = |
| 16810 | { |
| 16811 | { |
| 16812 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16813 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 16814 | * have no effect on the memory contents, but sets a flag in the SR. |
| 16815 | .eraseblocks = { |
| 16816 | {4 * 1024, 32}, |
| 16817 | {64 * 1024, 254} // inaccessible |
| 16818 | }, |
| 16819 | .block_erase = spi_block_erase_20, |
| 16820 | }, { */ |
| 16821 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16822 | .block_erase = spi_block_erase_d8, |
| 16823 | }, { |
| 16824 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16825 | .block_erase = spi_block_erase_60, |
| 16826 | }, { |
| 16827 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16828 | .block_erase = spi_block_erase_c7, |
| 16829 | } |
| 16830 | }, |
| 16831 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16832 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16833 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16834 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16835 | .voltage = {2700, 3600}, |
| 16836 | }, |
| 16837 | |
| 16838 | { |
| 16839 | .vendor = "Spansion", |
| 16840 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 16841 | .bustype = BUS_SPI, |
| 16842 | .manufacture_id = SPANSION_ID, |
| 16843 | .model_id = SPANSION_S25FL128, |
| 16844 | .total_size = 16384, |
| 16845 | .page_size = 512, |
| 16846 | /* supports 4B addressing */ |
| 16847 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16848 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16849 | .tested = TEST_UNTESTED, |
| 16850 | .probe = probe_spi_rdid, |
| 16851 | .probe_timing = TIMING_ZERO, |
| 16852 | .block_erasers = |
| 16853 | { |
| 16854 | { |
| 16855 | .eraseblocks = { {256 * 1024, 64} }, |
| 16856 | .block_erase = spi_block_erase_d8, |
| 16857 | }, { |
| 16858 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16859 | .block_erase = spi_block_erase_60, |
| 16860 | }, { |
| 16861 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16862 | .block_erase = spi_block_erase_c7, |
| 16863 | } |
| 16864 | }, |
| 16865 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16866 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16867 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16868 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16869 | .voltage = {2700, 3600}, |
| 16870 | }, |
| 16871 | |
| 16872 | { |
| 16873 | .vendor = "Spansion", |
| 16874 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16875 | .bustype = BUS_SPI, |
| 16876 | .manufacture_id = SPANSION_ID, |
| 16877 | .model_id = SPANSION_S25FL128, |
| 16878 | .total_size = 16384, |
| 16879 | .page_size = 256, |
| 16880 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 16881 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16882 | .tested = TEST_OK_PREW, |
| 16883 | .probe = probe_spi_rdid, |
| 16884 | .probe_timing = TIMING_ZERO, |
| 16885 | .block_erasers = |
| 16886 | { |
| 16887 | { |
| 16888 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16889 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 16890 | * effect on the memory contents, but sets a flag in the SR. |
| 16891 | .eraseblocks = { |
| 16892 | {4 * 1024, 32}, |
| 16893 | {64 * 1024, 254} // inaccessible |
| 16894 | }, |
| 16895 | .block_erase = spi_block_erase_20, |
| 16896 | }, { */ |
| 16897 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 16898 | .eraseblocks = { |
| 16899 | {8 * 1024, 16}, |
| 16900 | {64 * 1024, 254} // inaccessible |
| 16901 | }, |
| 16902 | .block_erase = spi_block_erase_40, |
| 16903 | }, { */ |
| 16904 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16905 | .block_erase = spi_block_erase_d8, |
| 16906 | }, { |
| 16907 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16908 | .block_erase = spi_block_erase_60, |
| 16909 | }, { |
| 16910 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16911 | .block_erase = spi_block_erase_c7, |
| 16912 | } |
| 16913 | }, |
| 16914 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 16915 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16916 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16917 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16918 | .voltage = {2700, 3600}, |
| 16919 | }, |
| 16920 | |
| 16921 | { |
| 16922 | .vendor = "Spansion", |
| 16923 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 16924 | .bustype = BUS_SPI, |
| 16925 | .manufacture_id = SPANSION_ID, |
| 16926 | .model_id = SPANSION_S25FL128, |
| 16927 | .total_size = 16384, |
| 16928 | .page_size = 256, |
| 16929 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 16930 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16931 | .tested = TEST_UNTESTED, |
| 16932 | .probe = probe_spi_rdid, |
| 16933 | .probe_timing = TIMING_ZERO, |
| 16934 | .block_erasers = |
| 16935 | { |
| 16936 | { |
| 16937 | .eraseblocks = { {256 * 1024, 64} }, |
| 16938 | .block_erase = spi_block_erase_d8, |
| 16939 | }, { |
| 16940 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16941 | .block_erase = spi_block_erase_60, |
| 16942 | }, { |
| 16943 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16944 | .block_erase = spi_block_erase_c7, |
| 16945 | } |
| 16946 | }, |
| 16947 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 16948 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16949 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16950 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16951 | .voltage = {2700, 3600}, |
| 16952 | }, |
| 16953 | |
| 16954 | { |
| 16955 | .vendor = "Spansion", |
| 16956 | .name = "S25FL132K", |
| 16957 | .bustype = BUS_SPI, |
| 16958 | .manufacture_id = SPANSION_ID, |
| 16959 | .model_id = SPANSION_S25FL132K, |
| 16960 | .total_size = 4096, |
| 16961 | .page_size = 256, |
| 16962 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 16963 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16964 | .tested = TEST_UNTESTED, |
| 16965 | .probe = probe_spi_rdid, |
| 16966 | .probe_timing = TIMING_ZERO, |
| 16967 | .block_erasers = |
| 16968 | { |
| 16969 | { |
| 16970 | .eraseblocks = { {4 * 1024, 1024} }, |
| 16971 | .block_erase = spi_block_erase_20, |
| 16972 | }, { |
| 16973 | .eraseblocks = { {64 * 1024, 64} }, |
| 16974 | .block_erase = spi_block_erase_d8, |
| 16975 | }, { |
| 16976 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 16977 | .block_erase = spi_block_erase_60, |
| 16978 | }, { |
| 16979 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 16980 | .block_erase = spi_block_erase_c7, |
| 16981 | } |
| 16982 | }, |
| 16983 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 16984 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16985 | .write = spi_chip_write_256, |
| 16986 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16987 | .voltage = {2700, 3600}, |
| 16988 | }, |
| 16989 | |
| 16990 | { |
| 16991 | .vendor = "Spansion", |
| 16992 | .name = "S25FL164K", |
| 16993 | .bustype = BUS_SPI, |
| 16994 | .manufacture_id = SPANSION_ID, |
| 16995 | .model_id = SPANSION_S25FL164K, |
| 16996 | .total_size = 8192, |
| 16997 | .page_size = 256, |
| 16998 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 16999 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17000 | .tested = TEST_OK_PREW, |
| 17001 | .probe = probe_spi_rdid, |
| 17002 | .probe_timing = TIMING_ZERO, |
| 17003 | .block_erasers = |
| 17004 | { |
| 17005 | { |
| 17006 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17007 | .block_erase = spi_block_erase_20, |
| 17008 | }, { |
| 17009 | .eraseblocks = { {64 * 1024, 128} }, |
| 17010 | .block_erase = spi_block_erase_d8, |
| 17011 | }, { |
| 17012 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 17013 | .block_erase = spi_block_erase_60, |
| 17014 | }, { |
| 17015 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 17016 | .block_erase = spi_block_erase_c7, |
| 17017 | } |
| 17018 | }, |
| 17019 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 17020 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17021 | .write = spi_chip_write_256, |
| 17022 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17023 | .voltage = {2700, 3600}, |
| 17024 | }, |
| 17025 | |
| 17026 | { |
| 17027 | .vendor = "Spansion", |
| 17028 | .name = "S25FL204K", |
| 17029 | .bustype = BUS_SPI, |
| 17030 | .manufacture_id = SPANSION_ID, |
| 17031 | .model_id = SPANSION_S25FL204, |
| 17032 | .total_size = 512, |
| 17033 | .page_size = 256, |
| 17034 | .feature_bits = FEATURE_WRSR_WREN, |
| 17035 | .tested = TEST_OK_PR, |
| 17036 | .probe = probe_spi_rdid, |
| 17037 | .probe_timing = TIMING_ZERO, |
| 17038 | .block_erasers = |
| 17039 | { |
| 17040 | { |
| 17041 | .eraseblocks = { {4 * 1024, 128} }, |
| 17042 | .block_erase = spi_block_erase_20, |
| 17043 | }, { |
| 17044 | .eraseblocks = { {64 * 1024, 8} }, |
| 17045 | .block_erase = spi_block_erase_d8, |
| 17046 | }, { |
| 17047 | .eraseblocks = { { 512 * 1024, 1} }, |
| 17048 | .block_erase = spi_block_erase_60, |
| 17049 | }, { |
| 17050 | .eraseblocks = { { 512 * 1024, 1} }, |
| 17051 | .block_erase = spi_block_erase_c7, |
| 17052 | } |
| 17053 | }, |
| 17054 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17055 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17056 | .write = spi_chip_write_256, |
| 17057 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 17058 | .voltage = {2700, 3600}, |
| 17059 | }, |
| 17060 | |
| 17061 | { |
| 17062 | .vendor = "Spansion", |
| 17063 | .name = "S25FL208K", |
| 17064 | .bustype = BUS_SPI, |
| 17065 | .manufacture_id = SPANSION_ID, |
| 17066 | .model_id = SPANSION_S25FL208, |
| 17067 | .total_size = 1024, |
| 17068 | .page_size = 256, |
| 17069 | .feature_bits = FEATURE_WRSR_WREN, |
| 17070 | .tested = TEST_OK_PREW, |
| 17071 | .probe = probe_spi_rdid, |
| 17072 | .probe_timing = TIMING_ZERO, |
| 17073 | .block_erasers = |
| 17074 | { |
| 17075 | { |
| 17076 | .eraseblocks = { {4 * 1024, 256} }, |
| 17077 | .block_erase = spi_block_erase_20, |
| 17078 | }, { |
| 17079 | .eraseblocks = { {64 * 1024, 16} }, |
| 17080 | .block_erase = spi_block_erase_d8, |
| 17081 | }, { |
| 17082 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 17083 | .block_erase = spi_block_erase_60, |
| 17084 | }, { |
| 17085 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 17086 | .block_erase = spi_block_erase_c7, |
| 17087 | } |
| 17088 | }, |
| 17089 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17090 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17091 | .write = spi_chip_write_256, |
| 17092 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 17093 | .voltage = {2700, 3600}, |
| 17094 | }, |
| 17095 | |
| 17096 | { |
| 17097 | .vendor = "Spansion", |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17098 | .name = "S25FL256L", |
| 17099 | .bustype = BUS_SPI, |
| 17100 | .manufacture_id = SPANSION_ID, |
| 17101 | .model_id = SPANSION_S25FL256L, |
| 17102 | .total_size = 32768, |
| 17103 | .page_size = 256, |
| 17104 | /* 4 x 256B Security Region (OTP) */ |
| 17105 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP | |
| 17106 | FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE, |
| 17107 | .tested = TEST_UNTESTED, |
| 17108 | .probe = probe_spi_rdid, |
| 17109 | .probe_timing = TIMING_ZERO, |
| 17110 | .block_erasers = |
| 17111 | { |
| 17112 | { |
| 17113 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17114 | .block_erase = spi_block_erase_21, |
| 17115 | }, { |
| 17116 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17117 | .block_erase = spi_block_erase_20, |
| 17118 | }, { |
| 17119 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17120 | .block_erase = spi_block_erase_53, |
| 17121 | }, { |
| 17122 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17123 | .block_erase = spi_block_erase_52, |
| 17124 | }, { |
| 17125 | .eraseblocks = { {64 * 1024, 512} }, |
| 17126 | .block_erase = spi_block_erase_dc, |
| 17127 | }, { |
| 17128 | .eraseblocks = { {64 * 1024, 512} }, |
| 17129 | .block_erase = spi_block_erase_d8, |
| 17130 | }, { |
| 17131 | .eraseblocks = { {32768 * 1024, 1} }, |
| 17132 | .block_erase = spi_block_erase_60, |
| 17133 | }, { |
| 17134 | .eraseblocks = { {32768 * 1024, 1} }, |
| 17135 | .block_erase = spi_block_erase_c7, |
| 17136 | } |
| 17137 | }, |
| 17138 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17139 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 17140 | .write = spi_chip_write_256, |
| 17141 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17142 | .voltage = {2700, 3600}, |
| 17143 | .reg_bits = |
| 17144 | { |
| 17145 | /* |
| 17146 | * Note: This chip has a read-only Status Register 2 that is not |
| 17147 | * counted here. Registers are mapped as follows: |
| 17148 | * STATUS1 ... Status Register 1 |
| 17149 | * STATUS2 ... Configuration Register 1 |
| 17150 | * STATUS3 ... Configuration Register 2 |
| 17151 | */ |
| 17152 | .srp = {STATUS1, 7, RW}, |
| 17153 | .srl = {STATUS2, 0, RW}, |
| 17154 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 17155 | .tb = {STATUS1, 6, RW}, |
| 17156 | .cmp = {STATUS2, 6, RW}, |
| 17157 | .wps = {STATUS3, 2, RW}, |
| 17158 | }, |
| 17159 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 17160 | .prepare_access = spi_prepare_4ba, |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17161 | }, |
| 17162 | |
| 17163 | { |
| 17164 | .vendor = "Spansion", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17165 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 17166 | .bustype = BUS_SPI, |
| 17167 | .manufacture_id = SPANSION_ID, |
| 17168 | .model_id = SPANSION_S25FL256, |
| 17169 | .total_size = 32768, |
| 17170 | .page_size = 256, |
| 17171 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
Nico Huber | 9bb8a32 | 2022-05-24 15:07:34 +0200 | [diff] [blame] | 17172 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17173 | FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17174 | .tested = TEST_OK_PREW, |
| 17175 | .probe = probe_spi_rdid, |
| 17176 | .probe_timing = TIMING_ZERO, |
| 17177 | .block_erasers = |
| 17178 | { |
| 17179 | { |
| 17180 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 17181 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 17182 | * have no effect on the memory contents, but sets a flag in the SR. |
| 17183 | .eraseblocks = { |
| 17184 | {4 * 1024, 32}, |
| 17185 | {64 * 1024, 254} // inaccessible |
| 17186 | }, |
| 17187 | .block_erase = spi_block_erase_20, |
| 17188 | }, { */ |
| 17189 | .eraseblocks = { { 64 * 1024, 512} }, |
| 17190 | .block_erase = spi_block_erase_dc, |
| 17191 | }, { |
| 17192 | .eraseblocks = { { 64 * 1024, 512} }, |
| 17193 | .block_erase = spi_block_erase_d8, |
| 17194 | }, { |
| 17195 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 17196 | .block_erase = spi_block_erase_60, |
| 17197 | }, { |
| 17198 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 17199 | .block_erase = spi_block_erase_c7, |
| 17200 | } |
| 17201 | }, |
| 17202 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17203 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17204 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17205 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17206 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 17207 | .prepare_access = spi_prepare_4ba, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17208 | }, |
| 17209 | |
| 17210 | { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17211 | .vendor = "Spansion", |
| 17212 | .name = "S25FL512S", |
| 17213 | .bustype = BUS_SPI, |
| 17214 | .manufacture_id = SPANSION_ID, |
| 17215 | .model_id = SPANSION_S25FL512, |
| 17216 | .total_size = 65536, /* 512 Mb (=> 64 MB)) */ |
| 17217 | .page_size = 256, |
| 17218 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
Nico Huber | 2623792 | 2022-06-20 19:37:37 +0200 | [diff] [blame] | 17219 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17220 | FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
| 17221 | .tested = TEST_UNTESTED, |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17222 | .probe = probe_spi_rdid, |
| 17223 | .probe_timing = TIMING_ZERO, |
| 17224 | .block_erasers = |
| 17225 | { |
| 17226 | { |
| 17227 | .eraseblocks = { { 256 * 1024, 256} }, |
| 17228 | .block_erase = spi_block_erase_dc, |
| 17229 | }, { |
Nico Huber | bb608ff | 2022-05-24 15:33:26 +0200 | [diff] [blame] | 17230 | .eraseblocks = { { 256 * 1024, 256} }, |
| 17231 | .block_erase = spi_block_erase_d8, |
| 17232 | }, { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17233 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 17234 | .block_erase = spi_block_erase_60, |
| 17235 | }, { |
| 17236 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 17237 | .block_erase = spi_block_erase_c7, |
| 17238 | } |
| 17239 | }, |
| 17240 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17241 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17242 | .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */ |
| 17243 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17244 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 17245 | .prepare_access = spi_prepare_4ba, |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17246 | }, |
| 17247 | |
| 17248 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17249 | .vendor = "SyncMOS/MoselVitelic", |
| 17250 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17251 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17252 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17253 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17254 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17255 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17256 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17257 | .tested = TEST_UNTESTED, |
| 17258 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17259 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17260 | .block_erasers = |
| 17261 | { |
| 17262 | { |
| 17263 | .eraseblocks = { {512, 256} }, |
| 17264 | .block_erase = erase_sector_jedec, |
| 17265 | }, { |
| 17266 | .eraseblocks = { {128 * 1024, 1} }, |
| 17267 | .block_erase = erase_chip_block_jedec, |
| 17268 | }, |
| 17269 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17270 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17271 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17272 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17273 | .prepare_access = prepare_memory_access, |
| 17274 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17275 | }, |
| 17276 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17277 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17278 | .vendor = "SyncMOS/MoselVitelic", |
| 17279 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17280 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17281 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17282 | .model_id = SM_MVC_29C51001T, |
| 17283 | .total_size = 128, |
| 17284 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17285 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17286 | .tested = TEST_UNTESTED, |
| 17287 | .probe = probe_jedec, |
| 17288 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17289 | .block_erasers = |
| 17290 | { |
| 17291 | { |
| 17292 | .eraseblocks = { {512, 256} }, |
| 17293 | .block_erase = erase_sector_jedec, |
| 17294 | }, { |
| 17295 | .eraseblocks = { {128 * 1024, 1} }, |
| 17296 | .block_erase = erase_chip_block_jedec, |
| 17297 | }, |
| 17298 | }, |
| 17299 | .write = write_jedec_1, |
| 17300 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17301 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17302 | .prepare_access = prepare_memory_access, |
| 17303 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17304 | }, |
| 17305 | |
| 17306 | { |
| 17307 | .vendor = "SyncMOS/MoselVitelic", |
| 17308 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17309 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17310 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17311 | .model_id = SM_MVC_29C51002B, |
| 17312 | .total_size = 256, |
| 17313 | .page_size = 512, |
| 17314 | .feature_bits = FEATURE_EITHER_RESET, |
| 17315 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17316 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17317 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17318 | .block_erasers = |
| 17319 | { |
| 17320 | { |
| 17321 | .eraseblocks = { {512, 512} }, |
| 17322 | .block_erase = erase_sector_jedec, |
| 17323 | }, { |
| 17324 | .eraseblocks = { {256 * 1024, 1} }, |
| 17325 | .block_erase = erase_chip_block_jedec, |
| 17326 | }, |
| 17327 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17328 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17329 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17330 | .prepare_access = prepare_memory_access, |
| 17331 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17332 | }, |
| 17333 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17334 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17335 | .vendor = "SyncMOS/MoselVitelic", |
| 17336 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17337 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17338 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17339 | .model_id = SM_MVC_29C51002T, |
| 17340 | .total_size = 256, |
| 17341 | .page_size = 512, |
| 17342 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17343 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17344 | .probe = probe_jedec, |
| 17345 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17346 | .block_erasers = |
| 17347 | { |
| 17348 | { |
| 17349 | .eraseblocks = { {512, 512} }, |
| 17350 | .block_erase = erase_sector_jedec, |
| 17351 | }, { |
| 17352 | .eraseblocks = { {256 * 1024, 1} }, |
| 17353 | .block_erase = erase_chip_block_jedec, |
| 17354 | }, |
| 17355 | }, |
| 17356 | .write = write_jedec_1, |
| 17357 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17358 | .prepare_access = prepare_memory_access, |
| 17359 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17360 | }, |
| 17361 | |
| 17362 | { |
| 17363 | .vendor = "SyncMOS/MoselVitelic", |
| 17364 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17365 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17366 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17367 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17368 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17369 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17370 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17371 | .tested = TEST_UNTESTED, |
| 17372 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17373 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17374 | .block_erasers = |
| 17375 | { |
| 17376 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17377 | .eraseblocks = { {1024, 512} }, |
| 17378 | .block_erase = erase_sector_jedec, |
| 17379 | }, { |
| 17380 | .eraseblocks = { {512 * 1024, 1} }, |
| 17381 | .block_erase = erase_chip_block_jedec, |
| 17382 | }, |
| 17383 | }, |
| 17384 | .write = write_jedec_1, |
| 17385 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17386 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17387 | .prepare_access = prepare_memory_access, |
| 17388 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17389 | }, |
| 17390 | |
| 17391 | { |
| 17392 | .vendor = "SyncMOS/MoselVitelic", |
| 17393 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17394 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17395 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17396 | .model_id = SM_MVC_29C51004T, |
| 17397 | .total_size = 512, |
| 17398 | .page_size = 1024, |
| 17399 | .feature_bits = FEATURE_EITHER_RESET, |
| 17400 | .tested = TEST_UNTESTED, |
| 17401 | .probe = probe_jedec, |
| 17402 | .probe_timing = TIMING_ZERO, |
| 17403 | .block_erasers = |
| 17404 | { |
| 17405 | { |
| 17406 | .eraseblocks = { {1024, 512} }, |
| 17407 | .block_erase = erase_sector_jedec, |
| 17408 | }, { |
| 17409 | .eraseblocks = { {512 * 1024, 1} }, |
| 17410 | .block_erase = erase_chip_block_jedec, |
| 17411 | }, |
| 17412 | }, |
| 17413 | .write = write_jedec_1, |
| 17414 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17415 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17416 | .prepare_access = prepare_memory_access, |
| 17417 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17418 | }, |
| 17419 | |
| 17420 | { |
| 17421 | .vendor = "SyncMOS/MoselVitelic", |
| 17422 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17423 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17424 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17425 | .model_id = SM_MVC_29C31004B, |
| 17426 | .total_size = 512, |
| 17427 | .page_size = 1024, |
| 17428 | .feature_bits = FEATURE_EITHER_RESET, |
| 17429 | .tested = TEST_UNTESTED, |
| 17430 | .probe = probe_jedec, |
| 17431 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17432 | .block_erasers = |
| 17433 | { |
| 17434 | { |
| 17435 | .eraseblocks = { {1024, 512} }, |
| 17436 | .block_erase = erase_sector_jedec, |
| 17437 | }, { |
| 17438 | .eraseblocks = { {512 * 1024, 1} }, |
| 17439 | .block_erase = erase_chip_block_jedec, |
| 17440 | }, |
| 17441 | }, |
| 17442 | .write = write_jedec_1, |
| 17443 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17444 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17445 | .prepare_access = prepare_memory_access, |
| 17446 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17447 | }, |
| 17448 | |
| 17449 | { |
| 17450 | .vendor = "SyncMOS/MoselVitelic", |
| 17451 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17452 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17453 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17454 | .model_id = SM_MVC_29C31004T, |
| 17455 | .total_size = 512, |
| 17456 | .page_size = 1024, |
| 17457 | .feature_bits = FEATURE_EITHER_RESET, |
| 17458 | .tested = TEST_UNTESTED, |
| 17459 | .probe = probe_jedec, |
| 17460 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17461 | .block_erasers = |
| 17462 | { |
| 17463 | { |
| 17464 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17465 | .block_erase = erase_sector_jedec, |
| 17466 | }, { |
| 17467 | .eraseblocks = { {512 * 1024, 1} }, |
| 17468 | .block_erase = erase_chip_block_jedec, |
| 17469 | }, |
| 17470 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17471 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17472 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17473 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17474 | .prepare_access = prepare_memory_access, |
| 17475 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17476 | }, |
| 17477 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17478 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 17479 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17480 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17481 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17482 | .manufacture_id = TI_OLD_ID, |
| 17483 | .model_id = TI_TMS29F002RB, |
| 17484 | .total_size = 256, |
| 17485 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17486 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17487 | .tested = TEST_UNTESTED, |
| 17488 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17489 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17490 | .block_erasers = |
| 17491 | { |
| 17492 | { |
| 17493 | .eraseblocks = { |
| 17494 | {16 * 1024, 1}, |
| 17495 | {8 * 1024, 2}, |
| 17496 | {32 * 1024, 1}, |
| 17497 | {64 * 1024, 3}, |
| 17498 | }, |
| 17499 | .block_erase = erase_sector_jedec, |
| 17500 | }, { |
| 17501 | .eraseblocks = { {256 * 1024, 1} }, |
| 17502 | .block_erase = erase_chip_block_jedec, |
| 17503 | }, |
| 17504 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17505 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17506 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17507 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17508 | .prepare_access = prepare_memory_access, |
| 17509 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17510 | }, |
| 17511 | |
| 17512 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 17513 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17514 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17515 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17516 | .manufacture_id = TI_OLD_ID, |
| 17517 | .model_id = TI_TMS29F002RT, |
| 17518 | .total_size = 256, |
| 17519 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17520 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17521 | .tested = TEST_UNTESTED, |
| 17522 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17523 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17524 | .block_erasers = |
| 17525 | { |
| 17526 | { |
| 17527 | .eraseblocks = { |
| 17528 | {64 * 1024, 3}, |
| 17529 | {32 * 1024, 1}, |
| 17530 | {8 * 1024, 2}, |
| 17531 | {16 * 1024, 1}, |
| 17532 | }, |
| 17533 | .block_erase = erase_sector_jedec, |
| 17534 | }, { |
| 17535 | .eraseblocks = { {256 * 1024, 1} }, |
| 17536 | .block_erase = erase_chip_block_jedec, |
| 17537 | }, |
| 17538 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17539 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17540 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17541 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17542 | .prepare_access = prepare_memory_access, |
| 17543 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17544 | }, |
| 17545 | |
| 17546 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17547 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17548 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17549 | .bustype = BUS_SPI, |
| 17550 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17551 | .model_id = WINBOND_NEX_W25P16, |
| 17552 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17553 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17554 | .feature_bits = FEATURE_WRSR_WREN, |
| 17555 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17556 | .probe = probe_spi_rdid, |
| 17557 | .probe_timing = TIMING_ZERO, |
| 17558 | .block_erasers = |
| 17559 | { |
| 17560 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17561 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17562 | .block_erase = spi_block_erase_d8, |
| 17563 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17564 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17565 | .block_erase = spi_block_erase_c7, |
| 17566 | } |
| 17567 | }, |
| 17568 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17569 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17570 | .write = spi_chip_write_256, |
| 17571 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17572 | .voltage = {2700, 3600}, |
| 17573 | }, |
| 17574 | |
| 17575 | { |
| 17576 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17577 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17578 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17579 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17580 | .model_id = WINBOND_NEX_W25P32, |
| 17581 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17582 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17583 | .feature_bits = FEATURE_WRSR_WREN, |
| 17584 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17585 | .probe = probe_spi_rdid, |
| 17586 | .probe_timing = TIMING_ZERO, |
| 17587 | .block_erasers = |
| 17588 | { |
| 17589 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17590 | .eraseblocks = { {64 * 1024, 64} }, |
| 17591 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17592 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17593 | .eraseblocks = { {4096 * 1024, 1} }, |
| 17594 | .block_erase = spi_block_erase_c7, |
| 17595 | } |
| 17596 | }, |
| 17597 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17598 | .unlock = spi_disable_blockprotect, |
| 17599 | .write = spi_chip_write_256, |
| 17600 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17601 | .voltage = {2700, 3600}, |
| 17602 | }, |
| 17603 | |
| 17604 | { |
| 17605 | .vendor = "Winbond", |
| 17606 | .name = "W25P80", |
| 17607 | .bustype = BUS_SPI, |
| 17608 | .manufacture_id = WINBOND_NEX_ID, |
| 17609 | .model_id = WINBOND_NEX_W25P80, |
| 17610 | .total_size = 1024, |
| 17611 | .page_size = 256, |
| 17612 | .feature_bits = FEATURE_WRSR_WREN, |
| 17613 | .tested = TEST_UNTESTED, |
| 17614 | .probe = probe_spi_rdid, |
| 17615 | .probe_timing = TIMING_ZERO, |
| 17616 | .block_erasers = |
| 17617 | { |
| 17618 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17619 | .eraseblocks = { {64 * 1024, 16} }, |
| 17620 | .block_erase = spi_block_erase_d8, |
| 17621 | }, { |
| 17622 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17623 | .block_erase = spi_block_erase_c7, |
| 17624 | } |
| 17625 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17626 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17627 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17628 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17629 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17630 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 17631 | }, |
| 17632 | |
| 17633 | { |
| 17634 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17635 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17636 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17637 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17638 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17639 | .total_size = 16384, |
| 17640 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17641 | /* supports SFDP */ |
| 17642 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 17643 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17644 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Edward O'Callaghan | a97e353 | 2022-12-16 15:41:05 +1100 | [diff] [blame] | 17645 | .tested = TEST_OK_PREWB, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17646 | .probe = probe_spi_rdid, |
| 17647 | .probe_timing = TIMING_ZERO, |
| 17648 | .block_erasers = |
| 17649 | { |
| 17650 | { |
| 17651 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17652 | .block_erase = spi_block_erase_20, |
| 17653 | }, { |
| 17654 | .eraseblocks = { {32 * 1024, 512} }, |
| 17655 | .block_erase = spi_block_erase_52, |
| 17656 | }, { |
| 17657 | .eraseblocks = { {64 * 1024, 256} }, |
| 17658 | .block_erase = spi_block_erase_d8, |
| 17659 | }, { |
| 17660 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17661 | .block_erase = spi_block_erase_60, |
| 17662 | }, { |
| 17663 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17664 | .block_erase = spi_block_erase_c7, |
| 17665 | } |
| 17666 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17667 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17668 | .unlock = spi_disable_blockprotect, |
| 17669 | .write = spi_chip_write_256, |
| 17670 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17671 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 17672 | /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */ |
| 17673 | .reg_bits = |
| 17674 | { |
| 17675 | .srp = {STATUS1, 7, RW}, |
| 17676 | .srl = {STATUS2, 0, RW}, |
| 17677 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17678 | .tb = {STATUS1, 5, RW}, |
| 17679 | .sec = {STATUS1, 6, RW}, |
| 17680 | .cmp = {STATUS2, 6, RW}, |
| 17681 | .wps = {STATUS3, 2, RW}, |
| 17682 | }, |
| 17683 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17684 | }, |
| 17685 | |
| 17686 | { |
| 17687 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17688 | .name = "W25Q128.V..M", |
| 17689 | .bustype = BUS_SPI, |
| 17690 | .manufacture_id = WINBOND_NEX_ID, |
| 17691 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 17692 | .total_size = 16384, |
| 17693 | .page_size = 256, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17694 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 17695 | .tested = TEST_OK_PREWB, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17696 | .probe = probe_spi_rdid, |
| 17697 | .probe_timing = TIMING_ZERO, |
| 17698 | .block_erasers = |
| 17699 | { |
| 17700 | { |
| 17701 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17702 | .block_erase = spi_block_erase_20, |
| 17703 | }, { |
| 17704 | .eraseblocks = { {32 * 1024, 512} }, |
| 17705 | .block_erase = spi_block_erase_52, |
| 17706 | }, { |
| 17707 | .eraseblocks = { {64 * 1024, 256} }, |
| 17708 | .block_erase = spi_block_erase_d8, |
| 17709 | }, { |
| 17710 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17711 | .block_erase = spi_block_erase_60, |
| 17712 | }, { |
| 17713 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17714 | .block_erase = spi_block_erase_c7, |
| 17715 | } |
| 17716 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 17717 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17718 | .unlock = spi_disable_blockprotect, |
| 17719 | .write = spi_chip_write_256, |
| 17720 | .read = spi_chip_read, |
| 17721 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17722 | .reg_bits = |
| 17723 | { |
| 17724 | .srp = {STATUS1, 7, RW}, |
| 17725 | .srl = {STATUS2, 0, RW}, |
| 17726 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17727 | .tb = {STATUS1, 5, RW}, |
| 17728 | .sec = {STATUS1, 6, RW}, |
| 17729 | .cmp = {STATUS2, 6, RW}, |
| 17730 | }, |
| 17731 | .decode_range = decode_range_spi25, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17732 | }, |
| 17733 | |
| 17734 | { |
| 17735 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17736 | .name = "W25Q128.W", |
| 17737 | .bustype = BUS_SPI, |
| 17738 | .manufacture_id = WINBOND_NEX_ID, |
| 17739 | .model_id = WINBOND_NEX_W25Q128_W, |
| 17740 | .total_size = 16384, |
| 17741 | .page_size = 256, |
| 17742 | /* supports SFDP */ |
| 17743 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17744 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17745 | .tested = TEST_OK_PREW, |
| 17746 | .probe = probe_spi_rdid, |
| 17747 | .probe_timing = TIMING_ZERO, |
| 17748 | .block_erasers = |
| 17749 | { |
| 17750 | { |
| 17751 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17752 | .block_erase = spi_block_erase_20, |
| 17753 | }, { |
| 17754 | .eraseblocks = { {32 * 1024, 512} }, |
| 17755 | .block_erase = spi_block_erase_52, |
| 17756 | }, { |
| 17757 | .eraseblocks = { {64 * 1024, 256} }, |
| 17758 | .block_erase = spi_block_erase_d8, |
| 17759 | }, { |
| 17760 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17761 | .block_erase = spi_block_erase_60, |
| 17762 | }, { |
| 17763 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17764 | .block_erase = spi_block_erase_c7, |
| 17765 | } |
| 17766 | }, |
| 17767 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17768 | .unlock = spi_disable_blockprotect, |
| 17769 | .write = spi_chip_write_256, |
| 17770 | .read = spi_chip_read, |
| 17771 | .voltage = {1650, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17772 | .reg_bits = |
| 17773 | { |
| 17774 | .srp = {STATUS1, 7, RW}, |
| 17775 | .srl = {STATUS2, 0, RW}, |
| 17776 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17777 | .tb = {STATUS1, 5, RW}, |
| 17778 | .sec = {STATUS1, 6, RW}, |
| 17779 | .cmp = {STATUS2, 6, RW}, |
| 17780 | }, |
| 17781 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17782 | }, |
| 17783 | |
| 17784 | { |
| 17785 | .vendor = "Winbond", |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 17786 | .name = "W25Q128.JW.DTR", |
| 17787 | .bustype = BUS_SPI, |
| 17788 | .manufacture_id = WINBOND_NEX_ID, |
| 17789 | .model_id = WINBOND_NEX_W25Q128_DTR, |
| 17790 | .total_size = 16384, |
| 17791 | .page_size = 256, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17792 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 17793 | .tested = TEST_OK_PREW, |
| 17794 | .probe = probe_spi_rdid, |
| 17795 | .probe_timing = TIMING_ZERO, |
| 17796 | .block_erasers = |
| 17797 | { |
| 17798 | { |
| 17799 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17800 | .block_erase = spi_block_erase_20, |
| 17801 | }, { |
| 17802 | .eraseblocks = { {32 * 1024, 512} }, |
| 17803 | .block_erase = spi_block_erase_52, |
| 17804 | }, { |
| 17805 | .eraseblocks = { {64 * 1024, 256} }, |
| 17806 | .block_erase = spi_block_erase_d8, |
| 17807 | }, { |
| 17808 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17809 | .block_erase = spi_block_erase_60, |
| 17810 | }, { |
| 17811 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17812 | .block_erase = spi_block_erase_c7, |
| 17813 | } |
| 17814 | }, |
| 17815 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17816 | .unlock = spi_disable_blockprotect, |
| 17817 | .write = spi_chip_write_256, |
| 17818 | .read = spi_chip_read, |
| 17819 | .voltage = {1650, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17820 | .reg_bits = |
| 17821 | { |
| 17822 | .srp = {STATUS1, 7, RW}, |
| 17823 | .srl = {STATUS2, 0, RW}, |
| 17824 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17825 | .tb = {STATUS1, 5, RW}, |
| 17826 | .sec = {STATUS1, 6, RW}, |
| 17827 | .cmp = {STATUS2, 6, RW}, |
| 17828 | }, |
| 17829 | .decode_range = decode_range_spi25, |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 17830 | }, |
| 17831 | |
| 17832 | { |
| 17833 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17834 | .name = "W25Q16.V", |
| 17835 | .bustype = BUS_SPI, |
| 17836 | .manufacture_id = WINBOND_NEX_ID, |
| 17837 | .model_id = WINBOND_NEX_W25Q16_V, |
| 17838 | .total_size = 2048, |
| 17839 | .page_size = 256, |
| 17840 | /* supports SFDP */ |
| 17841 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17842 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17843 | .tested = TEST_OK_PREW, |
| 17844 | .probe = probe_spi_rdid, |
| 17845 | .probe_timing = TIMING_ZERO, |
| 17846 | .block_erasers = |
| 17847 | { |
| 17848 | { |
| 17849 | .eraseblocks = { {4 * 1024, 512} }, |
| 17850 | .block_erase = spi_block_erase_20, |
| 17851 | }, { |
| 17852 | .eraseblocks = { {32 * 1024, 64} }, |
| 17853 | .block_erase = spi_block_erase_52, |
| 17854 | }, { |
| 17855 | .eraseblocks = { {64 * 1024, 32} }, |
| 17856 | .block_erase = spi_block_erase_d8, |
| 17857 | }, { |
| 17858 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17859 | .block_erase = spi_block_erase_60, |
| 17860 | }, { |
| 17861 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17862 | .block_erase = spi_block_erase_c7, |
| 17863 | } |
| 17864 | }, |
| 17865 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17866 | .unlock = spi_disable_blockprotect, |
| 17867 | .write = spi_chip_write_256, |
| 17868 | .read = spi_chip_read, |
| 17869 | .voltage = {2700, 3600}, |
| 17870 | }, |
| 17871 | |
| 17872 | { |
| 17873 | .vendor = "Winbond", |
| 17874 | .name = "W25Q16.W", |
| 17875 | .bustype = BUS_SPI, |
| 17876 | .manufacture_id = WINBOND_NEX_ID, |
| 17877 | .model_id = WINBOND_NEX_W25Q16_W, |
| 17878 | .total_size = 2048, |
| 17879 | .page_size = 256, |
| 17880 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17881 | /* QPI enable 0x38, disable 0xFF */ |
| 17882 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 17883 | .tested = TEST_UNTESTED, |
| 17884 | .probe = probe_spi_rdid, |
| 17885 | .probe_timing = TIMING_ZERO, |
| 17886 | .block_erasers = |
| 17887 | { |
| 17888 | { |
| 17889 | .eraseblocks = { {4 * 1024, 512} }, |
| 17890 | .block_erase = spi_block_erase_20, |
| 17891 | }, { |
| 17892 | .eraseblocks = { {32 * 1024, 64} }, |
| 17893 | .block_erase = spi_block_erase_52, |
| 17894 | }, { |
| 17895 | .eraseblocks = { {64 * 1024, 32} }, |
| 17896 | .block_erase = spi_block_erase_d8, |
| 17897 | }, { |
| 17898 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17899 | .block_erase = spi_block_erase_60, |
| 17900 | }, { |
| 17901 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17902 | .block_erase = spi_block_erase_c7, |
| 17903 | } |
| 17904 | }, |
| 17905 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17906 | .unlock = spi_disable_blockprotect, |
| 17907 | .write = spi_chip_write_256, |
| 17908 | .read = spi_chip_read, |
| 17909 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17910 | }, |
| 17911 | |
| 17912 | { |
| 17913 | .vendor = "Winbond", |
| 17914 | .name = "W25Q20.W", |
| 17915 | .bustype = BUS_SPI, |
| 17916 | .manufacture_id = WINBOND_NEX_ID, |
| 17917 | .model_id = WINBOND_NEX_W25Q20_W, |
| 17918 | .total_size = 256, |
| 17919 | .page_size = 256, |
| 17920 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17921 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17922 | .tested = TEST_UNTESTED, |
| 17923 | .probe = probe_spi_rdid, |
| 17924 | .probe_timing = TIMING_ZERO, |
| 17925 | .block_erasers = |
| 17926 | { |
| 17927 | { |
| 17928 | .eraseblocks = { {4 * 1024, 64} }, |
| 17929 | .block_erase = spi_block_erase_20, |
| 17930 | }, { |
| 17931 | .eraseblocks = { {32 * 1024, 8} }, |
| 17932 | .block_erase = spi_block_erase_52, |
| 17933 | }, { |
| 17934 | .eraseblocks = { {64 * 1024, 4} }, |
| 17935 | .block_erase = spi_block_erase_d8, |
| 17936 | }, { |
| 17937 | .eraseblocks = { {256 * 1024, 1} }, |
| 17938 | .block_erase = spi_block_erase_60, |
| 17939 | }, { |
| 17940 | .eraseblocks = { {256 * 1024, 1} }, |
| 17941 | .block_erase = spi_block_erase_c7, |
| 17942 | } |
| 17943 | }, |
| 17944 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17945 | .unlock = spi_disable_blockprotect, |
| 17946 | .write = spi_chip_write_256, |
| 17947 | .read = spi_chip_read, |
| 17948 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17949 | }, |
| 17950 | |
| 17951 | { |
| 17952 | .vendor = "Winbond", |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 17953 | .name = "W25Q256FV", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17954 | .bustype = BUS_SPI, |
| 17955 | .manufacture_id = WINBOND_NEX_ID, |
| 17956 | .model_id = WINBOND_NEX_W25Q256_V, |
| 17957 | .total_size = 32768, |
| 17958 | .page_size = 256, |
| 17959 | /* supports SFDP */ |
| 17960 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17961 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN | |
Nico Huber | 542b1f0 | 2022-05-24 14:30:12 +0200 | [diff] [blame] | 17962 | FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ | |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17963 | FEATURE_WRSR2, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 17964 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17965 | .probe = probe_spi_rdid, |
| 17966 | .probe_timing = TIMING_ZERO, |
| 17967 | .block_erasers = |
| 17968 | { |
| 17969 | { |
| 17970 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17971 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17972 | }, { |
| 17973 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17974 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17975 | }, { |
| 17976 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17977 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17978 | }, { |
| 17979 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17980 | .block_erase = spi_block_erase_60, |
| 17981 | }, { |
| 17982 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17983 | .block_erase = spi_block_erase_c7, |
| 17984 | } |
| 17985 | }, |
| 17986 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17987 | .unlock = spi_disable_blockprotect, |
| 17988 | .write = spi_chip_write_256, |
| 17989 | .read = spi_chip_read, |
| 17990 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17991 | .reg_bits = |
| 17992 | { |
| 17993 | .srp = {STATUS1, 7, RW}, |
| 17994 | .srl = {STATUS2, 0, RW}, |
| 17995 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 17996 | .tb = {STATUS1, 6, RW}, |
| 17997 | .cmp = {STATUS2, 6, RW}, |
| 17998 | }, |
| 17999 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18000 | .prepare_access = spi_prepare_4ba, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18001 | }, |
| 18002 | |
| 18003 | { |
| 18004 | .vendor = "Winbond", |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18005 | .name = "W25Q256JV_Q", |
| 18006 | .bustype = BUS_SPI, |
| 18007 | .manufacture_id = WINBOND_NEX_ID, |
| 18008 | .model_id = WINBOND_NEX_W25Q256_V, |
| 18009 | .total_size = 32768, |
| 18010 | .page_size = 256, |
| 18011 | /* supports SFDP */ |
| 18012 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18013 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2, |
Nico Huber | ddfbbe8 | 2023-12-21 16:31:27 +0100 | [diff] [blame] | 18014 | .tested = TEST_OK_PREW, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18015 | .probe = probe_spi_rdid, |
| 18016 | .probe_timing = TIMING_ZERO, |
| 18017 | .block_erasers = |
| 18018 | { |
| 18019 | { |
| 18020 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18021 | .block_erase = spi_block_erase_21, |
| 18022 | }, { |
| 18023 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18024 | .block_erase = spi_block_erase_20, |
| 18025 | }, { |
| 18026 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18027 | .block_erase = spi_block_erase_52, |
| 18028 | }, { |
| 18029 | .eraseblocks = { {64 * 1024, 512} }, |
| 18030 | .block_erase = spi_block_erase_dc, |
| 18031 | }, { |
| 18032 | .eraseblocks = { {64 * 1024, 512} }, |
| 18033 | .block_erase = spi_block_erase_d8, |
| 18034 | }, { |
| 18035 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18036 | .block_erase = spi_block_erase_60, |
| 18037 | }, { |
| 18038 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18039 | .block_erase = spi_block_erase_c7, |
| 18040 | } |
| 18041 | }, |
| 18042 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18043 | .unlock = spi_disable_blockprotect, |
| 18044 | .write = spi_chip_write_256, |
| 18045 | .read = spi_chip_read, |
| 18046 | .voltage = {2700, 3600}, |
| 18047 | .reg_bits = |
| 18048 | { |
| 18049 | .srp = {STATUS1, 7, RW}, |
| 18050 | .srl = {STATUS2, 0, RW}, |
| 18051 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18052 | .tb = {STATUS1, 6, RW}, |
| 18053 | .cmp = {STATUS2, 6, RW}, |
| 18054 | }, |
| 18055 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18056 | .prepare_access = spi_prepare_4ba, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18057 | }, |
| 18058 | |
| 18059 | { |
| 18060 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18061 | .name = "W25Q256JV_M", |
| 18062 | .bustype = BUS_SPI, |
| 18063 | .manufacture_id = WINBOND_NEX_ID, |
| 18064 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 18065 | .total_size = 32768, |
| 18066 | .page_size = 256, |
| 18067 | /* supports SFDP */ |
| 18068 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18069 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2, |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18070 | .tested = TEST_OK_PREW, |
| 18071 | .probe = probe_spi_rdid, |
| 18072 | .probe_timing = TIMING_ZERO, |
| 18073 | .block_erasers = |
| 18074 | { |
| 18075 | { |
| 18076 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18077 | .block_erase = spi_block_erase_21, |
| 18078 | }, { |
| 18079 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18080 | .block_erase = spi_block_erase_20, |
| 18081 | }, { |
| 18082 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18083 | .block_erase = spi_block_erase_52, |
| 18084 | }, { |
| 18085 | .eraseblocks = { {64 * 1024, 512} }, |
| 18086 | .block_erase = spi_block_erase_dc, |
| 18087 | }, { |
| 18088 | .eraseblocks = { {64 * 1024, 512} }, |
| 18089 | .block_erase = spi_block_erase_d8, |
| 18090 | }, { |
| 18091 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18092 | .block_erase = spi_block_erase_60, |
| 18093 | }, { |
| 18094 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18095 | .block_erase = spi_block_erase_c7, |
| 18096 | } |
| 18097 | }, |
| 18098 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18099 | .unlock = spi_disable_blockprotect, |
| 18100 | .write = spi_chip_write_256, |
| 18101 | .read = spi_chip_read, |
| 18102 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18103 | .reg_bits = |
| 18104 | { |
| 18105 | .srp = {STATUS1, 7, RW}, |
| 18106 | .srl = {STATUS2, 0, RW}, |
| 18107 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18108 | .tb = {STATUS1, 6, RW}, |
| 18109 | .cmp = {STATUS2, 6, RW}, |
| 18110 | }, |
| 18111 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18112 | .prepare_access = spi_prepare_4ba, |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18113 | }, |
| 18114 | |
| 18115 | { |
| 18116 | .vendor = "Winbond", |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18117 | .name = "W25Q256JW", |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18118 | .bustype = BUS_SPI, |
| 18119 | .manufacture_id = WINBOND_NEX_ID, |
| 18120 | .model_id = WINBOND_NEX_W25Q256_W, |
| 18121 | .total_size = 32768, |
| 18122 | .page_size = 256, |
| 18123 | /* supports SFDP */ |
| 18124 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18125 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18126 | .tested = TEST_OK_PREW, |
| 18127 | .probe = probe_spi_rdid, |
| 18128 | .probe_timing = TIMING_ZERO, |
| 18129 | .block_erasers = |
| 18130 | { |
| 18131 | { |
| 18132 | .eraseblocks = { {4 * 1024, 8192} }, |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18133 | .block_erase = spi_block_erase_21, |
| 18134 | }, { |
| 18135 | .eraseblocks = { {4 * 1024, 8192} }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18136 | .block_erase = spi_block_erase_20, |
| 18137 | }, { |
| 18138 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18139 | .block_erase = spi_block_erase_52, |
| 18140 | }, { |
| 18141 | .eraseblocks = { {64 * 1024, 512} }, |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18142 | .block_erase = spi_block_erase_dc, |
| 18143 | }, { |
| 18144 | .eraseblocks = { {64 * 1024, 512} }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18145 | .block_erase = spi_block_erase_d8, |
| 18146 | }, { |
| 18147 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18148 | .block_erase = spi_block_erase_60, |
| 18149 | }, { |
| 18150 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18151 | .block_erase = spi_block_erase_c7, |
| 18152 | } |
| 18153 | }, |
| 18154 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18155 | .unlock = spi_disable_blockprotect, |
| 18156 | .write = spi_chip_write_256, |
| 18157 | .read = spi_chip_read, |
| 18158 | .voltage = {1650, 1950}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18159 | .prepare_access = spi_prepare_4ba, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18160 | }, |
| 18161 | |
| 18162 | { |
| 18163 | .vendor = "Winbond", |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18164 | .name = "W25Q256JW_DTR", |
| 18165 | .bustype = BUS_SPI, |
| 18166 | .manufacture_id = WINBOND_NEX_ID, |
| 18167 | .model_id = WINBOND_NEX_W25Q256_DTR, |
| 18168 | .total_size = 32768, |
| 18169 | .page_size = 256, |
| 18170 | /* supports SFDP */ |
| 18171 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 18172 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2 |
| 18173 | | FEATURE_WRSR3, |
| 18174 | .tested = TEST_OK_PREWB, |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18175 | .probe = probe_spi_rdid, |
| 18176 | .probe_timing = TIMING_ZERO, |
| 18177 | .block_erasers = |
| 18178 | { |
| 18179 | { |
| 18180 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18181 | .block_erase = spi_block_erase_21, |
| 18182 | }, { |
| 18183 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18184 | .block_erase = spi_block_erase_20, |
| 18185 | }, { |
| 18186 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18187 | .block_erase = spi_block_erase_52, |
| 18188 | }, { |
| 18189 | .eraseblocks = { {64 * 1024, 512} }, |
| 18190 | .block_erase = spi_block_erase_dc, |
| 18191 | }, { |
| 18192 | .eraseblocks = { {64 * 1024, 512} }, |
| 18193 | .block_erase = spi_block_erase_d8, |
| 18194 | }, { |
| 18195 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18196 | .block_erase = spi_block_erase_60, |
| 18197 | }, { |
| 18198 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18199 | .block_erase = spi_block_erase_c7, |
| 18200 | } |
| 18201 | }, |
| 18202 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18203 | .unlock = spi_disable_blockprotect, |
| 18204 | .write = spi_chip_write_256, |
| 18205 | .read = spi_chip_read, |
| 18206 | .voltage = {1700, 1950}, |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 18207 | .reg_bits = |
| 18208 | { |
| 18209 | .srp = {STATUS1, 7, RW}, |
| 18210 | .srl = {STATUS2, 0, RW}, |
| 18211 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18212 | .tb = {STATUS1, 6, RW}, |
| 18213 | .cmp = {STATUS2, 6, RW}, |
| 18214 | .wps = {STATUS3, 2, RW}, |
| 18215 | }, |
| 18216 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18217 | .prepare_access = spi_prepare_4ba, |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18218 | }, |
| 18219 | |
| 18220 | { |
| 18221 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18222 | .name = "W25Q32BV/W25Q32CV/W25Q32DV", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18223 | .bustype = BUS_SPI, |
| 18224 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18225 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18226 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18227 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18228 | /* supports SFDP */ |
| 18229 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18230 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18231 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18232 | .probe = probe_spi_rdid, |
| 18233 | .probe_timing = TIMING_ZERO, |
| 18234 | .block_erasers = |
| 18235 | { |
| 18236 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18237 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18238 | .block_erase = spi_block_erase_20, |
| 18239 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18240 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18241 | .block_erase = spi_block_erase_52, |
| 18242 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18243 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18244 | .block_erase = spi_block_erase_d8, |
| 18245 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18246 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18247 | .block_erase = spi_block_erase_60, |
| 18248 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18249 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18250 | .block_erase = spi_block_erase_c7, |
| 18251 | } |
| 18252 | }, |
| 18253 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18254 | .unlock = spi_disable_blockprotect, |
| 18255 | .write = spi_chip_write_256, |
| 18256 | .read = spi_chip_read, |
| 18257 | .voltage = {2700, 3600}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18258 | .reg_bits = |
| 18259 | { |
| 18260 | .srp = {STATUS1, 7, RW}, |
| 18261 | .srl = {STATUS2, 0, RW}, |
| 18262 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18263 | .tb = {STATUS1, 5, RW}, |
| 18264 | .sec = {STATUS1, 6, RW}, |
| 18265 | .cmp = {STATUS2, 6, RW}, |
| 18266 | }, |
| 18267 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18268 | }, |
| 18269 | |
| 18270 | { |
| 18271 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18272 | .name = "W25Q32FV", |
| 18273 | .bustype = BUS_SPI, |
| 18274 | .manufacture_id = WINBOND_NEX_ID, |
| 18275 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18276 | .total_size = 4096, |
| 18277 | .page_size = 256, |
| 18278 | /* supports SFDP */ |
| 18279 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18280 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | |
| 18281 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18282 | .tested = TEST_OK_PREW, |
| 18283 | .probe = probe_spi_rdid, |
| 18284 | .probe_timing = TIMING_ZERO, |
| 18285 | .block_erasers = |
| 18286 | { |
| 18287 | { |
| 18288 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18289 | .block_erase = spi_block_erase_20, |
| 18290 | }, { |
| 18291 | .eraseblocks = { {32 * 1024, 128} }, |
| 18292 | .block_erase = spi_block_erase_52, |
| 18293 | }, { |
| 18294 | .eraseblocks = { {64 * 1024, 64} }, |
| 18295 | .block_erase = spi_block_erase_d8, |
| 18296 | }, { |
| 18297 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18298 | .block_erase = spi_block_erase_60, |
| 18299 | }, { |
| 18300 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18301 | .block_erase = spi_block_erase_c7, |
| 18302 | } |
| 18303 | }, |
| 18304 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18305 | .unlock = spi_disable_blockprotect, |
| 18306 | .write = spi_chip_write_256, |
| 18307 | .read = spi_chip_read, |
| 18308 | .voltage = {2700, 3600}, |
| 18309 | .reg_bits = |
| 18310 | { |
| 18311 | .srp = {STATUS1, 7, RW}, |
| 18312 | .srl = {STATUS2, 0, RW}, |
| 18313 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18314 | .tb = {STATUS1, 5, RW}, |
| 18315 | .sec = {STATUS1, 6, RW}, |
| 18316 | .cmp = {STATUS2, 6, RW}, |
| 18317 | .wps = {STATUS3, 2, RW}, |
| 18318 | }, |
| 18319 | .decode_range = decode_range_spi25, |
| 18320 | }, |
| 18321 | |
| 18322 | { |
| 18323 | .vendor = "Winbond", |
| 18324 | .name = "W25Q32JV", |
| 18325 | .bustype = BUS_SPI, |
| 18326 | .manufacture_id = WINBOND_NEX_ID, |
| 18327 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18328 | .total_size = 4096, |
| 18329 | .page_size = 256, |
| 18330 | /* supports SFDP */ |
| 18331 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18332 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18333 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18334 | .tested = TEST_OK_PREW, |
| 18335 | .probe = probe_spi_rdid, |
| 18336 | .probe_timing = TIMING_ZERO, |
| 18337 | .block_erasers = |
| 18338 | { |
| 18339 | { |
| 18340 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18341 | .block_erase = spi_block_erase_20, |
| 18342 | }, { |
| 18343 | .eraseblocks = { {32 * 1024, 128} }, |
| 18344 | .block_erase = spi_block_erase_52, |
| 18345 | }, { |
| 18346 | .eraseblocks = { {64 * 1024, 64} }, |
| 18347 | .block_erase = spi_block_erase_d8, |
| 18348 | }, { |
| 18349 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18350 | .block_erase = spi_block_erase_60, |
| 18351 | }, { |
| 18352 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18353 | .block_erase = spi_block_erase_c7, |
| 18354 | } |
| 18355 | }, |
| 18356 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18357 | .unlock = spi_disable_blockprotect, |
| 18358 | .write = spi_chip_write_256, |
| 18359 | .read = spi_chip_read, |
| 18360 | .voltage = {2700, 3600}, |
| 18361 | .reg_bits = |
| 18362 | { |
| 18363 | .srp = {STATUS1, 7, RW}, |
| 18364 | .srl = {STATUS2, 0, RW}, |
| 18365 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18366 | .tb = {STATUS1, 5, RW}, |
| 18367 | .sec = {STATUS1, 6, RW}, |
| 18368 | .cmp = {STATUS2, 6, RW}, |
| 18369 | .wps = {STATUS3, 2, RW}, |
| 18370 | }, |
| 18371 | .decode_range = decode_range_spi25, |
| 18372 | }, |
| 18373 | |
| 18374 | { |
| 18375 | .vendor = "Winbond", |
| 18376 | .name = "W25Q32BW/W25Q32CW/W25Q32DW", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18377 | .bustype = BUS_SPI, |
| 18378 | .manufacture_id = WINBOND_NEX_ID, |
| 18379 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18380 | .total_size = 4096, |
| 18381 | .page_size = 256, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18382 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18383 | /* QPI enable 0x38, disable 0xFF */ |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18384 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR_EXT2, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18385 | .tested = TEST_OK_PREW, |
| 18386 | .probe = probe_spi_rdid, |
| 18387 | .probe_timing = TIMING_ZERO, |
| 18388 | .block_erasers = |
| 18389 | { |
| 18390 | { |
| 18391 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18392 | .block_erase = spi_block_erase_20, |
| 18393 | }, { |
| 18394 | .eraseblocks = { {32 * 1024, 128} }, |
| 18395 | .block_erase = spi_block_erase_52, |
| 18396 | }, { |
| 18397 | .eraseblocks = { {64 * 1024, 64} }, |
| 18398 | .block_erase = spi_block_erase_d8, |
| 18399 | }, { |
| 18400 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18401 | .block_erase = spi_block_erase_60, |
| 18402 | }, { |
| 18403 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18404 | .block_erase = spi_block_erase_c7, |
| 18405 | } |
| 18406 | }, |
| 18407 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18408 | .unlock = spi_disable_blockprotect, |
| 18409 | .write = spi_chip_write_256, |
| 18410 | .read = spi_chip_read, |
| 18411 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18412 | .reg_bits = |
| 18413 | { |
| 18414 | .srp = {STATUS1, 7, RW}, |
| 18415 | .srl = {STATUS2, 0, RW}, |
| 18416 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18417 | .tb = {STATUS1, 5, RW}, |
| 18418 | .sec = {STATUS1, 6, RW}, |
| 18419 | .cmp = {STATUS2, 6, RW}, |
| 18420 | }, |
| 18421 | .decode_range = decode_range_spi25, |
| 18422 | }, |
| 18423 | |
| 18424 | { |
| 18425 | .vendor = "Winbond", |
| 18426 | .name = "W25Q32FW", |
| 18427 | .bustype = BUS_SPI, |
| 18428 | .manufacture_id = WINBOND_NEX_ID, |
| 18429 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18430 | .total_size = 4096, |
| 18431 | .page_size = 256, |
| 18432 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18433 | /* QPI enable 0x38, disable 0xFF */ |
| 18434 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | |
| 18435 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18436 | .tested = TEST_OK_PREW, |
| 18437 | .probe = probe_spi_rdid, |
| 18438 | .probe_timing = TIMING_ZERO, |
| 18439 | .block_erasers = |
| 18440 | { |
| 18441 | { |
| 18442 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18443 | .block_erase = spi_block_erase_20, |
| 18444 | }, { |
| 18445 | .eraseblocks = { {32 * 1024, 128} }, |
| 18446 | .block_erase = spi_block_erase_52, |
| 18447 | }, { |
| 18448 | .eraseblocks = { {64 * 1024, 64} }, |
| 18449 | .block_erase = spi_block_erase_d8, |
| 18450 | }, { |
| 18451 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18452 | .block_erase = spi_block_erase_60, |
| 18453 | }, { |
| 18454 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18455 | .block_erase = spi_block_erase_c7, |
| 18456 | } |
| 18457 | }, |
| 18458 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18459 | .unlock = spi_disable_blockprotect, |
| 18460 | .write = spi_chip_write_256, |
| 18461 | .read = spi_chip_read, |
| 18462 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18463 | .reg_bits = |
| 18464 | { |
| 18465 | .srp = {STATUS1, 7, RW}, |
| 18466 | .srl = {STATUS2, 0, RW}, |
| 18467 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18468 | .tb = {STATUS1, 5, RW}, |
| 18469 | .sec = {STATUS1, 6, RW}, |
| 18470 | .cmp = {STATUS2, 6, RW}, |
| 18471 | .wps = {STATUS3, 2, RW}, |
| 18472 | }, |
| 18473 | .decode_range = decode_range_spi25, |
| 18474 | }, |
| 18475 | |
| 18476 | { |
| 18477 | .vendor = "Winbond", |
| 18478 | .name = "W25Q32JW...Q", |
| 18479 | .bustype = BUS_SPI, |
| 18480 | .manufacture_id = WINBOND_NEX_ID, |
| 18481 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18482 | .total_size = 4096, |
| 18483 | .page_size = 256, |
| 18484 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18485 | /* QPI enable 0x38, disable 0xFF */ |
| 18486 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18487 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18488 | .tested = TEST_OK_PREW, |
| 18489 | .probe = probe_spi_rdid, |
| 18490 | .probe_timing = TIMING_ZERO, |
| 18491 | .block_erasers = |
| 18492 | { |
| 18493 | { |
| 18494 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18495 | .block_erase = spi_block_erase_20, |
| 18496 | }, { |
| 18497 | .eraseblocks = { {32 * 1024, 128} }, |
| 18498 | .block_erase = spi_block_erase_52, |
| 18499 | }, { |
| 18500 | .eraseblocks = { {64 * 1024, 64} }, |
| 18501 | .block_erase = spi_block_erase_d8, |
| 18502 | }, { |
| 18503 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18504 | .block_erase = spi_block_erase_60, |
| 18505 | }, { |
| 18506 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18507 | .block_erase = spi_block_erase_c7, |
| 18508 | } |
| 18509 | }, |
| 18510 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18511 | .unlock = spi_disable_blockprotect, |
| 18512 | .write = spi_chip_write_256, |
| 18513 | .read = spi_chip_read, |
| 18514 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18515 | .reg_bits = |
| 18516 | { |
| 18517 | .srp = {STATUS1, 7, RW}, |
| 18518 | .srl = {STATUS2, 0, RW}, |
| 18519 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18520 | .tb = {STATUS1, 5, RW}, |
| 18521 | .sec = {STATUS1, 6, RW}, |
| 18522 | .cmp = {STATUS2, 6, RW}, |
| 18523 | .wps = {STATUS3, 2, RW}, |
| 18524 | }, |
| 18525 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18526 | }, |
| 18527 | |
| 18528 | { |
| 18529 | .vendor = "Winbond", |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18530 | .name = "W25Q32JW...M", |
| 18531 | .bustype = BUS_SPI, |
| 18532 | .manufacture_id = WINBOND_NEX_ID, |
| 18533 | .model_id = WINBOND_NEX_W25Q32JW_M, |
| 18534 | .total_size = 4096, |
| 18535 | .page_size = 256, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18536 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18537 | /* QPI enable 0x38, disable 0xFF */ |
| 18538 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18539 | FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2, |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18540 | .tested = TEST_OK_PREW, |
| 18541 | .probe = probe_spi_rdid, |
| 18542 | .probe_timing = TIMING_ZERO, |
| 18543 | .block_erasers = |
| 18544 | { |
| 18545 | { |
| 18546 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18547 | .block_erase = spi_block_erase_20, |
| 18548 | }, { |
| 18549 | .eraseblocks = { {32 * 1024, 128} }, |
| 18550 | .block_erase = spi_block_erase_52, |
| 18551 | }, { |
| 18552 | .eraseblocks = { {64 * 1024, 64} }, |
| 18553 | .block_erase = spi_block_erase_d8, |
| 18554 | }, { |
| 18555 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18556 | .block_erase = spi_block_erase_60, |
| 18557 | }, { |
| 18558 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18559 | .block_erase = spi_block_erase_c7, |
| 18560 | } |
| 18561 | }, |
| 18562 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 18563 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 18564 | .write = spi_chip_write_256, |
| 18565 | .read = spi_chip_read, |
| 18566 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18567 | .reg_bits = |
| 18568 | { |
| 18569 | .srp = {STATUS1, 7, RW}, |
| 18570 | .srl = {STATUS2, 0, RW}, |
| 18571 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18572 | .tb = {STATUS1, 5, RW}, |
| 18573 | .sec = {STATUS1, 6, RW}, |
| 18574 | .cmp = {STATUS2, 6, RW}, |
| 18575 | .wps = {STATUS3, 2, RW}, |
| 18576 | }, |
| 18577 | .decode_range = decode_range_spi25, |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18578 | }, |
| 18579 | |
| 18580 | { |
| 18581 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18582 | .name = "W25Q40.V", |
| 18583 | .bustype = BUS_SPI, |
| 18584 | .manufacture_id = WINBOND_NEX_ID, |
| 18585 | .model_id = WINBOND_NEX_W25Q40_V, |
| 18586 | .total_size = 512, |
| 18587 | .page_size = 256, |
| 18588 | /* supports SFDP */ |
| 18589 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18590 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 18591 | .tested = TEST_OK_PREW, |
| 18592 | .probe = probe_spi_rdid, |
| 18593 | .probe_timing = TIMING_ZERO, |
| 18594 | .block_erasers = |
| 18595 | { |
| 18596 | { |
| 18597 | .eraseblocks = { {4 * 1024, 128} }, |
| 18598 | .block_erase = spi_block_erase_20, |
| 18599 | }, { |
| 18600 | .eraseblocks = { {32 * 1024, 16} }, |
| 18601 | .block_erase = spi_block_erase_52, |
| 18602 | }, { |
| 18603 | .eraseblocks = { {64 * 1024, 8} }, |
| 18604 | .block_erase = spi_block_erase_d8, |
| 18605 | }, { |
| 18606 | .eraseblocks = { {512 * 1024, 1} }, |
| 18607 | .block_erase = spi_block_erase_60, |
| 18608 | }, { |
| 18609 | .eraseblocks = { {512 * 1024, 1} }, |
| 18610 | .block_erase = spi_block_erase_c7, |
| 18611 | } |
| 18612 | }, |
| 18613 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18614 | .unlock = spi_disable_blockprotect, |
| 18615 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 18616 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 18617 | .voltage = {2700, 3600}, |
| 18618 | }, |
| 18619 | |
| 18620 | { |
| 18621 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18622 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18623 | .bustype = BUS_SPI, |
| 18624 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18625 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18626 | .total_size = 512, |
| 18627 | .page_size = 256, |
| 18628 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18629 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 18630 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18631 | .probe = probe_spi_rdid, |
| 18632 | .probe_timing = TIMING_ZERO, |
| 18633 | .block_erasers = |
| 18634 | { |
| 18635 | { |
| 18636 | .eraseblocks = { {4 * 1024, 128} }, |
| 18637 | .block_erase = spi_block_erase_20, |
| 18638 | }, { |
| 18639 | .eraseblocks = { {32 * 1024, 16} }, |
| 18640 | .block_erase = spi_block_erase_52, |
| 18641 | }, { |
| 18642 | .eraseblocks = { {64 * 1024, 8} }, |
| 18643 | .block_erase = spi_block_erase_d8, |
| 18644 | }, { |
| 18645 | .eraseblocks = { {512 * 1024, 1} }, |
| 18646 | .block_erase = spi_block_erase_60, |
| 18647 | }, { |
| 18648 | .eraseblocks = { {512 * 1024, 1} }, |
| 18649 | .block_erase = spi_block_erase_c7, |
| 18650 | } |
| 18651 | }, |
| 18652 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18653 | .unlock = spi_disable_blockprotect, |
| 18654 | .write = spi_chip_write_256, |
| 18655 | .read = spi_chip_read, |
| 18656 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18657 | }, |
| 18658 | |
| 18659 | { |
| 18660 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18661 | .name = "W25Q40EW", |
| 18662 | .bustype = BUS_SPI, |
| 18663 | .manufacture_id = WINBOND_NEX_ID, |
| 18664 | .model_id = WINBOND_NEX_W25Q40EW, |
| 18665 | .total_size = 512, |
| 18666 | .page_size = 256, |
| 18667 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18668 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 18669 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18670 | .probe = probe_spi_rdid, |
| 18671 | .probe_timing = TIMING_ZERO, |
| 18672 | .block_erasers = |
| 18673 | { |
| 18674 | { |
| 18675 | .eraseblocks = { {4 * 1024, 128} }, |
| 18676 | .block_erase = spi_block_erase_20, |
| 18677 | }, { |
| 18678 | .eraseblocks = { {32 * 1024, 16} }, |
| 18679 | .block_erase = spi_block_erase_52, |
| 18680 | }, { |
| 18681 | .eraseblocks = { {64 * 1024, 8} }, |
| 18682 | .block_erase = spi_block_erase_d8, |
| 18683 | }, { |
| 18684 | .eraseblocks = { {512 * 1024, 1} }, |
| 18685 | .block_erase = spi_block_erase_60, |
| 18686 | }, { |
| 18687 | .eraseblocks = { {512 * 1024, 1} }, |
| 18688 | .block_erase = spi_block_erase_c7, |
| 18689 | } |
| 18690 | }, |
| 18691 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18692 | .unlock = spi_disable_blockprotect, |
| 18693 | .write = spi_chip_write_256, |
| 18694 | .read = spi_chip_read, |
| 18695 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18696 | }, |
| 18697 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18698 | { |
| 18699 | .vendor = "Winbond", |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 18700 | .name = "W25Q512JV", |
| 18701 | .bustype = BUS_SPI, |
| 18702 | .manufacture_id = WINBOND_NEX_ID, |
| 18703 | .model_id = WINBOND_NEX_W25Q512JV, |
| 18704 | .total_size = 64 * 1024, |
| 18705 | .page_size = 256, |
| 18706 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 18707 | .tested = TEST_OK_PREW, |
| 18708 | .probe = probe_spi_rdid, |
| 18709 | .probe_timing = TIMING_ZERO, |
| 18710 | .block_erasers = |
| 18711 | { |
| 18712 | { |
| 18713 | .eraseblocks = { {4 * 1024, 16384} }, |
| 18714 | .block_erase = spi_block_erase_21, |
| 18715 | }, { |
| 18716 | .eraseblocks = { {4 * 1024, 16384} }, |
| 18717 | .block_erase = spi_block_erase_20, |
| 18718 | }, { |
| 18719 | .eraseblocks = { {32 * 1024, 2048} }, |
| 18720 | .block_erase = spi_block_erase_52, |
| 18721 | }, { |
| 18722 | .eraseblocks = { {64 * 1024, 1024} }, |
| 18723 | .block_erase = spi_block_erase_dc, |
| 18724 | }, { |
| 18725 | .eraseblocks = { {64 * 1024, 1024} }, |
| 18726 | .block_erase = spi_block_erase_d8, |
| 18727 | }, { |
| 18728 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 18729 | .block_erase = spi_block_erase_60, |
| 18730 | }, { |
| 18731 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 18732 | .block_erase = spi_block_erase_c7, |
| 18733 | } |
| 18734 | }, |
| 18735 | .printlock = spi_prettyprint_status_register_plain, |
| 18736 | .unlock = spi_disable_blockprotect, |
| 18737 | .write = spi_chip_write_256, |
| 18738 | .read = spi_chip_read, |
| 18739 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18740 | .prepare_access = spi_prepare_4ba, |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 18741 | }, |
| 18742 | |
| 18743 | { |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 18744 | .vendor = "Winbond", |
| 18745 | .name = "W25Q512NW-IM", |
| 18746 | .bustype = BUS_SPI, |
| 18747 | .manufacture_id = WINBOND_NEX_ID, |
| 18748 | .model_id = WINBOND_NEX_W25Q512NW_IM, |
| 18749 | .total_size = 64 * 1024, |
| 18750 | .page_size = 256, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 18751 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2 |
| 18752 | | FEATURE_WRSR3, |
| 18753 | .tested = TEST_OK_PREWB, |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 18754 | .probe = probe_spi_rdid, |
| 18755 | .probe_timing = TIMING_ZERO, |
| 18756 | .block_erasers = |
Atul Dhudase | 2502dbd | 2021-09-21 10:02:20 +0530 | [diff] [blame] | 18757 | { |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 18758 | { |
| 18759 | .eraseblocks = { {4 * 1024, 16384} }, |
| 18760 | .block_erase = spi_block_erase_21, |
| 18761 | }, { |
| 18762 | .eraseblocks = { {4 * 1024, 16384} }, |
| 18763 | .block_erase = spi_block_erase_20, |
| 18764 | }, { |
| 18765 | .eraseblocks = { {32 * 1024, 2048} }, |
| 18766 | .block_erase = spi_block_erase_52, |
| 18767 | }, { |
| 18768 | .eraseblocks = { {64 * 1024, 1024} }, |
| 18769 | .block_erase = spi_block_erase_dc, |
| 18770 | }, { |
| 18771 | .eraseblocks = { {64 * 1024, 1024} }, |
| 18772 | .block_erase = spi_block_erase_d8, |
| 18773 | }, { |
| 18774 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 18775 | .block_erase = spi_block_erase_60, |
| 18776 | }, { |
| 18777 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 18778 | .block_erase = spi_block_erase_c7, |
| 18779 | } |
| 18780 | }, |
| 18781 | .unlock = spi_disable_blockprotect, |
| 18782 | .write = spi_chip_write_256, |
| 18783 | .read = spi_chip_read, |
| 18784 | .voltage = {1650, 1950}, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 18785 | .reg_bits = |
| 18786 | { |
| 18787 | .srp = {STATUS1, 7, RW}, |
| 18788 | .srl = {STATUS2, 0, RW}, |
| 18789 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18790 | .tb = {STATUS1, 6, RW}, |
| 18791 | .cmp = {STATUS2, 6, RW}, |
| 18792 | .wps = {STATUS3, 2, RW}, |
| 18793 | }, |
| 18794 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18795 | .prepare_access = spi_prepare_4ba, |
Atul Dhudase | 2502dbd | 2021-09-21 10:02:20 +0530 | [diff] [blame] | 18796 | }, |
| 18797 | |
| 18798 | { |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 18799 | .vendor = "Winbond", |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18800 | .name = "W25Q64BV/W25Q64CV/W25Q64FV", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18801 | .bustype = BUS_SPI, |
| 18802 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18803 | .model_id = WINBOND_NEX_W25Q64_V, |
| 18804 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18805 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18806 | /* supports SFDP */ |
| 18807 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18808 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 18809 | .tested = TEST_OK_PREWB, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18810 | .probe = probe_spi_rdid, |
| 18811 | .probe_timing = TIMING_ZERO, |
| 18812 | .block_erasers = |
| 18813 | { |
| 18814 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18815 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18816 | .block_erase = spi_block_erase_20, |
| 18817 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18818 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18819 | .block_erase = spi_block_erase_52, |
| 18820 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18821 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18822 | .block_erase = spi_block_erase_d8, |
| 18823 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18824 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18825 | .block_erase = spi_block_erase_60, |
| 18826 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18827 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18828 | .block_erase = spi_block_erase_c7, |
| 18829 | } |
| 18830 | }, |
| 18831 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18832 | .unlock = spi_disable_blockprotect, |
| 18833 | .write = spi_chip_write_256, |
| 18834 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18835 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18836 | .reg_bits = |
| 18837 | { |
| 18838 | .srp = {STATUS1, 7, RW}, |
| 18839 | .srl = {STATUS2, 0, RW}, |
| 18840 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18841 | .tb = {STATUS1, 5, RW}, |
| 18842 | .sec = {STATUS1, 6, RW}, |
| 18843 | .cmp = {STATUS2, 6, RW}, |
| 18844 | }, |
| 18845 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18846 | }, |
| 18847 | |
| 18848 | { |
| 18849 | .vendor = "Winbond", |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18850 | .name = "W25Q64JV-.Q", |
| 18851 | .bustype = BUS_SPI, |
| 18852 | .manufacture_id = WINBOND_NEX_ID, |
| 18853 | .model_id = WINBOND_NEX_W25Q64_V, |
| 18854 | .total_size = 8192, |
| 18855 | .page_size = 256, |
| 18856 | /* supports SFDP */ |
| 18857 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 18858 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18859 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18860 | .tested = TEST_OK_PREW, |
| 18861 | .probe = probe_spi_rdid, |
| 18862 | .probe_timing = TIMING_ZERO, |
| 18863 | .block_erasers = |
| 18864 | { |
| 18865 | { |
| 18866 | .eraseblocks = { {4 * 1024, 2048} }, |
| 18867 | .block_erase = spi_block_erase_20, |
| 18868 | }, { |
| 18869 | .eraseblocks = { {32 * 1024, 256} }, |
| 18870 | .block_erase = spi_block_erase_52, |
| 18871 | }, { |
| 18872 | .eraseblocks = { {64 * 1024, 128} }, |
| 18873 | .block_erase = spi_block_erase_d8, |
| 18874 | }, { |
| 18875 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18876 | .block_erase = spi_block_erase_60, |
| 18877 | }, { |
| 18878 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18879 | .block_erase = spi_block_erase_c7, |
| 18880 | } |
| 18881 | }, |
| 18882 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18883 | .unlock = spi_disable_blockprotect, |
| 18884 | .write = spi_chip_write_256, |
| 18885 | .read = spi_chip_read, |
| 18886 | .voltage = {2700, 3600}, |
| 18887 | .reg_bits = |
| 18888 | { |
| 18889 | .srp = {STATUS1, 7, RW}, |
| 18890 | .srl = {STATUS2, 0, RW}, |
| 18891 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18892 | .tb = {STATUS1, 5, RW}, |
| 18893 | .sec = {STATUS1, 6, RW}, |
| 18894 | .cmp = {STATUS2, 6, RW}, |
| 18895 | .wps = {STATUS3, 2, RW}, |
| 18896 | }, |
| 18897 | .decode_range = decode_range_spi25, |
| 18898 | }, |
| 18899 | |
| 18900 | { |
| 18901 | .vendor = "Winbond", |
| 18902 | .name = "W25Q64JV-.M", |
Simon Buhrow | 236a38c | 2021-11-05 11:48:30 +0100 | [diff] [blame] | 18903 | .bustype = BUS_SPI, |
| 18904 | .manufacture_id = WINBOND_NEX_ID, |
| 18905 | .model_id = WINBOND_NEX_W25Q64JV, |
| 18906 | .total_size = 8192, |
| 18907 | .page_size = 256, |
| 18908 | /* supports SFDP */ |
| 18909 | /* QPI enable 0x38 */ |
| 18910 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 18911 | .tested = TEST_OK_PREW, |
| 18912 | .probe = probe_spi_rdid, |
| 18913 | .probe_timing = TIMING_ZERO, |
| 18914 | .block_erasers = |
| 18915 | { |
| 18916 | { |
| 18917 | .eraseblocks = { {4 * 1024, 2048} }, |
| 18918 | .block_erase = spi_block_erase_20, |
| 18919 | }, { |
| 18920 | .eraseblocks = { {32 * 1024, 256} }, |
| 18921 | .block_erase = spi_block_erase_52, |
| 18922 | }, { |
| 18923 | .eraseblocks = { {64 * 1024, 128} }, |
| 18924 | .block_erase = spi_block_erase_d8, |
| 18925 | }, { |
| 18926 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18927 | .block_erase = spi_block_erase_60, |
| 18928 | }, { |
| 18929 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18930 | .block_erase = spi_block_erase_c7, |
| 18931 | } |
| 18932 | }, |
| 18933 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 18934 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 18935 | .write = spi_chip_write_256, |
| 18936 | .read = spi_chip_read, |
| 18937 | .voltage = {2700, 3600}, |
| 18938 | }, |
| 18939 | |
| 18940 | { |
| 18941 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18942 | .name = "W25Q64.W", |
| 18943 | .bustype = BUS_SPI, |
| 18944 | .manufacture_id = WINBOND_NEX_ID, |
| 18945 | .model_id = WINBOND_NEX_W25Q64_W, |
| 18946 | .total_size = 8192, |
| 18947 | .page_size = 256, |
| 18948 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18949 | /* QPI enable 0x38, disable 0xFF */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18950 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 18951 | .tested = TEST_OK_PREWB, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18952 | .probe = probe_spi_rdid, |
| 18953 | .probe_timing = TIMING_ZERO, |
| 18954 | .block_erasers = |
| 18955 | { |
| 18956 | { |
| 18957 | .eraseblocks = { {4 * 1024, 2048} }, |
| 18958 | .block_erase = spi_block_erase_20, |
| 18959 | }, { |
| 18960 | .eraseblocks = { {32 * 1024, 256} }, |
| 18961 | .block_erase = spi_block_erase_52, |
| 18962 | }, { |
| 18963 | .eraseblocks = { {64 * 1024, 128} }, |
| 18964 | .block_erase = spi_block_erase_d8, |
| 18965 | }, { |
| 18966 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18967 | .block_erase = spi_block_erase_60, |
| 18968 | }, { |
| 18969 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18970 | .block_erase = spi_block_erase_c7, |
| 18971 | } |
| 18972 | }, |
| 18973 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18974 | .unlock = spi_disable_blockprotect, |
| 18975 | .write = spi_chip_write_256, |
| 18976 | .read = spi_chip_read, |
| 18977 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18978 | .reg_bits = |
| 18979 | { |
| 18980 | .srp = {STATUS1, 7, RW}, |
| 18981 | .srl = {STATUS2, 0, RW}, |
| 18982 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18983 | .tb = {STATUS1, 5, RW}, |
| 18984 | .sec = {STATUS1, 6, RW}, |
| 18985 | .cmp = {STATUS2, 6, RW}, |
| 18986 | }, |
| 18987 | .decode_range = decode_range_spi25, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 18988 | }, |
| 18989 | |
| 18990 | { |
| 18991 | .vendor = "Winbond", |
Nikolai Artemiev | 5fa0505 | 2021-05-14 15:26:47 +1000 | [diff] [blame] | 18992 | .name = "W25Q64JW...M", |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 18993 | .bustype = BUS_SPI, |
| 18994 | .manufacture_id = WINBOND_NEX_ID, |
Nikolai Artemiev | 5fa0505 | 2021-05-14 15:26:47 +1000 | [diff] [blame] | 18995 | .model_id = WINBOND_NEX_W25Q64JW_M, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 18996 | .total_size = 8192, |
| 18997 | .page_size = 256, |
| 18998 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18999 | /* QPI enable 0x38, disable 0xFF */ |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 19000 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2 | FEATURE_WRSR3, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19001 | .tested = TEST_OK_PREW, |
| 19002 | .probe = probe_spi_rdid, |
| 19003 | .probe_timing = TIMING_ZERO, |
| 19004 | .block_erasers = |
| 19005 | { |
| 19006 | { |
| 19007 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19008 | .block_erase = spi_block_erase_20, |
| 19009 | }, { |
| 19010 | .eraseblocks = { {32 * 1024, 256} }, |
| 19011 | .block_erase = spi_block_erase_52, |
| 19012 | }, { |
| 19013 | .eraseblocks = { {64 * 1024, 128} }, |
| 19014 | .block_erase = spi_block_erase_d8, |
| 19015 | }, { |
| 19016 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19017 | .block_erase = spi_block_erase_60, |
| 19018 | }, { |
| 19019 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19020 | .block_erase = spi_block_erase_c7, |
| 19021 | } |
| 19022 | }, |
| 19023 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19024 | .unlock = spi_disable_blockprotect, |
| 19025 | .write = spi_chip_write_256, |
| 19026 | .read = spi_chip_read, |
| 19027 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 19028 | .reg_bits = |
| 19029 | { |
| 19030 | .srp = {STATUS1, 7, RW}, |
| 19031 | .srl = {STATUS2, 0, RW}, |
| 19032 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19033 | .tb = {STATUS1, 5, RW}, |
| 19034 | .sec = {STATUS1, 6, RW}, |
| 19035 | .cmp = {STATUS2, 6, RW}, |
| 19036 | .wps = {STATUS3, 2, RW}, |
| 19037 | }, |
| 19038 | .decode_range = decode_range_spi25, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19039 | }, |
| 19040 | |
| 19041 | { |
| 19042 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19043 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19044 | .bustype = BUS_SPI, |
| 19045 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19046 | .model_id = WINBOND_NEX_W25Q80_V, |
| 19047 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19048 | .page_size = 256, |
| 19049 | /* supports SFDP */ |
| 19050 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19051 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 19052 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19053 | .probe = probe_spi_rdid, |
| 19054 | .probe_timing = TIMING_ZERO, |
| 19055 | .block_erasers = |
| 19056 | { |
| 19057 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19058 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19059 | .block_erase = spi_block_erase_20, |
| 19060 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19061 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19062 | .block_erase = spi_block_erase_52, |
| 19063 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19064 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19065 | .block_erase = spi_block_erase_d8, |
| 19066 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19067 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19068 | .block_erase = spi_block_erase_60, |
| 19069 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19070 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19071 | .block_erase = spi_block_erase_c7, |
| 19072 | } |
| 19073 | }, |
| 19074 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19075 | .unlock = spi_disable_blockprotect, |
| 19076 | .write = spi_chip_write_256, |
| 19077 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19078 | .voltage = {2700, 3600}, |
| 19079 | }, |
| 19080 | |
| 19081 | { |
| 19082 | .vendor = "Winbond", |
| 19083 | .name = "W25Q80BW", |
| 19084 | .bustype = BUS_SPI, |
| 19085 | .manufacture_id = WINBOND_NEX_ID, |
| 19086 | .model_id = WINBOND_NEX_W25Q80BW, |
| 19087 | .total_size = 1024, |
| 19088 | .page_size = 256, |
| 19089 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 19090 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 19091 | .tested = TEST_OK_PREW, |
| 19092 | .probe = probe_spi_rdid, |
| 19093 | .probe_timing = TIMING_ZERO, |
| 19094 | .block_erasers = |
| 19095 | { |
| 19096 | { |
| 19097 | .eraseblocks = { {4 * 1024, 256} }, |
| 19098 | .block_erase = spi_block_erase_20, |
| 19099 | }, { |
| 19100 | .eraseblocks = { {32 * 1024, 32} }, |
| 19101 | .block_erase = spi_block_erase_52, |
| 19102 | }, { |
| 19103 | .eraseblocks = { {64 * 1024, 16} }, |
| 19104 | .block_erase = spi_block_erase_d8, |
| 19105 | }, { |
| 19106 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19107 | .block_erase = spi_block_erase_60, |
| 19108 | }, { |
| 19109 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19110 | .block_erase = spi_block_erase_c7, |
| 19111 | } |
| 19112 | }, |
| 19113 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19114 | .unlock = spi_disable_blockprotect, |
| 19115 | .write = spi_chip_write_256, |
| 19116 | .read = spi_chip_read, |
| 19117 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 19118 | }, |
| 19119 | |
| 19120 | { |
| 19121 | .vendor = "Winbond", |
| 19122 | .name = "W25Q80EW", |
| 19123 | .bustype = BUS_SPI, |
| 19124 | .manufacture_id = WINBOND_NEX_ID, |
| 19125 | .model_id = WINBOND_NEX_W25Q80EW, |
| 19126 | .total_size = 1024, |
| 19127 | .page_size = 256, |
| 19128 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 19129 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 19130 | .tested = TEST_OK_PREW, |
| 19131 | .probe = probe_spi_rdid, |
| 19132 | .probe_timing = TIMING_ZERO, |
| 19133 | .block_erasers = |
| 19134 | { |
| 19135 | { |
| 19136 | .eraseblocks = { {4 * 1024, 256} }, |
| 19137 | .block_erase = spi_block_erase_20, |
| 19138 | }, { |
| 19139 | .eraseblocks = { {32 * 1024, 32} }, |
| 19140 | .block_erase = spi_block_erase_52, |
| 19141 | }, { |
| 19142 | .eraseblocks = { {64 * 1024, 16} }, |
| 19143 | .block_erase = spi_block_erase_d8, |
| 19144 | }, { |
| 19145 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19146 | .block_erase = spi_block_erase_60, |
| 19147 | }, { |
| 19148 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19149 | .block_erase = spi_block_erase_c7, |
| 19150 | } |
| 19151 | }, |
| 19152 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19153 | .unlock = spi_disable_blockprotect, |
| 19154 | .write = spi_chip_write_256, |
| 19155 | .read = spi_chip_read, |
| 19156 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19157 | }, |
| 19158 | |
| 19159 | { |
| 19160 | .vendor = "Winbond", |
Jacob Appelbaum | ebbdc02 | 2019-09-02 09:10:43 -0400 | [diff] [blame] | 19161 | .name = "W25X05", |
| 19162 | .bustype = BUS_SPI, |
| 19163 | .manufacture_id = WINBOND_NEX_ID, |
| 19164 | .model_id = WINBOND_NEX_W25X05, |
| 19165 | .total_size = 64, |
| 19166 | .page_size = 256, |
| 19167 | .feature_bits = FEATURE_WRSR_WREN, |
| 19168 | .tested = TEST_OK_PREW, |
| 19169 | .probe = probe_spi_rdid, |
| 19170 | .probe_timing = TIMING_ZERO, |
| 19171 | .block_erasers = |
| 19172 | { |
| 19173 | { |
| 19174 | .eraseblocks = { {4 * 1024, 16} }, |
| 19175 | .block_erase = spi_block_erase_20, |
| 19176 | }, { |
| 19177 | .eraseblocks = { {32 * 1024, 2} }, |
| 19178 | .block_erase = spi_block_erase_52, |
| 19179 | }, { |
| 19180 | .eraseblocks = { {64 * 1024, 1} }, |
| 19181 | .block_erase = spi_block_erase_d8, |
| 19182 | } |
| 19183 | }, |
| 19184 | .printlock = spi_prettyprint_status_register_plain, |
| 19185 | .unlock = spi_disable_blockprotect, |
| 19186 | .write = spi_chip_write_256, |
| 19187 | .read = spi_chip_read, |
| 19188 | .voltage = {2300, 3600}, |
| 19189 | }, |
| 19190 | |
| 19191 | { |
| 19192 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19193 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19194 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19195 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19196 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19197 | .total_size = 128, |
| 19198 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19199 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 19200 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19201 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 19202 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19203 | .block_erasers = |
| 19204 | { |
| 19205 | { |
| 19206 | .eraseblocks = { {4 * 1024, 32} }, |
| 19207 | .block_erase = spi_block_erase_20, |
| 19208 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19209 | .eraseblocks = { {64 * 1024, 2} }, |
| 19210 | .block_erase = spi_block_erase_d8, |
| 19211 | }, { |
| 19212 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19213 | .block_erase = spi_block_erase_c7, |
| 19214 | } |
| 19215 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19216 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19217 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 19218 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19219 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19220 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19221 | }, |
| 19222 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19223 | { |
| 19224 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19225 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19226 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19227 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19228 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19229 | .total_size = 2048, |
| 19230 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19231 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 19232 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19233 | .probe = probe_spi_rdid, |
| 19234 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19235 | .block_erasers = |
| 19236 | { |
| 19237 | { |
| 19238 | .eraseblocks = { {4 * 1024, 512} }, |
| 19239 | .block_erase = spi_block_erase_20, |
| 19240 | }, { |
| 19241 | .eraseblocks = { {32 * 1024, 64} }, |
| 19242 | .block_erase = spi_block_erase_52, |
| 19243 | }, { |
| 19244 | .eraseblocks = { {64 * 1024, 32} }, |
| 19245 | .block_erase = spi_block_erase_d8, |
| 19246 | }, { |
| 19247 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 19248 | .block_erase = spi_block_erase_60, |
| 19249 | }, { |
| 19250 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 19251 | .block_erase = spi_block_erase_c7, |
| 19252 | } |
| 19253 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19254 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19255 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19256 | .write = spi_chip_write_256, |
| 19257 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19258 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19259 | }, |
| 19260 | |
| 19261 | { |
| 19262 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19263 | .name = "W25X20", |
| 19264 | .bustype = BUS_SPI, |
| 19265 | .manufacture_id = WINBOND_NEX_ID, |
| 19266 | .model_id = WINBOND_NEX_W25X20, |
| 19267 | .total_size = 256, |
| 19268 | .page_size = 256, |
| 19269 | .feature_bits = FEATURE_WRSR_WREN, |
| 19270 | .tested = TEST_OK_PREW, |
| 19271 | .probe = probe_spi_rdid, |
| 19272 | .probe_timing = TIMING_ZERO, |
| 19273 | .block_erasers = |
| 19274 | { |
| 19275 | { |
| 19276 | .eraseblocks = { {4 * 1024, 64} }, |
| 19277 | .block_erase = spi_block_erase_20, |
| 19278 | }, { |
| 19279 | .eraseblocks = { {64 * 1024, 4} }, |
| 19280 | .block_erase = spi_block_erase_d8, |
| 19281 | }, { |
| 19282 | .eraseblocks = { {256 * 1024, 1} }, |
| 19283 | .block_erase = spi_block_erase_c7, |
| 19284 | } |
| 19285 | }, |
| 19286 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19287 | .unlock = spi_disable_blockprotect, |
| 19288 | .write = spi_chip_write_256, |
| 19289 | .read = spi_chip_read, |
| 19290 | .voltage = {2700, 3600}, |
| 19291 | }, |
| 19292 | |
| 19293 | { |
| 19294 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19295 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19296 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19297 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19298 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19299 | .total_size = 4096, |
| 19300 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19301 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 19302 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19303 | .probe = probe_spi_rdid, |
| 19304 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19305 | .block_erasers = |
| 19306 | { |
| 19307 | { |
| 19308 | .eraseblocks = { {4 * 1024, 1024} }, |
| 19309 | .block_erase = spi_block_erase_20, |
| 19310 | }, { |
| 19311 | .eraseblocks = { {32 * 1024, 128} }, |
| 19312 | .block_erase = spi_block_erase_52, |
| 19313 | }, { |
| 19314 | .eraseblocks = { {64 * 1024, 64} }, |
| 19315 | .block_erase = spi_block_erase_d8, |
| 19316 | }, { |
| 19317 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19318 | .block_erase = spi_block_erase_60, |
| 19319 | }, { |
| 19320 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19321 | .block_erase = spi_block_erase_c7, |
| 19322 | } |
| 19323 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19324 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19325 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19326 | .write = spi_chip_write_256, |
| 19327 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19328 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19329 | }, |
| 19330 | |
| 19331 | { |
| 19332 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19333 | .name = "W25X40", |
| 19334 | .bustype = BUS_SPI, |
| 19335 | .manufacture_id = WINBOND_NEX_ID, |
| 19336 | .model_id = WINBOND_NEX_W25X40, |
| 19337 | .total_size = 512, |
| 19338 | .page_size = 256, |
| 19339 | .feature_bits = FEATURE_WRSR_WREN, |
| 19340 | .tested = TEST_OK_PREW, |
| 19341 | .probe = probe_spi_rdid, |
| 19342 | .probe_timing = TIMING_ZERO, |
| 19343 | .block_erasers = |
| 19344 | { |
| 19345 | { |
| 19346 | .eraseblocks = { {4 * 1024, 128} }, |
| 19347 | .block_erase = spi_block_erase_20, |
| 19348 | }, { |
| 19349 | .eraseblocks = { {64 * 1024, 8} }, |
| 19350 | .block_erase = spi_block_erase_d8, |
| 19351 | }, { |
| 19352 | .eraseblocks = { {512 * 1024, 1} }, |
| 19353 | .block_erase = spi_block_erase_c7, |
| 19354 | } |
| 19355 | }, |
| 19356 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19357 | .unlock = spi_disable_blockprotect, |
| 19358 | .write = spi_chip_write_256, |
| 19359 | .read = spi_chip_read, |
| 19360 | .voltage = {2700, 3600}, |
| 19361 | }, |
| 19362 | |
| 19363 | { |
| 19364 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19365 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19366 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19367 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19368 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19369 | .total_size = 8192, |
| 19370 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19371 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 19372 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19373 | .probe = probe_spi_rdid, |
| 19374 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19375 | .block_erasers = |
| 19376 | { |
| 19377 | { |
| 19378 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19379 | .block_erase = spi_block_erase_20, |
| 19380 | }, { |
| 19381 | .eraseblocks = { {32 * 1024, 256} }, |
| 19382 | .block_erase = spi_block_erase_52, |
| 19383 | }, { |
| 19384 | .eraseblocks = { {64 * 1024, 128} }, |
| 19385 | .block_erase = spi_block_erase_d8, |
| 19386 | }, { |
| 19387 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19388 | .block_erase = spi_block_erase_60, |
| 19389 | }, { |
| 19390 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19391 | .block_erase = spi_block_erase_c7, |
| 19392 | } |
| 19393 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19394 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19395 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19396 | .write = spi_chip_write_256, |
| 19397 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19398 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19399 | }, |
| 19400 | |
| 19401 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19402 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19403 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19404 | .bustype = BUS_SPI, |
| 19405 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19406 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19407 | .total_size = 1024, |
| 19408 | .page_size = 256, |
| 19409 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19410 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19411 | .probe = probe_spi_rdid, |
| 19412 | .probe_timing = TIMING_ZERO, |
| 19413 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19414 | { |
| 19415 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19416 | .eraseblocks = { {4 * 1024, 256} }, |
| 19417 | .block_erase = spi_block_erase_20, |
| 19418 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19419 | .eraseblocks = { {64 * 1024, 16} }, |
| 19420 | .block_erase = spi_block_erase_d8, |
| 19421 | }, { |
| 19422 | .eraseblocks = { {1024 * 1024, 1} }, |
| 19423 | .block_erase = spi_block_erase_c7, |
| 19424 | } |
| 19425 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19426 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19427 | .unlock = spi_disable_blockprotect, |
| 19428 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19429 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19430 | .voltage = {2700, 3600}, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19431 | }, |
| 19432 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 19433 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 19434 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 19435 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19436 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19437 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19438 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19439 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19440 | .total_size = 128, |
| 19441 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19442 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 19443 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19444 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 19445 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19446 | .block_erasers = |
| 19447 | { |
| 19448 | { |
| 19449 | .eraseblocks = { {128 * 1024, 1} }, |
| 19450 | .block_erase = erase_chip_block_jedec, |
| 19451 | } |
| 19452 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19453 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19454 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19455 | .prepare_access = prepare_memory_access, |
| 19456 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19457 | }, |
| 19458 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19459 | { |
| 19460 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19461 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 19462 | .bustype = BUS_PARALLEL, |
| 19463 | .manufacture_id = WINBOND_ID, |
| 19464 | .model_id = WINBOND_W29C010, |
| 19465 | .total_size = 128, |
| 19466 | .page_size = 128, |
| 19467 | .feature_bits = FEATURE_LONG_RESET, |
| 19468 | .tested = TEST_OK_PREW, |
| 19469 | .probe = probe_w29ee011, |
| 19470 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 19471 | .block_erasers = |
| 19472 | { |
| 19473 | { |
| 19474 | .eraseblocks = { {128 * 1024, 1} }, |
| 19475 | .block_erase = erase_chip_block_jedec, |
| 19476 | } |
| 19477 | }, |
| 19478 | .write = write_jedec, |
| 19479 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19480 | .prepare_access = prepare_memory_access, |
| 19481 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19482 | }, |
| 19483 | |
| 19484 | { |
| 19485 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19486 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19487 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19488 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19489 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19490 | .total_size = 256, |
| 19491 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19492 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19493 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19494 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19495 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19496 | .block_erasers = |
| 19497 | { |
| 19498 | { |
| 19499 | .eraseblocks = { {256 * 1024, 1} }, |
| 19500 | .block_erase = erase_chip_block_jedec, |
| 19501 | } |
| 19502 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19503 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19504 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19505 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19506 | .prepare_access = prepare_memory_access, |
| 19507 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19508 | }, |
| 19509 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19510 | { |
| 19511 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19512 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19513 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19514 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19515 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19516 | .total_size = 512, |
| 19517 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19518 | .feature_bits = FEATURE_LONG_RESET, |
| 19519 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19520 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 19521 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19522 | .block_erasers = |
| 19523 | { |
| 19524 | { |
| 19525 | .eraseblocks = { {512 * 1024, 1} }, |
| 19526 | .block_erase = erase_chip_block_jedec, |
| 19527 | } |
| 19528 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19529 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19530 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19531 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19532 | .prepare_access = prepare_memory_access, |
| 19533 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19534 | }, |
| 19535 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19536 | { |
| 19537 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19538 | .name = "W29C512A/W29EE512", |
| 19539 | .bustype = BUS_PARALLEL, |
| 19540 | .manufacture_id = WINBOND_ID, |
| 19541 | .model_id = WINBOND_W29C512A, |
| 19542 | .total_size = 64, |
| 19543 | .page_size = 128, |
| 19544 | .feature_bits = FEATURE_LONG_RESET, |
| 19545 | .tested = TEST_OK_PREW, |
| 19546 | .probe = probe_jedec, |
| 19547 | .probe_timing = 10, |
| 19548 | .block_erasers = |
| 19549 | { |
| 19550 | { |
| 19551 | .eraseblocks = { {64 * 1024, 1} }, |
| 19552 | .block_erase = erase_chip_block_jedec, |
| 19553 | } |
| 19554 | }, |
| 19555 | .write = write_jedec, |
| 19556 | .read = read_memmapped, |
| 19557 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19558 | .prepare_access = prepare_memory_access, |
| 19559 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19560 | }, |
| 19561 | |
| 19562 | { |
| 19563 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19564 | .name = "W29GL032CB", |
| 19565 | .bustype = BUS_PARALLEL, |
| 19566 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19567 | .model_id = WINBOND_W29GL032CB, |
| 19568 | .total_size = 4096, |
| 19569 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19570 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19571 | .tested = TEST_UNTESTED, |
| 19572 | .probe = probe_jedec_29gl, |
| 19573 | .probe_timing = TIMING_ZERO, |
| 19574 | .block_erasers = |
| 19575 | { |
| 19576 | { |
| 19577 | .eraseblocks = { |
| 19578 | {8 * 1024, 8}, |
| 19579 | {64 * 1024, 63}, |
| 19580 | }, |
| 19581 | .block_erase = erase_sector_jedec, |
| 19582 | }, { |
| 19583 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19584 | .block_erase = erase_chip_block_jedec, |
| 19585 | }, |
| 19586 | }, |
| 19587 | .write = write_jedec_1, |
| 19588 | .read = read_memmapped, |
| 19589 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19590 | .prepare_access = prepare_memory_access, |
| 19591 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19592 | }, |
| 19593 | |
| 19594 | { |
| 19595 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19596 | .name = "W29GL032CH/L", |
| 19597 | .bustype = BUS_PARALLEL, |
| 19598 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19599 | .model_id = WINBOND_W29GL032CHL, |
| 19600 | .total_size = 4096, |
| 19601 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19602 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19603 | .tested = TEST_UNTESTED, |
| 19604 | .probe = probe_jedec_29gl, |
| 19605 | .probe_timing = TIMING_ZERO, |
| 19606 | .block_erasers = |
| 19607 | { |
| 19608 | { |
| 19609 | .eraseblocks = { {64 * 1024, 64} }, |
| 19610 | .block_erase = erase_sector_jedec, |
| 19611 | }, { |
| 19612 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19613 | .block_erase = erase_chip_block_jedec, |
| 19614 | }, |
| 19615 | }, |
| 19616 | .write = write_jedec_1, |
| 19617 | .read = read_memmapped, |
| 19618 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19619 | .prepare_access = prepare_memory_access, |
| 19620 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19621 | }, |
| 19622 | |
| 19623 | { |
| 19624 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19625 | .name = "W29GL032CT", |
| 19626 | .bustype = BUS_PARALLEL, |
| 19627 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19628 | .model_id = WINBOND_W29GL032CT, |
| 19629 | .total_size = 4096, |
| 19630 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19631 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19632 | .tested = TEST_UNTESTED, |
| 19633 | .probe = probe_jedec_29gl, |
| 19634 | .probe_timing = TIMING_ZERO, |
| 19635 | .block_erasers = |
| 19636 | { |
| 19637 | { |
| 19638 | .eraseblocks = { |
| 19639 | {64 * 1024, 63}, |
| 19640 | {8 * 1024, 8}, |
| 19641 | }, |
| 19642 | .block_erase = erase_sector_jedec, |
| 19643 | }, { |
| 19644 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19645 | .block_erase = erase_chip_block_jedec, |
| 19646 | }, |
| 19647 | }, |
| 19648 | .write = write_jedec_1, |
| 19649 | .read = read_memmapped, |
| 19650 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19651 | .prepare_access = prepare_memory_access, |
| 19652 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19653 | }, |
| 19654 | |
| 19655 | { |
| 19656 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19657 | .name = "W29GL064CB", |
| 19658 | .bustype = BUS_PARALLEL, |
| 19659 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19660 | .model_id = WINBOND_W29GL064CB, |
| 19661 | .total_size = 8192, |
| 19662 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19663 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19664 | .tested = TEST_UNTESTED, |
| 19665 | .probe = probe_jedec_29gl, |
| 19666 | .probe_timing = TIMING_ZERO, |
| 19667 | .block_erasers = |
| 19668 | { |
| 19669 | { |
| 19670 | .eraseblocks = { |
| 19671 | {8 * 1024, 8}, |
| 19672 | {64 * 1024, 127}, |
| 19673 | }, |
| 19674 | .block_erase = erase_sector_jedec, |
| 19675 | }, { |
| 19676 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19677 | .block_erase = erase_chip_block_jedec, |
| 19678 | }, |
| 19679 | }, |
| 19680 | .write = write_jedec_1, |
| 19681 | .read = read_memmapped, |
| 19682 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19683 | .prepare_access = prepare_memory_access, |
| 19684 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19685 | }, |
| 19686 | |
| 19687 | { |
| 19688 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19689 | .name = "W29GL064CH/L", |
| 19690 | .bustype = BUS_PARALLEL, |
| 19691 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19692 | .model_id = WINBOND_W29GL064CHL, |
| 19693 | .total_size = 8192, |
| 19694 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19695 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19696 | .tested = TEST_UNTESTED, |
| 19697 | .probe = probe_jedec_29gl, |
| 19698 | .probe_timing = TIMING_ZERO, |
| 19699 | .block_erasers = |
| 19700 | { |
| 19701 | { |
| 19702 | .eraseblocks = { {64 * 1024, 128} }, |
| 19703 | .block_erase = erase_sector_jedec, |
| 19704 | }, { |
| 19705 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19706 | .block_erase = erase_chip_block_jedec, |
| 19707 | }, |
| 19708 | }, |
| 19709 | .write = write_jedec_1, |
| 19710 | .read = read_memmapped, |
| 19711 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19712 | .prepare_access = prepare_memory_access, |
| 19713 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19714 | }, |
| 19715 | |
| 19716 | { |
| 19717 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19718 | .name = "W29GL064CT", |
| 19719 | .bustype = BUS_PARALLEL, |
| 19720 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19721 | .model_id = WINBOND_W29GL064CT, |
| 19722 | .total_size = 8192, |
| 19723 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19724 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19725 | .tested = TEST_UNTESTED, |
| 19726 | .probe = probe_jedec_29gl, |
| 19727 | .probe_timing = TIMING_ZERO, |
| 19728 | .block_erasers = |
| 19729 | { |
| 19730 | { |
| 19731 | .eraseblocks = { |
| 19732 | {64 * 1024, 127}, |
| 19733 | {8 * 1024, 8}, |
| 19734 | }, |
| 19735 | .block_erase = erase_sector_jedec, |
| 19736 | }, { |
| 19737 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19738 | .block_erase = erase_chip_block_jedec, |
| 19739 | }, |
| 19740 | }, |
| 19741 | .write = write_jedec_1, |
| 19742 | .read = read_memmapped, |
| 19743 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19744 | .prepare_access = prepare_memory_access, |
| 19745 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19746 | }, |
| 19747 | |
| 19748 | { |
| 19749 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19750 | .name = "W29GL128C", |
| 19751 | .bustype = BUS_PARALLEL, |
| 19752 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19753 | .model_id = WINBOND_W29GL128CHL, |
| 19754 | .total_size = 16384, |
| 19755 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19756 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19757 | .tested = TEST_UNTESTED, |
| 19758 | .probe = probe_jedec_29gl, |
| 19759 | .probe_timing = TIMING_ZERO, |
| 19760 | .block_erasers = |
| 19761 | { |
| 19762 | { |
| 19763 | .eraseblocks = { {128 * 1024, 128} }, |
| 19764 | .block_erase = erase_sector_jedec, |
| 19765 | }, { |
| 19766 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 19767 | .block_erase = erase_chip_block_jedec, |
| 19768 | }, |
| 19769 | }, |
| 19770 | .write = write_jedec_1, |
| 19771 | .read = read_memmapped, |
| 19772 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19773 | .prepare_access = prepare_memory_access, |
| 19774 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19775 | }, |
| 19776 | |
| 19777 | { |
| 19778 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 19779 | .name = "W39F010", |
| 19780 | .bustype = BUS_PARALLEL, |
| 19781 | .manufacture_id = WINBOND_ID, |
| 19782 | .model_id = WINBOND_W39F010, |
| 19783 | .total_size = 128, |
| 19784 | .page_size = 4 * 1024, |
| 19785 | .feature_bits = FEATURE_EITHER_RESET, |
| 19786 | .tested = TEST_OK_PREW, |
| 19787 | .probe = probe_jedec, |
| 19788 | .probe_timing = 10, |
| 19789 | .block_erasers = |
| 19790 | { |
| 19791 | { |
| 19792 | .eraseblocks = { {4 * 1024, 32} }, |
| 19793 | .block_erase = erase_block_jedec, |
| 19794 | }, { |
| 19795 | .eraseblocks = { {128 * 1024, 1} }, |
| 19796 | .block_erase = erase_chip_block_jedec, |
| 19797 | } |
| 19798 | }, |
| 19799 | .printlock = printlock_w39f010, |
| 19800 | .write = write_jedec_1, |
| 19801 | .read = read_memmapped, |
| 19802 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19803 | .prepare_access = prepare_memory_access, |
| 19804 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 19805 | }, |
| 19806 | |
| 19807 | { |
| 19808 | .vendor = "Winbond", |
| 19809 | .name = "W39L010", |
| 19810 | .bustype = BUS_PARALLEL, |
| 19811 | .manufacture_id = WINBOND_ID, |
| 19812 | .model_id = WINBOND_W39L010, |
| 19813 | .total_size = 128, |
| 19814 | .page_size = 4 * 1024, |
| 19815 | .feature_bits = FEATURE_EITHER_RESET, |
| 19816 | .tested = TEST_UNTESTED, |
| 19817 | .probe = probe_jedec, |
| 19818 | .probe_timing = 10, |
| 19819 | .block_erasers = |
| 19820 | { |
| 19821 | { |
| 19822 | .eraseblocks = { {4 * 1024, 32} }, |
| 19823 | .block_erase = erase_block_jedec, |
| 19824 | }, { |
| 19825 | .eraseblocks = { {128 * 1024, 1} }, |
| 19826 | .block_erase = erase_chip_block_jedec, |
| 19827 | } |
| 19828 | }, |
| 19829 | .printlock = printlock_w39l010, |
| 19830 | .write = write_jedec_1, |
| 19831 | .read = read_memmapped, |
| 19832 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19833 | .prepare_access = prepare_memory_access, |
| 19834 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 19835 | }, |
| 19836 | |
| 19837 | { |
| 19838 | .vendor = "Winbond", |
| 19839 | .name = "W39L020", |
| 19840 | .bustype = BUS_PARALLEL, |
| 19841 | .manufacture_id = WINBOND_ID, |
| 19842 | .model_id = WINBOND_W39L020, |
| 19843 | .total_size = 256, |
| 19844 | .page_size = 4 * 1024, |
| 19845 | .feature_bits = FEATURE_EITHER_RESET, |
| 19846 | .tested = TEST_UNTESTED, |
| 19847 | .probe = probe_jedec, |
| 19848 | .probe_timing = 10, |
| 19849 | .block_erasers = |
| 19850 | { |
| 19851 | { |
| 19852 | .eraseblocks = { {4 * 1024, 64} }, |
| 19853 | .block_erase = erase_block_jedec, |
| 19854 | }, { |
| 19855 | .eraseblocks = { {64 * 1024, 4} }, |
| 19856 | .block_erase = erase_sector_jedec, |
| 19857 | }, { |
| 19858 | .eraseblocks = { {256 * 1024, 1} }, |
| 19859 | .block_erase = erase_chip_block_jedec, |
| 19860 | } |
| 19861 | }, |
| 19862 | .printlock = printlock_w39l020, |
| 19863 | .write = write_jedec_1, |
| 19864 | .read = read_memmapped, |
| 19865 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19866 | .prepare_access = prepare_memory_access, |
| 19867 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 19868 | }, |
| 19869 | |
| 19870 | { |
| 19871 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 19872 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19873 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 19874 | .manufacture_id = WINBOND_ID, |
| 19875 | .model_id = WINBOND_W39L040, |
| 19876 | .total_size = 512, |
| 19877 | .page_size = 64 * 1024, |
| 19878 | .feature_bits = FEATURE_EITHER_RESET, |
| 19879 | .tested = TEST_OK_PR, |
| 19880 | .probe = probe_jedec, |
| 19881 | .probe_timing = 10, |
| 19882 | .block_erasers = |
| 19883 | { |
| 19884 | { |
| 19885 | .eraseblocks = { {4 * 1024, 128} }, |
| 19886 | .block_erase = erase_block_jedec, |
| 19887 | }, { |
| 19888 | .eraseblocks = { {64 * 1024, 8} }, |
| 19889 | .block_erase = erase_sector_jedec, |
| 19890 | }, { |
| 19891 | .eraseblocks = { {512 * 1024, 1} }, |
| 19892 | .block_erase = erase_chip_block_jedec, |
| 19893 | } |
| 19894 | }, |
| 19895 | .printlock = printlock_w39l040, |
| 19896 | .write = write_jedec_1, |
| 19897 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 19898 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19899 | .prepare_access = prepare_memory_access, |
| 19900 | .finish_access = finish_memory_access, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 19901 | }, |
| 19902 | |
| 19903 | { |
| 19904 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19905 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19906 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19907 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19908 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19909 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 19910 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19911 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 19912 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19913 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 19914 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19915 | .block_erasers = |
| 19916 | { |
| 19917 | { |
| 19918 | .eraseblocks = { {64 * 1024, 8} }, |
| 19919 | .block_erase = erase_sector_jedec, |
| 19920 | }, { |
| 19921 | .eraseblocks = { {512 * 1024, 1} }, |
| 19922 | .block_erase = erase_chip_block_jedec, |
| 19923 | } |
| 19924 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19925 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19926 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19927 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19928 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19929 | .prepare_access = prepare_memory_access, |
| 19930 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19931 | }, |
| 19932 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19933 | { |
| 19934 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19935 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19936 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19937 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19938 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19939 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 19940 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19941 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 19942 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19943 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 19944 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19945 | .block_erasers = |
| 19946 | { |
| 19947 | { |
| 19948 | .eraseblocks = { {64 * 1024, 8} }, |
| 19949 | .block_erase = erase_sector_jedec, |
| 19950 | }, { |
| 19951 | .eraseblocks = { {512 * 1024, 1} }, |
| 19952 | .block_erase = erase_chip_block_jedec, |
| 19953 | } |
| 19954 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19955 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19956 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19957 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19958 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19959 | .prepare_access = prepare_memory_access, |
| 19960 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19961 | }, |
| 19962 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19963 | { |
| 19964 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19965 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19966 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19967 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19968 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19969 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 19970 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19971 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 19972 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19973 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19974 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19975 | .block_erasers = |
| 19976 | { |
| 19977 | { |
| 19978 | .eraseblocks = { {64 * 1024, 8} }, |
| 19979 | .block_erase = erase_sector_jedec, |
| 19980 | }, { |
| 19981 | .eraseblocks = { {512 * 1024, 1} }, |
| 19982 | .block_erase = erase_chip_block_jedec, |
| 19983 | } |
| 19984 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 19985 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19986 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19987 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19988 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19989 | .prepare_access = prepare_memory_access, |
| 19990 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19991 | }, |
| 19992 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19993 | { |
| 19994 | .vendor = "Winbond", |
| 19995 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19996 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19997 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19998 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19999 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20000 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20001 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 20002 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20003 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 20004 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20005 | .block_erasers = |
| 20006 | { |
| 20007 | { |
| 20008 | .eraseblocks = { {4 * 1024, 128} }, |
| 20009 | .block_erase = erase_block_jedec, |
| 20010 | }, { |
| 20011 | .eraseblocks = { {64 * 1024, 8} }, |
| 20012 | .block_erase = erase_sector_jedec, |
| 20013 | }, { |
| 20014 | .eraseblocks = { {512 * 1024, 1} }, |
| 20015 | .block_erase = erase_chip_block_jedec, |
| 20016 | } |
| 20017 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20018 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 20019 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20020 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20021 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20022 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20023 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20024 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20025 | }, |
| 20026 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20027 | { |
| 20028 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20029 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20030 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20031 | .manufacture_id = WINBOND_ID, |
| 20032 | .model_id = WINBOND_W39V040B, |
| 20033 | .total_size = 512, |
| 20034 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20035 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 20036 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20037 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 20038 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20039 | .block_erasers = |
| 20040 | { |
| 20041 | { |
| 20042 | .eraseblocks = { {64 * 1024, 8} }, |
| 20043 | .block_erase = erase_sector_jedec, |
| 20044 | }, { |
| 20045 | .eraseblocks = { {512 * 1024, 1} }, |
| 20046 | .block_erase = erase_chip_block_jedec, |
| 20047 | } |
| 20048 | }, |
| 20049 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 20050 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20051 | .write = write_jedec_1, |
| 20052 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 20053 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20054 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20055 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20056 | }, |
| 20057 | |
| 20058 | { |
| 20059 | .vendor = "Winbond", |
| 20060 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20061 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20062 | .manufacture_id = WINBOND_ID, |
| 20063 | .model_id = WINBOND_W39V040C, |
| 20064 | .total_size = 512, |
| 20065 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20066 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 20067 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20068 | .probe = probe_jedec, |
| 20069 | .probe_timing = 10, |
| 20070 | .block_erasers = |
| 20071 | { |
| 20072 | { |
| 20073 | .eraseblocks = { {64 * 1024, 8} }, |
| 20074 | .block_erase = erase_sector_jedec, |
| 20075 | }, { |
| 20076 | .eraseblocks = { {512 * 1024, 1} }, |
| 20077 | .block_erase = erase_chip_block_jedec, |
| 20078 | } |
| 20079 | }, |
| 20080 | .printlock = printlock_w39v040fc, |
| 20081 | .write = write_jedec_1, |
| 20082 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 20083 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20084 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20085 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20086 | }, |
| 20087 | |
| 20088 | { |
| 20089 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20090 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20091 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20092 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20093 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20094 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20095 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20096 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 20097 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20098 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 20099 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20100 | .block_erasers = |
| 20101 | { |
| 20102 | { |
| 20103 | .eraseblocks = { {64 * 1024, 16} }, |
| 20104 | .block_erase = erase_sector_jedec, |
| 20105 | }, { |
| 20106 | .eraseblocks = { {1024 * 1024, 1} }, |
| 20107 | .block_erase = erase_chip_block_jedec, |
| 20108 | } |
| 20109 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20110 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20111 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20112 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20113 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20114 | .prepare_access = prepare_memory_access, |
| 20115 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20116 | }, |
| 20117 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20118 | { |
| 20119 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20120 | .name = "W39V080FA", |
| 20121 | .bustype = BUS_FWH, |
| 20122 | .manufacture_id = WINBOND_ID, |
| 20123 | .model_id = WINBOND_W39V080FA, |
| 20124 | .total_size = 1024, |
| 20125 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20126 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20127 | .tested = TEST_OK_PREW, |
| 20128 | .probe = probe_jedec, |
| 20129 | .probe_timing = 10, |
| 20130 | .block_erasers = |
| 20131 | { |
| 20132 | { |
| 20133 | .eraseblocks = { {64 * 1024, 16} }, |
| 20134 | .block_erase = erase_sector_jedec, |
| 20135 | }, { |
| 20136 | .eraseblocks = { {1024 * 1024, 1} }, |
| 20137 | .block_erase = erase_chip_block_jedec, |
| 20138 | } |
| 20139 | }, |
| 20140 | .printlock = printlock_w39v080fa, |
| 20141 | .unlock = unlock_regspace2_uniform_64k, |
| 20142 | .write = write_jedec_1, |
| 20143 | .read = read_memmapped, |
| 20144 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20145 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20146 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20147 | }, |
| 20148 | |
| 20149 | { |
| 20150 | .vendor = "Winbond", |
| 20151 | .name = "W39V080FA (dual mode)", |
| 20152 | .bustype = BUS_FWH, |
| 20153 | .manufacture_id = WINBOND_ID, |
| 20154 | .model_id = WINBOND_W39V080FA_DM, |
| 20155 | .total_size = 512, |
| 20156 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20157 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20158 | .tested = TEST_UNTESTED, |
| 20159 | .probe = probe_jedec, |
| 20160 | .probe_timing = 10, |
| 20161 | .block_erasers = |
| 20162 | { |
| 20163 | { |
| 20164 | .eraseblocks = { {64 * 1024, 8} }, |
| 20165 | .block_erase = erase_sector_jedec, |
| 20166 | }, { |
| 20167 | .eraseblocks = { {512 * 1024, 1} }, |
| 20168 | .block_erase = erase_chip_block_jedec, |
| 20169 | } |
| 20170 | }, |
| 20171 | .printlock = printlock_w39v080fa_dual, |
| 20172 | .write = write_jedec_1, |
| 20173 | .read = read_memmapped, |
| 20174 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame^] | 20175 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20176 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20177 | }, |
| 20178 | |
| 20179 | { |
| 20180 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20181 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20182 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20183 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20184 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20185 | .total_size = 256, |
| 20186 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20187 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 20188 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20189 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 20190 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20191 | .block_erasers = |
| 20192 | { |
| 20193 | { |
| 20194 | .eraseblocks = { |
| 20195 | {128 * 1024, 1}, |
| 20196 | {96 * 1024, 1}, |
| 20197 | {8 * 1024, 2}, |
| 20198 | {16 * 1024, 1}, |
| 20199 | }, |
| 20200 | .block_erase = erase_sector_jedec, |
| 20201 | }, { |
| 20202 | .eraseblocks = { {256 * 1024, 1} }, |
| 20203 | .block_erase = erase_chip_block_jedec, |
| 20204 | } |
| 20205 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20206 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20207 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20208 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20209 | .prepare_access = prepare_memory_access, |
| 20210 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20211 | }, |
| 20212 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20213 | { |
| 20214 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 20215 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20216 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 20217 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20218 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 20219 | .total_size = 256, |
| 20220 | .page_size = 128, |
| 20221 | .feature_bits = FEATURE_EITHER_RESET, |
| 20222 | .tested = TEST_OK_PROBE, |
| 20223 | .probe = probe_jedec, |
| 20224 | .probe_timing = 10, |
| 20225 | .block_erasers = |
| 20226 | { |
| 20227 | { |
| 20228 | .eraseblocks = { {256 * 1024, 1} }, |
| 20229 | .block_erase = erase_chip_block_jedec, |
| 20230 | } |
| 20231 | }, |
| 20232 | .write = write_jedec_1, |
| 20233 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20234 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20235 | .prepare_access = prepare_memory_access, |
| 20236 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 20237 | }, |
| 20238 | |
| 20239 | { |
| 20240 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20241 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20242 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20243 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20244 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20245 | .total_size = 256, |
| 20246 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20247 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20248 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20249 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20250 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20251 | .block_erasers = |
| 20252 | { |
| 20253 | { |
| 20254 | .eraseblocks = { |
| 20255 | {64 * 1024, 3}, |
| 20256 | {32 * 1024, 1}, |
| 20257 | {8 * 1024, 2}, |
| 20258 | {16 * 1024, 1}, |
| 20259 | }, |
| 20260 | .block_erase = erase_sector_jedec, |
| 20261 | }, { |
| 20262 | .eraseblocks = { {256 * 1024, 1} }, |
| 20263 | .block_erase = erase_chip_block_jedec, |
| 20264 | } |
| 20265 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20266 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20267 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20268 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20269 | .prepare_access = prepare_memory_access, |
| 20270 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20271 | }, |
| 20272 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20273 | { |
| 20274 | .vendor = "Winbond", |
| 20275 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20276 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20277 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20278 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20279 | .total_size = 256, |
| 20280 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20281 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 20282 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20283 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 20284 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20285 | .block_erasers = |
| 20286 | { |
| 20287 | { |
| 20288 | .eraseblocks = { |
| 20289 | {64 * 1024, 3}, |
| 20290 | {32 * 1024, 1}, |
| 20291 | {8 * 1024, 2}, |
| 20292 | {16 * 1024, 1}, |
| 20293 | }, |
| 20294 | .block_erase = erase_sector_jedec, |
| 20295 | }, { |
| 20296 | .eraseblocks = { {256 * 1024, 1} }, |
| 20297 | .block_erase = erase_chip_block_jedec, |
| 20298 | } |
| 20299 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20300 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20301 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20302 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20303 | .prepare_access = prepare_memory_access, |
| 20304 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20305 | }, |
| 20306 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20307 | { |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20308 | .vendor = "XMC", |
| 20309 | .name = "XM25QH128C", |
| 20310 | .bustype = BUS_SPI, |
| 20311 | .manufacture_id = ST_ID, |
| 20312 | .model_id = XMC_XM25QH128C, |
| 20313 | .total_size = 16384, |
| 20314 | .page_size = 256, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20315 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20316 | .tested = TEST_UNTESTED, |
| 20317 | .probe = probe_spi_rdid, |
| 20318 | .probe_timing = TIMING_ZERO, |
| 20319 | .block_erasers = |
| 20320 | { |
| 20321 | { |
| 20322 | .eraseblocks = { {4 * 1024, 4096} }, |
| 20323 | .block_erase = spi_block_erase_20, |
| 20324 | }, { |
| 20325 | .eraseblocks = { {32 * 1024, 512} }, |
| 20326 | .block_erase = spi_block_erase_52, |
| 20327 | }, { |
| 20328 | .eraseblocks = { {64 * 1024, 256} }, |
| 20329 | .block_erase = spi_block_erase_d8, |
| 20330 | }, { |
| 20331 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20332 | .block_erase = spi_block_erase_60, |
| 20333 | }, { |
| 20334 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20335 | .block_erase = spi_block_erase_c7, |
| 20336 | } |
| 20337 | }, |
| 20338 | .printlock = spi_prettyprint_status_register_plain, |
| 20339 | .unlock = spi_disable_blockprotect, |
| 20340 | .write = spi_chip_write_256, |
| 20341 | .read = spi_chip_read, |
| 20342 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20343 | .reg_bits = |
| 20344 | { |
| 20345 | .srp = {STATUS1, 7, RW}, |
| 20346 | .srl = {STATUS2, 0, RW}, |
| 20347 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 20348 | .tb = {STATUS1, 5, RW}, |
| 20349 | .sec = {STATUS1, 6, RW}, |
| 20350 | .cmp = {STATUS2, 6, RW}, |
| 20351 | }, |
| 20352 | .decode_range = decode_range_spi25, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20353 | }, |
| 20354 | |
| 20355 | { |
| 20356 | .vendor = "XMC", |
| 20357 | .name = "XM25QH256C", |
| 20358 | .bustype = BUS_SPI, |
| 20359 | .manufacture_id = ST_ID, |
| 20360 | .model_id = XMC_XM25QH256C, |
| 20361 | .total_size = 32768, |
| 20362 | .page_size = 256, |
| 20363 | /* supports SFDP */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20364 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20365 | .tested = TEST_UNTESTED, |
| 20366 | .probe = probe_spi_rdid, |
| 20367 | .probe_timing = TIMING_ZERO, |
| 20368 | .block_erasers = |
| 20369 | { |
| 20370 | { |
| 20371 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20372 | .block_erase = spi_block_erase_21, |
| 20373 | }, { |
| 20374 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20375 | .block_erase = spi_block_erase_20, |
| 20376 | }, { |
| 20377 | .eraseblocks = { {32 * 1024, 1024} }, |
| 20378 | .block_erase = spi_block_erase_52, |
| 20379 | }, { |
| 20380 | .eraseblocks = { {64 * 1024, 512} }, |
| 20381 | .block_erase = spi_block_erase_dc, |
| 20382 | }, { |
| 20383 | .eraseblocks = { {64 * 1024, 512} }, |
| 20384 | .block_erase = spi_block_erase_d8, |
| 20385 | }, { |
| 20386 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20387 | .block_erase = spi_block_erase_60, |
| 20388 | }, { |
| 20389 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20390 | .block_erase = spi_block_erase_c7, |
| 20391 | } |
| 20392 | }, |
| 20393 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20394 | .unlock = spi_disable_blockprotect, |
| 20395 | .write = spi_chip_write_256, |
| 20396 | .read = spi_chip_read, |
| 20397 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20398 | .reg_bits = |
| 20399 | { |
| 20400 | .srp = {STATUS1, 7, RW}, |
| 20401 | .srl = {STATUS2, 0, RW}, |
| 20402 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 20403 | .tb = {STATUS1, 6, RW}, |
| 20404 | }, |
| 20405 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 20406 | .prepare_access = spi_prepare_4ba, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20407 | }, |
| 20408 | |
| 20409 | { |
| 20410 | .vendor = "XMC", |
| 20411 | .name = "XM25QH64C", |
| 20412 | .bustype = BUS_SPI, |
| 20413 | .manufacture_id = ST_ID, |
| 20414 | .model_id = XMC_XM25QH64C, |
| 20415 | .total_size = 8192, |
| 20416 | .page_size = 256, |
| 20417 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 20418 | .tested = TEST_UNTESTED, |
| 20419 | .probe = probe_spi_rdid, |
| 20420 | .probe_timing = TIMING_ZERO, |
| 20421 | .block_erasers = |
| 20422 | { |
| 20423 | { |
| 20424 | .eraseblocks = { {4 * 1024, 2048} }, |
| 20425 | .block_erase = spi_block_erase_20, |
| 20426 | }, { |
| 20427 | .eraseblocks = { {32 * 1024, 256} }, |
| 20428 | .block_erase = spi_block_erase_52, |
| 20429 | }, { |
| 20430 | .eraseblocks = { {64 * 1024, 128} }, |
| 20431 | .block_erase = spi_block_erase_d8, |
| 20432 | }, { |
| 20433 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20434 | .block_erase = spi_block_erase_60, |
| 20435 | }, { |
| 20436 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20437 | .block_erase = spi_block_erase_c7, |
| 20438 | } |
| 20439 | }, |
| 20440 | .printlock = spi_prettyprint_status_register_plain, |
| 20441 | .unlock = spi_disable_blockprotect, |
| 20442 | .write = spi_chip_write_256, |
| 20443 | .read = spi_chip_read, |
| 20444 | .voltage = {2700, 3600}, |
| 20445 | }, |
| 20446 | |
| 20447 | { |
| 20448 | .vendor = "XMC", |
| 20449 | .name = "XM25QU128C", |
| 20450 | .bustype = BUS_SPI, |
| 20451 | .manufacture_id = ST_ID, |
| 20452 | .model_id = XMC_XM25QU128C, |
| 20453 | .total_size = 16384, |
| 20454 | .page_size = 256, |
| 20455 | /* supports SFDP */ |
| 20456 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 20457 | .tested = TEST_UNTESTED, |
| 20458 | .probe = probe_spi_rdid, |
| 20459 | .probe_timing = TIMING_ZERO, |
| 20460 | .block_erasers = |
| 20461 | { |
| 20462 | { |
| 20463 | .eraseblocks = { {4 * 1024, 4096} }, |
| 20464 | .block_erase = spi_block_erase_20, |
| 20465 | }, { |
| 20466 | .eraseblocks = { {32 * 1024, 512} }, |
| 20467 | .block_erase = spi_block_erase_52, |
| 20468 | }, { |
| 20469 | .eraseblocks = { {64 * 1024, 256} }, |
| 20470 | .block_erase = spi_block_erase_d8, |
| 20471 | }, { |
| 20472 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20473 | .block_erase = spi_block_erase_60, |
| 20474 | }, { |
| 20475 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20476 | .block_erase = spi_block_erase_c7, |
| 20477 | } |
| 20478 | }, |
| 20479 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20480 | .unlock = spi_disable_blockprotect, |
| 20481 | .write = spi_chip_write_256, |
| 20482 | .read = spi_chip_read, |
| 20483 | .voltage = {1650, 1950}, |
| 20484 | }, |
| 20485 | |
| 20486 | { |
| 20487 | .vendor = "XMC", |
| 20488 | .name = "XM25QU256C", |
| 20489 | .bustype = BUS_SPI, |
| 20490 | .manufacture_id = ST_ID, |
| 20491 | .model_id = XMC_XM25QU256C, |
| 20492 | .total_size = 32768, |
| 20493 | .page_size = 256, |
| 20494 | /* supports SFDP */ |
| 20495 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 20496 | .tested = TEST_UNTESTED, |
| 20497 | .probe = probe_spi_rdid, |
| 20498 | .probe_timing = TIMING_ZERO, |
| 20499 | .block_erasers = |
| 20500 | { |
| 20501 | { |
| 20502 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20503 | .block_erase = spi_block_erase_21, |
| 20504 | }, { |
| 20505 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20506 | .block_erase = spi_block_erase_20, |
| 20507 | }, { |
| 20508 | .eraseblocks = { {32 * 1024, 1024} }, |
| 20509 | .block_erase = spi_block_erase_52, |
| 20510 | }, { |
| 20511 | .eraseblocks = { {64 * 1024, 512} }, |
| 20512 | .block_erase = spi_block_erase_dc, |
| 20513 | }, { |
| 20514 | .eraseblocks = { {64 * 1024, 512} }, |
| 20515 | .block_erase = spi_block_erase_d8, |
| 20516 | }, { |
| 20517 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20518 | .block_erase = spi_block_erase_60, |
| 20519 | }, { |
| 20520 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20521 | .block_erase = spi_block_erase_c7, |
| 20522 | } |
| 20523 | }, |
| 20524 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20525 | .unlock = spi_disable_blockprotect, |
| 20526 | .write = spi_chip_write_256, |
| 20527 | .read = spi_chip_read, |
| 20528 | .voltage = {1650, 1950}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 20529 | .prepare_access = spi_prepare_4ba, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20530 | }, |
| 20531 | |
| 20532 | { |
| 20533 | .vendor = "XMC", |
| 20534 | .name = "XM25QU64C", |
| 20535 | .bustype = BUS_SPI, |
| 20536 | .manufacture_id = ST_ID, |
| 20537 | .model_id = XMC_XM25QU64C, |
| 20538 | .total_size = 8192, |
| 20539 | .page_size = 256, |
| 20540 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 20541 | .tested = TEST_UNTESTED, |
| 20542 | .probe = probe_spi_rdid, |
| 20543 | .probe_timing = TIMING_ZERO, |
| 20544 | .block_erasers = |
| 20545 | { |
| 20546 | { |
| 20547 | .eraseblocks = { {4 * 1024, 2048} }, |
| 20548 | .block_erase = spi_block_erase_20, |
| 20549 | }, { |
| 20550 | .eraseblocks = { {32 * 1024, 256} }, |
| 20551 | .block_erase = spi_block_erase_52, |
| 20552 | }, { |
| 20553 | .eraseblocks = { {64 * 1024, 128} }, |
| 20554 | .block_erase = spi_block_erase_d8, |
| 20555 | }, { |
| 20556 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20557 | .block_erase = spi_block_erase_60, |
| 20558 | }, { |
| 20559 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20560 | .block_erase = spi_block_erase_c7, |
| 20561 | } |
| 20562 | }, |
| 20563 | .printlock = spi_prettyprint_status_register_plain, |
| 20564 | .unlock = spi_disable_blockprotect, |
| 20565 | .write = spi_chip_write_256, |
| 20566 | .read = spi_chip_read, |
| 20567 | .voltage = {1650, 1950}, |
| 20568 | }, |
| 20569 | |
| 20570 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20571 | .vendor = "Zetta Device", |
| 20572 | .name = "ZD25D20", |
| 20573 | .bustype = BUS_SPI, |
| 20574 | .manufacture_id = ZETTADEVICE_ID, |
| 20575 | .model_id = ZETTADEVICE_ZD25D20, |
| 20576 | .total_size = 256, |
| 20577 | .page_size = 256, |
| 20578 | .feature_bits = FEATURE_WRSR_WREN, |
| 20579 | .tested = TEST_UNTESTED, |
| 20580 | .probe = probe_spi_rdid, |
| 20581 | .probe_timing = TIMING_ZERO, |
| 20582 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 20583 | { |
| 20584 | { |
| 20585 | .eraseblocks = { {4 * 1024, 64} }, |
| 20586 | .block_erase = spi_block_erase_20, |
| 20587 | }, { |
| 20588 | .eraseblocks = { {32 * 1024, 8} }, |
| 20589 | .block_erase = spi_block_erase_52, |
| 20590 | }, { |
| 20591 | .eraseblocks = { {64 * 1024, 4} }, |
| 20592 | .block_erase = spi_block_erase_d8, |
| 20593 | }, { |
| 20594 | .eraseblocks = { {256 * 1024, 1} }, |
| 20595 | .block_erase = spi_block_erase_60, |
| 20596 | }, { |
| 20597 | .eraseblocks = { {256 * 1024, 1} }, |
| 20598 | .block_erase = spi_block_erase_c7, |
| 20599 | } |
| 20600 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20601 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20602 | .unlock = spi_disable_blockprotect, |
| 20603 | .write = spi_chip_write_256, |
| 20604 | .read = spi_chip_read, |
| 20605 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 20606 | }, |
| 20607 | |
| 20608 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20609 | .vendor = "Zetta Device", |
| 20610 | .name = "ZD25D40", |
| 20611 | .bustype = BUS_SPI, |
| 20612 | .manufacture_id = ZETTADEVICE_ID, |
| 20613 | .model_id = ZETTADEVICE_ZD25D40, |
| 20614 | .total_size = 512, |
| 20615 | .page_size = 256, |
| 20616 | .feature_bits = FEATURE_WRSR_WREN, |
| 20617 | .tested = TEST_UNTESTED, |
| 20618 | .probe = probe_spi_rdid, |
| 20619 | .probe_timing = TIMING_ZERO, |
| 20620 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 20621 | { |
| 20622 | { |
| 20623 | .eraseblocks = { {4 * 1024, 128} }, |
| 20624 | .block_erase = spi_block_erase_20, |
| 20625 | }, { |
| 20626 | .eraseblocks = { {32 * 1024, 16} }, |
| 20627 | .block_erase = spi_block_erase_52, |
| 20628 | }, { |
| 20629 | .eraseblocks = { {64 * 1024, 8} }, |
| 20630 | .block_erase = spi_block_erase_d8, |
| 20631 | }, { |
| 20632 | .eraseblocks = { {512 * 1024, 1} }, |
| 20633 | .block_erase = spi_block_erase_60, |
| 20634 | }, { |
| 20635 | .eraseblocks = { {512 * 1024, 1} }, |
| 20636 | .block_erase = spi_block_erase_c7, |
| 20637 | } |
| 20638 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20639 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20640 | .unlock = spi_disable_blockprotect, |
| 20641 | .write = spi_chip_write_256, |
| 20642 | .read = spi_chip_read, |
| 20643 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 20644 | }, |
| 20645 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 20646 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 20647 | .vendor = "Unknown", |
| 20648 | .name = "SFDP-capable chip", |
| 20649 | .bustype = BUS_SPI, |
| 20650 | .manufacture_id = GENERIC_MANUF_ID, |
| 20651 | .model_id = SFDP_DEVICE_ID, |
| 20652 | .total_size = 0, /* set by probing function */ |
| 20653 | .page_size = 0, /* set by probing function */ |
| 20654 | .feature_bits = 0, /* set by probing function */ |
| 20655 | /* We present our own "report this" text hence we do not */ |
| 20656 | /* want the default "This flash part has status UNTESTED..." */ |
| 20657 | /* text to be printed. */ |
| 20658 | .tested = TEST_OK_PREW, |
| 20659 | .probe = probe_spi_sfdp, |
| 20660 | .block_erasers = {}, /* set by probing function */ |
| 20661 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 20662 | .write = NULL, /* set by probing function */ |
| 20663 | .read = spi_chip_read, |
| 20664 | /* FIXME: some vendor extensions define this */ |
| 20665 | .voltage = {0}, |
| 20666 | }, |
| 20667 | |
| 20668 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 20669 | .vendor = "Programmer", |
| 20670 | .name = "Opaque flash chip", |
| 20671 | .bustype = BUS_PROG, |
| 20672 | .manufacture_id = PROGMANUF_ID, |
| 20673 | .model_id = PROGDEV_ID, |
| 20674 | .total_size = 0, |
| 20675 | .page_size = 256, |
| 20676 | /* probe is assumed to work, rest will be filled in by probe */ |
| 20677 | .tested = TEST_OK_PROBE, |
| 20678 | .probe = probe_opaque, |
| 20679 | /* eraseblock sizes will be set by the probing function */ |
| 20680 | .block_erasers = |
| 20681 | { |
| 20682 | { |
| 20683 | .block_erase = erase_opaque, |
| 20684 | } |
| 20685 | }, |
| 20686 | .write = write_opaque, |
| 20687 | .read = read_opaque, |
| 20688 | }, |
| 20689 | |
| 20690 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 20691 | .vendor = "AMIC", |
| 20692 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20693 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 20694 | .manufacture_id = AMIC_ID, |
| 20695 | .model_id = GENERIC_DEVICE_ID, |
| 20696 | .total_size = 0, |
| 20697 | .page_size = 256, |
| 20698 | .tested = TEST_BAD_PREW, |
| 20699 | .probe = probe_spi_rdid4, |
| 20700 | .probe_timing = TIMING_ZERO, |
| 20701 | .write = NULL, |
| 20702 | .read = NULL, |
| 20703 | }, |
| 20704 | |
| 20705 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20706 | .vendor = "Atmel", |
| 20707 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20708 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20709 | .manufacture_id = ATMEL_ID, |
| 20710 | .model_id = GENERIC_DEVICE_ID, |
| 20711 | .total_size = 0, |
| 20712 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20713 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20714 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20715 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20716 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20717 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20718 | }, |
| 20719 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20720 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 20721 | .vendor = "Eon", |
| 20722 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20723 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20724 | .manufacture_id = EON_ID_NOPREFIX, |
| 20725 | .model_id = GENERIC_DEVICE_ID, |
| 20726 | .total_size = 0, |
| 20727 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20728 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20729 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20730 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20731 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20732 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20733 | }, |
| 20734 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20735 | { |
| 20736 | .vendor = "Macronix", |
| 20737 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20738 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 20739 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20740 | .model_id = GENERIC_DEVICE_ID, |
| 20741 | .total_size = 0, |
| 20742 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20743 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20744 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20745 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20746 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20747 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20748 | }, |
| 20749 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20750 | { |
| 20751 | .vendor = "PMC", |
| 20752 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20753 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20754 | .manufacture_id = PMC_ID, |
| 20755 | .model_id = GENERIC_DEVICE_ID, |
| 20756 | .total_size = 0, |
| 20757 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20758 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20759 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20760 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20761 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20762 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20763 | }, |
| 20764 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20765 | { |
| 20766 | .vendor = "SST", |
| 20767 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20768 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20769 | .manufacture_id = SST_ID, |
| 20770 | .model_id = GENERIC_DEVICE_ID, |
| 20771 | .total_size = 0, |
| 20772 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20773 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20774 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20775 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20776 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20777 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20778 | }, |
| 20779 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20780 | { |
| 20781 | .vendor = "ST", |
| 20782 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20783 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20784 | .manufacture_id = ST_ID, |
| 20785 | .model_id = GENERIC_DEVICE_ID, |
| 20786 | .total_size = 0, |
| 20787 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20788 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20789 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20790 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20791 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20792 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20793 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 20794 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20795 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 20796 | .vendor = "Sanyo", |
| 20797 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20798 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 20799 | .manufacture_id = SANYO_ID, |
| 20800 | .model_id = GENERIC_DEVICE_ID, |
| 20801 | .total_size = 0, |
| 20802 | .page_size = 256, |
| 20803 | .tested = TEST_BAD_PREW, |
| 20804 | .probe = probe_spi_rdid, |
| 20805 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 20806 | .write = NULL, |
| 20807 | .read = NULL, |
| 20808 | }, |
| 20809 | |
| 20810 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 20811 | .vendor = "Winbond", |
| 20812 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 20813 | .bustype = BUS_SPI, |
| 20814 | .manufacture_id = WINBOND_NEX_ID, |
| 20815 | .model_id = GENERIC_DEVICE_ID, |
| 20816 | .total_size = 0, |
| 20817 | .page_size = 256, |
| 20818 | .tested = TEST_BAD_PREW, |
| 20819 | .probe = probe_spi_rdid, |
| 20820 | .probe_timing = TIMING_ZERO, |
| 20821 | .write = NULL, |
| 20822 | .read = NULL, |
| 20823 | }, |
| 20824 | |
| 20825 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20826 | .vendor = "Generic", |
| 20827 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20828 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20829 | .manufacture_id = GENERIC_MANUF_ID, |
| 20830 | .model_id = GENERIC_DEVICE_ID, |
| 20831 | .total_size = 0, |
| 20832 | .page_size = 256, |
| 20833 | .tested = TEST_BAD_PREW, |
| 20834 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20835 | .write = NULL, |
| 20836 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 20837 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20838 | { |
| 20839 | .vendor = "Generic", |
| 20840 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20841 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20842 | .manufacture_id = GENERIC_MANUF_ID, |
| 20843 | .model_id = GENERIC_DEVICE_ID, |
| 20844 | .total_size = 0, |
| 20845 | .page_size = 256, |
| 20846 | .tested = TEST_BAD_PREW, |
| 20847 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20848 | .write = NULL, |
| 20849 | }, |
| 20850 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 20851 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 20852 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 20853 | |
| 20854 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |