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 | * |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 28 | * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly |
| 29 | * alphabetically sorted. Within families keep them in order of density. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 30 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 31 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 32 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 33 | /* |
| 34 | * .vendor = Vendor name |
| 35 | * .name = Chip name |
| 36 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 37 | * .manufacture_id = Manufacturer chip ID |
| 38 | * .model_id = Model chip ID |
| 39 | * .total_size = Total size in (binary) kbytes |
| 40 | * .page_size = Page or eraseblock(?) size in bytes |
| 41 | * .tested = Test status |
| 42 | * .probe = Probe function |
| 43 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 44 | * .block_erasers[] = Array of erase layouts and erase functions |
| 45 | * { |
| 46 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 47 | * .block_erase = Block erase function |
| 48 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 49 | * .printlock = Chip lock status function |
| 50 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 51 | * .write = Chip write function |
| 52 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 53 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 54 | */ |
| 55 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 56 | { |
| 57 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 58 | .name = "Am29F010", |
| 59 | .bustype = BUS_PARALLEL, |
| 60 | .manufacture_id = AMD_ID, |
| 61 | .model_id = AMD_AM29F010, |
| 62 | .total_size = 128, |
| 63 | .page_size = 16 * 1024, |
| 64 | .feature_bits = FEATURE_SHORT_RESET, |
| 65 | .tested = TEST_UNTESTED, |
| 66 | .probe = probe_jedec, |
| 67 | .probe_timing = TIMING_ZERO, |
| 68 | .block_erasers = |
| 69 | { |
| 70 | { |
| 71 | .eraseblocks = { {16 * 1024, 8} }, |
| 72 | .block_erase = erase_sector_jedec, |
| 73 | }, { |
| 74 | .eraseblocks = { {128 * 1024, 1} }, |
| 75 | .block_erase = erase_chip_block_jedec, |
| 76 | }, |
| 77 | }, |
| 78 | .write = write_jedec_1, |
| 79 | .read = read_memmapped, |
| 80 | .voltage = {4500, 5500}, |
| 81 | }, |
| 82 | |
| 83 | { |
| 84 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 85 | .name = "Am29F010A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 86 | .bustype = BUS_PARALLEL, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 87 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 88 | .model_id = AMD_AM29F010, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 89 | .total_size = 128, |
| 90 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 91 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 92 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 93 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 94 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 95 | .block_erasers = |
| 96 | { |
| 97 | { |
| 98 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 99 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 100 | }, { |
| 101 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 102 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 103 | }, |
| 104 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 105 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 106 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 107 | .voltage = {4500, 5500}, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 108 | }, |
| 109 | |
| 110 | { |
| 111 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 112 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 113 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 114 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 115 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 116 | .total_size = 256, |
| 117 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 118 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 119 | .tested = TEST_UNTESTED, |
| 120 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 121 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 122 | .block_erasers = |
| 123 | { |
| 124 | { |
| 125 | .eraseblocks = { |
| 126 | {16 * 1024, 1}, |
| 127 | {8 * 1024, 2}, |
| 128 | {32 * 1024, 1}, |
| 129 | {64 * 1024, 3}, |
| 130 | }, |
| 131 | .block_erase = erase_sector_jedec, |
| 132 | }, { |
| 133 | .eraseblocks = { {256 * 1024, 1} }, |
| 134 | .block_erase = erase_chip_block_jedec, |
| 135 | }, |
| 136 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 137 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 138 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 139 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 140 | }, |
| 141 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 142 | { |
| 143 | .vendor = "AMD", |
| 144 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 145 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 146 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 147 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 148 | .total_size = 256, |
| 149 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 150 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 151 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 152 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 153 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 154 | .block_erasers = |
| 155 | { |
| 156 | { |
| 157 | .eraseblocks = { |
| 158 | {64 * 1024, 3}, |
| 159 | {32 * 1024, 1}, |
| 160 | {8 * 1024, 2}, |
| 161 | {16 * 1024, 1}, |
| 162 | }, |
| 163 | .block_erase = erase_sector_jedec, |
| 164 | }, { |
| 165 | .eraseblocks = { {256 * 1024, 1} }, |
| 166 | .block_erase = erase_chip_block_jedec, |
| 167 | }, |
| 168 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 169 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 170 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 171 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 172 | }, |
| 173 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 174 | { |
| 175 | .vendor = "AMD", |
| 176 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 177 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 178 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 179 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 180 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 181 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 182 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 183 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 184 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 185 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 186 | .block_erasers = |
| 187 | { |
| 188 | { |
| 189 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 190 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 191 | }, { |
| 192 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 193 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 194 | }, |
| 195 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 196 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 197 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 198 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 199 | }, |
| 200 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 201 | { |
| 202 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 203 | .name = "Am29F040", |
| 204 | .bustype = BUS_PARALLEL, |
| 205 | .manufacture_id = AMD_ID, |
| 206 | .model_id = AMD_AM29F040, |
| 207 | .total_size = 512, |
| 208 | .page_size = 64 * 1024, |
| 209 | .feature_bits = FEATURE_EITHER_RESET, |
| 210 | .tested = TEST_UNTESTED, |
| 211 | .probe = probe_jedec, |
| 212 | .probe_timing = TIMING_ZERO, |
| 213 | .block_erasers = |
| 214 | { |
| 215 | { |
| 216 | .eraseblocks = { {64 * 1024, 8} }, |
| 217 | .block_erase = erase_sector_jedec, |
| 218 | }, { |
| 219 | .eraseblocks = { {512 * 1024, 1} }, |
| 220 | .block_erase = erase_chip_block_jedec, |
| 221 | }, |
| 222 | }, |
| 223 | .write = write_jedec_1, |
| 224 | .read = read_memmapped, |
| 225 | .voltage = {4500, 5500}, |
| 226 | }, |
| 227 | |
| 228 | { |
| 229 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 230 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 231 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 232 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 233 | .model_id = AMD_AM29F040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 234 | .total_size = 512, |
| 235 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 236 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 237 | .tested = TEST_UNTESTED, |
| 238 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 239 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 240 | .block_erasers = |
| 241 | { |
| 242 | { |
| 243 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 244 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 245 | }, { |
| 246 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 247 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 248 | }, |
| 249 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 250 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 251 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 252 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 253 | }, |
| 254 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 255 | { |
| 256 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 257 | .name = "Am29F080", |
| 258 | .bustype = BUS_PARALLEL, |
| 259 | .manufacture_id = AMD_ID, |
| 260 | .model_id = AMD_AM29F080, |
| 261 | .total_size = 1024, |
| 262 | .page_size = 64 * 1024, |
| 263 | .feature_bits = FEATURE_EITHER_RESET, |
| 264 | .tested = TEST_UNTESTED, |
| 265 | .probe = probe_jedec, |
| 266 | .probe_timing = TIMING_ZERO, |
| 267 | .block_erasers = |
| 268 | { |
| 269 | { |
| 270 | .eraseblocks = { {64 * 1024, 16} }, |
| 271 | .block_erase = erase_sector_jedec, |
| 272 | }, { |
| 273 | .eraseblocks = { {1024 * 1024, 1} }, |
| 274 | .block_erase = erase_chip_block_jedec, |
| 275 | }, |
| 276 | }, |
| 277 | .write = write_jedec_1, |
| 278 | .read = read_memmapped, |
| 279 | .voltage = {4500, 5500}, |
| 280 | }, |
| 281 | |
| 282 | { |
| 283 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 284 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 285 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 286 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 287 | .model_id = AMD_AM29F080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 288 | .total_size = 1024, |
| 289 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 290 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 291 | .tested = TEST_UNTESTED, |
| 292 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 293 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 294 | .block_erasers = |
| 295 | { |
| 296 | { |
| 297 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 298 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 299 | }, { |
| 300 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 301 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 302 | }, |
| 303 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 304 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 305 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 306 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 307 | }, |
| 308 | |
| 309 | { |
| 310 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 311 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 312 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 313 | .manufacture_id = AMD_ID, |
| 314 | .model_id = AMD_AM29LV001BB, |
| 315 | .total_size = 128, |
| 316 | .page_size = 64 * 1024, /* unused */ |
| 317 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 318 | .tested = TEST_OK_PREW, |
| 319 | .probe = probe_jedec, |
| 320 | .probe_timing = TIMING_ZERO, |
| 321 | .block_erasers = |
| 322 | { |
| 323 | { |
| 324 | .eraseblocks = { |
| 325 | {8 * 1024, 1}, |
| 326 | {4 * 1024, 2}, |
| 327 | {16 * 1024, 7}, |
| 328 | }, |
| 329 | .block_erase = erase_sector_jedec, |
| 330 | }, { |
| 331 | .eraseblocks = { {128 * 1024, 1} }, |
| 332 | .block_erase = erase_chip_block_jedec, |
| 333 | }, |
| 334 | }, |
| 335 | .write = write_jedec_1, |
| 336 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 337 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 338 | }, |
| 339 | |
| 340 | { |
| 341 | .vendor = "AMD", |
| 342 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 343 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 344 | .manufacture_id = AMD_ID, |
| 345 | .model_id = AMD_AM29LV001BT, |
| 346 | .total_size = 128, |
| 347 | .page_size = 64 * 1024, /* unused */ |
| 348 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 349 | .tested = TEST_UNTESTED, |
| 350 | .probe = probe_jedec, |
| 351 | .probe_timing = TIMING_ZERO, |
| 352 | .block_erasers = |
| 353 | { |
| 354 | { |
| 355 | .eraseblocks = { |
| 356 | {16 * 1024, 7}, |
| 357 | {4 * 1024, 2}, |
| 358 | {8 * 1024, 1}, |
| 359 | }, |
| 360 | .block_erase = erase_sector_jedec, |
| 361 | }, { |
| 362 | .eraseblocks = { {128 * 1024, 1} }, |
| 363 | .block_erase = erase_chip_block_jedec, |
| 364 | }, |
| 365 | }, |
| 366 | .write = write_jedec_1, |
| 367 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 368 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 369 | }, |
| 370 | |
| 371 | { |
| 372 | .vendor = "AMD", |
| 373 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 374 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 375 | .manufacture_id = AMD_ID, |
| 376 | .model_id = AMD_AM29LV002BB, |
| 377 | .total_size = 256, |
| 378 | .page_size = 64 * 1024, /* unused */ |
| 379 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 380 | .tested = TEST_UNTESTED, |
| 381 | .probe = probe_jedec, |
| 382 | .probe_timing = TIMING_ZERO, |
| 383 | .block_erasers = |
| 384 | { |
| 385 | { |
| 386 | .eraseblocks = { |
| 387 | {16 * 1024, 1}, |
| 388 | {8 * 1024, 2}, |
| 389 | {32 * 1024, 1}, |
| 390 | {64 * 1024, 3}, |
| 391 | }, |
| 392 | .block_erase = erase_sector_jedec, |
| 393 | }, { |
| 394 | .eraseblocks = { {256 * 1024, 1} }, |
| 395 | .block_erase = erase_chip_block_jedec, |
| 396 | }, |
| 397 | }, |
| 398 | .write = write_jedec_1, |
| 399 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 400 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 401 | }, |
| 402 | |
| 403 | { |
| 404 | .vendor = "AMD", |
| 405 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 406 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 407 | .manufacture_id = AMD_ID, |
| 408 | .model_id = AMD_AM29LV002BT, |
| 409 | .total_size = 256, |
| 410 | .page_size = 64 * 1024, /* unused */ |
| 411 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 412 | .tested = TEST_UNTESTED, |
| 413 | .probe = probe_jedec, |
| 414 | .probe_timing = TIMING_ZERO, |
| 415 | .block_erasers = |
| 416 | { |
| 417 | { |
| 418 | .eraseblocks = { |
| 419 | {64 * 1024, 3}, |
| 420 | {32 * 1024, 1}, |
| 421 | {8 * 1024, 2}, |
| 422 | {16 * 1024, 1}, |
| 423 | }, |
| 424 | .block_erase = erase_sector_jedec, |
| 425 | }, { |
| 426 | .eraseblocks = { {256 * 1024, 1} }, |
| 427 | .block_erase = erase_chip_block_jedec, |
| 428 | }, |
| 429 | }, |
| 430 | .write = write_jedec_1, |
| 431 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 432 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 433 | }, |
| 434 | |
| 435 | { |
| 436 | .vendor = "AMD", |
| 437 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 438 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 439 | .manufacture_id = AMD_ID, |
| 440 | .model_id = AMD_AM29LV004BB, |
| 441 | .total_size = 512, |
| 442 | .page_size = 64 * 1024, /* unused */ |
| 443 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 444 | .tested = TEST_UNTESTED, |
| 445 | .probe = probe_jedec, |
| 446 | .probe_timing = TIMING_ZERO, |
| 447 | .block_erasers = |
| 448 | { |
| 449 | { |
| 450 | .eraseblocks = { |
| 451 | {16 * 1024, 1}, |
| 452 | {8 * 1024, 2}, |
| 453 | {32 * 1024, 1}, |
| 454 | {64 * 1024, 7}, |
| 455 | }, |
| 456 | .block_erase = erase_sector_jedec, |
| 457 | }, { |
| 458 | .eraseblocks = { {512 * 1024, 1} }, |
| 459 | .block_erase = erase_chip_block_jedec, |
| 460 | }, |
| 461 | }, |
| 462 | .write = write_jedec_1, |
| 463 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 464 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 465 | }, |
| 466 | |
| 467 | { |
| 468 | .vendor = "AMD", |
| 469 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 470 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 471 | .manufacture_id = AMD_ID, |
| 472 | .model_id = AMD_AM29LV004BT, |
| 473 | .total_size = 512, |
| 474 | .page_size = 64 * 1024, /* unused */ |
| 475 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 476 | .tested = TEST_UNTESTED, |
| 477 | .probe = probe_jedec, |
| 478 | .probe_timing = TIMING_ZERO, |
| 479 | .block_erasers = |
| 480 | { |
| 481 | { |
| 482 | .eraseblocks = { |
| 483 | {64 * 1024, 7}, |
| 484 | {32 * 1024, 1}, |
| 485 | {8 * 1024, 2}, |
| 486 | {16 * 1024, 1}, |
| 487 | }, |
| 488 | .block_erase = erase_sector_jedec, |
| 489 | }, { |
| 490 | .eraseblocks = { {512 * 1024, 1} }, |
| 491 | .block_erase = erase_chip_block_jedec, |
| 492 | }, |
| 493 | }, |
| 494 | .write = write_jedec_1, |
| 495 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 496 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 497 | }, |
| 498 | |
| 499 | { |
| 500 | .vendor = "AMD", |
| 501 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 502 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 503 | .manufacture_id = AMD_ID, |
| 504 | .model_id = AMD_AM29LV008BB, |
| 505 | .total_size = 1024, |
| 506 | .page_size = 64 * 1024, /* unused */ |
| 507 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 508 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 509 | .probe = probe_jedec, |
| 510 | .probe_timing = TIMING_ZERO, |
| 511 | .block_erasers = |
| 512 | { |
| 513 | { |
| 514 | .eraseblocks = { |
| 515 | {16 * 1024, 1}, |
| 516 | {8 * 1024, 2}, |
| 517 | {32 * 1024, 1}, |
| 518 | {64 * 1024, 15}, |
| 519 | }, |
| 520 | .block_erase = erase_sector_jedec, |
| 521 | }, { |
| 522 | .eraseblocks = { {1024 * 1024, 1} }, |
| 523 | .block_erase = erase_chip_block_jedec, |
| 524 | }, |
| 525 | }, |
| 526 | .write = write_jedec_1, |
| 527 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 528 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 529 | }, |
| 530 | |
| 531 | { |
| 532 | .vendor = "AMD", |
| 533 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 534 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 535 | .manufacture_id = AMD_ID, |
| 536 | .model_id = AMD_AM29LV008BT, |
| 537 | .total_size = 1024, |
| 538 | .page_size = 64 * 1024, /* unused */ |
| 539 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 540 | .tested = TEST_UNTESTED, |
| 541 | .probe = probe_jedec, |
| 542 | .probe_timing = TIMING_ZERO, |
| 543 | .block_erasers = |
| 544 | { |
| 545 | { |
| 546 | .eraseblocks = { |
| 547 | {64 * 1024, 15}, |
| 548 | {32 * 1024, 1}, |
| 549 | {8 * 1024, 2}, |
| 550 | {16 * 1024, 1}, |
| 551 | }, |
| 552 | .block_erase = erase_sector_jedec, |
| 553 | }, { |
| 554 | .eraseblocks = { {1024 * 1024, 1} }, |
| 555 | .block_erase = erase_chip_block_jedec, |
| 556 | }, |
| 557 | }, |
| 558 | .write = write_jedec_1, |
| 559 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 560 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 561 | }, |
| 562 | |
| 563 | { |
| 564 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 565 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 566 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 567 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 568 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 569 | .total_size = 512, |
| 570 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 571 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 572 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 573 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 574 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 575 | .block_erasers = |
| 576 | { |
| 577 | { |
| 578 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 579 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 580 | }, { |
| 581 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 582 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 583 | }, |
| 584 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 585 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 586 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 587 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 588 | }, |
| 589 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 590 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 591 | .vendor = "AMD", |
| 592 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 593 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 594 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 595 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 596 | .total_size = 1024, |
| 597 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 598 | .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] | 599 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 600 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 601 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 602 | .block_erasers = |
| 603 | { |
| 604 | { |
| 605 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 606 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 607 | }, { |
| 608 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 609 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 610 | }, |
| 611 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 612 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 613 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 614 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 615 | }, |
| 616 | |
| 617 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 618 | .vendor = "AMIC", |
| 619 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 620 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 621 | .manufacture_id = AMIC_ID, |
| 622 | .model_id = AMIC_A25L05PT, |
| 623 | .total_size = 64, |
| 624 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 625 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 626 | .tested = TEST_UNTESTED, |
| 627 | .probe = probe_spi_rdid4, |
| 628 | .probe_timing = TIMING_ZERO, |
| 629 | .block_erasers = |
| 630 | { |
| 631 | { |
| 632 | .eraseblocks = { |
| 633 | {32 * 1024, 1}, |
| 634 | {16 * 1024, 1}, |
| 635 | {8 * 1024, 1}, |
| 636 | {4 * 1024, 2}, |
| 637 | }, |
| 638 | .block_erase = spi_block_erase_d8, |
| 639 | }, { |
| 640 | .eraseblocks = { {64 * 1024, 1} }, |
| 641 | .block_erase = spi_block_erase_c7, |
| 642 | } |
| 643 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 644 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 645 | .unlock = spi_disable_blockprotect, |
| 646 | .write = spi_chip_write_256, |
| 647 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 648 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 649 | }, |
| 650 | |
| 651 | { |
| 652 | .vendor = "AMIC", |
| 653 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 654 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 655 | .manufacture_id = AMIC_ID, |
| 656 | .model_id = AMIC_A25L05PU, |
| 657 | .total_size = 64, |
| 658 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 659 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 660 | .tested = TEST_UNTESTED, |
| 661 | .probe = probe_spi_rdid4, |
| 662 | .probe_timing = TIMING_ZERO, |
| 663 | .block_erasers = |
| 664 | { |
| 665 | { |
| 666 | .eraseblocks = { |
| 667 | {4 * 1024, 2}, |
| 668 | {8 * 1024, 1}, |
| 669 | {16 * 1024, 1}, |
| 670 | {32 * 1024, 1}, |
| 671 | }, |
| 672 | .block_erase = spi_block_erase_d8, |
| 673 | }, { |
| 674 | .eraseblocks = { {64 * 1024, 1} }, |
| 675 | .block_erase = spi_block_erase_c7, |
| 676 | } |
| 677 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 678 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 679 | .unlock = spi_disable_blockprotect, |
| 680 | .write = spi_chip_write_256, |
| 681 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 682 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 683 | }, |
| 684 | |
| 685 | { |
| 686 | .vendor = "AMIC", |
| 687 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 688 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 689 | .manufacture_id = AMIC_ID, |
| 690 | .model_id = AMIC_A25L10PT, |
| 691 | .total_size = 128, |
| 692 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 693 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 694 | .tested = TEST_UNTESTED, |
| 695 | .probe = probe_spi_rdid4, |
| 696 | .probe_timing = TIMING_ZERO, |
| 697 | .block_erasers = |
| 698 | { |
| 699 | { |
| 700 | .eraseblocks = { |
| 701 | {64 * 1024, 1}, |
| 702 | {32 * 1024, 1}, |
| 703 | {16 * 1024, 1}, |
| 704 | {8 * 1024, 1}, |
| 705 | {4 * 1024, 2}, |
| 706 | }, |
| 707 | .block_erase = spi_block_erase_d8, |
| 708 | }, { |
| 709 | .eraseblocks = { {128 * 1024, 1} }, |
| 710 | .block_erase = spi_block_erase_c7, |
| 711 | } |
| 712 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 713 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 714 | .unlock = spi_disable_blockprotect, |
| 715 | .write = spi_chip_write_256, |
| 716 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 717 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 718 | }, |
| 719 | |
| 720 | { |
| 721 | .vendor = "AMIC", |
| 722 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 723 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 724 | .manufacture_id = AMIC_ID, |
| 725 | .model_id = AMIC_A25L10PU, |
| 726 | .total_size = 128, |
| 727 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 728 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 729 | .tested = TEST_UNTESTED, |
| 730 | .probe = probe_spi_rdid4, |
| 731 | .probe_timing = TIMING_ZERO, |
| 732 | .block_erasers = |
| 733 | { |
| 734 | { |
| 735 | .eraseblocks = { |
| 736 | {4 * 1024, 2}, |
| 737 | {8 * 1024, 1}, |
| 738 | {16 * 1024, 1}, |
| 739 | {32 * 1024, 1}, |
| 740 | {64 * 1024, 1}, |
| 741 | }, |
| 742 | .block_erase = spi_block_erase_d8, |
| 743 | }, { |
| 744 | .eraseblocks = { {128 * 1024, 1} }, |
| 745 | .block_erase = spi_block_erase_c7, |
| 746 | } |
| 747 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 748 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 749 | .unlock = spi_disable_blockprotect, |
| 750 | .write = spi_chip_write_256, |
| 751 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 752 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 753 | }, |
| 754 | |
| 755 | { |
| 756 | .vendor = "AMIC", |
| 757 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 758 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 759 | .manufacture_id = AMIC_ID, |
| 760 | .model_id = AMIC_A25L20PT, |
| 761 | .total_size = 256, |
| 762 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 763 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 764 | .tested = TEST_UNTESTED, |
| 765 | .probe = probe_spi_rdid4, |
| 766 | .probe_timing = TIMING_ZERO, |
| 767 | .block_erasers = |
| 768 | { |
| 769 | { |
| 770 | .eraseblocks = { |
| 771 | {64 * 1024, 3}, |
| 772 | {32 * 1024, 1}, |
| 773 | {16 * 1024, 1}, |
| 774 | {8 * 1024, 1}, |
| 775 | {4 * 1024, 2}, |
| 776 | }, |
| 777 | .block_erase = spi_block_erase_d8, |
| 778 | }, { |
| 779 | .eraseblocks = { {256 * 1024, 1} }, |
| 780 | .block_erase = spi_block_erase_c7, |
| 781 | } |
| 782 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 783 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 784 | .unlock = spi_disable_blockprotect, |
| 785 | .write = spi_chip_write_256, |
| 786 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 787 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 788 | }, |
| 789 | |
| 790 | { |
| 791 | .vendor = "AMIC", |
| 792 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 793 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 794 | .manufacture_id = AMIC_ID, |
| 795 | .model_id = AMIC_A25L20PU, |
| 796 | .total_size = 256, |
| 797 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 798 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 799 | .tested = TEST_UNTESTED, |
| 800 | .probe = probe_spi_rdid4, |
| 801 | .probe_timing = TIMING_ZERO, |
| 802 | .block_erasers = |
| 803 | { |
| 804 | { |
| 805 | .eraseblocks = { |
| 806 | {4 * 1024, 2}, |
| 807 | {8 * 1024, 1}, |
| 808 | {16 * 1024, 1}, |
| 809 | {32 * 1024, 1}, |
| 810 | {64 * 1024, 3}, |
| 811 | }, |
| 812 | .block_erase = spi_block_erase_d8, |
| 813 | }, { |
| 814 | .eraseblocks = { {256 * 1024, 1} }, |
| 815 | .block_erase = spi_block_erase_c7, |
| 816 | } |
| 817 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 818 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 819 | .unlock = spi_disable_blockprotect, |
| 820 | .write = spi_chip_write_256, |
| 821 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 822 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 823 | }, |
| 824 | |
| 825 | /* The A25L40P{T,U} chips are distinguished by their |
| 826 | * erase block layouts, but without any distinction in RDID. |
| 827 | * This inexplicable quirk was verified by Rudolf Marek |
| 828 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 829 | */ |
| 830 | { |
| 831 | .vendor = "AMIC", |
| 832 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 833 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 834 | .manufacture_id = AMIC_ID, |
| 835 | .model_id = AMIC_A25L40PT, |
| 836 | .total_size = 512, |
| 837 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 838 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 839 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 840 | .probe = probe_spi_rdid4, |
| 841 | .probe_timing = TIMING_ZERO, |
| 842 | .block_erasers = |
| 843 | { |
| 844 | { |
| 845 | .eraseblocks = { |
| 846 | {64 * 1024, 7}, |
| 847 | {32 * 1024, 1}, |
| 848 | {16 * 1024, 1}, |
| 849 | {8 * 1024, 1}, |
| 850 | {4 * 1024, 2}, |
| 851 | }, |
| 852 | .block_erase = spi_block_erase_d8, |
| 853 | }, { |
| 854 | .eraseblocks = { {512 * 1024, 1} }, |
| 855 | .block_erase = spi_block_erase_c7, |
| 856 | } |
| 857 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 858 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 859 | .unlock = spi_disable_blockprotect, |
| 860 | .write = spi_chip_write_256, |
| 861 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 862 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 863 | }, |
| 864 | |
| 865 | { |
| 866 | .vendor = "AMIC", |
| 867 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 868 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 869 | .manufacture_id = AMIC_ID, |
| 870 | .model_id = AMIC_A25L40PU, |
| 871 | .total_size = 512, |
| 872 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 873 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 6f08835 | 2018-09-30 19:59:42 +0200 | [diff] [blame] | 874 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 875 | .probe = probe_spi_rdid4, |
| 876 | .probe_timing = TIMING_ZERO, |
| 877 | .block_erasers = |
| 878 | { |
| 879 | { |
| 880 | .eraseblocks = { |
| 881 | {4 * 1024, 2}, |
| 882 | {8 * 1024, 1}, |
| 883 | {16 * 1024, 1}, |
| 884 | {32 * 1024, 1}, |
| 885 | {64 * 1024, 7}, |
| 886 | }, |
| 887 | .block_erase = spi_block_erase_d8, |
| 888 | }, { |
| 889 | .eraseblocks = { {512 * 1024, 1} }, |
| 890 | .block_erase = spi_block_erase_c7, |
| 891 | } |
| 892 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 893 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 894 | .unlock = spi_disable_blockprotect, |
| 895 | .write = spi_chip_write_256, |
| 896 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 897 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 898 | }, |
| 899 | |
| 900 | { |
| 901 | .vendor = "AMIC", |
| 902 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 903 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 904 | .manufacture_id = AMIC_ID, |
| 905 | .model_id = AMIC_A25L80P, |
| 906 | .total_size = 1024, |
| 907 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 908 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 909 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 910 | .probe = probe_spi_rdid4, |
| 911 | .probe_timing = TIMING_ZERO, |
| 912 | .block_erasers = |
| 913 | { |
| 914 | { |
| 915 | .eraseblocks = { |
| 916 | {4 * 1024, 2}, |
| 917 | {8 * 1024, 1}, |
| 918 | {16 * 1024, 1}, |
| 919 | {32 * 1024, 1}, |
| 920 | {64 * 1024, 15}, |
| 921 | }, |
| 922 | .block_erase = spi_block_erase_d8, |
| 923 | }, { |
| 924 | .eraseblocks = { {1024 * 1024, 1} }, |
| 925 | .block_erase = spi_block_erase_c7, |
| 926 | } |
| 927 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 928 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 929 | .unlock = spi_disable_blockprotect, |
| 930 | .write = spi_chip_write_256, |
| 931 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 932 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 933 | }, |
| 934 | |
| 935 | { |
| 936 | .vendor = "AMIC", |
| 937 | .name = "A25L16PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 938 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 939 | .manufacture_id = AMIC_ID, |
| 940 | .model_id = AMIC_A25L16PT, |
| 941 | .total_size = 2048, |
| 942 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 943 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 944 | .tested = TEST_UNTESTED, |
| 945 | .probe = probe_spi_rdid4, |
| 946 | .probe_timing = TIMING_ZERO, |
| 947 | .block_erasers = |
| 948 | { |
| 949 | { |
| 950 | .eraseblocks = { |
| 951 | {64 * 1024, 31}, |
| 952 | {32 * 1024, 1}, |
| 953 | {16 * 1024, 1}, |
| 954 | {8 * 1024, 1}, |
| 955 | {4 * 1024, 2}, |
| 956 | }, |
| 957 | .block_erase = spi_block_erase_d8, |
| 958 | }, { |
| 959 | .eraseblocks = { {2048 * 1024, 1} }, |
| 960 | .block_erase = spi_block_erase_60, |
| 961 | }, { |
| 962 | .eraseblocks = { {2048 * 1024, 1} }, |
| 963 | .block_erase = spi_block_erase_c7, |
| 964 | } |
| 965 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 966 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 967 | .unlock = spi_disable_blockprotect, |
| 968 | .write = spi_chip_write_256, |
| 969 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 970 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 971 | }, |
| 972 | |
| 973 | { |
| 974 | .vendor = "AMIC", |
| 975 | .name = "A25L16PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 976 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 977 | .manufacture_id = AMIC_ID, |
| 978 | .model_id = AMIC_A25L16PU, |
| 979 | .total_size = 2048, |
| 980 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 981 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 982 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 983 | .probe = probe_spi_rdid4, |
| 984 | .probe_timing = TIMING_ZERO, |
| 985 | .block_erasers = |
| 986 | { |
| 987 | { |
| 988 | .eraseblocks = { |
| 989 | {4 * 1024, 2}, |
| 990 | {8 * 1024, 1}, |
| 991 | {16 * 1024, 1}, |
| 992 | {32 * 1024, 1}, |
| 993 | {64 * 1024, 31}, |
| 994 | }, |
| 995 | .block_erase = spi_block_erase_d8, |
| 996 | }, { |
| 997 | .eraseblocks = { {2048 * 1024, 1} }, |
| 998 | .block_erase = spi_block_erase_60, |
| 999 | }, { |
| 1000 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1001 | .block_erase = spi_block_erase_c7, |
| 1002 | } |
| 1003 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1004 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1005 | .unlock = spi_disable_blockprotect, |
| 1006 | .write = spi_chip_write_256, |
| 1007 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1008 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1009 | }, |
| 1010 | |
| 1011 | { |
| 1012 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1013 | .name = "A25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1014 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1015 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1016 | .model_id = AMIC_A25L512, |
| 1017 | .total_size = 64, |
| 1018 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1019 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1020 | .tested = TEST_UNTESTED, |
| 1021 | .probe = probe_spi_rdid, |
| 1022 | .probe_timing = TIMING_ZERO, |
| 1023 | .block_erasers = |
| 1024 | { |
| 1025 | { |
| 1026 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 1027 | .block_erase = spi_block_erase_20, |
| 1028 | }, { |
| 1029 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1030 | .block_erase = spi_block_erase_d8, |
| 1031 | }, { |
| 1032 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1033 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1034 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1035 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1036 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1037 | .unlock = spi_disable_blockprotect, |
| 1038 | .write = spi_chip_write_256, |
| 1039 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1040 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1041 | }, |
| 1042 | |
| 1043 | { |
| 1044 | .vendor = "AMIC", |
| 1045 | .name = "A25L010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1046 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1047 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1048 | .model_id = AMIC_A25L010, |
| 1049 | .total_size = 128, |
| 1050 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1051 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1052 | .tested = TEST_UNTESTED, |
| 1053 | .probe = probe_spi_rdid, |
| 1054 | .probe_timing = TIMING_ZERO, |
| 1055 | .block_erasers = |
| 1056 | { |
| 1057 | { |
| 1058 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 1059 | .block_erase = spi_block_erase_20, |
| 1060 | }, { |
| 1061 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 1062 | .block_erase = spi_block_erase_d8, |
| 1063 | }, { |
| 1064 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 1065 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1066 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1067 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1068 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1069 | .unlock = spi_disable_blockprotect, |
| 1070 | .write = spi_chip_write_256, |
| 1071 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1072 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1073 | }, |
| 1074 | |
| 1075 | { |
| 1076 | .vendor = "AMIC", |
| 1077 | .name = "A25L020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1078 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1079 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1080 | .model_id = AMIC_A25L020, |
| 1081 | .total_size = 256, |
| 1082 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1083 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1084 | .tested = TEST_UNTESTED, |
| 1085 | .probe = probe_spi_rdid, |
| 1086 | .probe_timing = TIMING_ZERO, |
| 1087 | .block_erasers = |
| 1088 | { |
| 1089 | { |
| 1090 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 1091 | .block_erase = spi_block_erase_20, |
| 1092 | }, { |
| 1093 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 1094 | .block_erase = spi_block_erase_d8, |
| 1095 | }, { |
| 1096 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 1097 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1098 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1099 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1100 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1101 | .unlock = spi_disable_blockprotect, |
| 1102 | .write = spi_chip_write_256, |
| 1103 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1104 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1105 | }, |
| 1106 | |
| 1107 | { |
| 1108 | .vendor = "AMIC", |
| 1109 | .name = "A25L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1110 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1111 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1112 | .model_id = AMIC_A25L040, |
| 1113 | .total_size = 512, |
| 1114 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1115 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1116 | .tested = TEST_UNTESTED, |
| 1117 | .probe = probe_spi_rdid, |
| 1118 | .probe_timing = TIMING_ZERO, |
| 1119 | .block_erasers = |
| 1120 | { |
| 1121 | { |
| 1122 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1123 | .block_erase = spi_block_erase_20, |
| 1124 | }, { |
| 1125 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1126 | .block_erase = spi_block_erase_d8, |
| 1127 | }, { |
| 1128 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1129 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1130 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1131 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1132 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1133 | .unlock = spi_disable_blockprotect, |
| 1134 | .write = spi_chip_write_256, |
| 1135 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1136 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1137 | }, |
| 1138 | |
| 1139 | { |
| 1140 | .vendor = "AMIC", |
| 1141 | .name = "A25L080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1142 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1143 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1144 | .model_id = AMIC_A25L080, |
| 1145 | .total_size = 1024, |
| 1146 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1147 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1148 | .tested = TEST_UNTESTED, |
| 1149 | .probe = probe_spi_rdid, |
| 1150 | .probe_timing = TIMING_ZERO, |
| 1151 | .block_erasers = |
| 1152 | { |
| 1153 | { |
| 1154 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1155 | .block_erase = spi_block_erase_20, |
| 1156 | }, { |
| 1157 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1158 | .block_erase = spi_block_erase_d8, |
| 1159 | }, { |
| 1160 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1161 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1162 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1163 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1164 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1165 | .unlock = spi_disable_blockprotect, |
| 1166 | .write = spi_chip_write_256, |
| 1167 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1168 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1169 | }, |
| 1170 | |
| 1171 | { |
| 1172 | .vendor = "AMIC", |
| 1173 | .name = "A25L016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1174 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1175 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1176 | .model_id = AMIC_A25L016, |
| 1177 | .total_size = 2048, |
| 1178 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1179 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1180 | .tested = TEST_UNTESTED, |
| 1181 | .probe = probe_spi_rdid, |
| 1182 | .probe_timing = TIMING_ZERO, |
| 1183 | .block_erasers = |
| 1184 | { |
| 1185 | { |
| 1186 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1187 | .block_erase = spi_block_erase_20, |
| 1188 | }, { |
| 1189 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1190 | .block_erase = spi_block_erase_d8, |
| 1191 | }, { |
| 1192 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1193 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1194 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1195 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1196 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1197 | .unlock = spi_disable_blockprotect, |
| 1198 | .write = spi_chip_write_256, |
| 1199 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1200 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1201 | }, |
| 1202 | |
| 1203 | { |
| 1204 | .vendor = "AMIC", |
| 1205 | .name = "A25L032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1206 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1207 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1208 | .model_id = AMIC_A25L032, |
| 1209 | .total_size = 4096, |
| 1210 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1211 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1212 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1213 | .tested = TEST_OK_PREW, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1214 | .probe = probe_spi_rdid, |
| 1215 | .probe_timing = TIMING_ZERO, |
| 1216 | .block_erasers = |
| 1217 | { |
| 1218 | { |
| 1219 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1220 | .block_erase = spi_block_erase_20, |
| 1221 | }, { |
| 1222 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1223 | .block_erase = spi_block_erase_52, |
| 1224 | }, { |
| 1225 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1226 | .block_erase = spi_block_erase_d8, |
| 1227 | }, { |
| 1228 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1229 | .block_erase = spi_block_erase_60, |
| 1230 | }, { |
| 1231 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1232 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1233 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1234 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1235 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1236 | .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] | 1237 | .write = spi_chip_write_256, |
| 1238 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1239 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1240 | }, |
| 1241 | |
| 1242 | { |
| 1243 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1244 | .name = "A25LQ16", |
| 1245 | .bustype = BUS_SPI, |
| 1246 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1247 | .model_id = AMIC_A25LQ16, |
| 1248 | .total_size = 2048, |
| 1249 | .page_size = 256, |
| 1250 | /* supports SFDP */ |
| 1251 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1252 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1253 | .tested = TEST_UNTESTED, |
| 1254 | .probe = probe_spi_rdid, |
| 1255 | .probe_timing = TIMING_ZERO, |
| 1256 | .block_erasers = { |
| 1257 | { |
| 1258 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1259 | .block_erase = spi_block_erase_20, |
| 1260 | }, { |
| 1261 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1262 | .block_erase = spi_block_erase_52, |
| 1263 | }, { |
| 1264 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1265 | .block_erase = spi_block_erase_d8, |
| 1266 | }, { |
| 1267 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1268 | .block_erase = spi_block_erase_60, |
| 1269 | }, { |
| 1270 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1271 | .block_erase = spi_block_erase_c7, |
| 1272 | } |
| 1273 | }, |
| 1274 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1275 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1276 | .write = spi_chip_write_256, |
| 1277 | .read = spi_chip_read, |
| 1278 | .voltage = {2700, 3600}, |
| 1279 | }, |
| 1280 | |
| 1281 | { |
| 1282 | .vendor = "AMIC", |
| 1283 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1284 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1285 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1286 | .model_id = AMIC_A25LQ032, |
| 1287 | .total_size = 4096, |
| 1288 | .page_size = 256, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1289 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1290 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1291 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1292 | .tested = TEST_UNTESTED, |
| 1293 | .probe = probe_spi_rdid, |
| 1294 | .probe_timing = TIMING_ZERO, |
| 1295 | .block_erasers = |
| 1296 | { |
| 1297 | { |
| 1298 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1299 | .block_erase = spi_block_erase_20, |
| 1300 | }, { |
| 1301 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1302 | .block_erase = spi_block_erase_52, |
| 1303 | }, { |
| 1304 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1305 | .block_erase = spi_block_erase_d8, |
| 1306 | }, { |
| 1307 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1308 | .block_erase = spi_block_erase_60, |
| 1309 | }, { |
| 1310 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1311 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1312 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1313 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1314 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1315 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1316 | .write = spi_chip_write_256, |
| 1317 | .read = spi_chip_read, |
| 1318 | .voltage = {2700, 3600}, |
| 1319 | }, |
| 1320 | |
| 1321 | { |
| 1322 | .vendor = "AMIC", |
| 1323 | .name = "A25LQ64", |
| 1324 | .bustype = BUS_SPI, |
| 1325 | .manufacture_id = AMIC_ID_NOPREFIX, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 1326 | .model_id = AMIC_A25LQ64, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1327 | .total_size = 8192, |
| 1328 | .page_size = 256, |
| 1329 | /* supports SFDP */ |
| 1330 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1331 | /* QPI enable 0x35, disable 0xF5 */ |
| 1332 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1333 | .tested = TEST_UNTESTED, |
| 1334 | .probe = probe_spi_rdid, |
| 1335 | .probe_timing = TIMING_ZERO, |
| 1336 | .block_erasers = |
| 1337 | { |
| 1338 | { |
| 1339 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1340 | .block_erase = spi_block_erase_20, |
| 1341 | }, { |
| 1342 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1343 | .block_erase = spi_block_erase_52, |
| 1344 | }, { |
| 1345 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1346 | .block_erase = spi_block_erase_d8, |
| 1347 | }, { |
| 1348 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1349 | .block_erase = spi_block_erase_60, |
| 1350 | }, { |
| 1351 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1352 | .block_erase = spi_block_erase_c7, |
| 1353 | } |
| 1354 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1355 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1356 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1357 | .write = spi_chip_write_256, |
| 1358 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1359 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1360 | }, |
| 1361 | |
| 1362 | { |
| 1363 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1364 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1365 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1366 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1367 | .model_id = AMIC_A29002B, |
| 1368 | .total_size = 256, |
| 1369 | .page_size = 64 * 1024, |
| 1370 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1371 | .tested = TEST_UNTESTED, |
| 1372 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1373 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1374 | .block_erasers = |
| 1375 | { |
| 1376 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1377 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1378 | {16 * 1024, 1}, |
| 1379 | {8 * 1024, 2}, |
| 1380 | {32 * 1024, 1}, |
| 1381 | {64 * 1024, 3}, |
| 1382 | }, |
| 1383 | .block_erase = erase_sector_jedec, |
| 1384 | }, { |
| 1385 | .eraseblocks = { {256 * 1024, 1} }, |
| 1386 | .block_erase = erase_chip_block_jedec, |
| 1387 | }, |
| 1388 | }, |
| 1389 | .write = write_jedec_1, |
| 1390 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1391 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1392 | }, |
| 1393 | |
| 1394 | { |
| 1395 | .vendor = "AMIC", |
| 1396 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1397 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1398 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1399 | .model_id = AMIC_A29002T, |
| 1400 | .total_size = 256, |
| 1401 | .page_size = 64 * 1024, |
| 1402 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1403 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1404 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1405 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1406 | .block_erasers = |
| 1407 | { |
| 1408 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1409 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1410 | {64 * 1024, 3}, |
| 1411 | {32 * 1024, 1}, |
| 1412 | {8 * 1024, 2}, |
| 1413 | {16 * 1024, 1}, |
| 1414 | }, |
| 1415 | .block_erase = erase_sector_jedec, |
| 1416 | }, { |
| 1417 | .eraseblocks = { {256 * 1024, 1} }, |
| 1418 | .block_erase = erase_chip_block_jedec, |
| 1419 | }, |
| 1420 | }, |
| 1421 | .write = write_jedec_1, |
| 1422 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1423 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1424 | }, |
| 1425 | |
| 1426 | { |
| 1427 | .vendor = "AMIC", |
| 1428 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1429 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1430 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1431 | .model_id = AMIC_A29040B, |
| 1432 | .total_size = 512, |
| 1433 | .page_size = 64 * 1024, |
| 1434 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1435 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1436 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1437 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1438 | .block_erasers = |
| 1439 | { |
| 1440 | { |
| 1441 | .eraseblocks = { {64 * 1024, 8} }, |
| 1442 | .block_erase = erase_sector_jedec, |
| 1443 | }, { |
| 1444 | .eraseblocks = { {512 * 1024, 1} }, |
| 1445 | .block_erase = erase_chip_block_jedec, |
| 1446 | }, |
| 1447 | }, |
| 1448 | .write = write_jedec_1, |
| 1449 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1450 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1451 | }, |
| 1452 | |
| 1453 | { |
| 1454 | .vendor = "AMIC", |
| 1455 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1456 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1457 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1458 | .model_id = AMIC_A49LF040A, |
| 1459 | .total_size = 512, |
| 1460 | .page_size = 64 * 1024, |
| 1461 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1462 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1463 | .probe = probe_jedec, |
| 1464 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1465 | .block_erasers = |
| 1466 | { |
| 1467 | { |
| 1468 | .eraseblocks = { {64 * 1024, 8} }, |
| 1469 | .block_erase = erase_block_jedec, |
| 1470 | }, { |
| 1471 | .eraseblocks = { {512 * 1024, 1} }, |
| 1472 | .block_erase = erase_chip_block_jedec, |
| 1473 | } |
| 1474 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1475 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1476 | .write = write_jedec_1, |
| 1477 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1478 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1479 | }, |
| 1480 | |
| 1481 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1482 | .vendor = "Atmel", |
| 1483 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1484 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1485 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1486 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1487 | .total_size = 256, |
| 1488 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1489 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1490 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1491 | .tested = TEST_UNTESTED, |
| 1492 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1493 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1494 | .block_erasers = |
| 1495 | { |
| 1496 | { |
| 1497 | .eraseblocks = { {4 * 1024, 64} }, |
| 1498 | .block_erase = spi_block_erase_20, |
| 1499 | }, { |
| 1500 | .eraseblocks = { {32 * 1024, 8} }, |
| 1501 | .block_erase = spi_block_erase_52, |
| 1502 | }, { |
| 1503 | .eraseblocks = { {64 * 1024, 4} }, |
| 1504 | .block_erase = spi_block_erase_d8, |
| 1505 | }, { |
| 1506 | .eraseblocks = { {256 * 1024, 1} }, |
| 1507 | .block_erase = spi_block_erase_60, |
| 1508 | }, { |
| 1509 | .eraseblocks = { {256 * 1024, 1} }, |
| 1510 | .block_erase = spi_block_erase_c7, |
| 1511 | } |
| 1512 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1513 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1514 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1515 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1516 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1517 | .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] | 1518 | }, |
| 1519 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1520 | { |
| 1521 | .vendor = "Atmel", |
Steffen Mauch | 0b59b0d | 2018-06-02 23:46:03 +0200 | [diff] [blame] | 1522 | .name = "AT25DF021A", |
| 1523 | .bustype = BUS_SPI, |
| 1524 | .manufacture_id = ATMEL_ID, |
| 1525 | .model_id = ATMEL_AT25DF021A, |
| 1526 | .total_size = 256, |
| 1527 | .page_size = 256, |
| 1528 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1529 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1530 | .tested = TEST_OK_PREW, |
| 1531 | .probe = probe_spi_rdid, |
| 1532 | .probe_timing = TIMING_ZERO, |
| 1533 | .block_erasers = |
| 1534 | { |
| 1535 | { |
| 1536 | .eraseblocks = { {4 * 1024, 64} }, |
| 1537 | .block_erase = spi_block_erase_20, |
| 1538 | }, { |
| 1539 | .eraseblocks = { {32 * 1024, 8} }, |
| 1540 | .block_erase = spi_block_erase_52, |
| 1541 | }, { |
| 1542 | .eraseblocks = { {64 * 1024, 4} }, |
| 1543 | .block_erase = spi_block_erase_d8, |
| 1544 | }, { |
| 1545 | .eraseblocks = { {256 * 1024, 1} }, |
| 1546 | .block_erase = spi_block_erase_60, |
| 1547 | }, { |
| 1548 | .eraseblocks = { {256 * 1024, 1} }, |
| 1549 | .block_erase = spi_block_erase_c7, |
| 1550 | } |
| 1551 | }, |
| 1552 | .printlock = spi_prettyprint_status_register_at25df, |
| 1553 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
| 1554 | .write = spi_chip_write_256, |
| 1555 | .read = spi_chip_read, |
| 1556 | .voltage = {1650, 3600}, |
| 1557 | }, |
| 1558 | |
| 1559 | { |
| 1560 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1561 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1562 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1563 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1564 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1565 | .total_size = 512, |
| 1566 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1567 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1568 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1569 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1570 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1571 | .block_erasers = |
| 1572 | { |
| 1573 | { |
| 1574 | .eraseblocks = { {4 * 1024, 128} }, |
| 1575 | .block_erase = spi_block_erase_20, |
| 1576 | }, { |
| 1577 | .eraseblocks = { {32 * 1024, 16} }, |
| 1578 | .block_erase = spi_block_erase_52, |
| 1579 | }, { |
| 1580 | .eraseblocks = { {64 * 1024, 8} }, |
| 1581 | .block_erase = spi_block_erase_d8, |
| 1582 | }, { |
| 1583 | .eraseblocks = { {512 * 1024, 1} }, |
| 1584 | .block_erase = spi_block_erase_60, |
| 1585 | }, { |
| 1586 | .eraseblocks = { {512 * 1024, 1} }, |
| 1587 | .block_erase = spi_block_erase_c7, |
| 1588 | } |
| 1589 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1590 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1591 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1592 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1593 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1594 | .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] | 1595 | }, |
| 1596 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1597 | { |
| 1598 | .vendor = "Atmel", |
| 1599 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1600 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1601 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1602 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1603 | .total_size = 1024, |
| 1604 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1605 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1606 | .tested = TEST_UNTESTED, |
| 1607 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1608 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1609 | .block_erasers = |
| 1610 | { |
| 1611 | { |
| 1612 | .eraseblocks = { {4 * 1024, 256} }, |
| 1613 | .block_erase = spi_block_erase_20, |
| 1614 | }, { |
| 1615 | .eraseblocks = { {32 * 1024, 32} }, |
| 1616 | .block_erase = spi_block_erase_52, |
| 1617 | }, { |
| 1618 | .eraseblocks = { {64 * 1024, 16} }, |
| 1619 | .block_erase = spi_block_erase_d8, |
| 1620 | }, { |
| 1621 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1622 | .block_erase = spi_block_erase_60, |
| 1623 | }, { |
| 1624 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1625 | .block_erase = spi_block_erase_c7, |
| 1626 | } |
| 1627 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1628 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1629 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1630 | .write = spi_chip_write_256, |
| 1631 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1632 | .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] | 1633 | }, |
| 1634 | |
| 1635 | { |
| 1636 | .vendor = "Atmel", |
| 1637 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1638 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1639 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1640 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1641 | .total_size = 1024, |
| 1642 | .page_size = 256, |
| 1643 | .feature_bits = FEATURE_WRSR_WREN, |
| 1644 | .tested = TEST_UNTESTED, |
| 1645 | .probe = probe_spi_rdid, |
| 1646 | .probe_timing = TIMING_ZERO, |
| 1647 | .block_erasers = |
| 1648 | { |
| 1649 | { |
| 1650 | .eraseblocks = { {4 * 1024, 256} }, |
| 1651 | .block_erase = spi_block_erase_20, |
| 1652 | }, { |
| 1653 | .eraseblocks = { {32 * 1024, 32} }, |
| 1654 | .block_erase = spi_block_erase_52, |
| 1655 | }, { |
| 1656 | .eraseblocks = { {64 * 1024, 16} }, |
| 1657 | .block_erase = spi_block_erase_d8, |
| 1658 | }, { |
| 1659 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1660 | .block_erase = spi_block_erase_60, |
| 1661 | }, { |
| 1662 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1663 | .block_erase = spi_block_erase_c7, |
| 1664 | } |
| 1665 | }, |
| 1666 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1667 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1668 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1669 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1670 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1671 | }, |
| 1672 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1673 | { |
| 1674 | .vendor = "Atmel", |
| 1675 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1676 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1677 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1678 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1679 | .total_size = 2048, |
| 1680 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1681 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 8b5b962 | 2018-09-30 19:13:15 +0200 | [diff] [blame] | 1682 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1683 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1684 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1685 | .block_erasers = |
| 1686 | { |
| 1687 | { |
| 1688 | .eraseblocks = { {4 * 1024, 512} }, |
| 1689 | .block_erase = spi_block_erase_20, |
| 1690 | }, { |
| 1691 | .eraseblocks = { {32 * 1024, 64} }, |
| 1692 | .block_erase = spi_block_erase_52, |
| 1693 | }, { |
| 1694 | .eraseblocks = { {64 * 1024, 32} }, |
| 1695 | .block_erase = spi_block_erase_d8, |
| 1696 | }, { |
| 1697 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1698 | .block_erase = spi_block_erase_60, |
| 1699 | }, { |
| 1700 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1701 | .block_erase = spi_block_erase_c7, |
| 1702 | } |
| 1703 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1704 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1705 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1706 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1707 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1708 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1709 | }, |
| 1710 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1711 | { |
| 1712 | .vendor = "Atmel", |
| 1713 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1714 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1715 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1716 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1717 | .total_size = 4096, |
| 1718 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1719 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1720 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1721 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1722 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1723 | .block_erasers = |
| 1724 | { |
| 1725 | { |
| 1726 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1727 | .block_erase = spi_block_erase_20, |
| 1728 | }, { |
| 1729 | .eraseblocks = { {32 * 1024, 128} }, |
| 1730 | .block_erase = spi_block_erase_52, |
| 1731 | }, { |
| 1732 | .eraseblocks = { {64 * 1024, 64} }, |
| 1733 | .block_erase = spi_block_erase_d8, |
| 1734 | }, { |
| 1735 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1736 | .block_erase = spi_block_erase_60, |
| 1737 | }, { |
| 1738 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1739 | .block_erase = spi_block_erase_c7, |
| 1740 | } |
| 1741 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1742 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1743 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1744 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1745 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1746 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1747 | }, |
| 1748 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1749 | { |
| 1750 | .vendor = "Atmel", |
| 1751 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1752 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1753 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1754 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1755 | .total_size = 4096, |
| 1756 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1757 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1758 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1759 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1760 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1761 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1762 | .block_erasers = |
| 1763 | { |
| 1764 | { |
| 1765 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1766 | .block_erase = spi_block_erase_20, |
| 1767 | }, { |
| 1768 | .eraseblocks = { {32 * 1024, 128} }, |
| 1769 | .block_erase = spi_block_erase_52, |
| 1770 | }, { |
| 1771 | .eraseblocks = { {64 * 1024, 64} }, |
| 1772 | .block_erase = spi_block_erase_d8, |
| 1773 | }, { |
| 1774 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1775 | .block_erase = spi_block_erase_60, |
| 1776 | }, { |
| 1777 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1778 | .block_erase = spi_block_erase_c7, |
| 1779 | } |
| 1780 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1781 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1782 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1783 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1784 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1785 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1786 | }, |
| 1787 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1788 | { |
| 1789 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1790 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1791 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1792 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1793 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1794 | .total_size = 8192, |
| 1795 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1796 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1797 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1798 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1799 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1800 | .block_erasers = |
| 1801 | { |
| 1802 | { |
| 1803 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1804 | .block_erase = spi_block_erase_20, |
| 1805 | }, { |
| 1806 | .eraseblocks = { {32 * 1024, 256} }, |
| 1807 | .block_erase = spi_block_erase_52, |
| 1808 | }, { |
| 1809 | .eraseblocks = { {64 * 1024, 128} }, |
| 1810 | .block_erase = spi_block_erase_d8, |
| 1811 | }, { |
| 1812 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1813 | .block_erase = spi_block_erase_60, |
| 1814 | }, { |
| 1815 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1816 | .block_erase = spi_block_erase_c7, |
| 1817 | } |
| 1818 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1819 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1820 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1821 | .write = spi_chip_write_256, |
| 1822 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1823 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1824 | }, |
| 1825 | |
| 1826 | { |
| 1827 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1828 | .name = "AT25DL081", |
| 1829 | .bustype = BUS_SPI, |
| 1830 | .manufacture_id = ATMEL_ID, |
| 1831 | .model_id = ATMEL_AT25DF081, |
| 1832 | .total_size = 1024, |
| 1833 | .page_size = 256, |
| 1834 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1835 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1836 | .tested = TEST_UNTESTED, |
| 1837 | .probe = probe_spi_rdid, |
| 1838 | .probe_timing = TIMING_ZERO, |
| 1839 | .block_erasers = |
| 1840 | { |
| 1841 | { |
| 1842 | .eraseblocks = { {4 * 1024, 256} }, |
| 1843 | .block_erase = spi_block_erase_20, |
| 1844 | }, { |
| 1845 | .eraseblocks = { {32 * 1024, 32} }, |
| 1846 | .block_erase = spi_block_erase_52, |
| 1847 | }, { |
| 1848 | .eraseblocks = { {64 * 1024, 16} }, |
| 1849 | .block_erase = spi_block_erase_d8, |
| 1850 | }, { |
| 1851 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1852 | .block_erase = spi_block_erase_60, |
| 1853 | }, { |
| 1854 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1855 | .block_erase = spi_block_erase_c7, |
| 1856 | } |
| 1857 | }, |
| 1858 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1859 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1860 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1861 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1862 | .voltage = {1650, 1950}, |
| 1863 | }, |
| 1864 | |
| 1865 | { |
| 1866 | .vendor = "Atmel", |
| 1867 | .name = "AT25DL161", |
| 1868 | .bustype = BUS_SPI, |
| 1869 | .manufacture_id = ATMEL_ID, |
| 1870 | .model_id = ATMEL_AT25DL161, |
| 1871 | .total_size = 2048, |
| 1872 | .page_size = 256, |
| 1873 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1874 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1875 | .tested = TEST_UNTESTED, |
| 1876 | .probe = probe_spi_rdid, |
| 1877 | .probe_timing = TIMING_ZERO, |
| 1878 | .block_erasers = |
| 1879 | { |
| 1880 | { |
| 1881 | .eraseblocks = { {4 * 1024, 512} }, |
| 1882 | .block_erase = spi_block_erase_20, |
| 1883 | }, { |
| 1884 | .eraseblocks = { {32 * 1024, 64} }, |
| 1885 | .block_erase = spi_block_erase_52, |
| 1886 | }, { |
| 1887 | .eraseblocks = { {64 * 1024, 32} }, |
| 1888 | .block_erase = spi_block_erase_d8, |
| 1889 | }, { |
| 1890 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1891 | .block_erase = spi_block_erase_60, |
| 1892 | }, { |
| 1893 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1894 | .block_erase = spi_block_erase_c7, |
| 1895 | } |
| 1896 | }, |
| 1897 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1898 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1899 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1900 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1901 | .voltage = {1650, 1950}, |
| 1902 | }, |
| 1903 | |
| 1904 | { |
| 1905 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1906 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1907 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1908 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1909 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1910 | .total_size = 2048, |
| 1911 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1912 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1913 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1914 | .tested = TEST_UNTESTED, |
| 1915 | .probe = probe_spi_rdid, |
| 1916 | .probe_timing = TIMING_ZERO, |
| 1917 | .block_erasers = |
| 1918 | { |
| 1919 | { |
| 1920 | .eraseblocks = { {4 * 1024, 512} }, |
| 1921 | .block_erase = spi_block_erase_20, |
| 1922 | }, { |
| 1923 | .eraseblocks = { {32 * 1024, 64} }, |
| 1924 | .block_erase = spi_block_erase_52, |
| 1925 | }, { |
| 1926 | .eraseblocks = { {64 * 1024, 32} }, |
| 1927 | .block_erase = spi_block_erase_d8, |
| 1928 | }, { |
| 1929 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1930 | .block_erase = spi_block_erase_60, |
| 1931 | }, { |
| 1932 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1933 | .block_erase = spi_block_erase_c7, |
| 1934 | } |
| 1935 | }, |
| 1936 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1937 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1938 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1939 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1940 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1941 | }, |
| 1942 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1943 | { |
| 1944 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1945 | .name = "AT25F512", |
| 1946 | .bustype = BUS_SPI, |
| 1947 | .manufacture_id = ATMEL_ID, |
| 1948 | .model_id = ATMEL_AT25F512, |
| 1949 | .total_size = 64, |
| 1950 | .page_size = 256, |
| 1951 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1952 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1953 | .probe = probe_spi_at25f, |
| 1954 | .probe_timing = TIMING_ZERO, |
| 1955 | .block_erasers = |
| 1956 | { |
| 1957 | { |
| 1958 | .eraseblocks = { {32 * 1024, 2} }, |
| 1959 | .block_erase = spi_block_erase_52, |
| 1960 | }, { |
| 1961 | .eraseblocks = { {64 * 1024, 1} }, |
| 1962 | .block_erase = spi_block_erase_62, |
| 1963 | } |
| 1964 | }, |
| 1965 | .printlock = spi_prettyprint_status_register_at25f, |
| 1966 | .unlock = spi_disable_blockprotect_at25f, |
| 1967 | .write = spi_chip_write_256, |
| 1968 | .read = spi_chip_read, |
| 1969 | .voltage = {2700, 3600}, |
| 1970 | }, |
| 1971 | |
| 1972 | { |
| 1973 | .vendor = "Atmel", |
| 1974 | .name = "AT25F512A", |
| 1975 | .bustype = BUS_SPI, |
| 1976 | .manufacture_id = ATMEL_ID, |
| 1977 | .model_id = ATMEL_AT25F512A, |
| 1978 | .total_size = 64, |
| 1979 | .page_size = 128, |
| 1980 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1981 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1982 | .probe = probe_spi_at25f, |
| 1983 | .probe_timing = TIMING_ZERO, |
| 1984 | .block_erasers = |
| 1985 | { |
| 1986 | { |
| 1987 | .eraseblocks = { {32 * 1024, 2} }, |
| 1988 | .block_erase = spi_block_erase_52, |
| 1989 | }, { |
| 1990 | .eraseblocks = { {64 * 1024, 1} }, |
| 1991 | .block_erase = spi_block_erase_62, |
| 1992 | } |
| 1993 | }, |
| 1994 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 1995 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 1996 | .unlock = spi_disable_blockprotect_at25f512a, |
| 1997 | .write = spi_chip_write_256, |
| 1998 | .read = spi_chip_read, |
| 1999 | .voltage = {2700, 3600}, |
| 2000 | }, |
| 2001 | |
| 2002 | { |
| 2003 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2004 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2005 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2006 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2007 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2008 | .total_size = 64, |
| 2009 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2010 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2011 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2012 | .tested = TEST_UNTESTED, |
| 2013 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2014 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2015 | .block_erasers = |
| 2016 | { |
| 2017 | { |
| 2018 | .eraseblocks = { {4 * 1024, 16} }, |
| 2019 | .block_erase = spi_block_erase_20, |
| 2020 | }, { |
| 2021 | .eraseblocks = { {32 * 1024, 2} }, |
| 2022 | .block_erase = spi_block_erase_52, |
| 2023 | }, { |
| 2024 | .eraseblocks = { {32 * 1024, 2} }, |
| 2025 | .block_erase = spi_block_erase_d8, |
| 2026 | }, { |
| 2027 | .eraseblocks = { {64 * 1024, 1} }, |
| 2028 | .block_erase = spi_block_erase_60, |
| 2029 | }, { |
| 2030 | .eraseblocks = { {64 * 1024, 1} }, |
| 2031 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 2032 | }, { |
| 2033 | .eraseblocks = { {64 * 1024, 1} }, |
| 2034 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2035 | } |
| 2036 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2037 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2038 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2039 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2040 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2041 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2042 | }, |
| 2043 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2044 | { |
| 2045 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2046 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 2047 | * All other properties seem to be the same.*/ |
| 2048 | .name = "AT25F1024(A)", |
| 2049 | .bustype = BUS_SPI, |
| 2050 | .manufacture_id = ATMEL_ID, |
| 2051 | .model_id = ATMEL_AT25F1024, |
| 2052 | .total_size = 128, |
| 2053 | .page_size = 256, |
| 2054 | .feature_bits = FEATURE_WRSR_WREN, |
| 2055 | .tested = TEST_OK_PREW, |
| 2056 | .probe = probe_spi_at25f, |
| 2057 | .probe_timing = TIMING_ZERO, |
| 2058 | .block_erasers = |
| 2059 | { |
| 2060 | { |
| 2061 | .eraseblocks = { {32 * 1024, 4} }, |
| 2062 | .block_erase = spi_block_erase_52, |
| 2063 | }, { |
| 2064 | .eraseblocks = { {128 * 1024, 1} }, |
| 2065 | .block_erase = spi_block_erase_62, |
| 2066 | } |
| 2067 | }, |
| 2068 | .printlock = spi_prettyprint_status_register_at25f, |
| 2069 | .unlock = spi_disable_blockprotect_at25f, |
| 2070 | .write = spi_chip_write_256, |
| 2071 | .read = spi_chip_read, |
| 2072 | .voltage = {2700, 3600}, |
| 2073 | }, |
| 2074 | |
| 2075 | { |
| 2076 | .vendor = "Atmel", |
| 2077 | .name = "AT25F2048", |
| 2078 | .bustype = BUS_SPI, |
| 2079 | .manufacture_id = ATMEL_ID, |
| 2080 | .model_id = ATMEL_AT25F2048, |
| 2081 | .total_size = 256, |
| 2082 | .page_size = 256, |
| 2083 | .feature_bits = FEATURE_WRSR_WREN, |
| 2084 | .tested = TEST_UNTESTED, |
| 2085 | .probe = probe_spi_at25f, |
| 2086 | .probe_timing = TIMING_ZERO, |
| 2087 | .block_erasers = |
| 2088 | { |
| 2089 | { |
| 2090 | .eraseblocks = { {64 * 1024, 4} }, |
| 2091 | .block_erase = spi_block_erase_52, |
| 2092 | }, { |
| 2093 | .eraseblocks = { {256 * 1024, 1} }, |
| 2094 | .block_erase = spi_block_erase_62, |
| 2095 | } |
| 2096 | }, |
| 2097 | .printlock = spi_prettyprint_status_register_at25f, |
| 2098 | .unlock = spi_disable_blockprotect_at25f, |
| 2099 | .write = spi_chip_write_256, |
| 2100 | .read = spi_chip_read, |
| 2101 | .voltage = {2700, 3600}, |
| 2102 | }, |
| 2103 | |
| 2104 | { |
| 2105 | .vendor = "Atmel", |
| 2106 | .name = "AT25F4096", |
| 2107 | .bustype = BUS_SPI, |
| 2108 | .manufacture_id = ATMEL_ID, |
| 2109 | .model_id = ATMEL_AT25F4096, |
| 2110 | .total_size = 512, |
| 2111 | .page_size = 256, |
| 2112 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2113 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2114 | .probe = probe_spi_at25f, |
| 2115 | .probe_timing = TIMING_ZERO, |
| 2116 | .block_erasers = |
| 2117 | { |
| 2118 | { |
| 2119 | .eraseblocks = { {64 * 1024, 8} }, |
| 2120 | .block_erase = spi_block_erase_52, |
| 2121 | }, { |
| 2122 | .eraseblocks = { {512 * 1024, 1} }, |
| 2123 | .block_erase = spi_block_erase_62, |
| 2124 | } |
| 2125 | }, |
| 2126 | .printlock = spi_prettyprint_status_register_at25f4096, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 2127 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2128 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2129 | .write = spi_chip_write_256, |
| 2130 | .read = spi_chip_read, |
| 2131 | .voltage = {2700, 3600}, |
| 2132 | }, |
| 2133 | |
| 2134 | { |
| 2135 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2136 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2137 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2138 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2139 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2140 | .total_size = 128, |
| 2141 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2142 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2143 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2144 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2145 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2146 | .block_erasers = |
| 2147 | { |
| 2148 | { |
| 2149 | .eraseblocks = { {4 * 1024, 32} }, |
| 2150 | .block_erase = spi_block_erase_20, |
| 2151 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2152 | .eraseblocks = { {4 * 1024, 32} }, |
| 2153 | .block_erase = spi_block_erase_d7, |
| 2154 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2155 | .eraseblocks = { {32 * 1024, 4} }, |
| 2156 | .block_erase = spi_block_erase_52, |
| 2157 | }, { |
| 2158 | .eraseblocks = { {32 * 1024, 4} }, |
| 2159 | .block_erase = spi_block_erase_d8, |
| 2160 | }, { |
| 2161 | .eraseblocks = { {128 * 1024, 1} }, |
| 2162 | .block_erase = spi_block_erase_60, |
| 2163 | }, { |
| 2164 | .eraseblocks = { {128 * 1024, 1} }, |
| 2165 | .block_erase = spi_block_erase_c7, |
| 2166 | } |
| 2167 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2168 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2169 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2170 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2171 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2172 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2173 | }, |
| 2174 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2175 | { |
| 2176 | .vendor = "Atmel", |
| 2177 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2178 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2179 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2180 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2181 | .total_size = 512, |
| 2182 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2183 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2184 | .tested = TEST_UNTESTED, |
| 2185 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2186 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2187 | .block_erasers = |
| 2188 | { |
| 2189 | { |
| 2190 | .eraseblocks = { {4 * 1024, 128} }, |
| 2191 | .block_erase = spi_block_erase_20, |
| 2192 | }, { |
| 2193 | .eraseblocks = { {64 * 1024, 8} }, |
| 2194 | .block_erase = spi_block_erase_52, |
| 2195 | }, { |
| 2196 | .eraseblocks = { {64 * 1024, 8} }, |
| 2197 | .block_erase = spi_block_erase_d8, |
| 2198 | }, { |
| 2199 | .eraseblocks = { {512 * 1024, 1} }, |
| 2200 | .block_erase = spi_block_erase_60, |
| 2201 | }, { |
| 2202 | .eraseblocks = { {512 * 1024, 1} }, |
| 2203 | .block_erase = spi_block_erase_c7, |
| 2204 | } |
| 2205 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2206 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2207 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2208 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2209 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2210 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2211 | }, |
| 2212 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2213 | { |
| 2214 | .vendor = "Atmel", |
jvm | a3ab6c6 | 2018-03-08 15:43:20 +0100 | [diff] [blame] | 2215 | .name = "AT25SF041", |
| 2216 | .bustype = BUS_SPI, |
| 2217 | .manufacture_id = ATMEL_ID, |
| 2218 | .model_id = ATMEL_AT25SF041, |
| 2219 | .total_size = 512, |
| 2220 | .page_size = 256, |
| 2221 | .feature_bits = FEATURE_WRSR_WREN, |
| 2222 | .tested = TEST_OK_PREW, |
| 2223 | .probe = probe_spi_rdid, |
| 2224 | .probe_timing = TIMING_ZERO, |
| 2225 | .block_erasers = |
| 2226 | { |
| 2227 | { |
| 2228 | .eraseblocks = { {4 * 1024, 128} }, |
| 2229 | .block_erase = spi_block_erase_20, |
| 2230 | }, { |
| 2231 | .eraseblocks = { {32 * 1024, 16} }, |
| 2232 | .block_erase = spi_block_erase_52, |
| 2233 | }, { |
| 2234 | .eraseblocks = { {64 * 1024, 8} }, |
| 2235 | .block_erase = spi_block_erase_d8, |
| 2236 | }, { |
| 2237 | .eraseblocks = { {512 * 1024, 1} }, |
| 2238 | .block_erase = spi_block_erase_60, |
| 2239 | }, { |
| 2240 | .eraseblocks = { {512 * 1024, 1} }, |
| 2241 | .block_erase = spi_block_erase_c7, |
| 2242 | } |
| 2243 | }, |
| 2244 | .printlock = spi_prettyprint_status_register_plain, |
| 2245 | .unlock = spi_disable_blockprotect, |
| 2246 | .write = spi_chip_write_256, |
| 2247 | .read = spi_chip_read, |
| 2248 | .voltage = {2500, 3600}, |
| 2249 | }, |
| 2250 | |
| 2251 | { |
| 2252 | .vendor = "Atmel", |
Evan Jensen | 291c101 | 2018-05-17 14:30:19 -0700 | [diff] [blame] | 2253 | .name = "AT25SF081", |
| 2254 | .bustype = BUS_SPI, |
| 2255 | .manufacture_id = ATMEL_ID, |
| 2256 | .model_id = ATMEL_AT25SF081, |
| 2257 | .total_size = 1024, |
| 2258 | .page_size = 256, |
| 2259 | .feature_bits = FEATURE_WRSR_WREN, |
| 2260 | .tested = TEST_OK_PREW, |
| 2261 | .probe = probe_spi_rdid, |
| 2262 | .probe_timing = TIMING_ZERO, |
| 2263 | .block_erasers = |
| 2264 | { |
| 2265 | { |
| 2266 | .eraseblocks = { {4 * 1024, 256} }, |
| 2267 | .block_erase = spi_block_erase_20, |
| 2268 | }, { |
| 2269 | .eraseblocks = { {32 * 1024, 32} }, |
| 2270 | .block_erase = spi_block_erase_52, |
| 2271 | }, { |
| 2272 | .eraseblocks = { {64 * 1024, 16} }, |
| 2273 | .block_erase = spi_block_erase_d8, |
| 2274 | }, { |
| 2275 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2276 | .block_erase = spi_block_erase_60, |
| 2277 | }, { |
| 2278 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2279 | .block_erase = spi_block_erase_c7, |
| 2280 | } |
| 2281 | }, |
| 2282 | .printlock = spi_prettyprint_status_register_plain, |
| 2283 | .unlock = spi_disable_blockprotect, |
| 2284 | .write = spi_chip_write_256, |
| 2285 | .read = spi_chip_read, |
| 2286 | .voltage = {2300, 3600}, |
| 2287 | }, |
| 2288 | |
| 2289 | { |
| 2290 | .vendor = "Atmel", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2291 | .name = "AT25SF161", |
| 2292 | .bustype = BUS_SPI, |
| 2293 | .manufacture_id = ATMEL_ID, |
| 2294 | .model_id = ATMEL_AT25SF161, |
| 2295 | .total_size = 2048, |
| 2296 | .page_size = 256, |
| 2297 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 2298 | .tested = TEST_OK_PREW, |
| 2299 | .probe = probe_spi_rdid, |
| 2300 | .probe_timing = TIMING_ZERO, |
| 2301 | .block_erasers = |
| 2302 | { |
| 2303 | { |
| 2304 | .eraseblocks = { {4 * 1024, 512} }, |
| 2305 | .block_erase = spi_block_erase_20, |
| 2306 | }, { |
| 2307 | .eraseblocks = { {32 * 1024, 64} }, |
| 2308 | .block_erase = spi_block_erase_52, |
| 2309 | }, { |
| 2310 | .eraseblocks = { {64 * 1024, 32} }, |
| 2311 | .block_erase = spi_block_erase_d8, |
| 2312 | }, { |
| 2313 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2314 | .block_erase = spi_block_erase_60, |
| 2315 | }, { |
| 2316 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2317 | .block_erase = spi_block_erase_c7, |
| 2318 | } |
| 2319 | }, |
| 2320 | .printlock = spi_prettyprint_status_register_plain, |
| 2321 | .unlock = spi_disable_blockprotect, |
| 2322 | .write = spi_chip_write_256, |
| 2323 | .read = spi_chip_read, |
| 2324 | .voltage = {2500, 3600}, |
| 2325 | }, |
| 2326 | |
| 2327 | { |
| 2328 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2329 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2330 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2331 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2332 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2333 | .total_size = 512, |
| 2334 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2335 | /* 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] | 2336 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2337 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2338 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2339 | .block_erasers = |
| 2340 | { |
| 2341 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2342 | .eraseblocks = { {256, 2048} }, |
| 2343 | .block_erase = spi_block_erase_81, |
| 2344 | }, { |
| 2345 | .eraseblocks = { {2 * 1024, 256} }, |
| 2346 | .block_erase = spi_block_erase_50, |
| 2347 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2348 | .eraseblocks = { {4 * 1024, 128} }, |
| 2349 | .block_erase = spi_block_erase_20, |
| 2350 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2351 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2352 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2353 | /* 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] | 2354 | .write = spi_chip_write_1, |
| 2355 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2356 | .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] | 2357 | }, |
| 2358 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2359 | { |
| 2360 | .vendor = "Atmel", |
| 2361 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2362 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2363 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2364 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2365 | .total_size = 1024, |
| 2366 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2367 | .feature_bits = FEATURE_WRSR_WREN, |
| 2368 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2369 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2370 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2371 | .block_erasers = |
| 2372 | { |
| 2373 | { |
| 2374 | .eraseblocks = { {4 * 1024, 256} }, |
| 2375 | .block_erase = spi_block_erase_20, |
| 2376 | }, { |
| 2377 | .eraseblocks = { {32 * 1024, 32} }, |
| 2378 | .block_erase = spi_block_erase_52, |
| 2379 | }, { |
| 2380 | .eraseblocks = { {64 * 1024, 16} }, |
| 2381 | .block_erase = spi_block_erase_d8, |
| 2382 | }, { |
| 2383 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2384 | .block_erase = spi_block_erase_60, |
| 2385 | }, { |
| 2386 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2387 | .block_erase = spi_block_erase_c7, |
| 2388 | } |
| 2389 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2390 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2391 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2392 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2393 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2394 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2395 | }, |
| 2396 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2397 | { |
| 2398 | .vendor = "Atmel", |
| 2399 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2400 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2401 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2402 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2403 | .total_size = 2048, |
| 2404 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2405 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2406 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2407 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2408 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2409 | .block_erasers = |
| 2410 | { |
| 2411 | { |
| 2412 | .eraseblocks = { {4 * 1024, 512} }, |
| 2413 | .block_erase = spi_block_erase_20, |
| 2414 | }, { |
| 2415 | .eraseblocks = { {32 * 1024, 64} }, |
| 2416 | .block_erase = spi_block_erase_52, |
| 2417 | }, { |
| 2418 | .eraseblocks = { {64 * 1024, 32} }, |
| 2419 | .block_erase = spi_block_erase_d8, |
| 2420 | }, { |
| 2421 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2422 | .block_erase = spi_block_erase_60, |
| 2423 | }, { |
| 2424 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2425 | .block_erase = spi_block_erase_c7, |
| 2426 | } |
| 2427 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2428 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2429 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2430 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2431 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2432 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2433 | }, |
| 2434 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2435 | { |
| 2436 | .vendor = "Atmel", |
| 2437 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2438 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2439 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2440 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2441 | .total_size = 2048, |
| 2442 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2443 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2444 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2445 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2446 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2447 | .block_erasers = |
| 2448 | { |
| 2449 | { |
| 2450 | .eraseblocks = { {4 * 1024, 512} }, |
| 2451 | .block_erase = spi_block_erase_20, |
| 2452 | }, { |
| 2453 | .eraseblocks = { {32 * 1024, 64} }, |
| 2454 | .block_erase = spi_block_erase_52, |
| 2455 | }, { |
| 2456 | .eraseblocks = { {64 * 1024, 32} }, |
| 2457 | .block_erase = spi_block_erase_d8, |
| 2458 | }, { |
| 2459 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2460 | .block_erase = spi_block_erase_60, |
| 2461 | }, { |
| 2462 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2463 | .block_erase = spi_block_erase_c7, |
| 2464 | } |
| 2465 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2466 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2467 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2468 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2469 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2470 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2471 | }, |
| 2472 | |
| 2473 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2474 | /*{ |
| 2475 | .vendor = "Atmel", |
| 2476 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2477 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2478 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2479 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2480 | .total_size = 4096, |
| 2481 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2482 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2483 | .tested = TEST_UNTESTED, |
| 2484 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2485 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2486 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2487 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2488 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2489 | .read = spi_chip_read, |
| 2490 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2491 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2492 | { |
| 2493 | .vendor = "Atmel", |
| 2494 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2495 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2496 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2497 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2498 | .total_size = 512, |
| 2499 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 2500 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD }, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2501 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2502 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2503 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2504 | .block_erasers = |
| 2505 | { |
| 2506 | { |
| 2507 | .eraseblocks = { {4 * 1024, 128} }, |
| 2508 | .block_erase = spi_block_erase_20, |
| 2509 | }, { |
| 2510 | .eraseblocks = { {32 * 1024, 16} }, |
| 2511 | .block_erase = spi_block_erase_52, |
| 2512 | }, { |
| 2513 | .eraseblocks = { {64 * 1024, 8} }, |
| 2514 | .block_erase = spi_block_erase_d8, |
| 2515 | }, { |
| 2516 | .eraseblocks = { {512 * 1024, 1} }, |
| 2517 | .block_erase = spi_block_erase_60, |
| 2518 | }, { |
| 2519 | .eraseblocks = { {512 * 1024, 1} }, |
| 2520 | .block_erase = spi_block_erase_c7, |
| 2521 | } |
| 2522 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2523 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2524 | .write = NULL /* Incompatible Page write */, |
| 2525 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2526 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2527 | }, |
| 2528 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2529 | { |
| 2530 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2531 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2532 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2533 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2534 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2535 | .total_size = 64, |
| 2536 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2537 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2538 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2539 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2540 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2541 | .block_erasers = |
| 2542 | { |
| 2543 | { |
| 2544 | .eraseblocks = { {64 * 1024, 1} }, |
| 2545 | .block_erase = erase_chip_block_jedec, |
| 2546 | } |
| 2547 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2548 | .write = write_jedec, |
| 2549 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2550 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2551 | }, |
| 2552 | |
| 2553 | { |
| 2554 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2555 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2556 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2557 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2558 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2559 | .total_size = 128, |
| 2560 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2561 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2562 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2563 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2564 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2565 | .block_erasers = |
| 2566 | { |
| 2567 | { |
| 2568 | .eraseblocks = { {128 * 1024, 1} }, |
| 2569 | .block_erase = erase_chip_block_jedec, |
| 2570 | } |
| 2571 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2572 | .write = write_jedec, /* FIXME */ |
| 2573 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2574 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2575 | }, |
| 2576 | |
| 2577 | { |
| 2578 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2579 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2580 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2581 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2582 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2583 | .total_size = 256, |
| 2584 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2585 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2586 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2587 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2588 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2589 | .block_erasers = |
| 2590 | { |
| 2591 | { |
| 2592 | .eraseblocks = { {256 * 1024, 1} }, |
| 2593 | .block_erase = erase_chip_block_jedec, |
| 2594 | } |
| 2595 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2596 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2597 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2598 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2599 | }, |
| 2600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2601 | { |
| 2602 | .vendor = "Atmel", |
| 2603 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2604 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2605 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2606 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2607 | .total_size = 512, |
| 2608 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2609 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2610 | .tested = TEST_UNTESTED, |
| 2611 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2612 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2613 | .block_erasers = |
| 2614 | { |
| 2615 | { |
| 2616 | .eraseblocks = { {512 * 1024, 1} }, |
| 2617 | .block_erase = erase_chip_block_jedec, |
| 2618 | } |
| 2619 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2620 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2621 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2622 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2623 | }, |
| 2624 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2625 | { |
| 2626 | .vendor = "Atmel", |
| 2627 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2628 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2629 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2630 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2631 | .total_size = 16896 /* No power of two sizes */, |
| 2632 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2633 | /* 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] | 2634 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2635 | .feature_bits = FEATURE_OTP, |
| 2636 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2637 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2638 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2639 | .block_erasers = |
| 2640 | { |
| 2641 | { |
| 2642 | .eraseblocks = { |
| 2643 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2644 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2645 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2646 | }, |
| 2647 | .block_erase = spi_erase_at45cs_sector, |
| 2648 | } |
| 2649 | }, |
| 2650 | .printlock = spi_prettyprint_status_register_plain, |
| 2651 | .gran = write_gran_1056bytes, |
| 2652 | .write = spi_write_at45db, |
| 2653 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2654 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2655 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2656 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2657 | { |
| 2658 | .vendor = "Atmel", |
| 2659 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2660 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2661 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2662 | .model_id = ATMEL_AT45DB011D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2663 | .total_size = 128 /* or 132, determined from status register */, |
| 2664 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2665 | /* 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] | 2666 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2667 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2668 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2669 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2670 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2671 | .block_erasers = |
| 2672 | { |
| 2673 | { |
| 2674 | .eraseblocks = { {256, 512} }, |
| 2675 | .block_erase = spi_erase_at45db_page, |
| 2676 | }, { |
| 2677 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2678 | .block_erase = spi_erase_at45db_block, |
| 2679 | }, { |
| 2680 | .eraseblocks = { |
| 2681 | {8 * 256, 1}, |
| 2682 | {120 * 256, 1}, |
| 2683 | {128 * 256, 3}, |
| 2684 | }, |
| 2685 | .block_erase = spi_erase_at45db_sector |
| 2686 | }, { |
| 2687 | .eraseblocks = { {128 * 1024, 1} }, |
| 2688 | .block_erase = spi_erase_at45db_chip, |
| 2689 | } |
| 2690 | }, |
| 2691 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2692 | .printlock = spi_prettyprint_status_register_at45db, |
| 2693 | /* granularity will be set by the probing function. */ |
| 2694 | .write = spi_write_at45db, |
| 2695 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2696 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2697 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2698 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2699 | { |
| 2700 | .vendor = "Atmel", |
| 2701 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2702 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2703 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2704 | .model_id = ATMEL_AT45DB021D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2705 | .total_size = 256 /* or 264, determined from status register */, |
| 2706 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2707 | /* 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] | 2708 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2709 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2710 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2711 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2712 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2713 | .block_erasers = |
| 2714 | { |
| 2715 | { |
| 2716 | .eraseblocks = { {256, 1024} }, |
| 2717 | .block_erase = spi_erase_at45db_page, |
| 2718 | }, { |
| 2719 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2720 | .block_erase = spi_erase_at45db_block, |
| 2721 | }, { |
| 2722 | .eraseblocks = { |
| 2723 | {8 * 256, 1}, |
| 2724 | {120 * 256, 1}, |
| 2725 | {128 * 256, 7}, |
| 2726 | }, |
| 2727 | .block_erase = spi_erase_at45db_sector |
| 2728 | }, { |
| 2729 | .eraseblocks = { {256 * 1024, 1} }, |
| 2730 | .block_erase = spi_erase_at45db_chip, |
| 2731 | } |
| 2732 | }, |
| 2733 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2734 | .printlock = spi_prettyprint_status_register_at45db, |
| 2735 | /* granularity will be set by the probing function. */ |
| 2736 | .write = spi_write_at45db, |
| 2737 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2738 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2739 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2740 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2741 | { |
| 2742 | .vendor = "Atmel", |
| 2743 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2744 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2745 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2746 | .model_id = ATMEL_AT45DB041D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2747 | .total_size = 512 /* or 528, determined from status register */, |
| 2748 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2749 | /* 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] | 2750 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2751 | .feature_bits = FEATURE_OTP, |
| 2752 | .tested = TEST_OK_PREW, |
| 2753 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2754 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2755 | .block_erasers = |
| 2756 | { |
| 2757 | { |
| 2758 | .eraseblocks = { {256, 2048} }, |
| 2759 | .block_erase = spi_erase_at45db_page, |
| 2760 | }, { |
| 2761 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2762 | .block_erase = spi_erase_at45db_block, |
| 2763 | }, { |
| 2764 | .eraseblocks = { |
| 2765 | {8 * 256, 1}, |
| 2766 | {248 * 256, 1}, |
| 2767 | {256 * 256, 7}, |
| 2768 | }, |
| 2769 | .block_erase = spi_erase_at45db_sector |
| 2770 | }, { |
| 2771 | .eraseblocks = { {512 * 1024, 1} }, |
| 2772 | .block_erase = spi_erase_at45db_chip, |
| 2773 | } |
| 2774 | }, |
| 2775 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2776 | .printlock = spi_prettyprint_status_register_at45db, |
| 2777 | /* granularity will be set by the probing function. */ |
| 2778 | .write = spi_write_at45db, |
| 2779 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2780 | .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] | 2781 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2782 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2783 | { |
| 2784 | .vendor = "Atmel", |
| 2785 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2786 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2787 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2788 | .model_id = ATMEL_AT45DB081D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2789 | .total_size = 1024 /* or 1056, determined from status register */, |
| 2790 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2791 | /* 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] | 2792 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2793 | .feature_bits = FEATURE_OTP, |
| 2794 | .tested = TEST_UNTESTED, |
| 2795 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2796 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2797 | .block_erasers = |
| 2798 | { |
| 2799 | { |
| 2800 | .eraseblocks = { {256, 4096} }, |
| 2801 | .block_erase = spi_erase_at45db_page, |
| 2802 | }, { |
| 2803 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2804 | .block_erase = spi_erase_at45db_block, |
| 2805 | }, { |
| 2806 | .eraseblocks = { |
| 2807 | {8 * 256, 1}, |
| 2808 | {248 * 256, 1}, |
| 2809 | {256 * 256, 15}, |
| 2810 | }, |
| 2811 | .block_erase = spi_erase_at45db_sector |
| 2812 | }, { |
| 2813 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2814 | .block_erase = spi_erase_at45db_chip, |
| 2815 | } |
| 2816 | }, |
| 2817 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2818 | .printlock = spi_prettyprint_status_register_at45db, |
| 2819 | /* granularity will be set by the probing function. */ |
| 2820 | .write = spi_write_at45db, |
| 2821 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2822 | .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] | 2823 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2824 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2825 | { |
| 2826 | .vendor = "Atmel", |
| 2827 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2828 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2829 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2830 | .model_id = ATMEL_AT45DB161D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2831 | .total_size = 2048 /* or 2112, determined from status register */, |
| 2832 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2833 | /* 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] | 2834 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2835 | .feature_bits = FEATURE_OTP, |
| 2836 | .tested = TEST_OK_PREW, |
| 2837 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2838 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2839 | .block_erasers = |
| 2840 | { |
| 2841 | { |
| 2842 | .eraseblocks = { {512, 4096} }, |
| 2843 | .block_erase = spi_erase_at45db_page, |
| 2844 | }, { |
| 2845 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2846 | .block_erase = spi_erase_at45db_block, |
| 2847 | }, { |
| 2848 | .eraseblocks = { |
| 2849 | {8 * 512, 1}, |
| 2850 | {248 * 512, 1}, |
| 2851 | {256 * 512, 15}, |
| 2852 | }, |
| 2853 | .block_erase = spi_erase_at45db_sector |
| 2854 | }, { |
| 2855 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2856 | .block_erase = spi_erase_at45db_chip, |
| 2857 | } |
| 2858 | }, |
| 2859 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2860 | .printlock = spi_prettyprint_status_register_at45db, |
| 2861 | /* granularity will be set by the probing function. */ |
| 2862 | .write = spi_write_at45db, |
| 2863 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2864 | .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] | 2865 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2866 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2867 | { |
| 2868 | .vendor = "Atmel", |
| 2869 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2870 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2871 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2872 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2873 | .total_size = 4224 /* No power of two sizes */, |
| 2874 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2875 | /* 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] | 2876 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2877 | .feature_bits = FEATURE_OTP, |
| 2878 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2879 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2880 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2881 | .block_erasers = |
| 2882 | { |
| 2883 | { |
| 2884 | .eraseblocks = { {528, 8192} }, |
| 2885 | .block_erase = spi_erase_at45db_page, |
| 2886 | }, { |
| 2887 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2888 | .block_erase = spi_erase_at45db_block, |
| 2889 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2890 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2891 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2892 | .eraseblocks = { |
| 2893 | {8 * 528, 1}, |
| 2894 | {120 * 528, 1}, |
| 2895 | {128 * 528, 63}, |
| 2896 | }, |
| 2897 | .block_erase = spi_erase_at45db_sector |
| 2898 | }, */ { |
| 2899 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2900 | .block_erase = spi_erase_at45db_chip, |
| 2901 | } |
| 2902 | }, |
| 2903 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
| 2904 | .gran = write_gran_528bytes, |
| 2905 | .write = spi_write_at45db, |
| 2906 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2907 | .voltage = {2700, 3600}, |
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 = "AT45DB321D", |
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_AT45DB321D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2916 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2917 | .page_size = 512 /* or 528, 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 */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2920 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [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 = { {512, 8192} }, |
| 2928 | .block_erase = spi_erase_at45db_page, |
| 2929 | }, { |
| 2930 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2931 | .block_erase = spi_erase_at45db_block, |
| 2932 | }, { |
| 2933 | .eraseblocks = { |
| 2934 | {8 * 512, 1}, |
| 2935 | {120 * 512, 1}, |
| 2936 | {128 * 512, 63}, |
| 2937 | }, |
| 2938 | .block_erase = spi_erase_at45db_sector |
| 2939 | }, { |
| 2940 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2941 | .block_erase = spi_erase_at45db_chip, |
| 2942 | } |
| 2943 | }, |
| 2944 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2945 | .printlock = spi_prettyprint_status_register_at45db, |
| 2946 | /* granularity will be set by the probing function. */ |
| 2947 | .write = spi_write_at45db, |
| 2948 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2949 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2950 | }, |
| 2951 | |
| 2952 | { |
| 2953 | .vendor = "Atmel", |
| 2954 | .name = "AT45DB321E", |
| 2955 | .bustype = BUS_SPI, |
| 2956 | .manufacture_id = ATMEL_ID, |
| 2957 | .model_id = ATMEL_AT45DB321C, |
| 2958 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2959 | .page_size = 512 /* or 528, determined from status register */, |
| 2960 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2961 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2962 | .feature_bits = FEATURE_OTP, |
| 2963 | .tested = TEST_UNTESTED, |
| 2964 | .probe = probe_spi_at45db, |
| 2965 | .probe_timing = TIMING_ZERO, |
| 2966 | .block_erasers = |
| 2967 | { |
| 2968 | { |
| 2969 | .eraseblocks = { {512, 8192} }, |
| 2970 | .block_erase = spi_erase_at45db_page, |
| 2971 | }, { |
| 2972 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2973 | .block_erase = spi_erase_at45db_block, |
| 2974 | }, { |
| 2975 | .eraseblocks = { |
| 2976 | {8 * 512, 1}, |
| 2977 | {120 * 512, 1}, |
| 2978 | {128 * 512, 63}, |
| 2979 | }, |
| 2980 | .block_erase = spi_erase_at45db_sector |
| 2981 | }, { |
| 2982 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2983 | .block_erase = spi_erase_at45db_chip, |
| 2984 | } |
| 2985 | }, |
| 2986 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2987 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
| 2988 | /* granularity will be set by the probing function. */ |
| 2989 | .write = spi_write_at45db, |
| 2990 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2991 | .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] | 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 = "AT45DB642D", |
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_AT45DB642D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3000 | .total_size = 8192 /* or 8448, determined from status register */, |
| 3001 | .page_size = 1024 /* or 1056, determined from status register */, |
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 */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3003 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3004 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 3005 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3006 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3007 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3008 | .block_erasers = |
| 3009 | { |
| 3010 | { |
| 3011 | .eraseblocks = { {1024, 8192} }, |
| 3012 | .block_erase = spi_erase_at45db_page, |
| 3013 | }, { |
| 3014 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 3015 | .block_erase = spi_erase_at45db_block, |
| 3016 | }, { |
| 3017 | .eraseblocks = { |
| 3018 | {8 * 1024, 1}, |
| 3019 | {248 * 1024, 1}, |
| 3020 | {256 * 1024, 31}, |
| 3021 | }, |
| 3022 | .block_erase = spi_erase_at45db_sector |
| 3023 | }, { |
| 3024 | .eraseblocks = { {8192 * 1024, 1} }, |
| 3025 | .block_erase = spi_erase_at45db_chip, |
| 3026 | } |
| 3027 | }, |
| 3028 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 3029 | .printlock = spi_prettyprint_status_register_at45db, |
| 3030 | /* granularity will be set by the probing function. */ |
| 3031 | .write = spi_write_at45db, |
| 3032 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3033 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3034 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3035 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3036 | { |
| 3037 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3038 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3039 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3040 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3041 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3042 | .total_size = 64, |
| 3043 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3044 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 3045 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3046 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3047 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3048 | .block_erasers = |
| 3049 | { |
| 3050 | { |
| 3051 | .eraseblocks = { {64 * 1024, 1} }, |
| 3052 | .block_erase = erase_chip_block_jedec, |
| 3053 | } |
| 3054 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3055 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3056 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3057 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3058 | }, |
| 3059 | |
| 3060 | { |
| 3061 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3062 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3063 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3064 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3065 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3066 | .total_size = 256, |
| 3067 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3068 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3069 | .tested = TEST_UNTESTED, |
| 3070 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3071 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3072 | .block_erasers = |
| 3073 | { |
| 3074 | { |
| 3075 | .eraseblocks = { |
| 3076 | {16 * 1024, 1}, |
| 3077 | {8 * 1024, 2}, |
| 3078 | {96 * 1024, 1}, |
| 3079 | {128 * 1024, 1}, |
| 3080 | }, |
| 3081 | .block_erase = erase_sector_jedec, |
| 3082 | }, { |
| 3083 | .eraseblocks = { {256 * 1024, 1} }, |
| 3084 | .block_erase = erase_chip_block_jedec, |
| 3085 | } |
| 3086 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3087 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3088 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3089 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3090 | }, |
| 3091 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3092 | { |
| 3093 | .vendor = "Atmel", |
| 3094 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3095 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3096 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3097 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3098 | .total_size = 256, |
| 3099 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3100 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3101 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3102 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3103 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3104 | .block_erasers = |
| 3105 | { |
| 3106 | { |
| 3107 | .eraseblocks = { |
| 3108 | {128 * 1024, 1}, |
| 3109 | {96 * 1024, 1}, |
| 3110 | {8 * 1024, 2}, |
| 3111 | {16 * 1024, 1}, |
| 3112 | }, |
| 3113 | .block_erase = erase_sector_jedec, |
| 3114 | }, { |
| 3115 | .eraseblocks = { {256 * 1024, 1} }, |
| 3116 | .block_erase = erase_chip_block_jedec, |
| 3117 | } |
| 3118 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3119 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3120 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3121 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3122 | }, |
| 3123 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3124 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3125 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3126 | .name = "AT49(H)F010", |
| 3127 | .bustype = BUS_PARALLEL, |
| 3128 | .manufacture_id = ATMEL_ID, |
| 3129 | .model_id = ATMEL_AT49F010, |
| 3130 | .total_size = 128, |
| 3131 | .page_size = 0, /* unused */ |
| 3132 | .feature_bits = FEATURE_EITHER_RESET, |
| 3133 | .tested = TEST_OK_PREW, |
| 3134 | .probe = probe_jedec, |
| 3135 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3136 | .block_erasers = |
| 3137 | { |
| 3138 | { |
| 3139 | .eraseblocks = { {128 * 1024, 1} }, |
| 3140 | .block_erase = erase_chip_block_jedec, |
| 3141 | } |
| 3142 | }, |
| 3143 | .printlock = printlock_at49f, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 3144 | .write = write_jedec_1, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3145 | .read = read_memmapped, |
| 3146 | .voltage = {4500, 5500}, |
| 3147 | }, |
| 3148 | |
| 3149 | { |
| 3150 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3151 | .name = "AT49F020", |
| 3152 | .bustype = BUS_PARALLEL, |
| 3153 | .manufacture_id = ATMEL_ID, |
| 3154 | .model_id = ATMEL_AT49F020, |
| 3155 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3156 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3157 | .feature_bits = FEATURE_EITHER_RESET, |
| 3158 | .tested = TEST_OK_PRE, |
| 3159 | .probe = probe_jedec, |
| 3160 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3161 | .block_erasers = |
| 3162 | { |
| 3163 | { |
| 3164 | .eraseblocks = { {256 * 1024, 1} }, |
| 3165 | .block_erase = erase_chip_block_jedec, |
| 3166 | } |
| 3167 | /* Chip features an optional permanent write protection |
| 3168 | * of the first 8 kB. The erase function is the same as |
| 3169 | * above, but 00000H to 01FFFH will not be erased. |
| 3170 | * FIXME: add another eraser when partial erasers are |
| 3171 | * supported. |
| 3172 | */ |
| 3173 | }, |
| 3174 | .printlock = printlock_at49f, |
| 3175 | .write = write_jedec_1, |
| 3176 | .read = read_memmapped, |
| 3177 | .voltage = {4500, 5500}, |
| 3178 | }, |
| 3179 | |
| 3180 | { |
| 3181 | .vendor = "Atmel", |
| 3182 | .name = "AT49F040", |
| 3183 | .bustype = BUS_PARALLEL, |
| 3184 | .manufacture_id = ATMEL_ID, |
| 3185 | .model_id = ATMEL_AT49F040, |
| 3186 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3187 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3188 | .feature_bits = FEATURE_EITHER_RESET, |
| 3189 | .tested = TEST_UNTESTED, |
| 3190 | .probe = probe_jedec, |
| 3191 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3192 | .block_erasers = |
| 3193 | { |
| 3194 | { |
| 3195 | .eraseblocks = { {512 * 1024, 1} }, |
| 3196 | .block_erase = erase_chip_block_jedec, |
| 3197 | } |
| 3198 | /* Chip features an optional permanent write protection |
| 3199 | * of the first 16 kB. The erase function is the same as |
| 3200 | * above, but 00000H to 03FFFH will not be erased. |
| 3201 | * FIXME: add another eraser when partial erasers are |
| 3202 | * supported. |
| 3203 | */ |
| 3204 | }, |
| 3205 | .printlock = printlock_at49f, |
| 3206 | .write = write_jedec_1, |
| 3207 | .read = read_memmapped, |
| 3208 | .voltage = {4500, 5500}, |
| 3209 | }, |
| 3210 | |
| 3211 | { |
| 3212 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3213 | .name = "AT49F080", |
| 3214 | .bustype = BUS_PARALLEL, |
| 3215 | .manufacture_id = ATMEL_ID, |
| 3216 | .model_id = ATMEL_AT49F080, |
| 3217 | .total_size = 1024, |
| 3218 | .page_size = 0, /* unused */ |
| 3219 | .feature_bits = FEATURE_EITHER_RESET, |
| 3220 | .tested = TEST_UNTESTED, |
| 3221 | .probe = probe_jedec, |
| 3222 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3223 | .block_erasers = |
| 3224 | { |
| 3225 | { |
| 3226 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3227 | .block_erase = erase_chip_block_jedec, |
| 3228 | } |
| 3229 | /* Chip features an optional permanent write protection |
| 3230 | * of the first 16 kB. The erase function is the same as |
| 3231 | * above, but 00000H to 03FFFH will not be erased. |
| 3232 | * FIXME: add another eraser when partial erasers are |
| 3233 | * supported. |
| 3234 | */ |
| 3235 | }, |
| 3236 | .printlock = printlock_at49f, |
| 3237 | .write = write_jedec_1, |
| 3238 | .read = read_memmapped, |
| 3239 | .voltage = {4500, 5500}, |
| 3240 | }, |
| 3241 | |
| 3242 | { |
| 3243 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3244 | .vendor = "Atmel", |
| 3245 | .name = "AT49F080T", |
| 3246 | .bustype = BUS_PARALLEL, |
| 3247 | .manufacture_id = ATMEL_ID, |
| 3248 | .model_id = ATMEL_AT49F080T, |
| 3249 | .total_size = 1024, |
| 3250 | .page_size = 0, /* unused */ |
| 3251 | .feature_bits = FEATURE_EITHER_RESET, |
| 3252 | .tested = TEST_UNTESTED, |
| 3253 | .probe = probe_jedec, |
| 3254 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3255 | .block_erasers = |
| 3256 | { |
| 3257 | { |
| 3258 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3259 | .block_erase = erase_chip_block_jedec, |
| 3260 | } |
| 3261 | /* Chip features an optional permanent write protection |
| 3262 | * of the first 16 kB. The erase function is the same as |
| 3263 | * above, but FC000H to FFFFFH will not be erased. |
| 3264 | * FIXME: add another eraser when partial erasers are |
| 3265 | * supported. |
| 3266 | */ |
| 3267 | }, |
| 3268 | .printlock = printlock_at49f, |
| 3269 | .write = write_jedec_1, |
| 3270 | .read = read_memmapped, |
| 3271 | .voltage = {4500, 5500}, |
| 3272 | }, |
| 3273 | |
| 3274 | { |
| 3275 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3276 | .name = "AT49LH002", |
| 3277 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3278 | .manufacture_id = ATMEL_ID, |
| 3279 | .model_id = ATMEL_AT49LH002, |
| 3280 | .total_size = 256, |
| 3281 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3282 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3283 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3284 | .probe = probe_82802ab, |
| 3285 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3286 | .block_erasers = |
| 3287 | { |
| 3288 | { |
| 3289 | .eraseblocks = { |
| 3290 | {64 * 1024, 3}, |
| 3291 | {32 * 1024, 1}, |
| 3292 | {8 * 1024, 2}, |
| 3293 | {16 * 1024, 1}, |
| 3294 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3295 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3296 | }, { |
| 3297 | .eraseblocks = { |
| 3298 | {64 * 1024, 4}, |
| 3299 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3300 | .block_erase = erase_block_82802ab, |
| 3301 | }, |
| 3302 | }, |
| 3303 | .printlock = printlock_regspace2_block_eraser_0, |
| 3304 | .unlock = unlock_regspace2_block_eraser_0, |
| 3305 | .write = write_82802ab, |
| 3306 | .read = read_memmapped, |
| 3307 | .voltage = {3000, 3600}, |
| 3308 | }, |
| 3309 | |
| 3310 | { |
| 3311 | .vendor = "Atmel", |
| 3312 | .name = "AT49LH00B4", |
| 3313 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3314 | .manufacture_id = ATMEL_ID, |
| 3315 | .model_id = ATMEL_AT49LH00B4, |
| 3316 | .total_size = 512, |
| 3317 | .page_size = 0, /* unused */ |
| 3318 | .feature_bits = FEATURE_REGISTERMAP, |
| 3319 | .tested = TEST_UNTESTED, |
| 3320 | .probe = probe_82802ab, |
| 3321 | .probe_timing = TIMING_ZERO, |
| 3322 | .block_erasers = |
| 3323 | { |
| 3324 | { |
| 3325 | .eraseblocks = { |
| 3326 | {8 * 1024, 2}, |
| 3327 | {16 * 1024, 1}, |
| 3328 | {32 * 1024, 1}, |
| 3329 | {64 * 1024, 7}, |
| 3330 | }, |
| 3331 | .block_erase = NULL, /* TODO: Implement. */ |
| 3332 | }, { |
| 3333 | .eraseblocks = { |
| 3334 | {64 * 1024, 8}, |
| 3335 | }, |
| 3336 | .block_erase = erase_block_82802ab, |
| 3337 | }, |
| 3338 | }, |
| 3339 | .printlock = printlock_regspace2_block_eraser_0, |
| 3340 | .unlock = unlock_regspace2_block_eraser_0, |
| 3341 | .write = write_82802ab, |
| 3342 | .read = read_memmapped, |
| 3343 | .voltage = {3000, 3600}, |
| 3344 | }, |
| 3345 | |
| 3346 | { |
| 3347 | .vendor = "Atmel", |
| 3348 | .name = "AT49LH004", |
| 3349 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3350 | .manufacture_id = ATMEL_ID, |
| 3351 | .model_id = ATMEL_AT49LH004, |
| 3352 | .total_size = 512, |
| 3353 | .page_size = 0, /* unused */ |
| 3354 | .feature_bits = FEATURE_REGISTERMAP, |
| 3355 | .tested = TEST_UNTESTED, |
| 3356 | .probe = probe_82802ab, |
| 3357 | .probe_timing = TIMING_ZERO, |
| 3358 | .block_erasers = |
| 3359 | { |
| 3360 | { |
| 3361 | .eraseblocks = { |
| 3362 | {64 * 1024, 7}, |
| 3363 | {32 * 1024, 1}, |
| 3364 | {8 * 1024, 2}, |
| 3365 | {16 * 1024, 1}, |
| 3366 | }, |
| 3367 | .block_erase = erase_block_82802ab, |
| 3368 | }, { |
| 3369 | .eraseblocks = { |
| 3370 | {64 * 1024, 8}, |
| 3371 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3372 | .block_erase = NULL, /* TODO: Implement. */ |
| 3373 | }, |
| 3374 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3375 | .printlock = printlock_regspace2_block_eraser_0, |
| 3376 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3377 | .write = write_82802ab, |
| 3378 | .read = read_memmapped, |
| 3379 | .voltage = {3000, 3600}, |
| 3380 | }, |
| 3381 | |
| 3382 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3383 | .vendor = "Catalyst", |
| 3384 | .name = "CAT28F512", |
| 3385 | .bustype = BUS_PARALLEL, |
| 3386 | .manufacture_id = CATALYST_ID, |
| 3387 | .model_id = CATALYST_CAT28F512, |
| 3388 | .total_size = 64, |
| 3389 | .page_size = 0, /* unused */ |
| 3390 | .feature_bits = 0, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 3391 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD }, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3392 | .probe = probe_jedec, /* FIXME! */ |
| 3393 | .probe_timing = TIMING_ZERO, |
| 3394 | .block_erasers = |
| 3395 | { |
| 3396 | { |
| 3397 | .eraseblocks = { {64 * 1024, 1} }, |
| 3398 | .block_erase = NULL, /* TODO */ |
| 3399 | }, |
| 3400 | }, |
| 3401 | .write = NULL, /* TODO */ |
| 3402 | .read = read_memmapped, |
| 3403 | .voltage = {4500, 5500}, |
| 3404 | }, |
| 3405 | |
| 3406 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3407 | .vendor = "Bright", |
| 3408 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3409 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3410 | .manufacture_id = BRIGHT_ID, |
| 3411 | .model_id = BRIGHT_BM29F040, |
| 3412 | .total_size = 512, |
| 3413 | .page_size = 64 * 1024, |
| 3414 | .feature_bits = FEATURE_EITHER_RESET, |
| 3415 | .tested = TEST_OK_PR, |
| 3416 | .probe = probe_jedec, |
| 3417 | .probe_timing = TIMING_ZERO, |
| 3418 | .block_erasers = |
| 3419 | { |
| 3420 | { |
| 3421 | .eraseblocks = { {64 * 1024, 8} }, |
| 3422 | .block_erase = erase_sector_jedec, |
| 3423 | }, { |
| 3424 | .eraseblocks = { {512 * 1024, 1} }, |
| 3425 | .block_erase = erase_chip_block_jedec, |
| 3426 | }, |
| 3427 | }, |
| 3428 | .write = write_jedec_1, |
| 3429 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3430 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3431 | }, |
| 3432 | |
| 3433 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3434 | .vendor = "ENE", |
| 3435 | .name = "KB9012 (EDI)", |
| 3436 | .bustype = BUS_SPI, |
| 3437 | .spi_cmd_set = SPI_EDI, |
| 3438 | .total_size = 128, |
| 3439 | .page_size = 128, |
| 3440 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3441 | .tested = TEST_OK_PREW, |
| 3442 | .probe = edi_probe_kb9012, |
| 3443 | .probe_timing = TIMING_ZERO, |
| 3444 | .block_erasers = |
| 3445 | { |
| 3446 | { |
| 3447 | .eraseblocks = { {128, 1024} }, |
| 3448 | .block_erase = edi_chip_block_erase, |
| 3449 | }, |
| 3450 | }, |
| 3451 | .gran = write_gran_128bytes, |
| 3452 | .write = edi_chip_write, |
| 3453 | .read = edi_chip_read, |
| 3454 | .voltage = {2700, 3600}, |
| 3455 | }, |
| 3456 | |
| 3457 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3458 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3459 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3460 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3461 | .manufacture_id = ESMT_ID, |
| 3462 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3463 | .total_size = 256, |
| 3464 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3465 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3466 | .tested = TEST_UNTESTED, |
| 3467 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3468 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3469 | .block_erasers = |
| 3470 | { |
| 3471 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3472 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3473 | {128 * 1024, 1}, |
| 3474 | {96 * 1024, 1}, |
| 3475 | {8 * 1024, 2}, |
| 3476 | {16 * 1024, 1}, |
| 3477 | }, |
| 3478 | .block_erase = erase_sector_jedec, |
| 3479 | }, { |
| 3480 | .eraseblocks = { {256 * 1024, 1} }, |
| 3481 | .block_erase = erase_chip_block_jedec, |
| 3482 | } |
| 3483 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3484 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3485 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3486 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3487 | }, |
| 3488 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3489 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3490 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3491 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3492 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3493 | .manufacture_id = ESMT_ID, |
| 3494 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3495 | .total_size = 1024, |
| 3496 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3497 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3498 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3499 | .probe = probe_spi_rdid, |
| 3500 | .probe_timing = TIMING_ZERO, |
| 3501 | .block_erasers = |
| 3502 | { |
| 3503 | { |
| 3504 | .eraseblocks = { {4 * 1024, 256} }, |
| 3505 | .block_erase = spi_block_erase_20, |
| 3506 | }, { |
| 3507 | .eraseblocks = { {64 * 1024, 16} }, |
| 3508 | .block_erase = spi_block_erase_d8, |
| 3509 | }, { |
| 3510 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3511 | .block_erase = spi_block_erase_60, |
| 3512 | }, { |
| 3513 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3514 | .block_erase = spi_block_erase_c7, |
| 3515 | } |
| 3516 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3517 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3518 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3519 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3520 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3521 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3522 | }, |
| 3523 | |
| 3524 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3525 | .vendor = "ESMT", |
| 3526 | .name = "F25L32PA", |
| 3527 | .bustype = BUS_SPI, |
| 3528 | .manufacture_id = ESMT_ID, |
| 3529 | .model_id = ESMT_F25L32PA, |
| 3530 | .total_size = 4096, |
| 3531 | .page_size = 256, |
| 3532 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3533 | .tested = TEST_UNTESTED, |
| 3534 | .probe = probe_spi_rdid, |
| 3535 | .probe_timing = TIMING_ZERO, |
| 3536 | .block_erasers = |
| 3537 | { |
| 3538 | { |
| 3539 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3540 | .block_erase = spi_block_erase_20, |
| 3541 | }, { |
| 3542 | .eraseblocks = { {64 * 1024, 64} }, |
| 3543 | .block_erase = spi_block_erase_d8, |
| 3544 | }, { |
| 3545 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3546 | .block_erase = spi_block_erase_60, |
| 3547 | }, { |
| 3548 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3549 | .block_erase = spi_block_erase_c7, |
| 3550 | } |
| 3551 | }, |
| 3552 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3553 | .unlock = spi_disable_blockprotect, |
| 3554 | .write = spi_chip_write_256, |
| 3555 | .read = spi_chip_read, |
| 3556 | .voltage = {2700, 3600}, |
| 3557 | }, |
| 3558 | |
| 3559 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3560 | .vendor = "Eon", |
| 3561 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3562 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3563 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3564 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3565 | .total_size = 64, |
| 3566 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3567 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3568 | .tested = TEST_UNTESTED, |
| 3569 | .probe = probe_spi_rdid, |
| 3570 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3571 | .block_erasers = |
| 3572 | { |
| 3573 | { |
| 3574 | .eraseblocks = { |
| 3575 | {4 * 1024, 2}, |
| 3576 | {8 * 1024, 1}, |
| 3577 | {16 * 1024, 1}, |
| 3578 | {32 * 1024, 1}, |
| 3579 | }, |
| 3580 | .block_erase = spi_block_erase_d8, |
| 3581 | }, { |
| 3582 | .eraseblocks = { {64 * 1024, 1} }, |
| 3583 | .block_erase = spi_block_erase_c7, |
| 3584 | } |
| 3585 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3586 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3587 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3588 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3589 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3590 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3591 | }, |
| 3592 | |
| 3593 | { |
| 3594 | .vendor = "Eon", |
| 3595 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3596 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3597 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3598 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3599 | .total_size = 64, |
| 3600 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3601 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3602 | .tested = TEST_UNTESTED, |
| 3603 | .probe = probe_spi_rdid, |
| 3604 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3605 | .block_erasers = |
| 3606 | { |
| 3607 | { |
| 3608 | .eraseblocks = { |
| 3609 | {32 * 1024, 1}, |
| 3610 | {16 * 1024, 1}, |
| 3611 | {8 * 1024, 1}, |
| 3612 | {4 * 1024, 2}, |
| 3613 | }, |
| 3614 | .block_erase = spi_block_erase_d8, |
| 3615 | }, { |
| 3616 | .eraseblocks = { {64 * 1024, 1} }, |
| 3617 | .block_erase = spi_block_erase_c7, |
| 3618 | } |
| 3619 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3620 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3621 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3622 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3623 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3624 | .voltage = {2700, 3600}, |
| 3625 | }, |
| 3626 | |
| 3627 | { |
| 3628 | .vendor = "Eon", |
| 3629 | .name = "EN25P05", |
| 3630 | .bustype = BUS_SPI, |
| 3631 | .manufacture_id = EON_ID_NOPREFIX, |
| 3632 | .model_id = EON_EN25B05, |
| 3633 | .total_size = 64, |
| 3634 | .page_size = 256, |
| 3635 | .feature_bits = FEATURE_WRSR_WREN, |
| 3636 | .tested = TEST_UNTESTED, |
| 3637 | .probe = probe_spi_rdid, |
| 3638 | .probe_timing = TIMING_ZERO, |
| 3639 | .block_erasers = |
| 3640 | { |
| 3641 | { |
| 3642 | .eraseblocks = { |
| 3643 | {32 * 1024, 2} }, |
| 3644 | .block_erase = spi_block_erase_d8, |
| 3645 | }, { |
| 3646 | .eraseblocks = { {64 * 1024, 1} }, |
| 3647 | .block_erase = spi_block_erase_c7, |
| 3648 | } |
| 3649 | }, |
| 3650 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3651 | .unlock = spi_disable_blockprotect, |
| 3652 | .write = spi_chip_write_256, |
| 3653 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3654 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3655 | }, |
| 3656 | |
| 3657 | { |
| 3658 | .vendor = "Eon", |
| 3659 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3660 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3661 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3662 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3663 | .total_size = 128, |
| 3664 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3665 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3666 | .tested = TEST_UNTESTED, |
| 3667 | .probe = probe_spi_rdid, |
| 3668 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3669 | .block_erasers = |
| 3670 | { |
| 3671 | { |
| 3672 | .eraseblocks = { |
| 3673 | {4 * 1024, 2}, |
| 3674 | {8 * 1024, 1}, |
| 3675 | {16 * 1024, 1}, |
| 3676 | {32 * 1024, 3}, |
| 3677 | }, |
| 3678 | .block_erase = spi_block_erase_d8, |
| 3679 | }, { |
| 3680 | .eraseblocks = { {128 * 1024, 1} }, |
| 3681 | .block_erase = spi_block_erase_c7, |
| 3682 | } |
| 3683 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3684 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3685 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3686 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3687 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3688 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3689 | }, |
| 3690 | |
| 3691 | { |
| 3692 | .vendor = "Eon", |
| 3693 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3694 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3695 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3696 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3697 | .total_size = 128, |
| 3698 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3699 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3700 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3701 | .probe = probe_spi_rdid, |
| 3702 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3703 | .block_erasers = |
| 3704 | { |
| 3705 | { |
| 3706 | .eraseblocks = { |
| 3707 | {32 * 1024, 3}, |
| 3708 | {16 * 1024, 1}, |
| 3709 | {8 * 1024, 1}, |
| 3710 | {4 * 1024, 2}, |
| 3711 | }, |
| 3712 | .block_erase = spi_block_erase_d8, |
| 3713 | }, { |
| 3714 | .eraseblocks = { {128 * 1024, 1} }, |
| 3715 | .block_erase = spi_block_erase_c7, |
| 3716 | } |
| 3717 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3718 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3719 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3720 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3721 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3722 | .voltage = {2700, 3600}, |
| 3723 | }, |
| 3724 | |
| 3725 | { |
| 3726 | .vendor = "Eon", |
| 3727 | .name = "EN25P10", |
| 3728 | .bustype = BUS_SPI, |
| 3729 | .manufacture_id = EON_ID_NOPREFIX, |
| 3730 | .model_id = EON_EN25B10, |
| 3731 | .total_size = 128, |
| 3732 | .page_size = 256, |
| 3733 | .feature_bits = FEATURE_WRSR_WREN, |
| 3734 | .tested = TEST_UNTESTED, |
| 3735 | .probe = probe_spi_rdid, |
| 3736 | .probe_timing = TIMING_ZERO, |
| 3737 | .block_erasers = |
| 3738 | { |
| 3739 | { |
| 3740 | .eraseblocks = { {32 * 1024, 4} }, |
| 3741 | .block_erase = spi_block_erase_d8, |
| 3742 | }, { |
| 3743 | .eraseblocks = { {128 * 1024, 1} }, |
| 3744 | .block_erase = spi_block_erase_c7, |
| 3745 | } |
| 3746 | }, |
| 3747 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3748 | .unlock = spi_disable_blockprotect, |
| 3749 | .write = spi_chip_write_256, |
| 3750 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3751 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3752 | }, |
| 3753 | |
| 3754 | { |
| 3755 | .vendor = "Eon", |
| 3756 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3757 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3758 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3759 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3760 | .total_size = 256, |
| 3761 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3762 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3763 | .tested = TEST_UNTESTED, |
| 3764 | .probe = probe_spi_rdid, |
| 3765 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3766 | .block_erasers = |
| 3767 | { |
| 3768 | { |
| 3769 | .eraseblocks = { |
| 3770 | {4 * 1024, 2}, |
| 3771 | {8 * 1024, 1}, |
| 3772 | {16 * 1024, 1}, |
| 3773 | {32 * 1024, 1}, |
| 3774 | {64 * 1024, 3} |
| 3775 | }, |
| 3776 | .block_erase = spi_block_erase_d8, |
| 3777 | }, { |
| 3778 | .eraseblocks = { {256 * 1024, 1} }, |
| 3779 | .block_erase = spi_block_erase_c7, |
| 3780 | } |
| 3781 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3782 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3783 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3784 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3785 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3786 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3787 | }, |
| 3788 | |
| 3789 | { |
| 3790 | .vendor = "Eon", |
| 3791 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3792 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3793 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3794 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3795 | .total_size = 256, |
| 3796 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3797 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3798 | .tested = TEST_UNTESTED, |
| 3799 | .probe = probe_spi_rdid, |
| 3800 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3801 | .block_erasers = |
| 3802 | { |
| 3803 | { |
| 3804 | .eraseblocks = { |
| 3805 | {64 * 1024, 3}, |
| 3806 | {32 * 1024, 1}, |
| 3807 | {16 * 1024, 1}, |
| 3808 | {8 * 1024, 1}, |
| 3809 | {4 * 1024, 2}, |
| 3810 | }, |
| 3811 | .block_erase = spi_block_erase_d8, |
| 3812 | }, { |
| 3813 | .eraseblocks = { {256 * 1024, 1} }, |
| 3814 | .block_erase = spi_block_erase_c7, |
| 3815 | } |
| 3816 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3817 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3818 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3819 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3820 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3821 | .voltage = {2700, 3600}, |
| 3822 | }, |
| 3823 | |
| 3824 | { |
| 3825 | .vendor = "Eon", |
| 3826 | .name = "EN25P20", |
| 3827 | .bustype = BUS_SPI, |
| 3828 | .manufacture_id = EON_ID_NOPREFIX, |
| 3829 | .model_id = EON_EN25B20, |
| 3830 | .total_size = 256, |
| 3831 | .page_size = 256, |
| 3832 | .feature_bits = FEATURE_WRSR_WREN, |
| 3833 | .tested = TEST_UNTESTED, |
| 3834 | .probe = probe_spi_rdid, |
| 3835 | .probe_timing = TIMING_ZERO, |
| 3836 | .block_erasers = |
| 3837 | { |
| 3838 | { |
| 3839 | .eraseblocks = { {64 * 1024, 4} }, |
| 3840 | .block_erase = spi_block_erase_d8, |
| 3841 | }, { |
| 3842 | .eraseblocks = { {256 * 1024, 1} }, |
| 3843 | .block_erase = spi_block_erase_c7, |
| 3844 | } |
| 3845 | }, |
| 3846 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3847 | .unlock = spi_disable_blockprotect, |
| 3848 | .write = spi_chip_write_256, |
| 3849 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3850 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3851 | }, |
| 3852 | |
| 3853 | { |
| 3854 | .vendor = "Eon", |
| 3855 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3856 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3857 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3858 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3859 | .total_size = 512, |
| 3860 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3861 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3862 | .tested = TEST_UNTESTED, |
| 3863 | .probe = probe_spi_rdid, |
| 3864 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3865 | .block_erasers = |
| 3866 | { |
| 3867 | { |
| 3868 | .eraseblocks = { |
| 3869 | {4 * 1024, 2}, |
| 3870 | {8 * 1024, 1}, |
| 3871 | {16 * 1024, 1}, |
| 3872 | {32 * 1024, 1}, |
| 3873 | {64 * 1024, 7} |
| 3874 | }, |
| 3875 | .block_erase = spi_block_erase_d8, |
| 3876 | }, { |
| 3877 | .eraseblocks = { {512 * 1024, 1} }, |
| 3878 | .block_erase = spi_block_erase_c7, |
| 3879 | } |
| 3880 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3881 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3882 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3883 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3884 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3885 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3886 | }, |
| 3887 | |
| 3888 | { |
| 3889 | .vendor = "Eon", |
| 3890 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3891 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3892 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3893 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3894 | .total_size = 512, |
| 3895 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3896 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3897 | .tested = TEST_UNTESTED, |
| 3898 | .probe = probe_spi_rdid, |
| 3899 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3900 | .block_erasers = |
| 3901 | { |
| 3902 | { |
| 3903 | .eraseblocks = { |
| 3904 | {64 * 1024, 7}, |
| 3905 | {32 * 1024, 1}, |
| 3906 | {16 * 1024, 1}, |
| 3907 | {8 * 1024, 1}, |
| 3908 | {4 * 1024, 2}, |
| 3909 | }, |
| 3910 | .block_erase = spi_block_erase_d8, |
| 3911 | }, { |
| 3912 | .eraseblocks = { {512 * 1024, 1} }, |
| 3913 | .block_erase = spi_block_erase_c7, |
| 3914 | } |
| 3915 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3916 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3917 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3918 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3919 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3920 | .voltage = {2700, 3600}, |
| 3921 | }, |
| 3922 | |
| 3923 | { |
| 3924 | .vendor = "Eon", |
| 3925 | .name = "EN25P40", |
| 3926 | .bustype = BUS_SPI, |
| 3927 | .manufacture_id = EON_ID_NOPREFIX, |
| 3928 | .model_id = EON_EN25B40, |
| 3929 | .total_size = 512, |
| 3930 | .page_size = 256, |
| 3931 | .feature_bits = FEATURE_WRSR_WREN, |
| 3932 | .tested = TEST_UNTESTED, |
| 3933 | .probe = probe_spi_rdid, |
| 3934 | .probe_timing = TIMING_ZERO, |
| 3935 | .block_erasers = |
| 3936 | { |
| 3937 | { |
| 3938 | .eraseblocks = { {64 * 1024, 8} }, |
| 3939 | .block_erase = spi_block_erase_d8, |
| 3940 | }, { |
| 3941 | .eraseblocks = { {512 * 1024, 1} }, |
| 3942 | .block_erase = spi_block_erase_c7, |
| 3943 | } |
| 3944 | }, |
| 3945 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3946 | .unlock = spi_disable_blockprotect, |
| 3947 | .write = spi_chip_write_256, |
| 3948 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3949 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3950 | }, |
| 3951 | |
| 3952 | { |
| 3953 | .vendor = "Eon", |
| 3954 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3955 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3956 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3957 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3958 | .total_size = 1024, |
| 3959 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3960 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3961 | .tested = TEST_UNTESTED, |
| 3962 | .probe = probe_spi_rdid, |
| 3963 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3964 | .block_erasers = |
| 3965 | { |
| 3966 | { |
| 3967 | .eraseblocks = { |
| 3968 | {4 * 1024, 2}, |
| 3969 | {8 * 1024, 1}, |
| 3970 | {16 * 1024, 1}, |
| 3971 | {32 * 1024, 1}, |
| 3972 | {64 * 1024, 15} |
| 3973 | }, |
| 3974 | .block_erase = spi_block_erase_d8, |
| 3975 | }, { |
| 3976 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3977 | .block_erase = spi_block_erase_c7, |
| 3978 | } |
| 3979 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3980 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3981 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3982 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3983 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3984 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3985 | }, |
| 3986 | |
| 3987 | { |
| 3988 | .vendor = "Eon", |
| 3989 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3990 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3991 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3992 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3993 | .total_size = 1024, |
| 3994 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3995 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3996 | .tested = TEST_UNTESTED, |
| 3997 | .probe = probe_spi_rdid, |
| 3998 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3999 | .block_erasers = |
| 4000 | { |
| 4001 | { |
| 4002 | .eraseblocks = { |
| 4003 | {64 * 1024, 15}, |
| 4004 | {32 * 1024, 1}, |
| 4005 | {16 * 1024, 1}, |
| 4006 | {8 * 1024, 1}, |
| 4007 | {4 * 1024, 2}, |
| 4008 | }, |
| 4009 | .block_erase = spi_block_erase_d8, |
| 4010 | }, { |
| 4011 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4012 | .block_erase = spi_block_erase_c7, |
| 4013 | } |
| 4014 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4015 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4016 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4017 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4018 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4019 | .voltage = {2700, 3600}, |
| 4020 | }, |
| 4021 | |
| 4022 | { |
| 4023 | .vendor = "Eon", |
| 4024 | .name = "EN25P80", |
| 4025 | .bustype = BUS_SPI, |
| 4026 | .manufacture_id = EON_ID_NOPREFIX, |
| 4027 | .model_id = EON_EN25B80, |
| 4028 | .total_size = 1024, |
| 4029 | .page_size = 256, |
| 4030 | .feature_bits = FEATURE_WRSR_WREN, |
| 4031 | .tested = TEST_UNTESTED, |
| 4032 | .probe = probe_spi_rdid, |
| 4033 | .probe_timing = TIMING_ZERO, |
| 4034 | .block_erasers = |
| 4035 | { |
| 4036 | { |
| 4037 | .eraseblocks = { {64 * 1024, 16} }, |
| 4038 | .block_erase = spi_block_erase_d8, |
| 4039 | }, { |
| 4040 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4041 | .block_erase = spi_block_erase_c7, |
| 4042 | } |
| 4043 | }, |
| 4044 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4045 | .unlock = spi_disable_blockprotect, |
| 4046 | .write = spi_chip_write_256, |
| 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}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4049 | }, |
| 4050 | |
| 4051 | { |
| 4052 | .vendor = "Eon", |
| 4053 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4054 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +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, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +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, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +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 | {4 * 1024, 2}, |
| 4068 | {8 * 1024, 1}, |
| 4069 | {16 * 1024, 1}, |
| 4070 | {32 * 1024, 1}, |
| 4071 | {64 * 1024, 31}, |
| 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, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +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 */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4083 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4084 | }, |
| 4085 | |
| 4086 | { |
| 4087 | .vendor = "Eon", |
| 4088 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4089 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4090 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4091 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4092 | .total_size = 2048, |
| 4093 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4094 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4095 | .tested = TEST_UNTESTED, |
| 4096 | .probe = probe_spi_rdid, |
| 4097 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4098 | .block_erasers = |
| 4099 | { |
| 4100 | { |
| 4101 | .eraseblocks = { |
| 4102 | {64 * 1024, 31}, |
| 4103 | {32 * 1024, 1}, |
| 4104 | {16 * 1024, 1}, |
| 4105 | {8 * 1024, 1}, |
| 4106 | {4 * 1024, 2}, |
| 4107 | }, |
| 4108 | .block_erase = spi_block_erase_d8, |
| 4109 | }, { |
| 4110 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4111 | .block_erase = spi_block_erase_c7, |
| 4112 | } |
| 4113 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4114 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4115 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4116 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4117 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4118 | .voltage = {2700, 3600}, |
| 4119 | }, |
| 4120 | |
| 4121 | { |
| 4122 | .vendor = "Eon", |
| 4123 | .name = "EN25P16", |
| 4124 | .bustype = BUS_SPI, |
| 4125 | .manufacture_id = EON_ID_NOPREFIX, |
| 4126 | .model_id = EON_EN25B16, |
| 4127 | .total_size = 2048, |
| 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 = { {64 * 1024, 32} }, |
| 4137 | .block_erase = spi_block_erase_d8, |
| 4138 | }, { |
| 4139 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4140 | .block_erase = spi_block_erase_c7, |
| 4141 | } |
| 4142 | }, |
| 4143 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4144 | .unlock = spi_disable_blockprotect, |
| 4145 | .write = spi_chip_write_256, |
| 4146 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4147 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4148 | }, |
| 4149 | |
| 4150 | { |
| 4151 | .vendor = "Eon", |
| 4152 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4153 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4154 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4155 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4156 | .total_size = 4096, |
| 4157 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4158 | /* OTP: 512B total; enter 0x3A */ |
| 4159 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4160 | .tested = TEST_UNTESTED, |
| 4161 | .probe = probe_spi_rdid, |
| 4162 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4163 | .block_erasers = |
| 4164 | { |
| 4165 | { |
| 4166 | .eraseblocks = { |
| 4167 | {4 * 1024, 2}, |
| 4168 | {8 * 1024, 1}, |
| 4169 | {16 * 1024, 1}, |
| 4170 | {32 * 1024, 1}, |
| 4171 | {64 * 1024, 63}, |
| 4172 | }, |
| 4173 | .block_erase = spi_block_erase_d8, |
| 4174 | }, { |
| 4175 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4176 | .block_erase = spi_block_erase_c7, |
| 4177 | } |
| 4178 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4179 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4180 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4181 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4182 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4183 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4184 | }, |
| 4185 | |
| 4186 | { |
| 4187 | .vendor = "Eon", |
| 4188 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4189 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4190 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4191 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4192 | .total_size = 4096, |
| 4193 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4194 | /* OTP: 512B total; enter 0x3A */ |
| 4195 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4196 | .tested = TEST_UNTESTED, |
| 4197 | .probe = probe_spi_rdid, |
| 4198 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4199 | .block_erasers = |
| 4200 | { |
| 4201 | { |
| 4202 | .eraseblocks = { |
| 4203 | {64 * 1024, 63}, |
| 4204 | {32 * 1024, 1}, |
| 4205 | {16 * 1024, 1}, |
| 4206 | {8 * 1024, 1}, |
| 4207 | {4 * 1024, 2}, |
| 4208 | }, |
| 4209 | .block_erase = spi_block_erase_d8, |
| 4210 | }, { |
| 4211 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4212 | .block_erase = spi_block_erase_c7, |
| 4213 | } |
| 4214 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4215 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4216 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4217 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4218 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4219 | .voltage = {2700, 3600}, |
| 4220 | }, |
| 4221 | |
| 4222 | { |
| 4223 | .vendor = "Eon", |
| 4224 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4225 | .bustype = BUS_SPI, |
| 4226 | .manufacture_id = EON_ID_NOPREFIX, |
| 4227 | .model_id = EON_EN25B32, |
| 4228 | .total_size = 4096, |
| 4229 | .page_size = 256, |
| 4230 | /* OTP: 512B total; enter 0x3A */ |
| 4231 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4232 | .tested = TEST_UNTESTED, |
| 4233 | .probe = probe_spi_rdid, |
| 4234 | .probe_timing = TIMING_ZERO, |
| 4235 | .block_erasers = |
| 4236 | { |
| 4237 | { |
| 4238 | .eraseblocks = { {64 * 1024, 64} }, |
| 4239 | .block_erase = spi_block_erase_d8, |
| 4240 | }, { |
| 4241 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4242 | .block_erase = spi_block_erase_c7, |
| 4243 | } |
| 4244 | }, |
| 4245 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4246 | .unlock = spi_disable_blockprotect, |
| 4247 | .write = spi_chip_write_256, |
| 4248 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4249 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4250 | }, |
| 4251 | |
| 4252 | { |
| 4253 | .vendor = "Eon", |
| 4254 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4255 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4256 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4257 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4258 | .total_size = 8192, |
| 4259 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4260 | /* OTP: 512B total; enter 0x3A */ |
| 4261 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4262 | .tested = TEST_UNTESTED, |
| 4263 | .probe = probe_spi_rdid, |
| 4264 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4265 | .block_erasers = |
| 4266 | { |
| 4267 | { |
| 4268 | .eraseblocks = { |
| 4269 | {4 * 1024, 2}, |
| 4270 | {8 * 1024, 1}, |
| 4271 | {16 * 1024, 1}, |
| 4272 | {32 * 1024, 1}, |
| 4273 | {64 * 1024, 127}, |
| 4274 | }, |
| 4275 | .block_erase = spi_block_erase_d8, |
| 4276 | }, { |
| 4277 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4278 | .block_erase = spi_block_erase_c7, |
| 4279 | } |
| 4280 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4281 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4282 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4283 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4284 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4285 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4286 | }, |
| 4287 | |
| 4288 | { |
| 4289 | .vendor = "Eon", |
| 4290 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4291 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4292 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4293 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4294 | .total_size = 8192, |
| 4295 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4296 | /* OTP: 512B total; enter 0x3A */ |
| 4297 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4298 | .tested = TEST_UNTESTED, |
| 4299 | .probe = probe_spi_rdid, |
| 4300 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4301 | .block_erasers = |
| 4302 | { |
| 4303 | { |
| 4304 | .eraseblocks = { |
| 4305 | {64 * 1024, 127}, |
| 4306 | {32 * 1024, 1}, |
| 4307 | {16 * 1024, 1}, |
| 4308 | {8 * 1024, 1}, |
| 4309 | {4 * 1024, 2}, |
| 4310 | }, |
| 4311 | .block_erase = spi_block_erase_d8, |
| 4312 | }, { |
| 4313 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4314 | .block_erase = spi_block_erase_c7, |
| 4315 | } |
| 4316 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4317 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4318 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4319 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4320 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4321 | .voltage = {2700, 3600}, |
| 4322 | }, |
| 4323 | |
| 4324 | { |
| 4325 | .vendor = "Eon", |
| 4326 | .name = "EN25P64", |
| 4327 | .bustype = BUS_SPI, |
| 4328 | .manufacture_id = EON_ID_NOPREFIX, |
| 4329 | .model_id = EON_EN25B64, |
| 4330 | .total_size = 8192, |
| 4331 | .page_size = 256, |
| 4332 | /* OTP: 512B total; enter 0x3A */ |
| 4333 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4334 | .tested = TEST_UNTESTED, |
| 4335 | .probe = probe_spi_rdid, |
| 4336 | .probe_timing = TIMING_ZERO, |
| 4337 | .block_erasers = |
| 4338 | { |
| 4339 | { |
| 4340 | .eraseblocks = { {64 * 1024, 128} }, |
| 4341 | .block_erase = spi_block_erase_d8, |
| 4342 | }, { |
| 4343 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4344 | .block_erase = spi_block_erase_c7, |
| 4345 | } |
| 4346 | }, |
| 4347 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4348 | .unlock = spi_disable_blockprotect, |
| 4349 | .write = spi_chip_write_256, |
| 4350 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4351 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4352 | }, |
| 4353 | |
| 4354 | { |
| 4355 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4356 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4357 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4358 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4359 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4360 | .total_size = 64, |
| 4361 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4362 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4363 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4364 | .probe = probe_spi_rdid, |
| 4365 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4366 | .block_erasers = |
| 4367 | { |
| 4368 | { |
| 4369 | .eraseblocks = { {4 * 1024, 16} }, |
| 4370 | .block_erase = spi_block_erase_20, |
| 4371 | }, { |
| 4372 | .eraseblocks = { {32 * 1024, 2} }, |
| 4373 | .block_erase = spi_block_erase_d8, |
| 4374 | }, { |
| 4375 | .eraseblocks = { {32 * 1024, 2} }, |
| 4376 | .block_erase = spi_block_erase_52, |
| 4377 | }, { |
| 4378 | .eraseblocks = { {64 * 1024, 1} }, |
| 4379 | .block_erase = spi_block_erase_60, |
| 4380 | }, { |
| 4381 | .eraseblocks = { {64 * 1024, 1} }, |
| 4382 | .block_erase = spi_block_erase_c7, |
| 4383 | } |
| 4384 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4385 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4386 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4387 | .write = spi_chip_write_256, |
| 4388 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4389 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4390 | }, |
| 4391 | |
| 4392 | { |
| 4393 | .vendor = "Eon", |
| 4394 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4395 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4396 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4397 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4398 | .total_size = 128, |
| 4399 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4400 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4401 | .tested = TEST_UNTESTED, |
| 4402 | .probe = probe_spi_rdid, |
| 4403 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4404 | .block_erasers = |
| 4405 | { |
| 4406 | { |
| 4407 | .eraseblocks = { {4 * 1024, 32} }, |
| 4408 | .block_erase = spi_block_erase_20, |
| 4409 | }, { |
| 4410 | .eraseblocks = { {32 * 1024, 4} }, |
| 4411 | .block_erase = spi_block_erase_d8, |
| 4412 | }, { |
| 4413 | .eraseblocks = { {32 * 1024, 4} }, |
| 4414 | .block_erase = spi_block_erase_52, |
| 4415 | }, { |
| 4416 | .eraseblocks = { {128 * 1024, 1} }, |
| 4417 | .block_erase = spi_block_erase_60, |
| 4418 | }, { |
| 4419 | .eraseblocks = { {128 * 1024, 1} }, |
| 4420 | .block_erase = spi_block_erase_c7, |
| 4421 | } |
| 4422 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4423 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4424 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4425 | .write = spi_chip_write_256, |
| 4426 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4427 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4428 | }, |
| 4429 | |
| 4430 | { |
| 4431 | .vendor = "Eon", |
| 4432 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4433 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4434 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4435 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4436 | .total_size = 256, |
| 4437 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4438 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4439 | .tested = TEST_UNTESTED, |
| 4440 | .probe = probe_spi_rdid, |
| 4441 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4442 | .block_erasers = |
| 4443 | { |
| 4444 | { |
| 4445 | .eraseblocks = { {4 * 1024, 64} }, |
| 4446 | .block_erase = spi_block_erase_20, |
| 4447 | }, { |
| 4448 | .eraseblocks = { {64 * 1024, 4} }, |
| 4449 | .block_erase = spi_block_erase_d8, |
| 4450 | }, { |
| 4451 | .eraseblocks = { {64 * 1024, 4} }, |
| 4452 | .block_erase = spi_block_erase_52, |
| 4453 | }, { |
| 4454 | .eraseblocks = { {256 * 1024, 1} }, |
| 4455 | .block_erase = spi_block_erase_60, |
| 4456 | }, { |
| 4457 | .eraseblocks = { {256 * 1024, 1} }, |
| 4458 | .block_erase = spi_block_erase_c7, |
| 4459 | } |
| 4460 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4461 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4462 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4463 | .write = spi_chip_write_256, |
| 4464 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4465 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4466 | }, |
| 4467 | |
| 4468 | { |
| 4469 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4470 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4471 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4472 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4473 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4474 | .total_size = 512, |
| 4475 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4476 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4477 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4478 | .probe = probe_spi_rdid, |
| 4479 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4480 | .block_erasers = |
| 4481 | { |
| 4482 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4483 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4484 | .block_erase = spi_block_erase_20, |
| 4485 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4486 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4487 | .block_erase = spi_block_erase_d8, |
| 4488 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4489 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4490 | .block_erase = spi_block_erase_60, |
| 4491 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4492 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4493 | .block_erase = spi_block_erase_c7, |
| 4494 | }, |
| 4495 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4496 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4497 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4498 | .write = spi_chip_write_256, |
| 4499 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4500 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4501 | }, |
| 4502 | |
| 4503 | { |
| 4504 | .vendor = "Eon", |
| 4505 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4506 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4507 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4508 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4509 | .total_size = 1024, |
| 4510 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4511 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 4512 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4513 | .probe = probe_spi_rdid, |
| 4514 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4515 | .block_erasers = |
| 4516 | { |
| 4517 | { |
| 4518 | .eraseblocks = { {4 * 1024, 256} }, |
| 4519 | .block_erase = spi_block_erase_20, |
| 4520 | }, { |
| 4521 | .eraseblocks = { {64 * 1024, 16} }, |
| 4522 | .block_erase = spi_block_erase_d8, |
| 4523 | }, { |
| 4524 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4525 | .block_erase = spi_block_erase_60, |
| 4526 | }, { |
| 4527 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4528 | .block_erase = spi_block_erase_c7, |
| 4529 | } |
| 4530 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4531 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4532 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4533 | .write = spi_chip_write_256, |
| 4534 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4535 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4536 | }, |
| 4537 | |
| 4538 | { |
| 4539 | .vendor = "Eon", |
| 4540 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4541 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4542 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4543 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4544 | .total_size = 2048, |
| 4545 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4546 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4547 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4548 | .probe = probe_spi_rdid, |
| 4549 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4550 | .block_erasers = |
| 4551 | { |
| 4552 | { |
| 4553 | .eraseblocks = { {4 * 1024, 512} }, |
| 4554 | .block_erase = spi_block_erase_20, |
| 4555 | }, { |
| 4556 | .eraseblocks = { {64 * 1024, 32} }, |
| 4557 | .block_erase = spi_block_erase_d8, |
| 4558 | }, { |
| 4559 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4560 | .block_erase = spi_block_erase_60, |
| 4561 | }, { |
| 4562 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4563 | .block_erase = spi_block_erase_c7, |
| 4564 | } |
| 4565 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4566 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4567 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4568 | .write = spi_chip_write_256, |
| 4569 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4570 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4571 | }, |
| 4572 | |
| 4573 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4574 | .vendor = "Eon", |
| 4575 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4576 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4577 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4578 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4579 | .total_size = 4096, |
| 4580 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4581 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4582 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4583 | .probe = probe_spi_rdid, |
| 4584 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4585 | .block_erasers = |
| 4586 | { |
| 4587 | { |
| 4588 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4589 | .block_erase = spi_block_erase_20, |
| 4590 | }, { |
| 4591 | .eraseblocks = { {64 * 1024, 64} }, |
| 4592 | .block_erase = spi_block_erase_d8, |
| 4593 | }, { |
| 4594 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4595 | .block_erase = spi_block_erase_60, |
| 4596 | }, { |
| 4597 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4598 | .block_erase = spi_block_erase_c7, |
| 4599 | } |
| 4600 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4601 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4602 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4603 | .write = spi_chip_write_256, |
| 4604 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4605 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4606 | }, |
| 4607 | |
| 4608 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4609 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4610 | .name = "EN25F64", |
| 4611 | .bustype = BUS_SPI, |
| 4612 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4613 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4614 | .total_size = 8192, |
| 4615 | .page_size = 256, |
| 4616 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4617 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4618 | .probe = probe_spi_rdid, |
| 4619 | .probe_timing = TIMING_ZERO, |
| 4620 | .block_erasers = |
| 4621 | { |
| 4622 | { |
| 4623 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4624 | .block_erase = spi_block_erase_20, |
| 4625 | }, { |
| 4626 | .eraseblocks = { {64 * 1024, 128} }, |
| 4627 | .block_erase = spi_block_erase_d8, |
| 4628 | }, { |
| 4629 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4630 | .block_erase = spi_block_erase_60, |
| 4631 | }, { |
| 4632 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4633 | .block_erase = spi_block_erase_c7, |
| 4634 | } |
| 4635 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4636 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4637 | .unlock = spi_disable_blockprotect, |
| 4638 | .write = spi_chip_write_256, |
| 4639 | .read = spi_chip_read, |
| 4640 | .voltage = {2700, 3600}, |
| 4641 | }, |
| 4642 | |
| 4643 | { |
| 4644 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4645 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4646 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4647 | .manufacture_id = EON_ID_NOPREFIX, |
| 4648 | .model_id = EON_EN25Q40, |
| 4649 | .total_size = 512, |
| 4650 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4651 | /* OTP: 256B total; enter 0x3A */ |
| 4652 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4653 | .tested = TEST_UNTESTED, |
| 4654 | .probe = probe_spi_rdid, |
| 4655 | .probe_timing = TIMING_ZERO, |
| 4656 | .block_erasers = |
| 4657 | { |
| 4658 | { |
| 4659 | .eraseblocks = { {4 * 1024, 128} }, |
| 4660 | .block_erase = spi_block_erase_20, |
| 4661 | }, { |
| 4662 | .eraseblocks = { {64 * 1024, 8} }, |
| 4663 | .block_erase = spi_block_erase_d8, |
| 4664 | }, { |
| 4665 | .eraseblocks = { {512 * 1024, 1} }, |
| 4666 | .block_erase = spi_block_erase_60, |
| 4667 | }, { |
| 4668 | .eraseblocks = { {512 * 1024, 1} }, |
| 4669 | .block_erase = spi_block_erase_c7, |
| 4670 | } |
| 4671 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4672 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4673 | .unlock = spi_disable_blockprotect, |
| 4674 | .write = spi_chip_write_256, |
| 4675 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4676 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4677 | }, |
| 4678 | |
| 4679 | { |
| 4680 | .vendor = "Eon", |
| 4681 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4682 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4683 | .manufacture_id = EON_ID_NOPREFIX, |
| 4684 | .model_id = EON_EN25Q80, |
| 4685 | .total_size = 1024, |
| 4686 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4687 | /* OTP: 256B total; enter 0x3A */ |
| 4688 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4689 | .tested = TEST_UNTESTED, |
| 4690 | .probe = probe_spi_rdid, |
| 4691 | .probe_timing = TIMING_ZERO, |
| 4692 | .block_erasers = |
| 4693 | { |
| 4694 | { |
| 4695 | .eraseblocks = { {4 * 1024, 256} }, |
| 4696 | .block_erase = spi_block_erase_20, |
| 4697 | }, { |
| 4698 | .eraseblocks = { {64 * 1024, 16} }, |
| 4699 | .block_erase = spi_block_erase_d8, |
| 4700 | }, { |
| 4701 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4702 | .block_erase = spi_block_erase_60, |
| 4703 | }, { |
| 4704 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4705 | .block_erase = spi_block_erase_c7, |
| 4706 | } |
| 4707 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4708 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4709 | .unlock = spi_disable_blockprotect, |
| 4710 | .write = spi_chip_write_256, |
| 4711 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4712 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4713 | }, |
| 4714 | |
| 4715 | { |
| 4716 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4717 | but has different write protection capabilities */ |
| 4718 | .vendor = "Eon", |
| 4719 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4720 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4721 | .manufacture_id = EON_ID_NOPREFIX, |
| 4722 | .model_id = EON_EN25Q16, |
| 4723 | .total_size = 2048, |
| 4724 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4725 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4726 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4727 | .tested = TEST_UNTESTED, |
| 4728 | .probe = probe_spi_rdid, |
| 4729 | .probe_timing = TIMING_ZERO, |
| 4730 | .block_erasers = |
| 4731 | { |
| 4732 | { |
| 4733 | .eraseblocks = { {4 * 1024, 512} }, |
| 4734 | .block_erase = spi_block_erase_20, |
| 4735 | }, { |
| 4736 | .eraseblocks = { {64 * 1024, 32} }, |
| 4737 | .block_erase = spi_block_erase_d8, |
| 4738 | }, { |
| 4739 | /* not supported by Q16 version */ |
| 4740 | .eraseblocks = { {64 * 1024, 32} }, |
| 4741 | .block_erase = spi_block_erase_52, |
| 4742 | }, { |
| 4743 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4744 | .block_erase = spi_block_erase_60, |
| 4745 | }, { |
| 4746 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4747 | .block_erase = spi_block_erase_c7, |
| 4748 | } |
| 4749 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4750 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4751 | .unlock = spi_disable_blockprotect, |
| 4752 | .write = spi_chip_write_256, |
| 4753 | .read = spi_chip_read, |
| 4754 | .voltage = {2700, 3600}, |
| 4755 | }, |
| 4756 | |
| 4757 | { |
| 4758 | .vendor = "Eon", |
| 4759 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4760 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4761 | .manufacture_id = EON_ID_NOPREFIX, |
| 4762 | .model_id = EON_EN25Q32, |
| 4763 | .total_size = 4096, |
| 4764 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4765 | /* OTP: 512B total; enter 0x3A */ |
| 4766 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4767 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4768 | .probe = probe_spi_rdid, |
| 4769 | .probe_timing = TIMING_ZERO, |
| 4770 | .block_erasers = |
| 4771 | { |
| 4772 | { |
| 4773 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4774 | .block_erase = spi_block_erase_20, |
| 4775 | }, { |
| 4776 | .eraseblocks = { {64 * 1024, 64} }, |
| 4777 | .block_erase = spi_block_erase_d8, |
| 4778 | }, { |
| 4779 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4780 | .block_erase = spi_block_erase_60, |
| 4781 | }, { |
| 4782 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4783 | .block_erase = spi_block_erase_c7, |
| 4784 | } |
| 4785 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4786 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4787 | .unlock = spi_disable_blockprotect, |
| 4788 | .write = spi_chip_write_256, |
| 4789 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4790 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4791 | }, |
| 4792 | |
| 4793 | { |
| 4794 | .vendor = "Eon", |
| 4795 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4796 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4797 | .manufacture_id = EON_ID_NOPREFIX, |
| 4798 | .model_id = EON_EN25Q64, |
| 4799 | .total_size = 8192, |
| 4800 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4801 | /* OTP: 512B total; enter 0x3A */ |
| 4802 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4803 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4804 | .probe = probe_spi_rdid, |
| 4805 | .probe_timing = TIMING_ZERO, |
| 4806 | .block_erasers = |
| 4807 | { |
| 4808 | { |
| 4809 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4810 | .block_erase = spi_block_erase_20, |
| 4811 | }, { |
| 4812 | .eraseblocks = { {64 * 1024, 128} }, |
| 4813 | .block_erase = spi_block_erase_d8, |
| 4814 | }, { |
| 4815 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4816 | .block_erase = spi_block_erase_60, |
| 4817 | }, { |
| 4818 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4819 | .block_erase = spi_block_erase_c7, |
| 4820 | } |
| 4821 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4822 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4823 | .unlock = spi_disable_blockprotect, |
| 4824 | .write = spi_chip_write_256, |
| 4825 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4826 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4827 | }, |
| 4828 | |
| 4829 | { |
| 4830 | .vendor = "Eon", |
| 4831 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4832 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4833 | .manufacture_id = EON_ID_NOPREFIX, |
| 4834 | .model_id = EON_EN25Q128, |
| 4835 | .total_size = 16384, |
| 4836 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4837 | /* OTP: 512B total; enter 0x3A */ |
| 4838 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 4839 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4840 | .probe = probe_spi_rdid, |
| 4841 | .probe_timing = TIMING_ZERO, |
| 4842 | .block_erasers = |
| 4843 | { |
| 4844 | { |
| 4845 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4846 | .block_erase = spi_block_erase_20, |
| 4847 | }, { |
| 4848 | .eraseblocks = { {64 * 1024, 256} }, |
| 4849 | .block_erase = spi_block_erase_d8, |
| 4850 | }, { |
| 4851 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4852 | .block_erase = spi_block_erase_60, |
| 4853 | }, { |
| 4854 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4855 | .block_erase = spi_block_erase_c7, |
| 4856 | } |
| 4857 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4858 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4859 | .unlock = spi_disable_blockprotect, |
| 4860 | .write = spi_chip_write_256, |
| 4861 | .read = spi_chip_read, |
| 4862 | }, |
| 4863 | |
| 4864 | { |
| 4865 | .vendor = "Eon", |
| 4866 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4867 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4868 | .manufacture_id = EON_ID_NOPREFIX, |
| 4869 | .model_id = EON_EN25QH16, |
| 4870 | .total_size = 2048, |
| 4871 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4872 | /* supports SFDP */ |
| 4873 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4874 | /* QPI enable 0x38, disable 0xFF */ |
| 4875 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4876 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4877 | .probe = probe_spi_rdid, |
| 4878 | .probe_timing = TIMING_ZERO, |
| 4879 | .block_erasers = |
| 4880 | { |
| 4881 | { |
| 4882 | .eraseblocks = { {4 * 1024, 512} }, |
| 4883 | .block_erase = spi_block_erase_20, |
| 4884 | }, { |
| 4885 | .eraseblocks = { {64 * 1024, 32} }, |
| 4886 | .block_erase = spi_block_erase_d8, |
| 4887 | }, { |
| 4888 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4889 | .block_erase = spi_block_erase_60, |
| 4890 | }, { |
| 4891 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4892 | .block_erase = spi_block_erase_c7, |
| 4893 | } |
| 4894 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4895 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4896 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4897 | .write = spi_chip_write_256, |
| 4898 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4899 | .voltage = {2700, 3600}, |
| 4900 | }, |
| 4901 | |
| 4902 | { |
| 4903 | .vendor = "Eon", |
| 4904 | .name = "EN25QH32", |
| 4905 | .bustype = BUS_SPI, |
| 4906 | .manufacture_id = EON_ID_NOPREFIX, |
| 4907 | .model_id = EON_EN25QH32, |
| 4908 | .total_size = 4096, |
| 4909 | .page_size = 256, |
| 4910 | /* supports SFDP */ |
| 4911 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4912 | /* QPI enable 0x38, disable 0xFF */ |
| 4913 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 4914 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4915 | .probe = probe_spi_rdid, |
| 4916 | .probe_timing = TIMING_ZERO, |
| 4917 | .block_erasers = |
| 4918 | { |
| 4919 | { |
| 4920 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4921 | .block_erase = spi_block_erase_20, |
| 4922 | }, { |
| 4923 | .eraseblocks = { {64 * 1024, 64} }, |
| 4924 | .block_erase = spi_block_erase_d8, |
| 4925 | }, { |
| 4926 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4927 | .block_erase = spi_block_erase_60, |
| 4928 | }, { |
| 4929 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4930 | .block_erase = spi_block_erase_c7, |
| 4931 | } |
| 4932 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4933 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4934 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4935 | .write = spi_chip_write_256, |
| 4936 | .read = spi_chip_read, |
| 4937 | .voltage = {2700, 3600}, |
| 4938 | }, |
| 4939 | |
| 4940 | { |
| 4941 | .vendor = "Eon", |
| 4942 | .name = "EN25QH64", |
| 4943 | .bustype = BUS_SPI, |
| 4944 | .manufacture_id = EON_ID_NOPREFIX, |
| 4945 | .model_id = EON_EN25QH64, |
| 4946 | .total_size = 8192, |
| 4947 | .page_size = 256, |
| 4948 | /* supports SFDP */ |
| 4949 | /* OTP: 512B total; enter 0x3A */ |
| 4950 | /* QPI enable 0x38, disable 0xFF */ |
| 4951 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 4952 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4953 | .probe = probe_spi_rdid, |
| 4954 | .probe_timing = TIMING_ZERO, |
| 4955 | .block_erasers = { |
| 4956 | { |
| 4957 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4958 | .block_erase = spi_block_erase_20, |
| 4959 | }, { |
| 4960 | .eraseblocks = { {64 * 1024, 128} }, |
| 4961 | .block_erase = spi_block_erase_d8, |
| 4962 | }, { |
| 4963 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4964 | .block_erase = spi_block_erase_60, |
| 4965 | }, { |
| 4966 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4967 | .block_erase = spi_block_erase_c7, |
| 4968 | } |
| 4969 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4970 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4971 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4972 | .write = spi_chip_write_256, |
| 4973 | .read = spi_chip_read, |
| 4974 | .voltage = {2700, 3600}, |
| 4975 | }, |
| 4976 | |
| 4977 | { |
| 4978 | .vendor = "Eon", |
| 4979 | .name = "EN25QH128", |
| 4980 | .bustype = BUS_SPI, |
| 4981 | .manufacture_id = EON_ID_NOPREFIX, |
| 4982 | .model_id = EON_EN25QH128, |
| 4983 | .total_size = 16384, |
| 4984 | .page_size = 256, |
| 4985 | /* supports SFDP */ |
| 4986 | /* OTP: 512B total; enter 0x3A */ |
| 4987 | /* QPI enable 0x38, disable 0xFF */ |
| 4988 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4989 | .tested = TEST_UNTESTED, |
| 4990 | .probe = probe_spi_rdid, |
| 4991 | .probe_timing = TIMING_ZERO, |
| 4992 | .block_erasers = { |
| 4993 | { |
| 4994 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4995 | .block_erase = spi_block_erase_20, |
| 4996 | }, { |
| 4997 | .eraseblocks = { {64 * 1024, 256} }, |
| 4998 | .block_erase = spi_block_erase_d8, |
| 4999 | }, { |
| 5000 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 5001 | .block_erase = spi_block_erase_60, |
| 5002 | }, { |
| 5003 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 5004 | .block_erase = spi_block_erase_c7, |
| 5005 | } |
| 5006 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5007 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5008 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5009 | .write = spi_chip_write_256, |
| 5010 | .read = spi_chip_read, |
| 5011 | .voltage = {2700, 3600}, |
| 5012 | }, |
| 5013 | |
| 5014 | { |
| 5015 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5016 | .name = "EN25S10", |
| 5017 | .bustype = BUS_SPI, |
| 5018 | .manufacture_id = EON_ID_NOPREFIX, |
| 5019 | .model_id = EON_EN25S10, |
| 5020 | .total_size = 128, |
| 5021 | .page_size = 256, |
| 5022 | /* OTP: 256B total; enter 0x3A */ |
| 5023 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5024 | .tested = TEST_UNTESTED, |
| 5025 | .probe = probe_spi_rdid, |
| 5026 | .probe_timing = TIMING_ZERO, |
| 5027 | .block_erasers = { |
| 5028 | { |
| 5029 | .eraseblocks = { {4 * 1024, 32} }, |
| 5030 | .block_erase = spi_block_erase_20, |
| 5031 | }, { |
| 5032 | .eraseblocks = { {32 * 1024, 4} }, |
| 5033 | .block_erase = spi_block_erase_52, |
| 5034 | }, { |
| 5035 | .eraseblocks = { {128 * 1024, 1} }, |
| 5036 | .block_erase = spi_block_erase_60, |
| 5037 | }, { |
| 5038 | .eraseblocks = { {128 * 1024, 1} }, |
| 5039 | .block_erase = spi_block_erase_c7, |
| 5040 | } |
| 5041 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5042 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5043 | .unlock = spi_disable_blockprotect, |
| 5044 | .write = spi_chip_write_256, |
| 5045 | .read = spi_chip_read, |
| 5046 | .voltage = {1650, 1950}, |
| 5047 | }, |
| 5048 | |
| 5049 | { |
| 5050 | .vendor = "Eon", |
| 5051 | .name = "EN25S20", |
| 5052 | .bustype = BUS_SPI, |
| 5053 | .manufacture_id = EON_ID_NOPREFIX, |
| 5054 | .model_id = EON_EN25S20, |
| 5055 | .total_size = 256, |
| 5056 | .page_size = 256, |
| 5057 | /* OTP: 256B total; enter 0x3A */ |
| 5058 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5059 | .tested = TEST_UNTESTED, |
| 5060 | .probe = probe_spi_rdid, |
| 5061 | .probe_timing = TIMING_ZERO, |
| 5062 | .block_erasers = { |
| 5063 | { |
| 5064 | .eraseblocks = { {4 * 1024, 64} }, |
| 5065 | .block_erase = spi_block_erase_20, |
| 5066 | }, { |
| 5067 | .eraseblocks = { {64 * 1024, 4} }, |
| 5068 | .block_erase = spi_block_erase_d8, |
| 5069 | }, { |
| 5070 | .eraseblocks = { {256 * 1024, 1} }, |
| 5071 | .block_erase = spi_block_erase_60, |
| 5072 | }, { |
| 5073 | .eraseblocks = { {256 * 1024, 1} }, |
| 5074 | .block_erase = spi_block_erase_c7, |
| 5075 | } |
| 5076 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5077 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5078 | .unlock = spi_disable_blockprotect, |
| 5079 | .write = spi_chip_write_256, |
| 5080 | .read = spi_chip_read, |
| 5081 | .voltage = {1650, 1950}, |
| 5082 | }, |
| 5083 | |
| 5084 | { |
| 5085 | .vendor = "Eon", |
| 5086 | .name = "EN25S40", |
| 5087 | .bustype = BUS_SPI, |
| 5088 | .manufacture_id = EON_ID_NOPREFIX, |
| 5089 | .model_id = EON_EN25S40, |
| 5090 | .total_size = 512, |
| 5091 | .page_size = 256, |
| 5092 | /* OTP: 256B total; enter 0x3A */ |
| 5093 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | c748be5 | 2018-09-30 17:23:03 +0200 | [diff] [blame] | 5094 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5095 | .probe = probe_spi_rdid, |
| 5096 | .probe_timing = TIMING_ZERO, |
| 5097 | .block_erasers = { |
| 5098 | { |
| 5099 | .eraseblocks = { {4 * 1024, 128} }, |
| 5100 | .block_erase = spi_block_erase_20, |
| 5101 | }, { |
| 5102 | .eraseblocks = { {64 * 1024, 8} }, |
| 5103 | .block_erase = spi_block_erase_d8, |
| 5104 | }, { |
| 5105 | .eraseblocks = { {512 * 1024, 1} }, |
| 5106 | .block_erase = spi_block_erase_60, |
| 5107 | }, { |
| 5108 | .eraseblocks = { {512 * 1024, 1} }, |
| 5109 | .block_erase = spi_block_erase_c7, |
| 5110 | } |
| 5111 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5112 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5113 | .unlock = spi_disable_blockprotect, |
| 5114 | .write = spi_chip_write_256, |
| 5115 | .read = spi_chip_read, |
| 5116 | .voltage = {1650, 1950}, |
| 5117 | }, |
| 5118 | |
| 5119 | { |
| 5120 | .vendor = "Eon", |
| 5121 | .name = "EN25S80", |
| 5122 | .bustype = BUS_SPI, |
| 5123 | .manufacture_id = EON_ID_NOPREFIX, |
| 5124 | .model_id = EON_EN25S80, |
| 5125 | .total_size = 1024, |
| 5126 | .page_size = 256, |
| 5127 | /* OTP: 256B total; enter 0x3A */ |
| 5128 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5129 | .tested = TEST_UNTESTED, |
| 5130 | .probe = probe_spi_rdid, |
| 5131 | .probe_timing = TIMING_ZERO, |
| 5132 | .block_erasers = { |
| 5133 | { |
| 5134 | .eraseblocks = { {4 * 1024, 256} }, |
| 5135 | .block_erase = spi_block_erase_20, |
| 5136 | }, { |
| 5137 | .eraseblocks = { {64 * 1024, 16} }, |
| 5138 | .block_erase = spi_block_erase_d8, |
| 5139 | }, { |
| 5140 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5141 | .block_erase = spi_block_erase_60, |
| 5142 | }, { |
| 5143 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5144 | .block_erase = spi_block_erase_c7, |
| 5145 | } |
| 5146 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5147 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5148 | .unlock = spi_disable_blockprotect, |
| 5149 | .write = spi_chip_write_256, |
| 5150 | .read = spi_chip_read, |
| 5151 | .voltage = {1650, 1950}, |
| 5152 | }, |
| 5153 | |
| 5154 | { |
| 5155 | .vendor = "Eon", |
| 5156 | .name = "EN25S16", |
| 5157 | .bustype = BUS_SPI, |
| 5158 | .manufacture_id = EON_ID_NOPREFIX, |
| 5159 | .model_id = EON_EN25S16, |
| 5160 | .total_size = 2048, |
| 5161 | .page_size = 256, |
| 5162 | /* OTP: 512B total; enter 0x3A */ |
| 5163 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5164 | .tested = TEST_UNTESTED, |
| 5165 | .probe = probe_spi_rdid, |
| 5166 | .probe_timing = TIMING_ZERO, |
| 5167 | .block_erasers = { |
| 5168 | { |
| 5169 | .eraseblocks = { {4 * 1024, 512} }, |
| 5170 | .block_erase = spi_block_erase_20, |
| 5171 | }, { |
| 5172 | .eraseblocks = { {64 * 1024, 32} }, |
| 5173 | .block_erase = spi_block_erase_52, |
| 5174 | }, { |
| 5175 | .eraseblocks = { {32 * 1024, 64} }, |
| 5176 | .block_erase = spi_block_erase_d8, |
| 5177 | }, { |
| 5178 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5179 | .block_erase = spi_block_erase_60, |
| 5180 | }, { |
| 5181 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5182 | .block_erase = spi_block_erase_c7, |
| 5183 | } |
| 5184 | }, |
| 5185 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5186 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5187 | .write = spi_chip_write_256, |
| 5188 | .read = spi_chip_read, |
| 5189 | .voltage = {1650, 1950}, |
| 5190 | }, |
| 5191 | |
| 5192 | { |
| 5193 | .vendor = "Eon", |
| 5194 | .name = "EN25S32", |
| 5195 | .bustype = BUS_SPI, |
| 5196 | .manufacture_id = EON_ID_NOPREFIX, |
| 5197 | .model_id = EON_EN25S32, |
| 5198 | .total_size = 4096, |
| 5199 | .page_size = 256, |
| 5200 | /* OTP: 512B total; enter 0x3A */ |
| 5201 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5202 | .tested = TEST_UNTESTED, |
| 5203 | .probe = probe_spi_rdid, |
| 5204 | .probe_timing = TIMING_ZERO, |
| 5205 | .block_erasers = { |
| 5206 | { |
| 5207 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5208 | .block_erase = spi_block_erase_20, |
| 5209 | }, { |
| 5210 | .eraseblocks = { {32 * 1024, 128} }, |
| 5211 | .block_erase = spi_block_erase_52, |
| 5212 | }, { |
| 5213 | .eraseblocks = { {64 * 1024, 64} }, |
| 5214 | .block_erase = spi_block_erase_d8, |
| 5215 | }, { |
| 5216 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5217 | .block_erase = spi_block_erase_60, |
| 5218 | }, { |
| 5219 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5220 | .block_erase = spi_block_erase_c7, |
| 5221 | } |
| 5222 | }, |
| 5223 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5224 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5225 | .write = spi_chip_write_256, |
| 5226 | .read = spi_chip_read, |
| 5227 | .voltage = {1650, 1950}, |
| 5228 | }, |
| 5229 | |
| 5230 | { |
| 5231 | .vendor = "Eon", |
| 5232 | .name = "EN25S64", |
| 5233 | .bustype = BUS_SPI, |
| 5234 | .manufacture_id = EON_ID_NOPREFIX, |
| 5235 | .model_id = EON_EN25S64, |
| 5236 | .total_size = 8192, |
| 5237 | .page_size = 256, |
| 5238 | /* OTP: 512B total; enter 0x3A */ |
| 5239 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5240 | .tested = TEST_UNTESTED, |
| 5241 | .probe = probe_spi_rdid, |
| 5242 | .probe_timing = TIMING_ZERO, |
| 5243 | .block_erasers = { |
| 5244 | { |
| 5245 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5246 | .block_erase = spi_block_erase_20, |
| 5247 | }, { |
| 5248 | .eraseblocks = { {64 * 1024, 128} }, |
| 5249 | .block_erase = spi_block_erase_d8, |
| 5250 | }, { |
| 5251 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5252 | .block_erase = spi_block_erase_60, |
| 5253 | }, { |
| 5254 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5255 | .block_erase = spi_block_erase_c7, |
| 5256 | } |
| 5257 | }, |
| 5258 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5259 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5260 | .write = spi_chip_write_256, |
| 5261 | .read = spi_chip_read, |
| 5262 | .voltage = {1650, 1950}, |
| 5263 | }, |
| 5264 | |
| 5265 | { |
| 5266 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5267 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5268 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5269 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5270 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5271 | .total_size = 128, |
| 5272 | .page_size = 128, |
| 5273 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5274 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5275 | .probe = probe_jedec, |
| 5276 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5277 | .block_erasers = |
| 5278 | { |
| 5279 | { |
| 5280 | .eraseblocks = { {16 * 1024, 8} }, |
| 5281 | .block_erase = erase_sector_jedec, |
| 5282 | }, |
| 5283 | { |
| 5284 | .eraseblocks = { {128 * 1024, 1} }, |
| 5285 | .block_erase = erase_chip_block_jedec, |
| 5286 | }, |
| 5287 | }, |
| 5288 | .write = write_jedec_1, |
| 5289 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5290 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5291 | }, |
| 5292 | |
| 5293 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5294 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5295 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5296 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5297 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5298 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5299 | .total_size = 256, |
| 5300 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5301 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5302 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5303 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5304 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5305 | .block_erasers = |
| 5306 | { |
| 5307 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5308 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5309 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5310 | {8 * 1024, 2}, |
| 5311 | {32 * 1024, 1}, |
| 5312 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5313 | }, |
| 5314 | .block_erase = erase_sector_jedec, |
| 5315 | }, { |
| 5316 | .eraseblocks = { {256 * 1024, 1} }, |
| 5317 | .block_erase = erase_chip_block_jedec, |
| 5318 | }, |
| 5319 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5320 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5321 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5322 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5323 | }, |
| 5324 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5325 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5326 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5327 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5328 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5329 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5330 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5331 | .total_size = 256, |
| 5332 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5333 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5334 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5335 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5336 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5337 | .block_erasers = |
| 5338 | { |
| 5339 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5340 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5341 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5342 | {32 * 1024, 1}, |
| 5343 | {8 * 1024, 2}, |
| 5344 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5345 | }, |
| 5346 | .block_erase = erase_sector_jedec, |
| 5347 | }, { |
| 5348 | .eraseblocks = { {256 * 1024, 1} }, |
| 5349 | .block_erase = erase_chip_block_jedec, |
| 5350 | }, |
| 5351 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5352 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5353 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5354 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5355 | }, |
| 5356 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5357 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5358 | .vendor = "Eon", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5359 | .name = "EN29LV040(A)", |
| 5360 | .bustype = BUS_PARALLEL, |
| 5361 | .manufacture_id = EON_ID, |
| 5362 | .model_id = EON_EN29LV040, |
| 5363 | .total_size = 512, |
| 5364 | .page_size = 4 * 1024, |
| 5365 | .tested = TEST_OK_PREW, |
| 5366 | .probe = probe_jedec, |
| 5367 | .probe_timing = TIMING_ZERO, |
| 5368 | .block_erasers = |
| 5369 | { |
| 5370 | { |
| 5371 | .eraseblocks = { {64 * 1024, 8} }, |
| 5372 | .block_erase = erase_sector_jedec, |
| 5373 | }, |
| 5374 | { |
| 5375 | .eraseblocks = { {512 * 1024, 1} }, |
| 5376 | .block_erase = erase_chip_block_jedec, |
| 5377 | }, |
| 5378 | }, |
| 5379 | .write = write_jedec_1, |
| 5380 | .read = read_memmapped, |
| 5381 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
| 5382 | }, |
| 5383 | |
| 5384 | { |
| 5385 | .vendor = "Eon", |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5386 | .name = "EN29LV640B", |
| 5387 | .bustype = BUS_PARALLEL, |
| 5388 | .manufacture_id = EON_ID, |
| 5389 | .model_id = EON_EN29LV640B, |
| 5390 | .total_size = 8192, |
| 5391 | .page_size = 8192, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5392 | .feature_bits = FEATURE_ADDR_SHIFTED, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5393 | .tested = TEST_OK_PREW, |
| 5394 | .probe = probe_en29lv640b, |
| 5395 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5396 | .block_erasers = |
| 5397 | { |
| 5398 | { |
| 5399 | .eraseblocks = { |
| 5400 | {8 * 1024, 8}, |
| 5401 | {64 * 1024, 127}, |
| 5402 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5403 | .block_erase = erase_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5404 | }, { |
| 5405 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5406 | .block_erase = erase_chip_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5407 | }, |
| 5408 | }, |
| 5409 | .write = write_en29lv640b, |
| 5410 | .read = read_memmapped, |
| 5411 | .voltage = {2700, 3600}, |
| 5412 | }, |
| 5413 | |
| 5414 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5415 | .vendor = "Eon", |
| 5416 | .name = "EN29GL064(A)B", |
| 5417 | .bustype = BUS_PARALLEL, |
| 5418 | .manufacture_id = EON_ID, |
| 5419 | .model_id = EON_EN29GL064B, |
| 5420 | .total_size = 8192, |
| 5421 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5422 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5423 | .tested = TEST_UNTESTED, |
| 5424 | .probe = probe_jedec_29gl, |
| 5425 | .probe_timing = TIMING_ZERO, |
| 5426 | .block_erasers = |
| 5427 | { |
| 5428 | { |
| 5429 | .eraseblocks = { |
| 5430 | {8 * 1024, 8}, |
| 5431 | {64 * 1024, 127}, |
| 5432 | }, |
| 5433 | .block_erase = erase_sector_jedec, |
| 5434 | }, { |
| 5435 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5436 | .block_erase = erase_chip_block_jedec, |
| 5437 | }, |
| 5438 | }, |
| 5439 | .write = write_jedec_1, |
| 5440 | .read = read_memmapped, |
| 5441 | .voltage = {2700, 3600}, |
| 5442 | }, |
| 5443 | |
| 5444 | { |
| 5445 | .vendor = "Eon", |
| 5446 | .name = "EN29GL064(A)T", |
| 5447 | .bustype = BUS_PARALLEL, |
| 5448 | .manufacture_id = EON_ID, |
| 5449 | .model_id = EON_EN29GL064T, |
| 5450 | .total_size = 8192, |
| 5451 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5452 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5453 | .tested = TEST_UNTESTED, |
| 5454 | .probe = probe_jedec_29gl, |
| 5455 | .probe_timing = TIMING_ZERO, |
| 5456 | .block_erasers = |
| 5457 | { |
| 5458 | { |
| 5459 | .eraseblocks = { |
| 5460 | {64 * 1024, 127}, |
| 5461 | {8 * 1024, 8}, |
| 5462 | }, |
| 5463 | .block_erase = erase_sector_jedec, |
| 5464 | }, { |
| 5465 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5466 | .block_erase = erase_chip_block_jedec, |
| 5467 | }, |
| 5468 | }, |
| 5469 | .write = write_jedec_1, |
| 5470 | .read = read_memmapped, |
| 5471 | .voltage = {2700, 3600}, |
| 5472 | }, |
| 5473 | |
| 5474 | { |
| 5475 | .vendor = "Eon", |
| 5476 | .name = "EN29GL064H/L", |
| 5477 | .bustype = BUS_PARALLEL, |
| 5478 | .manufacture_id = EON_ID, |
| 5479 | .model_id = EON_EN29GL064HL, |
| 5480 | .total_size = 8192, |
| 5481 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5482 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5483 | .tested = TEST_UNTESTED, |
| 5484 | .probe = probe_jedec_29gl, |
| 5485 | .probe_timing = TIMING_ZERO, |
| 5486 | .block_erasers = |
| 5487 | { |
| 5488 | { |
| 5489 | .eraseblocks = { {64 * 1024, 128} }, |
| 5490 | .block_erase = erase_sector_jedec, |
| 5491 | }, { |
| 5492 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5493 | .block_erase = erase_chip_block_jedec, |
| 5494 | }, |
| 5495 | }, |
| 5496 | .write = write_jedec_1, |
| 5497 | .read = read_memmapped, |
| 5498 | .voltage = {2700, 3600}, |
| 5499 | }, |
| 5500 | |
| 5501 | { |
| 5502 | .vendor = "Eon", |
| 5503 | .name = "EN29GL128", |
| 5504 | .bustype = BUS_PARALLEL, |
| 5505 | .manufacture_id = EON_ID, |
| 5506 | .model_id = EON_EN29GL128HL, |
| 5507 | .total_size = 16384, |
| 5508 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5509 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5510 | .tested = TEST_UNTESTED, |
| 5511 | .probe = probe_jedec_29gl, |
| 5512 | .probe_timing = TIMING_ZERO, |
| 5513 | .block_erasers = |
| 5514 | { |
| 5515 | { |
| 5516 | .eraseblocks = { {128 * 1024, 128} }, |
| 5517 | .block_erase = erase_sector_jedec, |
| 5518 | }, { |
| 5519 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5520 | .block_erase = erase_chip_block_jedec, |
| 5521 | }, |
| 5522 | }, |
| 5523 | .write = write_jedec_1, |
| 5524 | .read = read_memmapped, |
| 5525 | .voltage = {2700, 3600}, |
| 5526 | }, |
| 5527 | |
| 5528 | { |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5529 | .vendor = "ESI", |
| 5530 | .name = "ES25P40", |
| 5531 | .bustype = BUS_SPI, |
| 5532 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5533 | .model_id = EXCEL_ES25P40, |
| 5534 | .total_size = 512, |
| 5535 | .page_size = 256, |
Elyes HAOUAS | e2c90c4 | 2018-08-18 09:04:41 +0200 | [diff] [blame] | 5536 | /* 256-byte parameter page separate from memory array: |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5537 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5538 | .feature_bits = FEATURE_WRSR_WREN, |
| 5539 | .tested = TEST_UNTESTED, |
| 5540 | .probe = probe_spi_rdid, |
| 5541 | .probe_timing = TIMING_ZERO, |
| 5542 | .block_erasers = |
| 5543 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5544 | { |
| 5545 | .eraseblocks = { {64 * 1024, 8} }, |
| 5546 | .block_erase = spi_block_erase_d8, |
| 5547 | }, { |
| 5548 | .eraseblocks = { {512 * 1024, 1} }, |
| 5549 | .block_erase = spi_block_erase_c7, |
| 5550 | } |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5551 | }, |
| 5552 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5553 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5554 | .write = spi_chip_write_256, |
| 5555 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5556 | .voltage = {2700, 3600}, |
| 5557 | }, |
| 5558 | |
| 5559 | { |
| 5560 | .vendor = "ESI", |
| 5561 | .name = "ES25P80", |
| 5562 | .bustype = BUS_SPI, |
| 5563 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5564 | .model_id = EXCEL_ES25P80, |
| 5565 | .total_size = 1024, |
| 5566 | .page_size = 256, |
Elyes HAOUAS | e2c90c4 | 2018-08-18 09:04:41 +0200 | [diff] [blame] | 5567 | /* 256-byte parameter page separate from memory array: |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5568 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5569 | .feature_bits = FEATURE_WRSR_WREN, |
| 5570 | .tested = TEST_UNTESTED, |
| 5571 | .probe = probe_spi_rdid, |
| 5572 | .probe_timing = TIMING_ZERO, |
| 5573 | .block_erasers = |
| 5574 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5575 | { |
| 5576 | .eraseblocks = { {64 * 1024, 16} }, |
| 5577 | .block_erase = spi_block_erase_d8, |
| 5578 | }, { |
| 5579 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5580 | .block_erase = spi_block_erase_c7, |
| 5581 | } |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5582 | }, |
| 5583 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5584 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5585 | .write = spi_chip_write_256, |
| 5586 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5587 | .voltage = {2700, 3600}, |
| 5588 | }, |
| 5589 | |
| 5590 | { |
| 5591 | .vendor = "ESI", |
| 5592 | .name = "ES25P16", |
| 5593 | .bustype = BUS_SPI, |
| 5594 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 5595 | .model_id = EXCEL_ES25P16, |
| 5596 | .total_size = 2 * 1024, |
| 5597 | .page_size = 256, |
Elyes HAOUAS | e2c90c4 | 2018-08-18 09:04:41 +0200 | [diff] [blame] | 5598 | /* 256-byte parameter page separate from memory array: |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5599 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 5600 | .feature_bits = FEATURE_WRSR_WREN, |
| 5601 | .tested = TEST_UNTESTED, |
| 5602 | .probe = probe_spi_rdid, |
| 5603 | .probe_timing = TIMING_ZERO, |
| 5604 | .block_erasers = |
| 5605 | { |
| 5606 | { |
| 5607 | .eraseblocks = { {64 * 1024, 32} }, |
| 5608 | .block_erase = spi_block_erase_d8, |
| 5609 | }, { |
| 5610 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5611 | .block_erase = spi_block_erase_c7, |
| 5612 | } |
| 5613 | }, |
| 5614 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5615 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5616 | .write = spi_chip_write_256, |
| 5617 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 5618 | .voltage = {2700, 3600}, |
| 5619 | }, |
| 5620 | |
| 5621 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5622 | .vendor = "Fujitsu", |
| 5623 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5624 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5625 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5626 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5627 | .total_size = 512, |
| 5628 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5629 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5630 | .tested = TEST_UNTESTED, |
| 5631 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5632 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5633 | .block_erasers = |
| 5634 | { |
| 5635 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5636 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5637 | {16 * 1024, 1}, |
| 5638 | {8 * 1024, 2}, |
| 5639 | {32 * 1024, 1}, |
| 5640 | {64 * 1024, 7}, |
| 5641 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5642 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5643 | }, { |
| 5644 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5645 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5646 | }, |
| 5647 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5648 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5649 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5650 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5651 | }, |
| 5652 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5653 | { |
| 5654 | .vendor = "Fujitsu", |
| 5655 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5656 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5657 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5658 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5659 | .total_size = 512, |
| 5660 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5661 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5662 | .tested = TEST_UNTESTED, |
| 5663 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5664 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5665 | .block_erasers = |
| 5666 | { |
| 5667 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5668 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5669 | {64 * 1024, 7}, |
| 5670 | {32 * 1024, 1}, |
| 5671 | {8 * 1024, 2}, |
| 5672 | {16 * 1024, 1}, |
| 5673 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5674 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5675 | }, { |
| 5676 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5677 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5678 | }, |
| 5679 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5680 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5681 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5682 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5683 | }, |
| 5684 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5685 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5686 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5687 | .vendor = "Fujitsu", |
| 5688 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5689 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5690 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5691 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5692 | .total_size = 512, |
| 5693 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5694 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5695 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5696 | .probe = probe_jedec, |
| 5697 | .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] | 5698 | .block_erasers = |
| 5699 | { |
| 5700 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5701 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5702 | {16 * 1024, 1}, |
| 5703 | {8 * 1024, 2}, |
| 5704 | {32 * 1024, 1}, |
| 5705 | {64 * 1024, 7}, |
| 5706 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5707 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5708 | }, { |
| 5709 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5710 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5711 | }, |
| 5712 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5713 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5714 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5715 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5716 | }, |
| 5717 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5718 | { |
| 5719 | .vendor = "Fujitsu", |
| 5720 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5721 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5722 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5723 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5724 | .total_size = 512, |
| 5725 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5726 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5727 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5728 | .probe = probe_jedec, |
| 5729 | .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] | 5730 | .block_erasers = |
| 5731 | { |
| 5732 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5733 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5734 | {64 * 1024, 7}, |
| 5735 | {32 * 1024, 1}, |
| 5736 | {8 * 1024, 2}, |
| 5737 | {16 * 1024, 1}, |
| 5738 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5739 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5740 | }, { |
| 5741 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5742 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5743 | }, |
| 5744 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5745 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5746 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5747 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5748 | }, |
| 5749 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5750 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5751 | .vendor = "Fujitsu", |
| 5752 | .name = "MBM29LV160BE", |
| 5753 | .bustype = BUS_PARALLEL, |
| 5754 | .manufacture_id = FUJITSU_ID, |
| 5755 | .model_id = FUJITSU_MBM29LV160BE, |
| 5756 | .total_size = 2 * 1024, |
| 5757 | .page_size = 0, |
| 5758 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5759 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5760 | .probe = probe_jedec, |
| 5761 | .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] | 5762 | .block_erasers = |
| 5763 | { |
| 5764 | { |
| 5765 | .eraseblocks = { |
| 5766 | {16 * 1024, 1}, |
| 5767 | {8 * 1024, 2}, |
| 5768 | {32 * 1024, 1}, |
| 5769 | {64 * 1024, 31}, |
| 5770 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5771 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5772 | }, { |
| 5773 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5774 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5775 | }, |
| 5776 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5777 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5778 | .read = read_memmapped, |
| 5779 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5780 | }, |
| 5781 | |
| 5782 | { |
| 5783 | .vendor = "Fujitsu", |
| 5784 | .name = "MBM29LV160TE", |
| 5785 | .bustype = BUS_PARALLEL, |
| 5786 | .manufacture_id = FUJITSU_ID, |
| 5787 | .model_id = FUJITSU_MBM29LV160TE, |
| 5788 | .total_size = 2 * 1024, |
| 5789 | .page_size = 0, |
| 5790 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5791 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5792 | .probe = probe_jedec, |
| 5793 | .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] | 5794 | .block_erasers = |
| 5795 | { |
| 5796 | { |
| 5797 | .eraseblocks = { |
| 5798 | {64 * 1024, 31}, |
| 5799 | {32 * 1024, 1}, |
| 5800 | {8 * 1024, 2}, |
| 5801 | {16 * 1024, 1}, |
| 5802 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5803 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5804 | }, { |
| 5805 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5806 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5807 | }, |
| 5808 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5809 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5810 | .read = read_memmapped, |
| 5811 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5812 | }, |
| 5813 | |
| 5814 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5815 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5816 | .name = "GD25LQ40", |
| 5817 | .bustype = BUS_SPI, |
| 5818 | .manufacture_id = GIGADEVICE_ID, |
| 5819 | .model_id = GIGADEVICE_GD25LQ40, |
| 5820 | .total_size = 512, |
| 5821 | .page_size = 256, |
| 5822 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5823 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5824 | .tested = TEST_UNTESTED, |
| 5825 | .probe = probe_spi_rdid, |
| 5826 | .probe_timing = TIMING_ZERO, |
| 5827 | .block_erasers = |
| 5828 | { |
| 5829 | { |
| 5830 | .eraseblocks = { {4 * 1024, 128} }, |
| 5831 | .block_erase = spi_block_erase_20, |
| 5832 | }, { |
| 5833 | .eraseblocks = { {32 * 1024, 16} }, |
| 5834 | .block_erase = spi_block_erase_52, |
| 5835 | }, { |
| 5836 | .eraseblocks = { {64 * 1024, 8} }, |
| 5837 | .block_erase = spi_block_erase_d8, |
| 5838 | }, { |
| 5839 | .eraseblocks = { {512 * 1024, 1} }, |
| 5840 | .block_erase = spi_block_erase_60, |
| 5841 | }, { |
| 5842 | .eraseblocks = { {512 * 1024, 1} }, |
| 5843 | .block_erase = spi_block_erase_c7, |
| 5844 | } |
| 5845 | }, |
| 5846 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5847 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5848 | .write = spi_chip_write_256, |
| 5849 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5850 | .voltage = {1695, 1950}, |
| 5851 | }, |
| 5852 | |
| 5853 | { |
| 5854 | .vendor = "GigaDevice", |
| 5855 | .name = "GD25LQ80", |
| 5856 | .bustype = BUS_SPI, |
| 5857 | .manufacture_id = GIGADEVICE_ID, |
| 5858 | .model_id = GIGADEVICE_GD25LQ80, |
| 5859 | .total_size = 1024, |
| 5860 | .page_size = 256, |
| 5861 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5862 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5863 | .tested = TEST_UNTESTED, |
| 5864 | .probe = probe_spi_rdid, |
| 5865 | .probe_timing = TIMING_ZERO, |
| 5866 | .block_erasers = |
| 5867 | { |
| 5868 | { |
| 5869 | .eraseblocks = { {4 * 1024, 256} }, |
| 5870 | .block_erase = spi_block_erase_20, |
| 5871 | }, { |
| 5872 | .eraseblocks = { {32 * 1024, 32} }, |
| 5873 | .block_erase = spi_block_erase_52, |
| 5874 | }, { |
| 5875 | .eraseblocks = { {64 * 1024, 16} }, |
| 5876 | .block_erase = spi_block_erase_d8, |
| 5877 | }, { |
| 5878 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 5879 | .block_erase = spi_block_erase_60, |
| 5880 | }, { |
| 5881 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 5882 | .block_erase = spi_block_erase_c7, |
| 5883 | } |
| 5884 | }, |
| 5885 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5886 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5887 | .write = spi_chip_write_256, |
| 5888 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5889 | .voltage = {1695, 1950}, |
| 5890 | }, |
| 5891 | |
| 5892 | { |
| 5893 | .vendor = "GigaDevice", |
| 5894 | .name = "GD25LQ16", |
| 5895 | .bustype = BUS_SPI, |
| 5896 | .manufacture_id = GIGADEVICE_ID, |
| 5897 | .model_id = GIGADEVICE_GD25LQ16, |
| 5898 | .total_size = 2048, |
| 5899 | .page_size = 256, |
| 5900 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5901 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5902 | .tested = TEST_UNTESTED, |
| 5903 | .probe = probe_spi_rdid, |
| 5904 | .probe_timing = TIMING_ZERO, |
| 5905 | .block_erasers = |
| 5906 | { |
| 5907 | { |
| 5908 | .eraseblocks = { {4 * 1024, 512} }, |
| 5909 | .block_erase = spi_block_erase_20, |
| 5910 | }, { |
| 5911 | .eraseblocks = { {32 * 1024, 64} }, |
| 5912 | .block_erase = spi_block_erase_52, |
| 5913 | }, { |
| 5914 | .eraseblocks = { {64 * 1024, 32} }, |
| 5915 | .block_erase = spi_block_erase_d8, |
| 5916 | }, { |
| 5917 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5918 | .block_erase = spi_block_erase_60, |
| 5919 | }, { |
| 5920 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5921 | .block_erase = spi_block_erase_c7, |
| 5922 | } |
| 5923 | }, |
| 5924 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5925 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5926 | .write = spi_chip_write_256, |
| 5927 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5928 | .voltage = {1695, 1950}, |
| 5929 | }, |
| 5930 | |
| 5931 | { |
| 5932 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5933 | .name = "GD25LQ32", |
| 5934 | .bustype = BUS_SPI, |
| 5935 | .manufacture_id = GIGADEVICE_ID, |
| 5936 | .model_id = GIGADEVICE_GD25LQ32, |
| 5937 | .total_size = 4096, |
| 5938 | .page_size = 256, |
| 5939 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5940 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5941 | .tested = TEST_OK_PREW, |
| 5942 | .probe = probe_spi_rdid, |
| 5943 | .probe_timing = TIMING_ZERO, |
| 5944 | .block_erasers = |
| 5945 | { |
| 5946 | { |
| 5947 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5948 | .block_erase = spi_block_erase_20, |
| 5949 | }, { |
| 5950 | .eraseblocks = { {32 * 1024, 128} }, |
| 5951 | .block_erase = spi_block_erase_52, |
| 5952 | }, { |
| 5953 | .eraseblocks = { {64 * 1024, 64} }, |
| 5954 | .block_erase = spi_block_erase_d8, |
| 5955 | }, { |
| 5956 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5957 | .block_erase = spi_block_erase_60, |
| 5958 | }, { |
| 5959 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5960 | .block_erase = spi_block_erase_c7, |
| 5961 | } |
| 5962 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5963 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5964 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5965 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5966 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5967 | .voltage = {1695, 1950}, |
| 5968 | }, |
| 5969 | |
| 5970 | { |
| 5971 | .vendor = "GigaDevice", |
| 5972 | .name = "GD25LQ64(B)", |
| 5973 | .bustype = BUS_SPI, |
| 5974 | .manufacture_id = GIGADEVICE_ID, |
| 5975 | .model_id = GIGADEVICE_GD25LQ64, |
| 5976 | .total_size = 8192, |
| 5977 | .page_size = 256, |
| 5978 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5979 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5980 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5981 | .probe = probe_spi_rdid, |
| 5982 | .probe_timing = TIMING_ZERO, |
| 5983 | .block_erasers = |
| 5984 | { |
| 5985 | { |
| 5986 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5987 | .block_erase = spi_block_erase_20, |
| 5988 | }, { |
| 5989 | .eraseblocks = { {32 * 1024, 256} }, |
| 5990 | .block_erase = spi_block_erase_52, |
| 5991 | }, { |
| 5992 | .eraseblocks = { {64 * 1024, 128} }, |
| 5993 | .block_erase = spi_block_erase_d8, |
| 5994 | }, { |
| 5995 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5996 | .block_erase = spi_block_erase_60, |
| 5997 | }, { |
| 5998 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5999 | .block_erase = spi_block_erase_c7, |
| 6000 | } |
| 6001 | }, |
| 6002 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6003 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6004 | .write = spi_chip_write_256, |
| 6005 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6006 | .voltage = {1695, 1950}, |
| 6007 | }, |
| 6008 | |
| 6009 | { |
| 6010 | .vendor = "GigaDevice", |
| 6011 | .name = "GD25LQ128", |
| 6012 | .bustype = BUS_SPI, |
| 6013 | .manufacture_id = GIGADEVICE_ID, |
| 6014 | .model_id = GIGADEVICE_GD25LQ128, |
| 6015 | .total_size = 16384, |
| 6016 | .page_size = 256, |
| 6017 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6018 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6019 | .tested = TEST_UNTESTED, |
| 6020 | .probe = probe_spi_rdid, |
| 6021 | .probe_timing = TIMING_ZERO, |
| 6022 | .block_erasers = |
| 6023 | { |
| 6024 | { |
| 6025 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6026 | .block_erase = spi_block_erase_20, |
| 6027 | }, { |
| 6028 | .eraseblocks = { {32 * 1024, 512} }, |
| 6029 | .block_erase = spi_block_erase_52, |
| 6030 | }, { |
| 6031 | .eraseblocks = { {64 * 1024, 256} }, |
| 6032 | .block_erase = spi_block_erase_d8, |
| 6033 | }, { |
| 6034 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6035 | .block_erase = spi_block_erase_60, |
| 6036 | }, { |
| 6037 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6038 | .block_erase = spi_block_erase_c7, |
| 6039 | } |
| 6040 | }, |
| 6041 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6042 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6043 | .write = spi_chip_write_256, |
| 6044 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6045 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6046 | }, |
| 6047 | |
| 6048 | { |
| 6049 | .vendor = "GigaDevice", |
| 6050 | .name = "GD25Q512", |
| 6051 | .bustype = BUS_SPI, |
| 6052 | .manufacture_id = GIGADEVICE_ID, |
| 6053 | .model_id = GIGADEVICE_GD25Q512, |
| 6054 | .total_size = 64, |
| 6055 | .page_size = 256, |
| 6056 | .feature_bits = FEATURE_WRSR_WREN, |
Nico Huber | c6fe5d8 | 2018-08-18 12:45:58 +0200 | [diff] [blame] | 6057 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6058 | .probe = probe_spi_rdid, |
| 6059 | .probe_timing = TIMING_ZERO, |
| 6060 | .block_erasers = { |
| 6061 | { |
| 6062 | .eraseblocks = { {4 * 1024, 16} }, |
| 6063 | .block_erase = spi_block_erase_20, |
| 6064 | }, { |
| 6065 | .eraseblocks = { {32 * 1024, 2} }, |
| 6066 | .block_erase = spi_block_erase_52, |
| 6067 | }, { |
| 6068 | .eraseblocks = { {64 * 1024, 1} }, |
| 6069 | .block_erase = spi_block_erase_60, |
| 6070 | }, { |
| 6071 | .eraseblocks = { {64 * 1024, 1} }, |
| 6072 | .block_erase = spi_block_erase_c7, |
| 6073 | } |
| 6074 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6075 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6076 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6077 | .write = spi_chip_write_256, |
| 6078 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6079 | .voltage = {2700, 3600}, |
| 6080 | }, |
| 6081 | |
| 6082 | { |
| 6083 | .vendor = "GigaDevice", |
| 6084 | .name = "GD25Q10", |
| 6085 | .bustype = BUS_SPI, |
| 6086 | .manufacture_id = GIGADEVICE_ID, |
| 6087 | .model_id = GIGADEVICE_GD25Q10, |
| 6088 | .total_size = 128, |
| 6089 | .page_size = 256, |
| 6090 | .feature_bits = FEATURE_WRSR_WREN, |
| 6091 | .tested = TEST_UNTESTED, |
| 6092 | .probe = probe_spi_rdid, |
| 6093 | .probe_timing = TIMING_ZERO, |
| 6094 | .block_erasers = { |
| 6095 | { |
| 6096 | .eraseblocks = { {4 * 1024, 32} }, |
| 6097 | .block_erase = spi_block_erase_20, |
| 6098 | }, { |
| 6099 | .eraseblocks = { {32 * 1024, 4} }, |
| 6100 | .block_erase = spi_block_erase_52, |
| 6101 | }, { |
| 6102 | .eraseblocks = { {64 * 1024, 2} }, |
| 6103 | .block_erase = spi_block_erase_d8, |
| 6104 | }, { |
| 6105 | .eraseblocks = { {128 * 1024, 1} }, |
| 6106 | .block_erase = spi_block_erase_60, |
| 6107 | }, { |
| 6108 | .eraseblocks = { {128 * 1024, 1} }, |
| 6109 | .block_erase = spi_block_erase_c7, |
| 6110 | } |
| 6111 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6112 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6113 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6114 | .write = spi_chip_write_256, |
| 6115 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6116 | .voltage = {2700, 3600}, |
| 6117 | }, |
| 6118 | |
| 6119 | { |
| 6120 | .vendor = "GigaDevice", |
| 6121 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6122 | .bustype = BUS_SPI, |
| 6123 | .manufacture_id = GIGADEVICE_ID, |
| 6124 | .model_id = GIGADEVICE_GD25Q20, |
| 6125 | .total_size = 256, |
| 6126 | .page_size = 256, |
| 6127 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 6128 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6129 | .probe = probe_spi_rdid, |
| 6130 | .probe_timing = TIMING_ZERO, |
| 6131 | .block_erasers = |
| 6132 | { |
| 6133 | { |
| 6134 | .eraseblocks = { {4 * 1024, 64} }, |
| 6135 | .block_erase = spi_block_erase_20, |
| 6136 | }, { |
| 6137 | .eraseblocks = { {32 * 1024, 8} }, |
| 6138 | .block_erase = spi_block_erase_52, |
| 6139 | }, { |
| 6140 | .eraseblocks = { {64 * 1024, 4} }, |
| 6141 | .block_erase = spi_block_erase_d8, |
| 6142 | }, { |
| 6143 | .eraseblocks = { {256 * 1024, 1} }, |
| 6144 | .block_erase = spi_block_erase_60, |
| 6145 | }, { |
| 6146 | .eraseblocks = { {256 * 1024, 1} }, |
| 6147 | .block_erase = spi_block_erase_c7, |
| 6148 | } |
| 6149 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6150 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6151 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6152 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6153 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6154 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6155 | }, |
| 6156 | |
| 6157 | { |
| 6158 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6159 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6160 | .bustype = BUS_SPI, |
| 6161 | .manufacture_id = GIGADEVICE_ID, |
| 6162 | .model_id = GIGADEVICE_GD25Q40, |
| 6163 | .total_size = 512, |
| 6164 | .page_size = 256, |
| 6165 | .feature_bits = FEATURE_WRSR_WREN, |
| 6166 | .tested = TEST_UNTESTED, |
| 6167 | .probe = probe_spi_rdid, |
| 6168 | .probe_timing = TIMING_ZERO, |
| 6169 | .block_erasers = |
| 6170 | { |
| 6171 | { |
| 6172 | .eraseblocks = { {4 * 1024, 128} }, |
| 6173 | .block_erase = spi_block_erase_20, |
| 6174 | }, { |
| 6175 | .eraseblocks = { {32 * 1024, 16} }, |
| 6176 | .block_erase = spi_block_erase_52, |
| 6177 | }, { |
| 6178 | .eraseblocks = { {64 * 1024, 8} }, |
| 6179 | .block_erase = spi_block_erase_d8, |
| 6180 | }, { |
| 6181 | .eraseblocks = { {512 * 1024, 1} }, |
| 6182 | .block_erase = spi_block_erase_60, |
| 6183 | }, { |
| 6184 | .eraseblocks = { {512 * 1024, 1} }, |
| 6185 | .block_erase = spi_block_erase_c7, |
| 6186 | } |
| 6187 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6188 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6189 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6190 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6191 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6192 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6193 | }, |
| 6194 | |
| 6195 | { |
| 6196 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6197 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6198 | .bustype = BUS_SPI, |
| 6199 | .manufacture_id = GIGADEVICE_ID, |
| 6200 | .model_id = GIGADEVICE_GD25Q80, |
| 6201 | .total_size = 1024, |
| 6202 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6203 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6204 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6205 | .tested = TEST_OK_PREW, |
| 6206 | .probe = probe_spi_rdid, |
| 6207 | .probe_timing = TIMING_ZERO, |
| 6208 | .block_erasers = |
| 6209 | { |
| 6210 | { |
| 6211 | .eraseblocks = { {4 * 1024, 256} }, |
| 6212 | .block_erase = spi_block_erase_20, |
| 6213 | }, { |
| 6214 | .eraseblocks = { {32 * 1024, 32} }, |
| 6215 | .block_erase = spi_block_erase_52, |
| 6216 | }, { |
| 6217 | .eraseblocks = { {64 * 1024, 16} }, |
| 6218 | .block_erase = spi_block_erase_d8, |
| 6219 | }, { |
| 6220 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6221 | .block_erase = spi_block_erase_60, |
| 6222 | }, { |
| 6223 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6224 | .block_erase = spi_block_erase_c7, |
| 6225 | } |
| 6226 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6227 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6228 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6229 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6230 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6231 | .voltage = {2700, 3600}, |
| 6232 | }, |
| 6233 | |
| 6234 | { |
| 6235 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6236 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6237 | .bustype = BUS_SPI, |
| 6238 | .manufacture_id = GIGADEVICE_ID, |
| 6239 | .model_id = GIGADEVICE_GD25Q16, |
| 6240 | .total_size = 2048, |
| 6241 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6242 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6243 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 6244 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6245 | .probe = probe_spi_rdid, |
| 6246 | .probe_timing = TIMING_ZERO, |
| 6247 | .block_erasers = |
| 6248 | { |
| 6249 | { |
| 6250 | .eraseblocks = { {4 * 1024, 512} }, |
| 6251 | .block_erase = spi_block_erase_20, |
| 6252 | }, { |
| 6253 | .eraseblocks = { {32 * 1024, 64} }, |
| 6254 | .block_erase = spi_block_erase_52, |
| 6255 | }, { |
| 6256 | .eraseblocks = { {64 * 1024, 32} }, |
| 6257 | .block_erase = spi_block_erase_d8, |
| 6258 | }, { |
| 6259 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6260 | .block_erase = spi_block_erase_60, |
| 6261 | }, { |
| 6262 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6263 | .block_erase = spi_block_erase_c7, |
| 6264 | } |
| 6265 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6266 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6267 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6268 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6269 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6270 | .voltage = {2700, 3600}, |
| 6271 | }, |
| 6272 | |
| 6273 | { |
| 6274 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6275 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6276 | .bustype = BUS_SPI, |
| 6277 | .manufacture_id = GIGADEVICE_ID, |
| 6278 | .model_id = GIGADEVICE_GD25Q32, |
| 6279 | .total_size = 4096, |
| 6280 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6281 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6282 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6283 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6284 | .probe = probe_spi_rdid, |
| 6285 | .probe_timing = TIMING_ZERO, |
| 6286 | .block_erasers = |
| 6287 | { |
| 6288 | { |
| 6289 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6290 | .block_erase = spi_block_erase_20, |
| 6291 | }, { |
| 6292 | .eraseblocks = { {32 * 1024, 128} }, |
| 6293 | .block_erase = spi_block_erase_52, |
| 6294 | }, { |
| 6295 | .eraseblocks = { {64 * 1024, 64} }, |
| 6296 | .block_erase = spi_block_erase_d8, |
| 6297 | }, { |
| 6298 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6299 | .block_erase = spi_block_erase_60, |
| 6300 | }, { |
| 6301 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6302 | .block_erase = spi_block_erase_c7, |
| 6303 | } |
| 6304 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6305 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6306 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6307 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6308 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6309 | .voltage = {2700, 3600}, |
| 6310 | }, |
| 6311 | |
| 6312 | { |
| 6313 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6314 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6315 | .bustype = BUS_SPI, |
| 6316 | .manufacture_id = GIGADEVICE_ID, |
| 6317 | .model_id = GIGADEVICE_GD25Q64, |
| 6318 | .total_size = 8192, |
| 6319 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6320 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6321 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6322 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6323 | .probe = probe_spi_rdid, |
| 6324 | .probe_timing = TIMING_ZERO, |
| 6325 | .block_erasers = |
| 6326 | { |
| 6327 | { |
| 6328 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6329 | .block_erase = spi_block_erase_20, |
| 6330 | }, { |
| 6331 | .eraseblocks = { {32 * 1024, 256} }, |
| 6332 | .block_erase = spi_block_erase_52, |
| 6333 | }, { |
| 6334 | .eraseblocks = { {64 * 1024, 128} }, |
| 6335 | .block_erase = spi_block_erase_d8, |
| 6336 | }, { |
| 6337 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6338 | .block_erase = spi_block_erase_60, |
| 6339 | }, { |
| 6340 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6341 | .block_erase = spi_block_erase_c7, |
| 6342 | } |
| 6343 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6344 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6345 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6346 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6347 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6348 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6349 | }, |
| 6350 | |
| 6351 | { |
| 6352 | .vendor = "GigaDevice", |
Angel Pons | 20657ce | 2018-09-30 17:05:18 +0200 | [diff] [blame] | 6353 | .name = "GD25B128B/GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6354 | .bustype = BUS_SPI, |
| 6355 | .manufacture_id = GIGADEVICE_ID, |
| 6356 | .model_id = GIGADEVICE_GD25Q128, |
| 6357 | .total_size = 16384, |
| 6358 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6359 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6360 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 20657ce | 2018-09-30 17:05:18 +0200 | [diff] [blame] | 6361 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6362 | .probe = probe_spi_rdid, |
| 6363 | .probe_timing = TIMING_ZERO, |
| 6364 | .block_erasers = |
| 6365 | { |
| 6366 | { |
| 6367 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6368 | .block_erase = spi_block_erase_20, |
| 6369 | }, { |
| 6370 | .eraseblocks = { {32 * 1024, 512} }, |
| 6371 | .block_erase = spi_block_erase_52, |
| 6372 | }, { |
| 6373 | .eraseblocks = { {64 * 1024, 256} }, |
| 6374 | .block_erase = spi_block_erase_d8, |
| 6375 | }, { |
| 6376 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6377 | .block_erase = spi_block_erase_60, |
| 6378 | }, { |
| 6379 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6380 | .block_erase = spi_block_erase_c7, |
| 6381 | } |
| 6382 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6383 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6384 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6385 | .write = spi_chip_write_256, |
| 6386 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6387 | .voltage = {2700, 3600}, |
| 6388 | }, |
| 6389 | |
| 6390 | { |
| 6391 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6392 | .name = "GD25Q128C", |
| 6393 | .bustype = BUS_SPI, |
| 6394 | .manufacture_id = GIGADEVICE_ID, |
| 6395 | .model_id = GIGADEVICE_GD25Q128, |
| 6396 | .total_size = 16384, |
| 6397 | .page_size = 256, |
| 6398 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6399 | /* QPI: enable 0x38, disable 0xFF */ |
| 6400 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Angel Pons | bce364c | 2018-09-30 20:04:14 +0200 | [diff] [blame] | 6401 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6402 | .probe = probe_spi_rdid, |
| 6403 | .probe_timing = TIMING_ZERO, |
| 6404 | .block_erasers = |
| 6405 | { |
| 6406 | { |
| 6407 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6408 | .block_erase = spi_block_erase_20, |
| 6409 | }, { |
| 6410 | .eraseblocks = { {32 * 1024, 512} }, |
| 6411 | .block_erase = spi_block_erase_52, |
| 6412 | }, { |
| 6413 | .eraseblocks = { {64 * 1024, 256} }, |
| 6414 | .block_erase = spi_block_erase_d8, |
| 6415 | }, { |
| 6416 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6417 | .block_erase = spi_block_erase_60, |
| 6418 | }, { |
| 6419 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6420 | .block_erase = spi_block_erase_c7, |
| 6421 | } |
| 6422 | }, |
| 6423 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6424 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6425 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6426 | .write = spi_chip_write_256, |
| 6427 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6428 | .voltage = {2700, 3600}, |
| 6429 | }, |
| 6430 | |
| 6431 | { |
| 6432 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6433 | .name = "GD25T80", |
| 6434 | .bustype = BUS_SPI, |
| 6435 | .manufacture_id = GIGADEVICE_ID, |
| 6436 | .model_id = GIGADEVICE_GD25T80, |
| 6437 | .total_size = 1024, |
| 6438 | .page_size = 256, |
| 6439 | /* OTP: 256B total; enter 0x3A */ |
| 6440 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6441 | .tested = TEST_UNTESTED, |
| 6442 | .probe = probe_spi_rdid, |
| 6443 | .probe_timing = TIMING_ZERO, |
| 6444 | .block_erasers = { |
| 6445 | { |
| 6446 | .eraseblocks = { {4 * 1024, 256} }, |
| 6447 | .block_erase = spi_block_erase_20, |
| 6448 | }, { |
| 6449 | .eraseblocks = { {64 * 1024, 16} }, |
| 6450 | .block_erase = spi_block_erase_52, |
| 6451 | }, { |
| 6452 | .eraseblocks = { {64 * 1024, 16} }, |
| 6453 | .block_erase = spi_block_erase_d8, |
| 6454 | }, { |
| 6455 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6456 | .block_erase = spi_block_erase_60, |
| 6457 | }, { |
| 6458 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6459 | .block_erase = spi_block_erase_c7, |
| 6460 | } |
| 6461 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6462 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6463 | .unlock = spi_disable_blockprotect, |
| 6464 | .write = spi_chip_write_256, |
| 6465 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6466 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6467 | }, |
| 6468 | |
| 6469 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6470 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6471 | .name = "GD25VQ21B", |
| 6472 | .bustype = BUS_SPI, |
| 6473 | .manufacture_id = GIGADEVICE_ID, |
| 6474 | .model_id = GIGADEVICE_GD25VQ21B, |
| 6475 | .total_size = 256, |
| 6476 | .page_size = 256, |
| 6477 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6478 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6479 | .tested = TEST_UNTESTED, |
| 6480 | .probe = probe_spi_rdid, |
| 6481 | .probe_timing = TIMING_ZERO, |
| 6482 | .block_erasers = |
| 6483 | { |
| 6484 | { |
| 6485 | .eraseblocks = { { 4 * 1024, 64} }, |
| 6486 | .block_erase = spi_block_erase_20, |
| 6487 | }, { |
| 6488 | .eraseblocks = { { 32 * 1024, 8} }, |
| 6489 | .block_erase = spi_block_erase_52, |
| 6490 | }, { |
| 6491 | .eraseblocks = { { 64 * 1024, 4} }, |
| 6492 | .block_erase = spi_block_erase_d8, |
| 6493 | }, { |
| 6494 | .eraseblocks = { {256 * 1024, 1} }, |
| 6495 | .block_erase = spi_block_erase_60, |
| 6496 | }, { |
| 6497 | .eraseblocks = { {256 * 1024, 1} }, |
| 6498 | .block_erase = spi_block_erase_c7, |
| 6499 | } |
| 6500 | }, |
| 6501 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6502 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6503 | .write = spi_chip_write_256, |
| 6504 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6505 | .voltage = {2300, 3600}, |
| 6506 | }, |
| 6507 | |
| 6508 | { |
| 6509 | .vendor = "GigaDevice", |
| 6510 | .name = "GD25VQ40C", |
| 6511 | .bustype = BUS_SPI, |
| 6512 | .manufacture_id = GIGADEVICE_ID, |
| 6513 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6514 | .total_size = 512, |
| 6515 | .page_size = 256, |
| 6516 | /* Supports SFDP */ |
| 6517 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6518 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6519 | .tested = TEST_UNTESTED, |
| 6520 | .probe = probe_spi_rdid, |
| 6521 | .probe_timing = TIMING_ZERO, |
| 6522 | .block_erasers = |
| 6523 | { |
| 6524 | { |
| 6525 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6526 | .block_erase = spi_block_erase_20, |
| 6527 | }, { |
| 6528 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6529 | .block_erase = spi_block_erase_52, |
| 6530 | }, { |
| 6531 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6532 | .block_erase = spi_block_erase_d8, |
| 6533 | }, { |
| 6534 | .eraseblocks = { {512 * 1024, 1} }, |
| 6535 | .block_erase = spi_block_erase_60, |
| 6536 | }, { |
| 6537 | .eraseblocks = { {512 * 1024, 1} }, |
| 6538 | .block_erase = spi_block_erase_c7, |
| 6539 | } |
| 6540 | }, |
| 6541 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6542 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6543 | .write = spi_chip_write_256, |
| 6544 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6545 | .voltage = {2300, 3600}, |
| 6546 | }, |
| 6547 | |
| 6548 | { |
| 6549 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6550 | .name = "GD25VQ41B", |
| 6551 | .bustype = BUS_SPI, |
| 6552 | .manufacture_id = GIGADEVICE_ID, |
| 6553 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6554 | .total_size = 512, |
| 6555 | .page_size = 256, |
| 6556 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6557 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6558 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6559 | .probe = probe_spi_rdid, |
| 6560 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6561 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6562 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6563 | { |
| 6564 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6565 | .block_erase = spi_block_erase_20, |
| 6566 | }, { |
| 6567 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6568 | .block_erase = spi_block_erase_52, |
| 6569 | }, { |
| 6570 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6571 | .block_erase = spi_block_erase_d8, |
| 6572 | }, { |
| 6573 | .eraseblocks = { {512 * 1024, 1} }, |
| 6574 | .block_erase = spi_block_erase_60, |
| 6575 | }, { |
| 6576 | .eraseblocks = { {512 * 1024, 1} }, |
| 6577 | .block_erase = spi_block_erase_c7, |
| 6578 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6579 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6580 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6581 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6582 | .write = spi_chip_write_256, |
| 6583 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6584 | .voltage = {2300, 3600}, |
| 6585 | }, |
| 6586 | |
| 6587 | { |
| 6588 | .vendor = "GigaDevice", |
| 6589 | .name = "GD25VQ80C", |
| 6590 | .bustype = BUS_SPI, |
| 6591 | .manufacture_id = GIGADEVICE_ID, |
| 6592 | .model_id = GIGADEVICE_GD25VQ80C, |
| 6593 | .total_size = 1024, |
| 6594 | .page_size = 256, |
| 6595 | /* Supports SFDP */ |
| 6596 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6597 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6598 | .tested = TEST_UNTESTED, |
| 6599 | .probe = probe_spi_rdid, |
| 6600 | .probe_timing = TIMING_ZERO, |
| 6601 | .block_erasers = |
| 6602 | { |
| 6603 | { |
| 6604 | .eraseblocks = { { 4 * 1024, 256} }, |
| 6605 | .block_erase = spi_block_erase_20, |
| 6606 | }, { |
| 6607 | .eraseblocks = { { 32 * 1024, 32} }, |
| 6608 | .block_erase = spi_block_erase_52, |
| 6609 | }, { |
| 6610 | .eraseblocks = { { 64 * 1024, 16} }, |
| 6611 | .block_erase = spi_block_erase_d8, |
| 6612 | }, { |
| 6613 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6614 | .block_erase = spi_block_erase_60, |
| 6615 | }, { |
| 6616 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6617 | .block_erase = spi_block_erase_c7, |
| 6618 | } |
| 6619 | }, |
| 6620 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6621 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6622 | .write = spi_chip_write_256, |
| 6623 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6624 | .voltage = {2300, 3600}, |
| 6625 | }, |
| 6626 | |
| 6627 | { |
| 6628 | .vendor = "GigaDevice", |
| 6629 | .name = "GD25VQ16C", |
| 6630 | .bustype = BUS_SPI, |
| 6631 | .manufacture_id = GIGADEVICE_ID, |
| 6632 | .model_id = GIGADEVICE_GD25VQ16C, |
| 6633 | .total_size = 2 * 1024, |
| 6634 | .page_size = 256, |
| 6635 | /* Supports SFDP */ |
| 6636 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6637 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6638 | .tested = TEST_UNTESTED, |
| 6639 | .probe = probe_spi_rdid, |
| 6640 | .probe_timing = TIMING_ZERO, |
| 6641 | .block_erasers = |
| 6642 | { |
| 6643 | { |
| 6644 | .eraseblocks = { { 4 * 1024, 512} }, |
| 6645 | .block_erase = spi_block_erase_20, |
| 6646 | }, { |
| 6647 | .eraseblocks = { { 32 * 1024, 64} }, |
| 6648 | .block_erase = spi_block_erase_52, |
| 6649 | }, { |
| 6650 | .eraseblocks = { { 64 * 1024, 32} }, |
| 6651 | .block_erase = spi_block_erase_d8, |
| 6652 | }, { |
| 6653 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6654 | .block_erase = spi_block_erase_60, |
| 6655 | }, { |
| 6656 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6657 | .block_erase = spi_block_erase_c7, |
| 6658 | } |
| 6659 | }, |
| 6660 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6661 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6662 | .write = spi_chip_write_256, |
| 6663 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6664 | .voltage = {2300, 3600}, |
| 6665 | }, |
| 6666 | |
| 6667 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6668 | .vendor = "Hyundai", |
| 6669 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6670 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6671 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6672 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6673 | .total_size = 256, |
| 6674 | .page_size = 256 * 1024, |
| 6675 | .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] | 6676 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6677 | .probe = probe_jedec, |
| 6678 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6679 | .block_erasers = |
| 6680 | { |
| 6681 | { |
| 6682 | .eraseblocks = { |
| 6683 | {64 * 1024, 3}, |
| 6684 | {32 * 1024, 1}, |
| 6685 | {8 * 1024, 2}, |
| 6686 | {16 * 1024, 1}, |
| 6687 | }, |
| 6688 | .block_erase = erase_sector_jedec, |
| 6689 | }, { |
| 6690 | .eraseblocks = { {256 * 1024, 1} }, |
| 6691 | .block_erase = erase_chip_block_jedec, |
| 6692 | }, |
| 6693 | }, |
| 6694 | .write = write_jedec_1, |
| 6695 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6696 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6697 | }, |
| 6698 | |
| 6699 | { |
| 6700 | .vendor = "Hyundai", |
| 6701 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6702 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6703 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6704 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6705 | .total_size = 256, |
| 6706 | .page_size = 256 * 1024, |
| 6707 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 6708 | .tested = TEST_UNTESTED, |
| 6709 | .probe = probe_jedec, |
| 6710 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6711 | .block_erasers = |
| 6712 | { |
| 6713 | { |
| 6714 | .eraseblocks = { |
| 6715 | {16 * 1024, 1}, |
| 6716 | {8 * 1024, 2}, |
| 6717 | {32 * 1024, 1}, |
| 6718 | {64 * 1024, 3}, |
| 6719 | }, |
| 6720 | .block_erase = erase_sector_jedec, |
| 6721 | }, { |
| 6722 | .eraseblocks = { {256 * 1024, 1} }, |
| 6723 | .block_erase = erase_chip_block_jedec, |
| 6724 | }, |
| 6725 | }, |
| 6726 | .write = write_jedec_1, |
| 6727 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6728 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6729 | }, |
| 6730 | |
| 6731 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6732 | .vendor = "Hyundai", |
| 6733 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6734 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6735 | .manufacture_id = HYUNDAI_ID, |
| 6736 | .model_id = HYUNDAI_HY29F040A, |
| 6737 | .total_size = 512, |
| 6738 | .page_size = 64 * 1024, |
| 6739 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6740 | .tested = TEST_UNTESTED, |
| 6741 | .probe = probe_jedec, |
| 6742 | .probe_timing = TIMING_ZERO, |
| 6743 | .block_erasers = |
| 6744 | { |
| 6745 | { |
| 6746 | .eraseblocks = { {64 * 1024, 8} }, |
| 6747 | .block_erase = erase_sector_jedec, |
| 6748 | }, { |
| 6749 | .eraseblocks = { {512 * 1024, 1} }, |
| 6750 | .block_erase = erase_chip_block_jedec, |
| 6751 | }, |
| 6752 | }, |
| 6753 | .write = write_jedec_1, |
| 6754 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6755 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6756 | }, |
| 6757 | |
| 6758 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6759 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6760 | .name = "25F160S33B8", |
| 6761 | .bustype = BUS_SPI, |
| 6762 | .manufacture_id = INTEL_ID, |
| 6763 | .model_id = INTEL_25F160S33B8, |
| 6764 | .total_size = 2048, |
| 6765 | .page_size = 256, |
| 6766 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6767 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6768 | .tested = TEST_UNTESTED, |
| 6769 | .probe = probe_spi_rdid, |
| 6770 | .probe_timing = TIMING_ZERO, |
| 6771 | .block_erasers = |
| 6772 | { |
| 6773 | { |
| 6774 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6775 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6776 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6777 | .eraseblocks = { |
| 6778 | {8 * 1024, 8}, |
| 6779 | {64 * 1024, 31} // inaccessible |
| 6780 | }, |
| 6781 | .block_erase = spi_block_erase_40, |
| 6782 | }, { */ |
| 6783 | .eraseblocks = { {64 * 1024, 32} }, |
| 6784 | .block_erase = spi_block_erase_d8, |
| 6785 | }, { |
| 6786 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6787 | .block_erase = spi_block_erase_c7, |
| 6788 | } |
| 6789 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6790 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6791 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6792 | .write = spi_chip_write_256, |
| 6793 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6794 | .voltage = {2700, 3600}, |
| 6795 | }, |
| 6796 | |
| 6797 | { |
| 6798 | .vendor = "Intel", |
| 6799 | .name = "25F160S33T8", |
| 6800 | .bustype = BUS_SPI, |
| 6801 | .manufacture_id = INTEL_ID, |
| 6802 | .model_id = INTEL_25F160S33T8, |
| 6803 | .total_size = 2048, |
| 6804 | .page_size = 256, |
| 6805 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6806 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6807 | .tested = TEST_UNTESTED, |
| 6808 | .probe = probe_spi_rdid, |
| 6809 | .probe_timing = TIMING_ZERO, |
| 6810 | .block_erasers = |
| 6811 | { |
| 6812 | { |
| 6813 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6814 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6815 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6816 | .eraseblocks = { |
| 6817 | {64 * 1024, 31}, // inaccessible |
| 6818 | {8 * 1024, 8} |
| 6819 | }, |
| 6820 | .block_erase = spi_block_erase_40, |
| 6821 | }, { */ |
| 6822 | .eraseblocks = { {64 * 1024, 32} }, |
| 6823 | .block_erase = spi_block_erase_d8, |
| 6824 | }, { |
| 6825 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6826 | .block_erase = spi_block_erase_c7, |
| 6827 | } |
| 6828 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6829 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6830 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6831 | .write = spi_chip_write_256, |
| 6832 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6833 | .voltage = {2700, 3600}, |
| 6834 | }, |
| 6835 | |
| 6836 | { |
| 6837 | .vendor = "Intel", |
| 6838 | .name = "25F320S33B8", |
| 6839 | .bustype = BUS_SPI, |
| 6840 | .manufacture_id = INTEL_ID, |
| 6841 | .model_id = INTEL_25F320S33B8, |
| 6842 | .total_size = 4096, |
| 6843 | .page_size = 256, |
| 6844 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6845 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6846 | .tested = TEST_UNTESTED, |
| 6847 | .probe = probe_spi_rdid, |
| 6848 | .probe_timing = TIMING_ZERO, |
| 6849 | .block_erasers = |
| 6850 | { |
| 6851 | { |
| 6852 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6853 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6854 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6855 | .eraseblocks = { |
| 6856 | {8 * 1024, 8}, |
| 6857 | {64 * 1024, 63} // inaccessible |
| 6858 | }, |
| 6859 | .block_erase = spi_block_erase_40, |
| 6860 | }, { */ |
| 6861 | .eraseblocks = { {64 * 1024, 64} }, |
| 6862 | .block_erase = spi_block_erase_d8, |
| 6863 | }, { |
| 6864 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6865 | .block_erase = spi_block_erase_c7, |
| 6866 | } |
| 6867 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6868 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6869 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6870 | .write = spi_chip_write_256, |
| 6871 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6872 | .voltage = {2700, 3600}, |
| 6873 | }, |
| 6874 | |
| 6875 | { |
| 6876 | .vendor = "Intel", |
| 6877 | .name = "25F320S33T8", |
| 6878 | .bustype = BUS_SPI, |
| 6879 | .manufacture_id = INTEL_ID, |
| 6880 | .model_id = INTEL_25F320S33T8, |
| 6881 | .total_size = 4096, |
| 6882 | .page_size = 256, |
| 6883 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6884 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6885 | .tested = TEST_UNTESTED, |
| 6886 | .probe = probe_spi_rdid, |
| 6887 | .probe_timing = TIMING_ZERO, |
| 6888 | .block_erasers = |
| 6889 | { |
| 6890 | { |
| 6891 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6892 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6893 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6894 | .eraseblocks = { |
| 6895 | {64 * 1024, 63}, // inaccessible |
| 6896 | {8 * 1024, 8} |
| 6897 | }, |
| 6898 | .block_erase = spi_block_erase_40, |
| 6899 | }, { */ |
| 6900 | .eraseblocks = { {64 * 1024, 64} }, |
| 6901 | .block_erase = spi_block_erase_d8, |
| 6902 | }, { |
| 6903 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6904 | .block_erase = spi_block_erase_c7, |
| 6905 | } |
| 6906 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6907 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6908 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6909 | .write = spi_chip_write_256, |
| 6910 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6911 | .voltage = {2700, 3600}, |
| 6912 | }, |
| 6913 | |
| 6914 | { |
| 6915 | .vendor = "Intel", |
| 6916 | .name = "25F640S33B8", |
| 6917 | .bustype = BUS_SPI, |
| 6918 | .manufacture_id = INTEL_ID, |
| 6919 | .model_id = INTEL_25F640S33B8, |
| 6920 | .total_size = 8192, |
| 6921 | .page_size = 256, |
| 6922 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6923 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6924 | .tested = TEST_UNTESTED, |
| 6925 | .probe = probe_spi_rdid, |
| 6926 | .probe_timing = TIMING_ZERO, |
| 6927 | .block_erasers = |
| 6928 | { |
| 6929 | { |
| 6930 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6931 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6932 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6933 | .eraseblocks = { |
| 6934 | {8 * 1024, 8}, |
| 6935 | {64 * 1024, 127} // inaccessible |
| 6936 | }, |
| 6937 | .block_erase = spi_block_erase_40, |
| 6938 | }, { */ |
| 6939 | .eraseblocks = { {64 * 1024, 128} }, |
| 6940 | .block_erase = spi_block_erase_d8, |
| 6941 | }, { |
| 6942 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6943 | .block_erase = spi_block_erase_c7, |
| 6944 | } |
| 6945 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6946 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6947 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6948 | .write = spi_chip_write_256, |
| 6949 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6950 | .voltage = {2700, 3600}, |
| 6951 | }, |
| 6952 | |
| 6953 | { |
| 6954 | .vendor = "Intel", |
| 6955 | .name = "25F640S33T8", |
| 6956 | .bustype = BUS_SPI, |
| 6957 | .manufacture_id = INTEL_ID, |
| 6958 | .model_id = INTEL_25F640S33T8, |
| 6959 | .total_size = 8192, |
| 6960 | .page_size = 256, |
| 6961 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6962 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6963 | .tested = TEST_UNTESTED, |
| 6964 | .probe = probe_spi_rdid, |
| 6965 | .probe_timing = TIMING_ZERO, |
| 6966 | .block_erasers = |
| 6967 | { |
| 6968 | { |
| 6969 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6970 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6971 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6972 | .eraseblocks = { |
| 6973 | {64 * 1024, 127}, // inaccessible |
| 6974 | {8 * 1024, 8} |
| 6975 | }, |
| 6976 | .block_erase = spi_block_erase_40, |
| 6977 | }, { */ |
| 6978 | .eraseblocks = { {64 * 1024, 128} }, |
| 6979 | .block_erase = spi_block_erase_d8, |
| 6980 | }, { |
| 6981 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6982 | .block_erase = spi_block_erase_c7, |
| 6983 | } |
| 6984 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6985 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6986 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6987 | .write = spi_chip_write_256, |
| 6988 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6989 | .voltage = {2700, 3600}, |
| 6990 | }, |
| 6991 | |
| 6992 | { |
| 6993 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6994 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6995 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6996 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6997 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6998 | .total_size = 128, |
| 6999 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 7000 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 7001 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7002 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7003 | .block_erasers = |
| 7004 | { |
| 7005 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7006 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7007 | {8 * 1024, 1}, |
| 7008 | {4 * 1024, 2}, |
| 7009 | {112 * 1024, 1}, |
| 7010 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7011 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7012 | }, |
| 7013 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 7014 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 7015 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7016 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 7017 | }, |
| 7018 | |
| 7019 | { |
| 7020 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7021 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7022 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 7023 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7024 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 7025 | .total_size = 128, |
| 7026 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7027 | .tested = TEST_OK_PREW, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 7028 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7029 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7030 | .block_erasers = |
| 7031 | { |
| 7032 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7033 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7034 | {112 * 1024, 1}, |
| 7035 | {4 * 1024, 2}, |
| 7036 | {8 * 1024, 1}, |
| 7037 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7038 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7039 | }, |
| 7040 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 7041 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 7042 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7043 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 7044 | }, |
| 7045 | |
| 7046 | { |
| 7047 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7048 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7049 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 7050 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7051 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 7052 | .total_size = 256, |
| 7053 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7054 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 7055 | .probe = probe_82802ab, |
| 7056 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7057 | .block_erasers = |
| 7058 | { |
| 7059 | { |
| 7060 | .eraseblocks = { |
| 7061 | {128 * 1024, 1}, |
| 7062 | {96 * 1024, 1}, |
| 7063 | {8 * 1024, 2}, |
| 7064 | {16 * 1024, 1}, |
| 7065 | }, |
| 7066 | .block_erase = erase_block_82802ab, |
| 7067 | }, |
| 7068 | }, |
| 7069 | .write = write_82802ab, |
| 7070 | .read = read_memmapped, |
| 7071 | }, |
| 7072 | |
| 7073 | { |
| 7074 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7075 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7076 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 7077 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7078 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 7079 | .total_size = 512, |
| 7080 | .page_size = 256, |
| 7081 | .tested = TEST_UNTESTED, |
| 7082 | .probe = probe_82802ab, |
| 7083 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 7084 | .block_erasers = |
| 7085 | { |
| 7086 | { |
| 7087 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7088 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 7089 | }, |
| 7090 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 7091 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 7092 | .write = write_82802ab, |
| 7093 | .read = read_memmapped, |
| 7094 | }, |
| 7095 | |
| 7096 | { |
| 7097 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7098 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7099 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7100 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7101 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7102 | .total_size = 512, |
| 7103 | .page_size = 128 * 1024, /* maximal block size */ |
| 7104 | .tested = TEST_UNTESTED, |
| 7105 | .probe = probe_82802ab, |
| 7106 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7107 | .block_erasers = |
| 7108 | { |
| 7109 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7110 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7111 | {16 * 1024, 1}, |
| 7112 | {8 * 1024, 2}, |
| 7113 | {96 * 1024, 1}, |
| 7114 | {128 * 1024, 3}, |
| 7115 | }, |
| 7116 | .block_erase = erase_block_82802ab, |
| 7117 | }, |
| 7118 | }, |
| 7119 | .write = write_82802ab, |
| 7120 | .read = read_memmapped, |
| 7121 | }, |
| 7122 | |
| 7123 | { |
| 7124 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7125 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7126 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7127 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7128 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7129 | .total_size = 512, |
| 7130 | .page_size = 128 * 1024, /* maximal block size */ |
| 7131 | .tested = TEST_UNTESTED, |
| 7132 | .probe = probe_82802ab, |
| 7133 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7134 | .block_erasers = |
| 7135 | { |
| 7136 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7137 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7138 | {128 * 1024, 3}, |
| 7139 | {96 * 1024, 1}, |
| 7140 | {8 * 1024, 2}, |
| 7141 | {16 * 1024, 1}, |
| 7142 | }, |
| 7143 | .block_erase = erase_block_82802ab, |
| 7144 | }, |
| 7145 | }, |
| 7146 | .write = write_82802ab, |
| 7147 | .read = read_memmapped, |
| 7148 | }, |
| 7149 | |
| 7150 | { |
| 7151 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7152 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7153 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7154 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7155 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7156 | .total_size = 512, |
| 7157 | .page_size = 128 * 1024, /* maximal block size */ |
| 7158 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7159 | .tested = TEST_UNTESTED, |
| 7160 | .probe = probe_82802ab, |
| 7161 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7162 | .block_erasers = |
| 7163 | { |
| 7164 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7165 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7166 | {16 * 1024, 1}, |
| 7167 | {8 * 1024, 2}, |
| 7168 | {96 * 1024, 1}, |
| 7169 | {128 * 1024, 3}, |
| 7170 | }, |
| 7171 | .block_erase = erase_block_82802ab, |
| 7172 | }, |
| 7173 | }, |
| 7174 | .write = write_82802ab, |
| 7175 | .read = read_memmapped, |
| 7176 | }, |
| 7177 | |
| 7178 | { |
| 7179 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7180 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7181 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7182 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7183 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7184 | .total_size = 512, |
| 7185 | .page_size = 128 * 1024, /* maximal block size */ |
| 7186 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7187 | .tested = TEST_UNTESTED, |
| 7188 | .probe = probe_82802ab, |
| 7189 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7190 | .block_erasers = |
| 7191 | { |
| 7192 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7193 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 7194 | {128 * 1024, 3}, |
| 7195 | {96 * 1024, 1}, |
| 7196 | {8 * 1024, 2}, |
| 7197 | {16 * 1024, 1}, |
| 7198 | }, |
| 7199 | .block_erase = erase_block_82802ab, |
| 7200 | }, |
| 7201 | }, |
| 7202 | .write = write_82802ab, |
| 7203 | .read = read_memmapped, |
| 7204 | }, |
| 7205 | |
| 7206 | { |
| 7207 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7208 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7209 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7210 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7211 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7212 | .total_size = 512, |
| 7213 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7214 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7215 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7216 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7217 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7218 | .block_erasers = |
| 7219 | { |
| 7220 | { |
| 7221 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7222 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7223 | }, |
| 7224 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7225 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7226 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7227 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7228 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7229 | }, |
| 7230 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7231 | { |
| 7232 | .vendor = "Intel", |
| 7233 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7234 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7235 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 7236 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7237 | .total_size = 1024, |
| 7238 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7239 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7240 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7241 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7242 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7243 | .block_erasers = |
| 7244 | { |
| 7245 | { |
| 7246 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7247 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7248 | }, |
| 7249 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 7250 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7251 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7252 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7253 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7254 | }, |
| 7255 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7256 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7257 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7258 | .name = "IS25LP064", |
| 7259 | .bustype = BUS_SPI, |
| 7260 | .manufacture_id = ISSI_ID_SPI, |
| 7261 | .model_id = ISSI_IS25LP064, |
| 7262 | .total_size = 8192, |
| 7263 | .page_size = 256, |
| 7264 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7265 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7266 | .tested = TEST_UNTESTED, |
| 7267 | .probe = probe_spi_rdid, |
| 7268 | .probe_timing = TIMING_ZERO, |
| 7269 | .block_erasers = |
| 7270 | { |
| 7271 | { |
| 7272 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7273 | .block_erase = spi_block_erase_20, |
| 7274 | }, { |
| 7275 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7276 | .block_erase = spi_block_erase_d7, |
| 7277 | }, { |
| 7278 | .eraseblocks = { {32 * 1024, 256} }, |
| 7279 | .block_erase = spi_block_erase_52, |
| 7280 | }, { |
| 7281 | .eraseblocks = { {64 * 1024, 128} }, |
| 7282 | .block_erase = spi_block_erase_d8, |
| 7283 | }, { |
| 7284 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7285 | .block_erase = spi_block_erase_60, |
| 7286 | }, { |
| 7287 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7288 | .block_erase = spi_block_erase_c7, |
| 7289 | } |
| 7290 | }, |
| 7291 | .unlock = spi_disable_blockprotect, |
| 7292 | .write = spi_chip_write_256, |
| 7293 | .read = spi_chip_read, |
| 7294 | .voltage = {2300, 3600}, |
| 7295 | }, |
| 7296 | |
| 7297 | { |
| 7298 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7299 | .name = "IS25LP128", |
| 7300 | .bustype = BUS_SPI, |
| 7301 | .manufacture_id = ISSI_ID_SPI, |
| 7302 | .model_id = ISSI_IS25LP128, |
| 7303 | .total_size = 16384, |
| 7304 | .page_size = 256, |
| 7305 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7306 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7307 | .tested = TEST_OK_PREW, |
| 7308 | .probe = probe_spi_rdid, |
| 7309 | .probe_timing = TIMING_ZERO, |
| 7310 | .block_erasers = |
| 7311 | { |
| 7312 | { |
| 7313 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7314 | .block_erase = spi_block_erase_20, |
| 7315 | }, { |
| 7316 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7317 | .block_erase = spi_block_erase_d7, |
| 7318 | }, { |
| 7319 | .eraseblocks = { {32 * 1024, 512} }, |
| 7320 | .block_erase = spi_block_erase_52, |
| 7321 | }, { |
| 7322 | .eraseblocks = { {64 * 1024, 256} }, |
| 7323 | .block_erase = spi_block_erase_d8, |
| 7324 | }, { |
| 7325 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7326 | .block_erase = spi_block_erase_60, |
| 7327 | }, { |
| 7328 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7329 | .block_erase = spi_block_erase_c7, |
| 7330 | } |
| 7331 | }, |
| 7332 | .unlock = spi_disable_blockprotect, |
| 7333 | .write = spi_chip_write_256, |
| 7334 | .read = spi_chip_read, |
| 7335 | .voltage = {2300, 3600}, |
| 7336 | }, |
| 7337 | |
| 7338 | { |
| 7339 | .vendor = "ISSI", |
| 7340 | .name = "IS25WP128", |
| 7341 | .bustype = BUS_SPI, |
| 7342 | .manufacture_id = ISSI_ID_SPI, |
| 7343 | .model_id = ISSI_IS25WP128, |
| 7344 | .total_size = 16384, |
| 7345 | .page_size = 256, |
| 7346 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7347 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7348 | .tested = TEST_OK_PREW, |
| 7349 | .probe = probe_spi_rdid, |
| 7350 | .probe_timing = TIMING_ZERO, |
| 7351 | .block_erasers = |
| 7352 | { |
| 7353 | { |
| 7354 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7355 | .block_erase = spi_block_erase_20, |
| 7356 | }, { |
| 7357 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7358 | .block_erase = spi_block_erase_d7, |
| 7359 | }, { |
| 7360 | .eraseblocks = { {32 * 1024, 512} }, |
| 7361 | .block_erase = spi_block_erase_52, |
| 7362 | }, { |
| 7363 | .eraseblocks = { {64 * 1024, 256} }, |
| 7364 | .block_erase = spi_block_erase_d8, |
| 7365 | }, { |
| 7366 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7367 | .block_erase = spi_block_erase_60, |
| 7368 | }, { |
| 7369 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7370 | .block_erase = spi_block_erase_c7, |
| 7371 | } |
| 7372 | }, |
| 7373 | .unlock = spi_disable_blockprotect, |
| 7374 | .write = spi_chip_write_256, |
| 7375 | .read = spi_chip_read, |
| 7376 | .voltage = {1650, 1950}, |
| 7377 | }, |
| 7378 | |
| 7379 | { |
| 7380 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7381 | .name = "IS29GL064B", |
| 7382 | .bustype = BUS_PARALLEL, |
| 7383 | .manufacture_id = ISSI_ID, |
| 7384 | .model_id = ISSI_PMC_IS29GL064B, |
| 7385 | .total_size = 8192, |
| 7386 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7387 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7388 | .tested = TEST_UNTESTED, |
| 7389 | .probe = probe_jedec_29gl, |
| 7390 | .probe_timing = TIMING_ZERO, |
| 7391 | .block_erasers = |
| 7392 | { |
| 7393 | { |
| 7394 | .eraseblocks = { |
| 7395 | {8 * 1024, 8}, |
| 7396 | {64 * 1024, 127}, |
| 7397 | }, |
| 7398 | .block_erase = erase_sector_jedec, |
| 7399 | }, { |
| 7400 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7401 | .block_erase = erase_chip_block_jedec, |
| 7402 | }, |
| 7403 | }, |
| 7404 | .write = write_jedec_1, |
| 7405 | .read = read_memmapped, |
| 7406 | .voltage = {2700, 3600}, |
| 7407 | }, |
| 7408 | |
| 7409 | { |
| 7410 | .vendor = "ISSI", |
| 7411 | .name = "IS29GL064T", |
| 7412 | .bustype = BUS_PARALLEL, |
| 7413 | .manufacture_id = ISSI_ID, |
| 7414 | .model_id = ISSI_PMC_IS29GL064T, |
| 7415 | .total_size = 8192, |
| 7416 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7417 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7418 | .tested = TEST_UNTESTED, |
| 7419 | .probe = probe_jedec_29gl, |
| 7420 | .probe_timing = TIMING_ZERO, |
| 7421 | .block_erasers = |
| 7422 | { |
| 7423 | { |
| 7424 | .eraseblocks = { |
| 7425 | {64 * 1024, 127}, |
| 7426 | {8 * 1024, 8}, |
| 7427 | }, |
| 7428 | .block_erase = erase_sector_jedec, |
| 7429 | }, { |
| 7430 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7431 | .block_erase = erase_chip_block_jedec, |
| 7432 | }, |
| 7433 | }, |
| 7434 | .write = write_jedec_1, |
| 7435 | .read = read_memmapped, |
| 7436 | .voltage = {2700, 3600}, |
| 7437 | }, |
| 7438 | |
| 7439 | { |
| 7440 | .vendor = "ISSI", |
| 7441 | .name = "IS29GL064H/L", |
| 7442 | .bustype = BUS_PARALLEL, |
| 7443 | .manufacture_id = ISSI_ID, |
| 7444 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7445 | .total_size = 8192, |
| 7446 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7447 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7448 | .tested = TEST_UNTESTED, |
| 7449 | .probe = probe_jedec_29gl, |
| 7450 | .probe_timing = TIMING_ZERO, |
| 7451 | .block_erasers = |
| 7452 | { |
| 7453 | { |
| 7454 | .eraseblocks = { {64 * 1024, 128} }, |
| 7455 | .block_erase = erase_sector_jedec, |
| 7456 | }, { |
| 7457 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7458 | .block_erase = erase_chip_block_jedec, |
| 7459 | }, |
| 7460 | }, |
| 7461 | .write = write_jedec_1, |
| 7462 | .read = read_memmapped, |
| 7463 | .voltage = {2700, 3600}, |
| 7464 | }, |
| 7465 | |
| 7466 | { |
| 7467 | .vendor = "ISSI", |
| 7468 | .name = "IS29GL128H/L", |
| 7469 | .bustype = BUS_PARALLEL, |
| 7470 | .manufacture_id = ISSI_ID, |
| 7471 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7472 | .total_size = 16384, |
| 7473 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7474 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7475 | .tested = TEST_UNTESTED, |
| 7476 | .probe = probe_jedec_29gl, |
| 7477 | .probe_timing = TIMING_ZERO, |
| 7478 | .block_erasers = |
| 7479 | { |
| 7480 | { |
| 7481 | .eraseblocks = { {128 * 1024, 128} }, |
| 7482 | .block_erase = erase_sector_jedec, |
| 7483 | }, { |
| 7484 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7485 | .block_erase = erase_chip_block_jedec, |
| 7486 | }, |
| 7487 | }, |
| 7488 | .write = write_jedec_1, |
| 7489 | .read = read_memmapped, |
| 7490 | .voltage = {2700, 3600}, |
| 7491 | }, |
| 7492 | |
| 7493 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7494 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7495 | .name = "MX23L1654", |
| 7496 | .bustype = BUS_SPI, |
| 7497 | .manufacture_id = MACRONIX_ID, |
| 7498 | .model_id = MACRONIX_MX23L1654, |
| 7499 | .total_size = 2048, |
| 7500 | .page_size = 256, |
| 7501 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7502 | .probe = probe_spi_rdid, |
| 7503 | .probe_timing = TIMING_ZERO, |
| 7504 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 7505 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7506 | .voltage = {3000, 3600}, |
| 7507 | }, |
| 7508 | |
| 7509 | { |
| 7510 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7511 | .name = "MX23L3254", |
| 7512 | .bustype = BUS_SPI, |
| 7513 | .manufacture_id = MACRONIX_ID, |
| 7514 | .model_id = MACRONIX_MX23L3254, |
| 7515 | .total_size = 4096, |
| 7516 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 7517 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7518 | .probe = probe_spi_rdid, |
| 7519 | .probe_timing = TIMING_ZERO, |
| 7520 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 7521 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7522 | .voltage = {3000, 3600}, |
| 7523 | }, |
| 7524 | |
| 7525 | { |
| 7526 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7527 | .name = "MX23L6454", |
| 7528 | .bustype = BUS_SPI, |
| 7529 | .manufacture_id = MACRONIX_ID, |
| 7530 | .model_id = MACRONIX_MX23L6454, |
| 7531 | .total_size = 8192, |
| 7532 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7533 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7534 | .probe = probe_spi_rdid, |
| 7535 | .probe_timing = TIMING_ZERO, |
| 7536 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 7537 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7538 | .voltage = {3000, 3600}, |
| 7539 | }, |
| 7540 | |
| 7541 | { |
| 7542 | .vendor = "Macronix", |
| 7543 | .name = "MX23L12854", |
| 7544 | .bustype = BUS_SPI, |
| 7545 | .manufacture_id = MACRONIX_ID, |
| 7546 | .model_id = MACRONIX_MX23L12854, |
| 7547 | .total_size = 16384, |
| 7548 | .page_size = 256, |
| 7549 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7550 | .probe = probe_spi_rdid, |
| 7551 | .probe_timing = TIMING_ZERO, |
| 7552 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 7553 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7554 | .voltage = {3000, 3600}, |
| 7555 | }, |
| 7556 | |
| 7557 | { |
| 7558 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7559 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7560 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7561 | .manufacture_id = MACRONIX_ID, |
| 7562 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7563 | .total_size = 64, |
| 7564 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7565 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7566 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7567 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7568 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7569 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7570 | .block_erasers = |
| 7571 | { |
| 7572 | { |
| 7573 | .eraseblocks = { {4 * 1024, 16} }, |
| 7574 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7575 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7576 | .eraseblocks = { {64 * 1024, 1} }, |
| 7577 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7578 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7579 | .eraseblocks = { {64 * 1024, 1} }, |
| 7580 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7581 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7582 | .eraseblocks = { {64 * 1024, 1} }, |
| 7583 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7584 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7585 | .eraseblocks = { {64 * 1024, 1} }, |
| 7586 | .block_erase = spi_block_erase_c7, |
| 7587 | }, |
| 7588 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7589 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7590 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7591 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7592 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 7593 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7594 | }, |
| 7595 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7596 | { |
| 7597 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7598 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7599 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7600 | .manufacture_id = MACRONIX_ID, |
| 7601 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7602 | .total_size = 128, |
| 7603 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7604 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7605 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 7606 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7607 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7608 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7609 | .block_erasers = |
| 7610 | { |
| 7611 | { |
| 7612 | .eraseblocks = { {4 * 1024, 32} }, |
| 7613 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7614 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7615 | .eraseblocks = { {64 * 1024, 2} }, |
| 7616 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7617 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7618 | .eraseblocks = { {128 * 1024, 1} }, |
| 7619 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7620 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7621 | .eraseblocks = { {128 * 1024, 1} }, |
| 7622 | .block_erase = spi_block_erase_c7, |
| 7623 | }, |
| 7624 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7625 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7626 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7627 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7628 | .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] | 7629 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7630 | }, |
| 7631 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7632 | { |
| 7633 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7634 | .name = "MX25L2005(C)/MX25L2006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7635 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7636 | .manufacture_id = MACRONIX_ID, |
| 7637 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7638 | .total_size = 256, |
| 7639 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7640 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7641 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7642 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7643 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7644 | .block_erasers = |
| 7645 | { |
| 7646 | { |
| 7647 | .eraseblocks = { {4 * 1024, 64} }, |
| 7648 | .block_erase = spi_block_erase_20, |
| 7649 | }, { |
| 7650 | .eraseblocks = { {64 * 1024, 4} }, |
| 7651 | .block_erase = spi_block_erase_52, |
| 7652 | }, { |
| 7653 | .eraseblocks = { {64 * 1024, 4} }, |
| 7654 | .block_erase = spi_block_erase_d8, |
| 7655 | }, { |
| 7656 | .eraseblocks = { {256 * 1024, 1} }, |
| 7657 | .block_erase = spi_block_erase_60, |
| 7658 | }, { |
| 7659 | .eraseblocks = { {256 * 1024, 1} }, |
| 7660 | .block_erase = spi_block_erase_c7, |
| 7661 | }, |
| 7662 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7663 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7664 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7665 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7666 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7667 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7668 | }, |
| 7669 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7670 | { |
| 7671 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7672 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7673 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7674 | .manufacture_id = MACRONIX_ID, |
| 7675 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7676 | .total_size = 512, |
| 7677 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7678 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7679 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7680 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7681 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7682 | .block_erasers = |
| 7683 | { |
| 7684 | { |
| 7685 | .eraseblocks = { {4 * 1024, 128} }, |
| 7686 | .block_erase = spi_block_erase_20, |
| 7687 | }, { |
| 7688 | .eraseblocks = { {64 * 1024, 8} }, |
| 7689 | .block_erase = spi_block_erase_52, |
| 7690 | }, { |
| 7691 | .eraseblocks = { {64 * 1024, 8} }, |
| 7692 | .block_erase = spi_block_erase_d8, |
| 7693 | }, { |
| 7694 | .eraseblocks = { {512 * 1024, 1} }, |
| 7695 | .block_erase = spi_block_erase_60, |
| 7696 | }, { |
| 7697 | .eraseblocks = { {512 * 1024, 1} }, |
| 7698 | .block_erase = spi_block_erase_c7, |
| 7699 | }, |
| 7700 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7701 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7702 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7703 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7704 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7705 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7706 | }, |
| 7707 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7708 | { |
| 7709 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7710 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7711 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7712 | .manufacture_id = MACRONIX_ID, |
| 7713 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7714 | .total_size = 1024, |
| 7715 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7716 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 7717 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7718 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 7719 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7720 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7721 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7722 | .block_erasers = |
| 7723 | { |
| 7724 | { |
| 7725 | .eraseblocks = { {4 * 1024, 256} }, |
| 7726 | .block_erase = spi_block_erase_20, |
| 7727 | }, { |
| 7728 | .eraseblocks = { {64 * 1024, 16} }, |
| 7729 | .block_erase = spi_block_erase_52, |
| 7730 | }, { |
| 7731 | .eraseblocks = { {64 * 1024, 16} }, |
| 7732 | .block_erase = spi_block_erase_d8, |
| 7733 | }, { |
| 7734 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7735 | .block_erase = spi_block_erase_60, |
| 7736 | }, { |
| 7737 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7738 | .block_erase = spi_block_erase_c7, |
| 7739 | }, |
| 7740 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7741 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7742 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7743 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7744 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7745 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7746 | }, |
| 7747 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7748 | { |
| 7749 | .vendor = "Macronix", |
| 7750 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7751 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7752 | .manufacture_id = MACRONIX_ID, |
| 7753 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7754 | .total_size = 2048, |
| 7755 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7756 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 7757 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7758 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7759 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7760 | .block_erasers = |
| 7761 | { |
| 7762 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7763 | .eraseblocks = { {64 * 1024, 32} }, |
| 7764 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7765 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7766 | .eraseblocks = { {64 * 1024, 32} }, |
| 7767 | .block_erase = spi_block_erase_d8, |
| 7768 | }, { |
| 7769 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7770 | .block_erase = spi_block_erase_60, |
| 7771 | }, { |
| 7772 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7773 | .block_erase = spi_block_erase_c7, |
| 7774 | }, |
| 7775 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7776 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7777 | .unlock = spi_disable_blockprotect, |
| 7778 | .write = spi_chip_write_256, |
| 7779 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7780 | .voltage = {2700, 3600}, |
| 7781 | }, |
| 7782 | |
| 7783 | { |
| 7784 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7785 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7786 | .bustype = BUS_SPI, |
| 7787 | .manufacture_id = MACRONIX_ID, |
| 7788 | .model_id = MACRONIX_MX25L1605, |
| 7789 | .total_size = 2048, |
| 7790 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7791 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7792 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7793 | .tested = TEST_OK_PREW, |
| 7794 | .probe = probe_spi_rdid, |
| 7795 | .probe_timing = TIMING_ZERO, |
| 7796 | .block_erasers = |
| 7797 | { |
| 7798 | { |
| 7799 | .eraseblocks = { {4 * 1024, 512} }, |
| 7800 | .block_erase = spi_block_erase_20, |
| 7801 | }, { |
| 7802 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7803 | .block_erase = spi_block_erase_52, |
| 7804 | }, { |
| 7805 | .eraseblocks = { {64 * 1024, 32} }, |
| 7806 | .block_erase = spi_block_erase_d8, |
| 7807 | }, { |
| 7808 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7809 | .block_erase = spi_block_erase_60, |
| 7810 | }, { |
| 7811 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7812 | .block_erase = spi_block_erase_c7, |
| 7813 | }, |
| 7814 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7815 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7816 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7817 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7818 | .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] | 7819 | .voltage = {2700, 3600}, |
| 7820 | }, |
| 7821 | |
| 7822 | { |
| 7823 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7824 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7825 | .bustype = BUS_SPI, |
| 7826 | .manufacture_id = MACRONIX_ID, |
| 7827 | .model_id = MACRONIX_MX25L1605, |
| 7828 | .total_size = 2048, |
| 7829 | .page_size = 256, |
| 7830 | .feature_bits = FEATURE_WRSR_WREN, |
| 7831 | .tested = TEST_OK_PREW, |
| 7832 | .probe = probe_spi_rdid, |
| 7833 | .probe_timing = TIMING_ZERO, |
| 7834 | .block_erasers = |
| 7835 | { |
| 7836 | { |
| 7837 | .eraseblocks = { {4 * 1024, 512} }, |
| 7838 | .block_erase = spi_block_erase_20, |
| 7839 | }, { |
| 7840 | .eraseblocks = { {64 * 1024, 32} }, |
| 7841 | .block_erase = spi_block_erase_d8, |
| 7842 | }, { |
| 7843 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7844 | .block_erase = spi_block_erase_60, |
| 7845 | }, { |
| 7846 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7847 | .block_erase = spi_block_erase_c7, |
| 7848 | }, |
| 7849 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7850 | .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] | 7851 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7852 | .write = spi_chip_write_256, |
| 7853 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7854 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7855 | }, |
| 7856 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7857 | { |
| 7858 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7859 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7860 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7861 | .manufacture_id = MACRONIX_ID, |
| 7862 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7863 | .total_size = 2048, |
| 7864 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7865 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7866 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7867 | .tested = TEST_UNTESTED, |
| 7868 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7869 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7870 | .block_erasers = |
| 7871 | { |
| 7872 | { |
| 7873 | .eraseblocks = { {4 * 1024, 512} }, |
| 7874 | .block_erase = spi_block_erase_20, |
| 7875 | }, { |
| 7876 | .eraseblocks = { {64 * 1024, 32} }, |
| 7877 | .block_erase = spi_block_erase_d8, |
| 7878 | }, { |
| 7879 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7880 | .block_erase = spi_block_erase_60, |
| 7881 | }, { |
| 7882 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7883 | .block_erase = spi_block_erase_c7, |
| 7884 | } |
| 7885 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7886 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7887 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7888 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7889 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7890 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7891 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 7892 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7893 | { |
| 7894 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7895 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7896 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7897 | .manufacture_id = MACRONIX_ID, |
| 7898 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7899 | .total_size = 2048, |
| 7900 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7901 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7902 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7903 | .tested = TEST_UNTESTED, |
| 7904 | .probe = probe_spi_rdid, |
| 7905 | .probe_timing = TIMING_ZERO, |
| 7906 | .block_erasers = |
| 7907 | { |
| 7908 | { |
| 7909 | .eraseblocks = { {4 * 1024, 512} }, |
| 7910 | .block_erase = spi_block_erase_20, |
| 7911 | }, { |
| 7912 | .eraseblocks = { {64 * 1024, 32} }, |
| 7913 | .block_erase = spi_block_erase_d8, |
| 7914 | }, { |
| 7915 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7916 | .block_erase = spi_block_erase_60, |
| 7917 | }, { |
| 7918 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7919 | .block_erase = spi_block_erase_c7, |
| 7920 | } |
| 7921 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7922 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7923 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7924 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7925 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7926 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7927 | }, |
| 7928 | |
| 7929 | { |
| 7930 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7931 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7932 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7933 | .manufacture_id = MACRONIX_ID, |
| 7934 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7935 | .total_size = 4096, |
| 7936 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7937 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 7938 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7939 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7940 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7941 | .block_erasers = |
| 7942 | { |
| 7943 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7944 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7945 | .block_erase = spi_block_erase_20, |
| 7946 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7947 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7948 | .block_erase = spi_block_erase_d8, |
| 7949 | }, { |
| 7950 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7951 | .block_erase = spi_block_erase_60, |
| 7952 | }, { |
| 7953 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7954 | .block_erase = spi_block_erase_c7, |
| 7955 | }, |
| 7956 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7957 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7958 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7959 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7960 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7961 | .voltage = {2700, 3600}, |
| 7962 | }, |
| 7963 | |
| 7964 | { |
| 7965 | .vendor = "Macronix", |
| 7966 | .name = "MX25L3205D/MX25L3208D", |
| 7967 | .bustype = BUS_SPI, |
| 7968 | .manufacture_id = MACRONIX_ID, |
| 7969 | .model_id = MACRONIX_MX25L3205, |
| 7970 | .total_size = 4096, |
| 7971 | .page_size = 256, |
| 7972 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7973 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7974 | .tested = TEST_OK_PREW, |
| 7975 | .probe = probe_spi_rdid, |
| 7976 | .probe_timing = TIMING_ZERO, |
| 7977 | .block_erasers = |
| 7978 | { |
| 7979 | { |
| 7980 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7981 | .block_erase = spi_block_erase_20, |
| 7982 | }, { |
| 7983 | .eraseblocks = { {64 * 1024, 64} }, |
| 7984 | .block_erase = spi_block_erase_d8, |
| 7985 | }, { |
| 7986 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7987 | .block_erase = spi_block_erase_60, |
| 7988 | }, { |
| 7989 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7990 | .block_erase = spi_block_erase_c7, |
| 7991 | }, |
| 7992 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7993 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7994 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7995 | .write = spi_chip_write_256, |
| 7996 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7997 | .voltage = {2700, 3600}, |
| 7998 | }, |
| 7999 | |
| 8000 | { |
| 8001 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8002 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8003 | .bustype = BUS_SPI, |
| 8004 | .manufacture_id = MACRONIX_ID, |
| 8005 | .model_id = MACRONIX_MX25L3205, |
| 8006 | .total_size = 4096, |
| 8007 | .page_size = 256, |
| 8008 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8009 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8010 | .tested = TEST_OK_PREW, |
| 8011 | .probe = probe_spi_rdid, |
| 8012 | .probe_timing = TIMING_ZERO, |
| 8013 | .block_erasers = |
| 8014 | { |
| 8015 | { |
| 8016 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8017 | .block_erase = spi_block_erase_20, |
| 8018 | }, { |
| 8019 | .eraseblocks = { {64 * 1024, 64} }, |
| 8020 | .block_erase = spi_block_erase_d8, |
| 8021 | }, { |
| 8022 | .eraseblocks = { {64 * 1024, 64} }, |
| 8023 | .block_erase = spi_block_erase_52, |
| 8024 | }, { |
| 8025 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8026 | .block_erase = spi_block_erase_60, |
| 8027 | }, { |
| 8028 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8029 | .block_erase = spi_block_erase_c7, |
| 8030 | }, |
| 8031 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8032 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8033 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8034 | .write = spi_chip_write_256, |
| 8035 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8036 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8037 | }, |
| 8038 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8039 | { |
| 8040 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8041 | .name = "MX25L3273E", |
| 8042 | .bustype = BUS_SPI, |
| 8043 | .manufacture_id = MACRONIX_ID, |
| 8044 | .model_id = MACRONIX_MX25L3205, |
| 8045 | .total_size = 4096, |
| 8046 | .page_size = 256, |
| 8047 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8048 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8049 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8050 | .probe = probe_spi_rdid, |
| 8051 | .probe_timing = TIMING_ZERO, |
| 8052 | .block_erasers = |
| 8053 | { |
| 8054 | { |
| 8055 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8056 | .block_erase = spi_block_erase_20, |
| 8057 | }, { |
| 8058 | .eraseblocks = { {32 * 1024, 128} }, |
| 8059 | .block_erase = spi_block_erase_52, |
| 8060 | }, { |
| 8061 | .eraseblocks = { {64 * 1024, 64} }, |
| 8062 | .block_erase = spi_block_erase_d8, |
| 8063 | }, { |
| 8064 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8065 | .block_erase = spi_block_erase_60, |
| 8066 | }, { |
| 8067 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8068 | .block_erase = spi_block_erase_c7, |
| 8069 | }, |
| 8070 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8071 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8072 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8073 | .write = spi_chip_write_256, |
| 8074 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8075 | .voltage = {2700, 3600}, |
| 8076 | }, |
| 8077 | |
| 8078 | { |
| 8079 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8080 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8081 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8082 | .manufacture_id = MACRONIX_ID, |
| 8083 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8084 | .total_size = 4096, |
| 8085 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8086 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 8087 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8088 | .tested = TEST_UNTESTED, |
| 8089 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8090 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8091 | .block_erasers = |
| 8092 | { |
| 8093 | { |
| 8094 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8095 | .block_erase = spi_block_erase_20, |
| 8096 | }, { |
| 8097 | .eraseblocks = { {64 * 1024, 64} }, |
| 8098 | .block_erase = spi_block_erase_d8, |
| 8099 | }, { |
| 8100 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8101 | .block_erase = spi_block_erase_60, |
| 8102 | }, { |
| 8103 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8104 | .block_erase = spi_block_erase_c7, |
| 8105 | } |
| 8106 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8107 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8108 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8109 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8110 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8111 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8112 | }, |
| 8113 | |
| 8114 | { |
| 8115 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8116 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8117 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8118 | .manufacture_id = MACRONIX_ID, |
| 8119 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8120 | .total_size = 8192, |
| 8121 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8122 | /* Has an additional 512B EEPROM sector */ |
| 8123 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 8124 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8125 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8126 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8127 | .block_erasers = |
| 8128 | { |
| 8129 | { |
| 8130 | .eraseblocks = { {64 * 1024, 128} }, |
| 8131 | .block_erase = spi_block_erase_20, |
| 8132 | }, { |
| 8133 | .eraseblocks = { {64 * 1024, 128} }, |
| 8134 | .block_erase = spi_block_erase_d8, |
| 8135 | }, { |
| 8136 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8137 | .block_erase = spi_block_erase_60, |
| 8138 | }, { |
| 8139 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8140 | .block_erase = spi_block_erase_c7, |
| 8141 | } |
| 8142 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8143 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8144 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8145 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8146 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8147 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8148 | }, |
| 8149 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8150 | { |
| 8151 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8152 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8153 | .bustype = BUS_SPI, |
| 8154 | .manufacture_id = MACRONIX_ID, |
| 8155 | .model_id = MACRONIX_MX25L6405, |
| 8156 | .total_size = 8192, |
| 8157 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8158 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8159 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8160 | .tested = TEST_OK_PREW, |
| 8161 | .probe = probe_spi_rdid, |
| 8162 | .probe_timing = TIMING_ZERO, |
| 8163 | .block_erasers = |
| 8164 | { |
| 8165 | { |
| 8166 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8167 | .block_erase = spi_block_erase_20, |
| 8168 | }, { |
| 8169 | .eraseblocks = { {64 * 1024, 128} }, |
| 8170 | .block_erase = spi_block_erase_d8, |
| 8171 | }, { |
| 8172 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8173 | .block_erase = spi_block_erase_60, |
| 8174 | }, { |
| 8175 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8176 | .block_erase = spi_block_erase_c7, |
| 8177 | } |
| 8178 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8179 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8180 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8181 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8182 | .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] | 8183 | .voltage = {2700, 3600}, |
| 8184 | }, |
| 8185 | |
| 8186 | { |
| 8187 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8188 | .name = "MX25L6406E/MX25L6408E", |
| 8189 | .bustype = BUS_SPI, |
| 8190 | .manufacture_id = MACRONIX_ID, |
| 8191 | .model_id = MACRONIX_MX25L6405, |
| 8192 | .total_size = 8192, |
| 8193 | .page_size = 256, |
| 8194 | /* MX25L6406E supports SFDP */ |
| 8195 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 8196 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8197 | .tested = TEST_OK_PREW, |
| 8198 | .probe = probe_spi_rdid, |
| 8199 | .probe_timing = TIMING_ZERO, |
| 8200 | .block_erasers = |
| 8201 | { |
| 8202 | { |
| 8203 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8204 | .block_erase = spi_block_erase_20, |
| 8205 | }, { |
| 8206 | .eraseblocks = { {64 * 1024, 128} }, |
| 8207 | .block_erase = spi_block_erase_52, |
| 8208 | }, { |
| 8209 | .eraseblocks = { {64 * 1024, 128} }, |
| 8210 | .block_erase = spi_block_erase_d8, |
| 8211 | }, { |
| 8212 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8213 | .block_erase = spi_block_erase_60, |
| 8214 | }, { |
| 8215 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8216 | .block_erase = spi_block_erase_c7, |
| 8217 | } |
| 8218 | }, |
| 8219 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8220 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8221 | .write = spi_chip_write_256, |
| 8222 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 8223 | .voltage = {2700, 3600}, |
| 8224 | }, |
| 8225 | |
| 8226 | { |
| 8227 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 8228 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8229 | .bustype = BUS_SPI, |
| 8230 | .manufacture_id = MACRONIX_ID, |
| 8231 | .model_id = MACRONIX_MX25L6405, |
| 8232 | .total_size = 8192, |
| 8233 | .page_size = 256, |
| 8234 | /* supports SFDP */ |
| 8235 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8236 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8237 | .tested = TEST_OK_PREW, |
| 8238 | .probe = probe_spi_rdid, |
| 8239 | .probe_timing = TIMING_ZERO, |
| 8240 | .block_erasers = |
| 8241 | { |
| 8242 | { |
| 8243 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8244 | .block_erase = spi_block_erase_20, |
| 8245 | }, { |
| 8246 | .eraseblocks = { {32 * 1024, 256} }, |
| 8247 | .block_erase = spi_block_erase_52, |
| 8248 | }, { |
| 8249 | .eraseblocks = { {64 * 1024, 128} }, |
| 8250 | .block_erase = spi_block_erase_d8, |
| 8251 | }, { |
| 8252 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8253 | .block_erase = spi_block_erase_60, |
| 8254 | }, { |
| 8255 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8256 | .block_erase = spi_block_erase_c7, |
| 8257 | } |
| 8258 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8259 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8260 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8261 | .write = spi_chip_write_256, |
| 8262 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8263 | .voltage = {2700, 3600}, |
| 8264 | }, |
| 8265 | |
| 8266 | { |
| 8267 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8268 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8269 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8270 | .manufacture_id = MACRONIX_ID, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8271 | .model_id = MACRONIX_MX25L12805D, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8272 | .total_size = 16384, |
| 8273 | .page_size = 256, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8274 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8275 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8276 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8277 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8278 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8279 | .block_erasers = |
| 8280 | { |
| 8281 | { |
| 8282 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8283 | .block_erase = spi_block_erase_20, |
| 8284 | }, { |
| 8285 | .eraseblocks = { {64 * 1024, 256} }, |
| 8286 | .block_erase = spi_block_erase_d8, |
| 8287 | }, { |
| 8288 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8289 | .block_erase = spi_block_erase_60, |
| 8290 | }, { |
| 8291 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8292 | .block_erase = spi_block_erase_c7, |
| 8293 | } |
| 8294 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8295 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8296 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8297 | .write = spi_chip_write_256, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8298 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8299 | .voltage = {2700, 3600}, |
| 8300 | }, |
| 8301 | |
| 8302 | { |
| 8303 | .vendor = "Macronix", |
| 8304 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
| 8305 | .bustype = BUS_SPI, |
| 8306 | .manufacture_id = MACRONIX_ID, |
| 8307 | .model_id = MACRONIX_MX25L12805D, |
| 8308 | .total_size = 16384, |
| 8309 | .page_size = 256, |
| 8310 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8311 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8312 | .tested = TEST_OK_PREW, |
| 8313 | .probe = probe_spi_rdid, |
| 8314 | .probe_timing = TIMING_ZERO, |
| 8315 | .block_erasers = |
| 8316 | { |
| 8317 | { |
| 8318 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8319 | .block_erase = spi_block_erase_20, |
| 8320 | }, { |
| 8321 | .eraseblocks = { {32 * 1024, 512} }, |
| 8322 | .block_erase = spi_block_erase_52, |
| 8323 | }, { |
| 8324 | .eraseblocks = { {64 * 1024, 256} }, |
| 8325 | .block_erase = spi_block_erase_d8, |
| 8326 | }, { |
| 8327 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8328 | .block_erase = spi_block_erase_60, |
| 8329 | }, { |
| 8330 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8331 | .block_erase = spi_block_erase_c7, |
| 8332 | } |
| 8333 | }, |
| 8334 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8335 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8336 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8337 | .write = spi_chip_write_256, |
| 8338 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8339 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8340 | }, |
| 8341 | |
| 8342 | { |
| 8343 | .vendor = "Macronix", |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8344 | .name = "MX25L25635F", |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8345 | .bustype = BUS_SPI, |
| 8346 | .manufacture_id = MACRONIX_ID, |
| 8347 | .model_id = MACRONIX_MX25L25635F, |
| 8348 | .total_size = 32768, |
| 8349 | .page_size = 256, |
| 8350 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8351 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8352 | .tested = TEST_UNTESTED, |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8353 | .probe = probe_spi_rdid, |
| 8354 | .probe_timing = TIMING_ZERO, |
| 8355 | .block_erasers = |
| 8356 | { |
| 8357 | { |
| 8358 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8359 | .block_erase = spi_block_erase_21, |
| 8360 | }, { |
| 8361 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8362 | .block_erase = spi_block_erase_20, |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8363 | }, { |
| 8364 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8365 | .block_erase = spi_block_erase_5c, |
| 8366 | }, { |
| 8367 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8368 | .block_erase = spi_block_erase_52, |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8369 | }, { |
| 8370 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8371 | .block_erase = spi_block_erase_dc, |
| 8372 | }, { |
| 8373 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8374 | .block_erase = spi_block_erase_d8, |
Timothy Pearson | 5bdb87e | 2016-08-27 14:02:50 -0500 | [diff] [blame] | 8375 | }, { |
| 8376 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8377 | .block_erase = spi_block_erase_60, |
| 8378 | }, { |
| 8379 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8380 | .block_erase = spi_block_erase_c7, |
| 8381 | } |
| 8382 | }, |
| 8383 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8384 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8385 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8386 | .write = spi_chip_write_256, |
| 8387 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8388 | .voltage = {2700, 3600}, |
| 8389 | }, |
| 8390 | |
| 8391 | { |
| 8392 | .vendor = "Macronix", |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8393 | .name = "MX66L51235F", |
| 8394 | .bustype = BUS_SPI, |
| 8395 | .manufacture_id = MACRONIX_ID, |
| 8396 | .model_id = MACRONIX_MX66L51235F, |
| 8397 | .total_size = 65536, |
| 8398 | .page_size = 256, |
| 8399 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8400 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Angel Pons | 09dddd8 | 2018-09-30 19:23:43 +0200 | [diff] [blame] | 8401 | .tested = TEST_OK_PREW, |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8402 | .probe = probe_spi_rdid, |
| 8403 | .probe_timing = TIMING_ZERO, |
| 8404 | .block_erasers = |
| 8405 | { |
| 8406 | { |
| 8407 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8408 | .block_erase = spi_block_erase_21, |
| 8409 | }, { |
| 8410 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8411 | .block_erase = spi_block_erase_20, |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8412 | }, { |
| 8413 | .eraseblocks = { {32 * 1024, 2048} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8414 | .block_erase = spi_block_erase_5c, |
| 8415 | }, { |
| 8416 | .eraseblocks = { {32 * 1024, 2048} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8417 | .block_erase = spi_block_erase_52, |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8418 | }, { |
| 8419 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 8420 | .block_erase = spi_block_erase_dc, |
| 8421 | }, { |
| 8422 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 8423 | .block_erase = spi_block_erase_d8, |
Timothy Pearson | e29591d | 2016-08-27 15:43:00 -0500 | [diff] [blame] | 8424 | }, { |
| 8425 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8426 | .block_erase = spi_block_erase_60, |
| 8427 | }, { |
| 8428 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8429 | .block_erase = spi_block_erase_c7, |
| 8430 | } |
| 8431 | }, |
| 8432 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8433 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8434 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8435 | .write = spi_chip_write_256, |
| 8436 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8437 | .voltage = {2700, 3600}, |
| 8438 | }, |
| 8439 | |
| 8440 | { |
| 8441 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8442 | .name = "MX25U1635E", |
| 8443 | .bustype = BUS_SPI, |
| 8444 | .manufacture_id = MACRONIX_ID, |
| 8445 | .model_id = MACRONIX_MX25U1635E, |
| 8446 | .total_size = 2048, |
| 8447 | .page_size = 256, |
| 8448 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8449 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8450 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8451 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8452 | .probe = probe_spi_rdid, |
| 8453 | .probe_timing = TIMING_ZERO, |
| 8454 | .block_erasers = |
| 8455 | { |
| 8456 | { |
| 8457 | .eraseblocks = { {4 * 1024, 512} }, |
| 8458 | .block_erase = spi_block_erase_20, |
| 8459 | }, { |
| 8460 | .eraseblocks = { {32 * 1024, 64} }, |
| 8461 | .block_erase = spi_block_erase_52, |
| 8462 | }, { |
| 8463 | .eraseblocks = { {64 * 1024, 32} }, |
| 8464 | .block_erase = spi_block_erase_d8, |
| 8465 | }, { |
| 8466 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8467 | .block_erase = spi_block_erase_60, |
| 8468 | }, { |
| 8469 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8470 | .block_erase = spi_block_erase_c7, |
| 8471 | } |
| 8472 | }, |
| 8473 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8474 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8475 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8476 | .write = spi_chip_write_256, |
| 8477 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8478 | .voltage = {1650, 2000}, |
| 8479 | }, |
| 8480 | |
| 8481 | { |
| 8482 | .vendor = "Macronix", |
| 8483 | .name = "MX25U3235E/F", |
| 8484 | .bustype = BUS_SPI, |
| 8485 | .manufacture_id = MACRONIX_ID, |
| 8486 | .model_id = MACRONIX_MX25U3235E, |
| 8487 | .total_size = 4096, |
| 8488 | .page_size = 256, |
| 8489 | /* F model supports SFDP */ |
| 8490 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8491 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8492 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8493 | .tested = TEST_OK_PREW, |
| 8494 | .probe = probe_spi_rdid, |
| 8495 | .probe_timing = TIMING_ZERO, |
| 8496 | .block_erasers = |
| 8497 | { |
| 8498 | { |
| 8499 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8500 | .block_erase = spi_block_erase_20, |
| 8501 | }, { |
| 8502 | .eraseblocks = { {32 * 1024, 128} }, |
| 8503 | .block_erase = spi_block_erase_52, |
| 8504 | }, { |
| 8505 | .eraseblocks = { {64 * 1024, 64} }, |
| 8506 | .block_erase = spi_block_erase_d8, |
| 8507 | }, { |
| 8508 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8509 | .block_erase = spi_block_erase_60, |
| 8510 | }, { |
| 8511 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8512 | .block_erase = spi_block_erase_c7, |
| 8513 | } |
| 8514 | }, |
| 8515 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8516 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8517 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8518 | .write = spi_chip_write_256, |
| 8519 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8520 | .voltage = {1650, 2000}, |
| 8521 | }, |
| 8522 | |
| 8523 | { |
| 8524 | .vendor = "Macronix", |
| 8525 | .name = "MX25U6435E/F", |
| 8526 | .bustype = BUS_SPI, |
| 8527 | .manufacture_id = MACRONIX_ID, |
| 8528 | .model_id = MACRONIX_MX25U6435E, |
| 8529 | .total_size = 8192, |
| 8530 | .page_size = 256, |
| 8531 | /* F model supports SFDP */ |
| 8532 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8533 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8534 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8535 | .tested = TEST_OK_PREW, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8536 | .probe = probe_spi_rdid, |
| 8537 | .probe_timing = TIMING_ZERO, |
| 8538 | .block_erasers = |
| 8539 | { |
| 8540 | { |
| 8541 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8542 | .block_erase = spi_block_erase_20, |
| 8543 | }, { |
| 8544 | .eraseblocks = { {32 * 1024, 256} }, |
| 8545 | .block_erase = spi_block_erase_52, |
| 8546 | }, { |
| 8547 | .eraseblocks = { {64 * 1024, 128} }, |
| 8548 | .block_erase = spi_block_erase_d8, |
| 8549 | }, { |
| 8550 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8551 | .block_erase = spi_block_erase_60, |
| 8552 | }, { |
| 8553 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8554 | .block_erase = spi_block_erase_c7, |
| 8555 | } |
| 8556 | }, |
| 8557 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8558 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8559 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8560 | .write = spi_chip_write_256, |
| 8561 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8562 | .voltage = {1650, 2000}, |
| 8563 | }, |
| 8564 | |
| 8565 | { |
| 8566 | .vendor = "Macronix", |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 8567 | .name = "MX25U12835F", |
| 8568 | .bustype = BUS_SPI, |
| 8569 | .manufacture_id = MACRONIX_ID, |
| 8570 | .model_id = MACRONIX_MX25U12835E, |
| 8571 | .total_size = 16384, |
| 8572 | .page_size = 256, |
| 8573 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8574 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Angel Pons | 471da83 | 2018-09-30 17:29:48 +0200 | [diff] [blame] | 8575 | .tested = TEST_OK_PREW, |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 8576 | .probe = probe_spi_rdid, |
| 8577 | .probe_timing = TIMING_ZERO, |
| 8578 | .block_erasers = |
| 8579 | { |
| 8580 | { |
| 8581 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8582 | .block_erase = spi_block_erase_20, |
| 8583 | }, { |
| 8584 | .eraseblocks = { {32 * 1024, 512} }, |
| 8585 | .block_erase = spi_block_erase_52, |
| 8586 | }, { |
| 8587 | .eraseblocks = { {64 * 1024, 256} }, |
| 8588 | .block_erase = spi_block_erase_d8, |
| 8589 | }, { |
| 8590 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8591 | .block_erase = spi_block_erase_60, |
| 8592 | }, { |
| 8593 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8594 | .block_erase = spi_block_erase_c7, |
| 8595 | } |
| 8596 | }, |
| 8597 | /* TODO: security register */ |
| 8598 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8599 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8600 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8601 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8602 | .voltage = {1650, 2000}, |
| 8603 | }, |
| 8604 | |
| 8605 | { |
Stefan Tauner | a4617f7 | 2015-01-10 15:59:54 +0000 | [diff] [blame] | 8606 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 8607 | .name = "MX25U51245G", |
| 8608 | .bustype = BUS_SPI, |
| 8609 | .manufacture_id = MACRONIX_ID, |
| 8610 | .model_id = MACRONIX_MX25U51245G, |
| 8611 | .total_size = 65536, |
| 8612 | .page_size = 256, |
| 8613 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
| 8614 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 8615 | .tested = TEST_OK_PREW, |
| 8616 | .probe = probe_spi_rdid, |
| 8617 | .probe_timing = TIMING_ZERO, |
| 8618 | .block_erasers = |
| 8619 | { |
| 8620 | { |
| 8621 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8622 | .block_erase = spi_block_erase_21, |
| 8623 | }, { |
| 8624 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8625 | .block_erase = spi_block_erase_20, |
| 8626 | }, { |
| 8627 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8628 | .block_erase = spi_block_erase_5c, |
| 8629 | }, { |
| 8630 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8631 | .block_erase = spi_block_erase_52, |
| 8632 | }, { |
| 8633 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8634 | .block_erase = spi_block_erase_dc, |
| 8635 | }, { |
| 8636 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8637 | .block_erase = spi_block_erase_d8, |
| 8638 | }, { |
| 8639 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8640 | .block_erase = spi_block_erase_60, |
| 8641 | }, { |
| 8642 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8643 | .block_erase = spi_block_erase_c7, |
| 8644 | } |
| 8645 | }, |
| 8646 | /* TODO: security register */ |
| 8647 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8648 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8649 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8650 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8651 | .voltage = {1650, 2000}, |
| 8652 | }, |
| 8653 | |
| 8654 | { |
| 8655 | .vendor = "Macronix", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8656 | .name = "MX25L6495F", |
| 8657 | .bustype = BUS_SPI, |
| 8658 | .manufacture_id = MACRONIX_ID, |
| 8659 | .model_id = MACRONIX_MX25L6495F, |
| 8660 | .total_size = 8192, |
| 8661 | .page_size = 256, |
| 8662 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8663 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8664 | .tested = TEST_OK_PREW, |
| 8665 | .probe = probe_spi_rdid, |
| 8666 | .probe_timing = TIMING_ZERO, |
| 8667 | .block_erasers = |
| 8668 | { |
| 8669 | { |
| 8670 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8671 | .block_erase = spi_block_erase_20, |
| 8672 | }, { |
| 8673 | .eraseblocks = { {64 * 1024, 128} }, |
| 8674 | .block_erase = spi_block_erase_d8, |
| 8675 | }, { |
| 8676 | .eraseblocks = { {32 * 1024, 256} }, |
| 8677 | .block_erase = spi_block_erase_52, |
| 8678 | }, { |
| 8679 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8680 | .block_erase = spi_block_erase_60, |
| 8681 | }, { |
| 8682 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8683 | .block_erase = spi_block_erase_c7, |
| 8684 | } |
| 8685 | }, |
| 8686 | .unlock = spi_disable_blockprotect, |
| 8687 | .write = spi_chip_write_256, |
| 8688 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8689 | .voltage = {2700, 3600}, |
| 8690 | }, |
| 8691 | |
| 8692 | { |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 8693 | .vendor = "Macronix", |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 8694 | .name = "MX25R6435F", |
| 8695 | .bustype = BUS_SPI, |
| 8696 | .manufacture_id = MACRONIX_ID, |
| 8697 | .model_id = MACRONIX_MX25R6435F, |
| 8698 | .total_size = 8192, |
| 8699 | .page_size = 256, |
| 8700 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8701 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8702 | .tested = TEST_OK_PREW, |
| 8703 | .probe = probe_spi_rdid, |
| 8704 | .probe_timing = TIMING_ZERO, |
| 8705 | .block_erasers = |
| 8706 | { |
| 8707 | { |
| 8708 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8709 | .block_erase = spi_block_erase_20, |
| 8710 | }, { |
| 8711 | .eraseblocks = { {64 * 1024, 128} }, |
| 8712 | .block_erase = spi_block_erase_d8, |
| 8713 | }, { |
| 8714 | .eraseblocks = { {32 * 1024, 256} }, |
| 8715 | .block_erase = spi_block_erase_52, |
| 8716 | }, { |
| 8717 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8718 | .block_erase = spi_block_erase_60, |
| 8719 | }, { |
| 8720 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8721 | .block_erase = spi_block_erase_c7, |
| 8722 | } |
| 8723 | }, |
| 8724 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8725 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8726 | .write = spi_chip_write_256, |
| 8727 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8728 | .voltage = {1650, 3600}, |
| 8729 | }, |
| 8730 | |
| 8731 | { |
| 8732 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8733 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8734 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8735 | .manufacture_id = MACRONIX_ID, |
| 8736 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8737 | .total_size = 128, |
| 8738 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8739 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8740 | .tested = TEST_UNTESTED, |
| 8741 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8742 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8743 | .block_erasers = |
| 8744 | { |
| 8745 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8746 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8747 | {8 * 1024, 1}, |
| 8748 | {4 * 1024, 2}, |
| 8749 | {8 * 1024, 2}, |
| 8750 | {32 * 1024, 1}, |
| 8751 | {64 * 1024, 1}, |
| 8752 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8753 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8754 | }, { |
| 8755 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8756 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8757 | } |
| 8758 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8759 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8760 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8761 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8762 | }, |
| 8763 | |
| 8764 | { |
| 8765 | .vendor = "Macronix", |
| 8766 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8767 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8768 | .manufacture_id = MACRONIX_ID, |
| 8769 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8770 | .total_size = 128, |
| 8771 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8772 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 8773 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8774 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8775 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8776 | .block_erasers = |
| 8777 | { |
| 8778 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8779 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8780 | {64 * 1024, 1}, |
| 8781 | {32 * 1024, 1}, |
| 8782 | {8 * 1024, 2}, |
| 8783 | {4 * 1024, 2}, |
| 8784 | {8 * 1024, 1}, |
| 8785 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8786 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8787 | }, { |
| 8788 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8789 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8790 | } |
| 8791 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8792 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8793 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8794 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 8795 | }, |
| 8796 | |
| 8797 | { |
| 8798 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8799 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8800 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8801 | .manufacture_id = MACRONIX_ID, |
| 8802 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8803 | .total_size = 256, |
| 8804 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8805 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8806 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8807 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8808 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8809 | .block_erasers = |
| 8810 | { |
| 8811 | { |
| 8812 | .eraseblocks = { |
| 8813 | {16 * 1024, 1}, |
| 8814 | {8 * 1024, 2}, |
| 8815 | {32 * 1024, 1}, |
| 8816 | {64 * 1024, 3}, |
| 8817 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8818 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8819 | }, { |
| 8820 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8821 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8822 | }, |
| 8823 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8824 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8825 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8826 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8827 | }, |
| 8828 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8829 | { |
| 8830 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8831 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8832 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8833 | .manufacture_id = MACRONIX_ID, |
| 8834 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8835 | .total_size = 256, |
| 8836 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8837 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8838 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8839 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8840 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8841 | .block_erasers = |
| 8842 | { |
| 8843 | { |
| 8844 | .eraseblocks = { |
| 8845 | {64 * 1024, 3}, |
| 8846 | {32 * 1024, 1}, |
| 8847 | {8 * 1024, 2}, |
| 8848 | {16 * 1024, 1}, |
| 8849 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8850 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8851 | }, { |
| 8852 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8853 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8854 | }, |
| 8855 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8856 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8857 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8858 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8859 | }, |
| 8860 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8861 | { |
| 8862 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 8863 | .name = "MX29F022(N)B", |
| 8864 | .bustype = BUS_PARALLEL, |
| 8865 | .manufacture_id = MACRONIX_ID, |
| 8866 | .model_id = MACRONIX_MX29F022B, |
| 8867 | .total_size = 256, |
| 8868 | .page_size = 0, /* unused */ |
| 8869 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8870 | .tested = TEST_UNTESTED, |
| 8871 | .probe = probe_jedec, |
| 8872 | .probe_timing = TIMING_ZERO, |
| 8873 | .block_erasers = |
| 8874 | { |
| 8875 | { |
| 8876 | .eraseblocks = { |
| 8877 | {16 * 1024, 1}, |
| 8878 | {8 * 1024, 2}, |
| 8879 | {32 * 1024, 1}, |
| 8880 | {64 * 1024, 3}, |
| 8881 | }, |
| 8882 | .block_erase = erase_sector_jedec, |
| 8883 | }, { |
| 8884 | .eraseblocks = { {256 * 1024, 1} }, |
| 8885 | .block_erase = erase_chip_block_jedec, |
| 8886 | } |
| 8887 | }, |
| 8888 | .write = write_jedec_1, |
| 8889 | .read = read_memmapped, |
| 8890 | .voltage = {4500, 5500}, |
| 8891 | }, |
| 8892 | |
| 8893 | { |
| 8894 | .vendor = "Macronix", |
| 8895 | .name = "MX29F022(N)T", |
| 8896 | .bustype = BUS_PARALLEL, |
| 8897 | .manufacture_id = MACRONIX_ID, |
| 8898 | .model_id = MACRONIX_MX29F022T, |
| 8899 | .total_size = 256, |
| 8900 | .page_size = 0, /* unused */ |
| 8901 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8902 | .tested = TEST_OK_PREW, |
| 8903 | .probe = probe_jedec, |
| 8904 | .probe_timing = TIMING_ZERO, |
| 8905 | .block_erasers = |
| 8906 | { |
| 8907 | { |
| 8908 | .eraseblocks = { |
| 8909 | {64 * 1024, 3}, |
| 8910 | {32 * 1024, 1}, |
| 8911 | {8 * 1024, 2}, |
| 8912 | {16 * 1024, 1}, |
| 8913 | }, |
| 8914 | .block_erase = erase_sector_jedec, |
| 8915 | }, { |
| 8916 | .eraseblocks = { {256 * 1024, 1} }, |
| 8917 | .block_erase = erase_chip_block_jedec, |
| 8918 | } |
| 8919 | }, |
| 8920 | .write = write_jedec_1, |
| 8921 | .read = read_memmapped, |
| 8922 | .voltage = {4500, 5500}, |
| 8923 | }, |
| 8924 | |
| 8925 | { |
| 8926 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8927 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8928 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8929 | .manufacture_id = MACRONIX_ID, |
| 8930 | .model_id = MACRONIX_MX29F040, |
| 8931 | .total_size = 512, |
| 8932 | .page_size = 64 * 1024, |
| 8933 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8934 | .tested = TEST_UNTESTED, |
| 8935 | .probe = probe_jedec, |
| 8936 | .probe_timing = TIMING_ZERO, |
| 8937 | .block_erasers = |
| 8938 | { |
| 8939 | { |
| 8940 | .eraseblocks = { {64 * 1024, 8} }, |
| 8941 | .block_erase = erase_sector_jedec, |
| 8942 | }, { |
| 8943 | .eraseblocks = { {512 * 1024, 1} }, |
| 8944 | .block_erase = erase_chip_block_jedec, |
| 8945 | }, |
| 8946 | }, |
| 8947 | .write = write_jedec_1, |
| 8948 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8949 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8950 | }, |
| 8951 | |
| 8952 | { |
| 8953 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8954 | .name = "MX29GL320EB", |
| 8955 | .bustype = BUS_PARALLEL, |
| 8956 | .manufacture_id = MACRONIX_ID, |
| 8957 | .model_id = MACRONIX_MX29GL320EB, |
| 8958 | .total_size = 4096, |
| 8959 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8960 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8961 | .tested = TEST_UNTESTED, |
| 8962 | .probe = probe_jedec_29gl, |
| 8963 | .probe_timing = TIMING_ZERO, |
| 8964 | .block_erasers = |
| 8965 | { |
| 8966 | { |
| 8967 | .eraseblocks = { |
| 8968 | {8 * 1024, 8}, |
| 8969 | {64 * 1024, 63}, |
| 8970 | }, |
| 8971 | .block_erase = erase_sector_jedec, |
| 8972 | }, { |
| 8973 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8974 | .block_erase = erase_chip_block_jedec, |
| 8975 | }, |
| 8976 | }, |
| 8977 | .write = write_jedec_1, |
| 8978 | .read = read_memmapped, |
| 8979 | .voltage = {2700, 3600}, |
| 8980 | }, |
| 8981 | |
| 8982 | { |
| 8983 | .vendor = "Macronix", |
| 8984 | .name = "MX29GL320ET", |
| 8985 | .bustype = BUS_PARALLEL, |
| 8986 | .manufacture_id = MACRONIX_ID, |
| 8987 | .model_id = MACRONIX_MX29GL320ET, |
| 8988 | .total_size = 4096, |
| 8989 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8990 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8991 | .tested = TEST_UNTESTED, |
| 8992 | .probe = probe_jedec_29gl, |
| 8993 | .probe_timing = TIMING_ZERO, |
| 8994 | .block_erasers = |
| 8995 | { |
| 8996 | { |
| 8997 | .eraseblocks = { |
| 8998 | {64 * 1024, 63}, |
| 8999 | {8 * 1024, 8}, |
| 9000 | }, |
| 9001 | .block_erase = erase_sector_jedec, |
| 9002 | }, { |
| 9003 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9004 | .block_erase = erase_chip_block_jedec, |
| 9005 | }, |
| 9006 | }, |
| 9007 | .write = write_jedec_1, |
| 9008 | .read = read_memmapped, |
| 9009 | .voltage = {2700, 3600}, |
| 9010 | }, |
| 9011 | |
| 9012 | { |
| 9013 | .vendor = "Macronix", |
| 9014 | .name = "MX29GL320EH/L", |
| 9015 | .bustype = BUS_PARALLEL, |
| 9016 | .manufacture_id = MACRONIX_ID, |
| 9017 | .model_id = MACRONIX_MX29GL320EHL, |
| 9018 | .total_size = 4096, |
| 9019 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9020 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9021 | .tested = TEST_UNTESTED, |
| 9022 | .probe = probe_jedec_29gl, |
| 9023 | .probe_timing = TIMING_ZERO, |
| 9024 | .block_erasers = |
| 9025 | { |
| 9026 | { |
| 9027 | .eraseblocks = { {64 * 1024, 64} }, |
| 9028 | .block_erase = erase_sector_jedec, |
| 9029 | }, { |
| 9030 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9031 | .block_erase = erase_chip_block_jedec, |
| 9032 | }, |
| 9033 | }, |
| 9034 | .write = write_jedec_1, |
| 9035 | .read = read_memmapped, |
| 9036 | .voltage = {2700, 3600}, |
| 9037 | }, |
| 9038 | |
| 9039 | { |
| 9040 | .vendor = "Macronix", |
| 9041 | .name = "MX29GL640EB", |
| 9042 | .bustype = BUS_PARALLEL, |
| 9043 | .manufacture_id = MACRONIX_ID, |
| 9044 | .model_id = MACRONIX_MX29GL640EB, |
| 9045 | .total_size = 8192, |
| 9046 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9047 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9048 | .tested = TEST_UNTESTED, |
| 9049 | .probe = probe_jedec_29gl, |
| 9050 | .probe_timing = TIMING_ZERO, |
| 9051 | .block_erasers = |
| 9052 | { |
| 9053 | { |
| 9054 | .eraseblocks = { |
| 9055 | {8 * 1024, 8}, |
| 9056 | {64 * 1024, 127}, |
| 9057 | }, |
| 9058 | .block_erase = erase_sector_jedec, |
| 9059 | }, { |
| 9060 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9061 | .block_erase = erase_chip_block_jedec, |
| 9062 | }, |
| 9063 | }, |
| 9064 | .write = write_jedec_1, |
| 9065 | .read = read_memmapped, |
| 9066 | .voltage = {2700, 3600}, |
| 9067 | }, |
| 9068 | |
| 9069 | { |
| 9070 | .vendor = "Macronix", |
| 9071 | .name = "MX29GL640ET", |
| 9072 | .bustype = BUS_PARALLEL, |
| 9073 | .manufacture_id = MACRONIX_ID, |
| 9074 | .model_id = MACRONIX_MX29GL640ET, |
| 9075 | .total_size = 8192, |
| 9076 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9077 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9078 | .tested = TEST_UNTESTED, |
| 9079 | .probe = probe_jedec_29gl, |
| 9080 | .probe_timing = TIMING_ZERO, |
| 9081 | .block_erasers = |
| 9082 | { |
| 9083 | { |
| 9084 | .eraseblocks = { |
| 9085 | {64 * 1024, 127}, |
| 9086 | {8 * 1024, 8}, |
| 9087 | }, |
| 9088 | .block_erase = erase_sector_jedec, |
| 9089 | }, { |
| 9090 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9091 | .block_erase = erase_chip_block_jedec, |
| 9092 | }, |
| 9093 | }, |
| 9094 | .write = write_jedec_1, |
| 9095 | .read = read_memmapped, |
| 9096 | .voltage = {2700, 3600}, |
| 9097 | }, |
| 9098 | |
| 9099 | { |
| 9100 | .vendor = "Macronix", |
| 9101 | .name = "MX29GL640EH/L", |
| 9102 | .bustype = BUS_PARALLEL, |
| 9103 | .manufacture_id = MACRONIX_ID, |
| 9104 | .model_id = MACRONIX_MX29GL640EHL, |
| 9105 | .total_size = 8192, |
| 9106 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9107 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9108 | .tested = TEST_UNTESTED, |
| 9109 | .probe = probe_jedec_29gl, |
| 9110 | .probe_timing = TIMING_ZERO, |
| 9111 | .block_erasers = |
| 9112 | { |
| 9113 | { |
| 9114 | .eraseblocks = { {64 * 1024, 128} }, |
| 9115 | .block_erase = erase_sector_jedec, |
| 9116 | }, { |
| 9117 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9118 | .block_erase = erase_chip_block_jedec, |
| 9119 | }, |
| 9120 | }, |
| 9121 | .write = write_jedec_1, |
| 9122 | .read = read_memmapped, |
| 9123 | .voltage = {2700, 3600}, |
| 9124 | }, |
| 9125 | |
| 9126 | { |
| 9127 | .vendor = "Macronix", |
| 9128 | .name = "MX29GL128F", |
| 9129 | .bustype = BUS_PARALLEL, |
| 9130 | .manufacture_id = MACRONIX_ID, |
| 9131 | .model_id = MACRONIX_MX29GL128F, |
| 9132 | .total_size = 16384, |
| 9133 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9134 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9135 | .tested = TEST_UNTESTED, |
| 9136 | .probe = probe_jedec_29gl, |
| 9137 | .probe_timing = TIMING_ZERO, |
| 9138 | .block_erasers = |
| 9139 | { |
| 9140 | { |
| 9141 | .eraseblocks = { {128 * 1024, 128} }, |
| 9142 | .block_erase = erase_sector_jedec, |
| 9143 | }, { |
| 9144 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9145 | .block_erase = erase_chip_block_jedec, |
| 9146 | }, |
| 9147 | }, |
| 9148 | .write = write_jedec_1, |
| 9149 | .read = read_memmapped, |
| 9150 | .voltage = {2700, 3600}, |
| 9151 | }, |
| 9152 | |
| 9153 | { |
| 9154 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 9155 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9156 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9157 | .manufacture_id = MACRONIX_ID, |
| 9158 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9159 | .total_size = 512, |
| 9160 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9161 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9162 | .tested = TEST_UNTESTED, |
| 9163 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9164 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9165 | .block_erasers = |
| 9166 | { |
| 9167 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 9168 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9169 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9170 | }, { |
| 9171 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9172 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9173 | }, |
| 9174 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9175 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9176 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9177 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 9178 | }, |
| 9179 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9180 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9181 | .vendor = "Micron/Numonyx/ST", |
| 9182 | .name = "M25P05-A", |
| 9183 | .bustype = BUS_SPI, |
| 9184 | .manufacture_id = ST_ID, |
| 9185 | .model_id = ST_M25P05A, |
| 9186 | .total_size = 64, |
| 9187 | .page_size = 256, |
| 9188 | .feature_bits = FEATURE_WRSR_WREN, |
| 9189 | .tested = TEST_OK_PREW, |
| 9190 | .probe = probe_spi_rdid, |
| 9191 | .probe_timing = TIMING_ZERO, |
| 9192 | .block_erasers = |
| 9193 | { |
| 9194 | { |
| 9195 | .eraseblocks = { {32 * 1024, 2} }, |
| 9196 | .block_erase = spi_block_erase_d8, |
| 9197 | }, { |
| 9198 | .eraseblocks = { {64 * 1024, 1} }, |
| 9199 | .block_erase = spi_block_erase_c7, |
| 9200 | } |
| 9201 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9202 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9203 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9204 | .write = spi_chip_write_256, |
| 9205 | .read = spi_chip_read, |
| 9206 | .voltage = {2700, 3600}, |
| 9207 | }, |
| 9208 | |
| 9209 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 9210 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 9211 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 9212 | * only is successful if RDID does not work. |
| 9213 | */ |
| 9214 | { |
| 9215 | .vendor = "Micron/Numonyx/ST", |
| 9216 | .name = "M25P05", |
| 9217 | .bustype = BUS_SPI, |
| 9218 | .manufacture_id = 0, /* Not used. */ |
| 9219 | .model_id = ST_M25P05_RES, |
| 9220 | .total_size = 64, |
| 9221 | .page_size = 256, |
| 9222 | .feature_bits = FEATURE_WRSR_WREN, |
| 9223 | .tested = TEST_UNTESTED, |
| 9224 | .probe = probe_spi_res1, |
| 9225 | .probe_timing = TIMING_ZERO, |
| 9226 | .block_erasers = |
| 9227 | { |
| 9228 | { |
| 9229 | .eraseblocks = { {32 * 1024, 2} }, |
| 9230 | .block_erase = spi_block_erase_d8, |
| 9231 | }, { |
| 9232 | .eraseblocks = { {64 * 1024, 1} }, |
| 9233 | .block_erase = spi_block_erase_c7, |
| 9234 | } |
| 9235 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9236 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9237 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9238 | .write = spi_chip_write_1, /* 128 */ |
| 9239 | .read = spi_chip_read, |
| 9240 | .voltage = {2700, 3600}, |
| 9241 | }, |
| 9242 | |
| 9243 | { |
| 9244 | .vendor = "Micron/Numonyx/ST", |
| 9245 | .name = "M25P10-A", |
| 9246 | .bustype = BUS_SPI, |
| 9247 | .manufacture_id = ST_ID, |
| 9248 | .model_id = ST_M25P10A, |
| 9249 | .total_size = 128, |
| 9250 | .page_size = 256, |
| 9251 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9252 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9253 | .probe = probe_spi_rdid, |
| 9254 | .probe_timing = TIMING_ZERO, |
| 9255 | .block_erasers = |
| 9256 | { |
| 9257 | { |
| 9258 | .eraseblocks = { {32 * 1024, 4} }, |
| 9259 | .block_erase = spi_block_erase_d8, |
| 9260 | }, { |
| 9261 | .eraseblocks = { {128 * 1024, 1} }, |
| 9262 | .block_erase = spi_block_erase_c7, |
| 9263 | } |
| 9264 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9265 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9266 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9267 | .write = spi_chip_write_256, |
| 9268 | .read = spi_chip_read, |
| 9269 | .voltage = {2700, 3600}, |
| 9270 | }, |
| 9271 | |
| 9272 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 9273 | { |
| 9274 | .vendor = "Micron/Numonyx/ST", |
| 9275 | .name = "M25P10", |
| 9276 | .bustype = BUS_SPI, |
| 9277 | .manufacture_id = 0, /* Not used. */ |
| 9278 | .model_id = ST_M25P10_RES, |
| 9279 | .total_size = 128, |
| 9280 | .page_size = 256, |
| 9281 | .feature_bits = FEATURE_WRSR_WREN, |
| 9282 | .tested = TEST_UNTESTED, |
| 9283 | .probe = probe_spi_res1, |
| 9284 | .probe_timing = TIMING_ZERO, |
| 9285 | .block_erasers = |
| 9286 | { |
| 9287 | { |
| 9288 | .eraseblocks = { {32 * 1024, 4} }, |
| 9289 | .block_erase = spi_block_erase_d8, |
| 9290 | }, { |
| 9291 | .eraseblocks = { {128 * 1024, 1} }, |
| 9292 | .block_erase = spi_block_erase_c7, |
| 9293 | } |
| 9294 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9295 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9296 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9297 | .write = spi_chip_write_1, /* 128 */ |
| 9298 | .read = spi_chip_read, |
| 9299 | .voltage = {2700, 3600}, |
| 9300 | }, |
| 9301 | |
| 9302 | { |
| 9303 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9304 | .name = "M25P20", |
| 9305 | .bustype = BUS_SPI, |
| 9306 | .manufacture_id = ST_ID, |
| 9307 | .model_id = ST_M25P20, |
| 9308 | .total_size = 256, |
| 9309 | .page_size = 256, |
| 9310 | .feature_bits = FEATURE_WRSR_WREN, |
| 9311 | .tested = TEST_UNTESTED, |
| 9312 | .probe = probe_spi_rdid, |
| 9313 | .probe_timing = TIMING_ZERO, |
| 9314 | .block_erasers = |
| 9315 | { |
| 9316 | { |
| 9317 | .eraseblocks = { {64 * 1024, 4} }, |
| 9318 | .block_erase = spi_block_erase_d8, |
| 9319 | }, { |
| 9320 | .eraseblocks = { {256 * 1024, 1} }, |
| 9321 | .block_erase = spi_block_erase_c7, |
| 9322 | } |
| 9323 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9324 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9325 | .unlock = spi_disable_blockprotect, |
| 9326 | .write = spi_chip_write_256, |
| 9327 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9328 | .voltage = {2700, 3600}, |
| 9329 | }, |
| 9330 | |
| 9331 | { |
| 9332 | .vendor = "Micron/Numonyx/ST", |
| 9333 | .name = "M25P20-old", |
| 9334 | .bustype = BUS_SPI, |
| 9335 | .manufacture_id = 0, /* Not used. */ |
| 9336 | .model_id = ST_M25P20_RES, |
| 9337 | .total_size = 256, |
| 9338 | .page_size = 256, |
| 9339 | .feature_bits = FEATURE_WRSR_WREN, |
| 9340 | .tested = TEST_OK_PREW, |
| 9341 | .probe = probe_spi_res1, |
| 9342 | .probe_timing = TIMING_ZERO, |
| 9343 | .block_erasers = |
| 9344 | { |
| 9345 | { |
| 9346 | .eraseblocks = { {64 * 1024, 4} }, |
| 9347 | .block_erase = spi_block_erase_d8, |
| 9348 | }, { |
| 9349 | .eraseblocks = { {256 * 1024, 1} }, |
| 9350 | .block_erase = spi_block_erase_c7, |
| 9351 | } |
| 9352 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9353 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9354 | .unlock = spi_disable_blockprotect, |
| 9355 | .write = spi_chip_write_256, |
| 9356 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9357 | .voltage = {2700, 3600}, |
| 9358 | }, |
| 9359 | |
| 9360 | { |
| 9361 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9362 | .name = "M25P40", |
| 9363 | .bustype = BUS_SPI, |
| 9364 | .manufacture_id = ST_ID, |
| 9365 | .model_id = ST_M25P40, |
| 9366 | .total_size = 512, |
| 9367 | .page_size = 256, |
| 9368 | .feature_bits = FEATURE_WRSR_WREN, |
| 9369 | .tested = TEST_OK_PREW, |
| 9370 | .probe = probe_spi_rdid, |
| 9371 | .probe_timing = TIMING_ZERO, |
| 9372 | .block_erasers = |
| 9373 | { |
| 9374 | { |
| 9375 | .eraseblocks = { {64 * 1024, 8} }, |
| 9376 | .block_erase = spi_block_erase_d8, |
| 9377 | }, { |
| 9378 | .eraseblocks = { {512 * 1024, 1} }, |
| 9379 | .block_erase = spi_block_erase_c7, |
| 9380 | } |
| 9381 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9382 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9383 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9384 | .write = spi_chip_write_256, |
| 9385 | .read = spi_chip_read, |
| 9386 | .voltage = {2700, 3600}, |
| 9387 | }, |
| 9388 | |
| 9389 | { |
| 9390 | .vendor = "Micron/Numonyx/ST", |
| 9391 | .name = "M25P40-old", |
| 9392 | .bustype = BUS_SPI, |
| 9393 | .manufacture_id = 0, /* Not used. */ |
| 9394 | .model_id = ST_M25P40_RES, |
| 9395 | .total_size = 512, |
| 9396 | .page_size = 256, |
| 9397 | .feature_bits = FEATURE_WRSR_WREN, |
| 9398 | .tested = TEST_UNTESTED, |
| 9399 | .probe = probe_spi_res1, |
| 9400 | .probe_timing = TIMING_ZERO, |
| 9401 | .block_erasers = |
| 9402 | { |
| 9403 | { |
| 9404 | .eraseblocks = { {64 * 1024, 8} }, |
| 9405 | .block_erase = spi_block_erase_d8, |
| 9406 | }, { |
| 9407 | .eraseblocks = { {512 * 1024, 1} }, |
| 9408 | .block_erase = spi_block_erase_c7, |
| 9409 | } |
| 9410 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9411 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9412 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9413 | .write = spi_chip_write_256, |
| 9414 | .read = spi_chip_read, |
| 9415 | }, |
| 9416 | |
| 9417 | { |
| 9418 | .vendor = "Micron/Numonyx/ST", |
| 9419 | .name = "M25P80", |
| 9420 | .bustype = BUS_SPI, |
| 9421 | .manufacture_id = ST_ID, |
| 9422 | .model_id = ST_M25P80, |
| 9423 | .total_size = 1024, |
| 9424 | .page_size = 256, |
| 9425 | .feature_bits = FEATURE_WRSR_WREN, |
| 9426 | .tested = TEST_OK_PREW, |
| 9427 | .probe = probe_spi_rdid, |
| 9428 | .probe_timing = TIMING_ZERO, |
| 9429 | .block_erasers = |
| 9430 | { |
| 9431 | { |
| 9432 | .eraseblocks = { {64 * 1024, 16} }, |
| 9433 | .block_erase = spi_block_erase_d8, |
| 9434 | }, { |
| 9435 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9436 | .block_erase = spi_block_erase_c7, |
| 9437 | } |
| 9438 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9439 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9440 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9441 | .write = spi_chip_write_256, |
| 9442 | .read = spi_chip_read, |
| 9443 | .voltage = {2700, 3600}, |
| 9444 | }, |
| 9445 | |
| 9446 | { |
| 9447 | .vendor = "Micron/Numonyx/ST", |
| 9448 | .name = "M25P16", |
| 9449 | .bustype = BUS_SPI, |
| 9450 | .manufacture_id = ST_ID, |
| 9451 | .model_id = ST_M25P16, |
| 9452 | .total_size = 2048, |
| 9453 | .page_size = 256, |
| 9454 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9455 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9456 | .probe = probe_spi_rdid, |
| 9457 | .probe_timing = TIMING_ZERO, |
| 9458 | .block_erasers = |
| 9459 | { |
| 9460 | { |
| 9461 | .eraseblocks = { {64 * 1024, 32} }, |
| 9462 | .block_erase = spi_block_erase_d8, |
| 9463 | }, { |
| 9464 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9465 | .block_erase = spi_block_erase_c7, |
| 9466 | } |
| 9467 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9468 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9469 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9470 | .write = spi_chip_write_256, |
| 9471 | .read = spi_chip_read, |
| 9472 | .voltage = {2700, 3600}, |
| 9473 | }, |
| 9474 | |
| 9475 | { |
| 9476 | .vendor = "Micron/Numonyx/ST", |
| 9477 | .name = "M25P32", |
| 9478 | .bustype = BUS_SPI, |
| 9479 | .manufacture_id = ST_ID, |
| 9480 | .model_id = ST_M25P32, |
| 9481 | .total_size = 4096, |
| 9482 | .page_size = 256, |
| 9483 | .feature_bits = FEATURE_WRSR_WREN, |
| 9484 | .tested = TEST_OK_PREW, |
| 9485 | .probe = probe_spi_rdid, |
| 9486 | .probe_timing = TIMING_ZERO, |
| 9487 | .block_erasers = |
| 9488 | { |
| 9489 | { |
| 9490 | .eraseblocks = { {64 * 1024, 64} }, |
| 9491 | .block_erase = spi_block_erase_d8, |
| 9492 | }, { |
| 9493 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9494 | .block_erase = spi_block_erase_c7, |
| 9495 | } |
| 9496 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9497 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9498 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9499 | .write = spi_chip_write_256, |
| 9500 | .read = spi_chip_read, |
| 9501 | .voltage = {2700, 3600}, |
| 9502 | }, |
| 9503 | |
| 9504 | { |
| 9505 | .vendor = "Micron/Numonyx/ST", |
| 9506 | .name = "M25P64", |
| 9507 | .bustype = BUS_SPI, |
| 9508 | .manufacture_id = ST_ID, |
| 9509 | .model_id = ST_M25P64, |
| 9510 | .total_size = 8192, |
| 9511 | .page_size = 256, |
| 9512 | .feature_bits = FEATURE_WRSR_WREN, |
| 9513 | .tested = TEST_OK_PREW, |
| 9514 | .probe = probe_spi_rdid, |
| 9515 | .probe_timing = TIMING_ZERO, |
| 9516 | .block_erasers = |
| 9517 | { |
| 9518 | { |
| 9519 | .eraseblocks = { {64 * 1024, 128} }, |
| 9520 | .block_erase = spi_block_erase_d8, |
| 9521 | }, { |
| 9522 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9523 | .block_erase = spi_block_erase_c7, |
| 9524 | } |
| 9525 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9526 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9527 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9528 | .write = spi_chip_write_256, |
| 9529 | .read = spi_chip_read, |
| 9530 | .voltage = {2700, 3600}, |
| 9531 | }, |
| 9532 | |
| 9533 | { |
| 9534 | .vendor = "Micron/Numonyx/ST", |
| 9535 | .name = "M25P128", |
| 9536 | .bustype = BUS_SPI, |
| 9537 | .manufacture_id = ST_ID, |
| 9538 | .model_id = ST_M25P128, |
| 9539 | .total_size = 16384, |
| 9540 | .page_size = 256, |
| 9541 | .feature_bits = FEATURE_WRSR_WREN, |
| 9542 | .tested = TEST_OK_PREW, |
| 9543 | .probe = probe_spi_rdid, |
| 9544 | .probe_timing = TIMING_ZERO, |
| 9545 | .block_erasers = |
| 9546 | { |
| 9547 | { |
| 9548 | .eraseblocks = { {256 * 1024, 64} }, |
| 9549 | .block_erase = spi_block_erase_d8, |
| 9550 | }, { |
| 9551 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9552 | .block_erase = spi_block_erase_c7, |
| 9553 | } |
| 9554 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9555 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9556 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9557 | .write = spi_chip_write_256, |
| 9558 | .read = spi_chip_read, |
| 9559 | .voltage = {2700, 3600}, |
| 9560 | }, |
| 9561 | |
| 9562 | { |
| 9563 | .vendor = "Micron/Numonyx/ST", |
| 9564 | .name = "M25PE10", |
| 9565 | .bustype = BUS_SPI, |
| 9566 | .manufacture_id = ST_ID, |
| 9567 | .model_id = ST_M25PE10, |
| 9568 | .total_size = 128, |
| 9569 | .page_size = 256, |
| 9570 | .feature_bits = FEATURE_WRSR_WREN, |
| 9571 | .tested = TEST_UNTESTED, |
| 9572 | .probe = probe_spi_rdid, |
| 9573 | .probe_timing = TIMING_ZERO, |
| 9574 | .block_erasers = |
| 9575 | { |
| 9576 | { |
| 9577 | .eraseblocks = { {4 * 1024, 32} }, |
| 9578 | .block_erase = spi_block_erase_20, |
| 9579 | }, { |
| 9580 | .eraseblocks = { {64 * 1024, 2} }, |
| 9581 | .block_erase = spi_block_erase_d8, |
| 9582 | }, { |
| 9583 | .eraseblocks = { {128 * 1024, 1} }, |
| 9584 | .block_erase = spi_block_erase_c7, |
| 9585 | } |
| 9586 | }, |
| 9587 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9588 | .unlock = spi_disable_blockprotect, |
| 9589 | .write = spi_chip_write_256, |
| 9590 | .read = spi_chip_read, |
| 9591 | .voltage = {2700, 3600}, |
| 9592 | }, |
| 9593 | |
| 9594 | { |
| 9595 | .vendor = "Micron/Numonyx/ST", |
| 9596 | .name = "M25PE20", |
| 9597 | .bustype = BUS_SPI, |
| 9598 | .manufacture_id = ST_ID, |
| 9599 | .model_id = ST_M25PE20, |
| 9600 | .total_size = 256, |
| 9601 | .page_size = 256, |
| 9602 | .feature_bits = FEATURE_WRSR_WREN, |
| 9603 | .tested = TEST_UNTESTED, |
| 9604 | .probe = probe_spi_rdid, |
| 9605 | .probe_timing = TIMING_ZERO, |
| 9606 | .block_erasers = |
| 9607 | { |
| 9608 | { |
| 9609 | .eraseblocks = { {4 * 1024, 64} }, |
| 9610 | .block_erase = spi_block_erase_20, |
| 9611 | }, { |
| 9612 | .eraseblocks = { {64 * 1024, 4} }, |
| 9613 | .block_erase = spi_block_erase_d8, |
| 9614 | }, { |
| 9615 | .eraseblocks = { {256 * 1024, 1} }, |
| 9616 | .block_erase = spi_block_erase_c7, |
| 9617 | } |
| 9618 | }, |
| 9619 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9620 | .unlock = spi_disable_blockprotect, |
| 9621 | .write = spi_chip_write_256, |
| 9622 | .read = spi_chip_read, |
| 9623 | .voltage = {2700, 3600}, |
| 9624 | }, |
| 9625 | |
| 9626 | { |
| 9627 | .vendor = "Micron/Numonyx/ST", |
| 9628 | .name = "M25PE40", |
| 9629 | .bustype = BUS_SPI, |
| 9630 | .manufacture_id = ST_ID, |
| 9631 | .model_id = ST_M25PE40, |
| 9632 | .total_size = 512, |
| 9633 | .page_size = 256, |
| 9634 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9635 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9636 | .probe = probe_spi_rdid, |
| 9637 | .probe_timing = TIMING_ZERO, |
| 9638 | .block_erasers = |
| 9639 | { |
| 9640 | { |
| 9641 | .eraseblocks = { {4 * 1024, 128} }, |
| 9642 | .block_erase = spi_block_erase_20, |
| 9643 | }, { |
| 9644 | .eraseblocks = { {64 * 1024, 8} }, |
| 9645 | .block_erase = spi_block_erase_d8, |
| 9646 | }, { |
| 9647 | .eraseblocks = { {512 * 1024, 1} }, |
| 9648 | .block_erase = spi_block_erase_c7, |
| 9649 | } |
| 9650 | }, |
| 9651 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9652 | .unlock = spi_disable_blockprotect, |
| 9653 | .write = spi_chip_write_256, |
| 9654 | .read = spi_chip_read, |
| 9655 | .voltage = {2700, 3600}, |
| 9656 | }, |
| 9657 | |
| 9658 | { |
| 9659 | .vendor = "Micron/Numonyx/ST", |
| 9660 | .name = "M25PE80", |
| 9661 | .bustype = BUS_SPI, |
| 9662 | .manufacture_id = ST_ID, |
| 9663 | .model_id = ST_M25PE80, |
| 9664 | .total_size = 1024, |
| 9665 | .page_size = 256, |
| 9666 | .feature_bits = FEATURE_WRSR_WREN, |
| 9667 | .tested = TEST_OK_PREW, |
| 9668 | .probe = probe_spi_rdid, |
| 9669 | .probe_timing = TIMING_ZERO, |
| 9670 | .block_erasers = |
| 9671 | { |
| 9672 | { |
| 9673 | .eraseblocks = { {4 * 1024, 256} }, |
| 9674 | .block_erase = spi_block_erase_20, |
| 9675 | }, { |
| 9676 | .eraseblocks = { {64 * 1024, 16} }, |
| 9677 | .block_erase = spi_block_erase_d8, |
| 9678 | }, { |
| 9679 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9680 | .block_erase = spi_block_erase_c7, |
| 9681 | } |
| 9682 | }, |
| 9683 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9684 | .unlock = spi_disable_blockprotect, |
| 9685 | .write = spi_chip_write_256, |
| 9686 | .read = spi_chip_read, |
| 9687 | .voltage = {2700, 3600}, |
| 9688 | }, |
| 9689 | |
| 9690 | { |
| 9691 | .vendor = "Micron/Numonyx/ST", |
| 9692 | .name = "M25PE16", |
| 9693 | .bustype = BUS_SPI, |
| 9694 | .manufacture_id = ST_ID, |
| 9695 | .model_id = ST_M25PE16, |
| 9696 | .total_size = 2048, |
| 9697 | .page_size = 256, |
| 9698 | .feature_bits = FEATURE_WRSR_WREN, |
| 9699 | .tested = TEST_UNTESTED, |
| 9700 | .probe = probe_spi_rdid, |
| 9701 | .probe_timing = TIMING_ZERO, |
| 9702 | .block_erasers = |
| 9703 | { |
| 9704 | { |
| 9705 | .eraseblocks = { {4 * 1024, 512} }, |
| 9706 | .block_erase = spi_block_erase_20, |
| 9707 | }, { |
| 9708 | .eraseblocks = { {64 * 1024, 32} }, |
| 9709 | .block_erase = spi_block_erase_d8, |
| 9710 | }, { |
| 9711 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9712 | .block_erase = spi_block_erase_c7, |
| 9713 | } |
| 9714 | }, |
| 9715 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9716 | .unlock = spi_disable_blockprotect, |
| 9717 | .write = spi_chip_write_256, |
| 9718 | .read = spi_chip_read, |
| 9719 | .voltage = {2700, 3600}, |
| 9720 | }, |
| 9721 | |
| 9722 | { |
| 9723 | .vendor = "Micron/Numonyx/ST", |
| 9724 | .name = "M25PX80", |
| 9725 | .bustype = BUS_SPI, |
| 9726 | .manufacture_id = ST_ID, |
| 9727 | .model_id = ST_M25PX80, |
| 9728 | .total_size = 1024, |
| 9729 | .page_size = 256, |
| 9730 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9731 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9732 | .tested = TEST_OK_PREW, |
| 9733 | .probe = probe_spi_rdid, |
| 9734 | .probe_timing = TIMING_ZERO, |
| 9735 | .block_erasers = { |
| 9736 | { |
| 9737 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 9738 | .block_erase = spi_block_erase_20, |
| 9739 | }, { |
| 9740 | .eraseblocks = { {64 * 1024, 16} }, |
| 9741 | .block_erase = spi_block_erase_d8, |
| 9742 | }, { |
| 9743 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9744 | .block_erase = spi_block_erase_c7, |
| 9745 | } |
| 9746 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9747 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9748 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9749 | .write = spi_chip_write_256, |
| 9750 | .read = spi_chip_read, |
| 9751 | .voltage = {2700, 3600}, |
| 9752 | }, |
| 9753 | |
| 9754 | { |
| 9755 | .vendor = "Micron/Numonyx/ST", |
| 9756 | .name = "M25PX16", |
| 9757 | .bustype = BUS_SPI, |
| 9758 | .manufacture_id = ST_ID, |
| 9759 | .model_id = ST_M25PX16, |
| 9760 | .total_size = 2048, |
| 9761 | .page_size = 256, |
| 9762 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9763 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9764 | .tested = TEST_OK_PREW, |
| 9765 | .probe = probe_spi_rdid, |
| 9766 | .probe_timing = TIMING_ZERO, |
| 9767 | .block_erasers = |
| 9768 | { |
| 9769 | { |
| 9770 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 9771 | .block_erase = spi_block_erase_20, |
| 9772 | }, { |
| 9773 | .eraseblocks = { {64 * 1024, 32} }, |
| 9774 | .block_erase = spi_block_erase_d8, |
| 9775 | }, { |
| 9776 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9777 | .block_erase = spi_block_erase_c7, |
| 9778 | } |
| 9779 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9780 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9781 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9782 | .write = spi_chip_write_256, |
| 9783 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9784 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9785 | }, |
| 9786 | |
| 9787 | { |
| 9788 | .vendor = "Micron/Numonyx/ST", |
| 9789 | .name = "M25PX32", |
| 9790 | .bustype = BUS_SPI, |
| 9791 | .manufacture_id = ST_ID, |
| 9792 | .model_id = ST_M25PX32, |
| 9793 | .total_size = 4096, |
| 9794 | .page_size = 256, |
| 9795 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9796 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9797 | .tested = TEST_OK_PRE, |
| 9798 | .probe = probe_spi_rdid, |
| 9799 | .probe_timing = TIMING_ZERO, |
| 9800 | .block_erasers = |
| 9801 | { |
| 9802 | { |
| 9803 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 9804 | .block_erase = spi_block_erase_20, |
| 9805 | }, { |
| 9806 | .eraseblocks = { {64 * 1024, 64} }, |
| 9807 | .block_erase = spi_block_erase_d8, |
| 9808 | }, { |
| 9809 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9810 | .block_erase = spi_block_erase_c7, |
| 9811 | } |
| 9812 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9813 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9814 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9815 | .write = spi_chip_write_256, |
| 9816 | .read = spi_chip_read, |
| 9817 | .voltage = {2700, 3600}, |
| 9818 | }, |
| 9819 | |
| 9820 | { |
| 9821 | .vendor = "Micron/Numonyx/ST", |
| 9822 | .name = "M25PX64", |
| 9823 | .bustype = BUS_SPI, |
| 9824 | .manufacture_id = ST_ID, |
| 9825 | .model_id = ST_M25PX64, |
| 9826 | .total_size = 8192, |
| 9827 | .page_size = 256, |
| 9828 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 9829 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9830 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9831 | .probe = probe_spi_rdid, |
| 9832 | .probe_timing = TIMING_ZERO, |
| 9833 | .block_erasers = |
| 9834 | { |
| 9835 | { |
| 9836 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 9837 | .block_erase = spi_block_erase_20, |
| 9838 | }, { |
| 9839 | .eraseblocks = { {64 * 1024, 128} }, |
| 9840 | .block_erase = spi_block_erase_d8, |
| 9841 | }, { |
| 9842 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9843 | .block_erase = spi_block_erase_c7, |
| 9844 | } |
| 9845 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9846 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9847 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 9848 | .write = spi_chip_write_256, |
| 9849 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9850 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9851 | }, |
| 9852 | |
| 9853 | { |
| 9854 | .vendor = "Micron/Numonyx/ST", |
| 9855 | .name = "M45PE10", |
| 9856 | .bustype = BUS_SPI, |
| 9857 | .manufacture_id = ST_ID, |
| 9858 | .model_id = ST_M45PE10, |
| 9859 | .total_size = 128, |
| 9860 | .page_size = 256, |
| 9861 | .tested = TEST_UNTESTED, |
| 9862 | .probe = probe_spi_rdid, |
| 9863 | .probe_timing = TIMING_ZERO, |
| 9864 | .block_erasers = { |
| 9865 | { |
| 9866 | .eraseblocks = { {256, 512} }, |
| 9867 | .block_erase = spi_block_erase_db, |
| 9868 | }, { |
| 9869 | .eraseblocks = { {64 * 1024, 2} }, |
| 9870 | .block_erase = spi_block_erase_d8, |
| 9871 | } |
| 9872 | }, |
| 9873 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9874 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9875 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9876 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9877 | .voltage = {2700, 3600}, |
| 9878 | }, |
| 9879 | |
| 9880 | { |
| 9881 | .vendor = "Micron/Numonyx/ST", |
| 9882 | .name = "M45PE20", |
| 9883 | .bustype = BUS_SPI, |
| 9884 | .manufacture_id = ST_ID, |
| 9885 | .model_id = ST_M45PE20, |
| 9886 | .total_size = 256, |
| 9887 | .page_size = 256, |
| 9888 | .tested = TEST_UNTESTED, |
| 9889 | .probe = probe_spi_rdid, |
| 9890 | .probe_timing = TIMING_ZERO, |
| 9891 | .block_erasers = { |
| 9892 | { |
| 9893 | .eraseblocks = { {256, 1024} }, |
| 9894 | .block_erase = spi_block_erase_db, |
| 9895 | }, { |
| 9896 | .eraseblocks = { {64 * 1024, 4} }, |
| 9897 | .block_erase = spi_block_erase_d8, |
| 9898 | } |
| 9899 | }, |
| 9900 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9901 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9902 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9903 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9904 | .voltage = {2700, 3600}, |
| 9905 | }, |
| 9906 | |
| 9907 | { |
| 9908 | .vendor = "Micron/Numonyx/ST", |
| 9909 | .name = "M45PE40", |
| 9910 | .bustype = BUS_SPI, |
| 9911 | .manufacture_id = ST_ID, |
| 9912 | .model_id = ST_M45PE40, |
| 9913 | .total_size = 512, |
| 9914 | .page_size = 256, |
| 9915 | .tested = TEST_UNTESTED, |
| 9916 | .probe = probe_spi_rdid, |
| 9917 | .probe_timing = TIMING_ZERO, |
| 9918 | .block_erasers = { |
| 9919 | { |
| 9920 | .eraseblocks = { {256, 2048} }, |
| 9921 | .block_erase = spi_block_erase_db, |
| 9922 | }, { |
| 9923 | .eraseblocks = { {64 * 1024, 8} }, |
| 9924 | .block_erase = spi_block_erase_d8, |
| 9925 | } |
| 9926 | }, |
| 9927 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9928 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9929 | .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] | 9930 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9931 | .voltage = {2700, 3600}, |
| 9932 | }, |
| 9933 | |
| 9934 | { |
| 9935 | .vendor = "Micron/Numonyx/ST", |
| 9936 | .name = "M45PE80", |
| 9937 | .bustype = BUS_SPI, |
| 9938 | .manufacture_id = ST_ID, |
| 9939 | .model_id = ST_M45PE80, |
| 9940 | .total_size = 1024, |
| 9941 | .page_size = 256, |
| 9942 | .tested = TEST_UNTESTED, |
| 9943 | .probe = probe_spi_rdid, |
| 9944 | .probe_timing = TIMING_ZERO, |
| 9945 | .block_erasers = { |
| 9946 | { |
| 9947 | .eraseblocks = { {256, 4096} }, |
| 9948 | .block_erase = spi_block_erase_db, |
| 9949 | }, { |
| 9950 | .eraseblocks = { {64 * 1024, 16} }, |
| 9951 | .block_erase = spi_block_erase_d8, |
| 9952 | } |
| 9953 | }, |
| 9954 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9955 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9956 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9957 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9958 | .voltage = {2700, 3600}, |
| 9959 | }, |
| 9960 | |
| 9961 | { |
| 9962 | .vendor = "Micron/Numonyx/ST", |
| 9963 | .name = "M45PE16", |
| 9964 | .bustype = BUS_SPI, |
| 9965 | .manufacture_id = ST_ID, |
| 9966 | .model_id = ST_M45PE16, |
| 9967 | .total_size = 2048, |
| 9968 | .page_size = 256, |
| 9969 | .tested = TEST_UNTESTED, |
| 9970 | .probe = probe_spi_rdid, |
| 9971 | .probe_timing = TIMING_ZERO, |
| 9972 | .block_erasers = { |
| 9973 | { |
| 9974 | .eraseblocks = { {256, 8192} }, |
| 9975 | .block_erase = spi_block_erase_db, |
| 9976 | }, { |
| 9977 | .eraseblocks = { {64 * 1024, 32} }, |
| 9978 | .block_erase = spi_block_erase_d8, |
| 9979 | } |
| 9980 | }, |
| 9981 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9982 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9983 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9984 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9985 | .voltage = {2700, 3600}, |
| 9986 | }, |
| 9987 | |
| 9988 | { |
| 9989 | .vendor = "Micron/Numonyx/ST", |
| 9990 | .name = "N25Q016", |
| 9991 | .bustype = BUS_SPI, |
| 9992 | .manufacture_id = ST_ID, |
| 9993 | .model_id = ST_N25Q016__1E, |
| 9994 | .total_size = 2048, |
| 9995 | .page_size = 256, |
| 9996 | /* supports SFDP */ |
| 9997 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9998 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9999 | .tested = TEST_UNTESTED, |
| 10000 | .probe = probe_spi_rdid, |
| 10001 | .probe_timing = TIMING_ZERO, |
| 10002 | .block_erasers = |
| 10003 | { |
| 10004 | { |
| 10005 | .eraseblocks = { {4 * 1024, 512} }, |
| 10006 | .block_erase = spi_block_erase_20, |
| 10007 | }, { |
| 10008 | .eraseblocks = { {32 * 1024, 64} }, |
| 10009 | .block_erase = spi_block_erase_52, |
| 10010 | }, { |
| 10011 | .eraseblocks = { {64 * 1024, 32} }, |
| 10012 | .block_erase = spi_block_erase_d8, |
| 10013 | }, { |
| 10014 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10015 | .block_erase = spi_block_erase_c7, |
| 10016 | } |
| 10017 | }, |
| 10018 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10019 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10020 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10021 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10022 | .voltage = {1700, 2000}, |
| 10023 | }, |
| 10024 | |
| 10025 | { |
| 10026 | .vendor = "Micron/Numonyx/ST", |
| 10027 | .name = "N25Q032..1E", |
| 10028 | .bustype = BUS_SPI, |
| 10029 | .manufacture_id = ST_ID, |
| 10030 | .model_id = ST_N25Q032__1E, |
| 10031 | .total_size = 4096, |
| 10032 | .page_size = 256, |
| 10033 | /* supports SFDP */ |
| 10034 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10035 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10036 | .tested = TEST_UNTESTED, |
| 10037 | .probe = probe_spi_rdid, |
| 10038 | .probe_timing = TIMING_ZERO, |
| 10039 | .block_erasers = |
| 10040 | { |
| 10041 | { |
| 10042 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10043 | .block_erase = spi_block_erase_20, |
| 10044 | }, { |
| 10045 | .eraseblocks = { {64 * 1024, 64} }, |
| 10046 | .block_erase = spi_block_erase_d8, |
| 10047 | }, { |
| 10048 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10049 | .block_erase = spi_block_erase_c7, |
| 10050 | } |
| 10051 | }, |
| 10052 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10053 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10054 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10055 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10056 | .voltage = {1700, 2000}, |
| 10057 | }, |
| 10058 | |
| 10059 | { |
| 10060 | .vendor = "Micron/Numonyx/ST", |
| 10061 | .name = "N25Q032..3E", |
| 10062 | .bustype = BUS_SPI, |
| 10063 | .manufacture_id = ST_ID, |
| 10064 | .model_id = ST_N25Q032__3E, |
| 10065 | .total_size = 4096, |
| 10066 | .page_size = 256, |
| 10067 | /* supports SFDP */ |
| 10068 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10069 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10070 | .tested = TEST_OK_PREW, |
| 10071 | .probe = probe_spi_rdid, |
| 10072 | .probe_timing = TIMING_ZERO, |
| 10073 | .block_erasers = |
| 10074 | { |
| 10075 | { |
| 10076 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10077 | .block_erase = spi_block_erase_20, |
| 10078 | }, { |
| 10079 | .eraseblocks = { {64 * 1024, 64} }, |
| 10080 | .block_erase = spi_block_erase_d8, |
| 10081 | }, { |
| 10082 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10083 | .block_erase = spi_block_erase_c7, |
| 10084 | } |
| 10085 | }, |
| 10086 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10087 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10088 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10089 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10090 | .voltage = {2700, 3600}, |
| 10091 | }, |
| 10092 | |
| 10093 | { |
| 10094 | .vendor = "Micron/Numonyx/ST", |
| 10095 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10096 | .bustype = BUS_SPI, |
| 10097 | .manufacture_id = ST_ID, |
| 10098 | .model_id = ST_N25Q064__1E, |
| 10099 | .total_size = 8192, |
| 10100 | .page_size = 256, |
| 10101 | /* supports SFDP */ |
| 10102 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10103 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10104 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10105 | .probe = probe_spi_rdid, |
| 10106 | .probe_timing = TIMING_ZERO, |
| 10107 | .block_erasers = |
| 10108 | { |
| 10109 | { |
| 10110 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10111 | .block_erase = spi_block_erase_20, |
| 10112 | }, { |
| 10113 | .eraseblocks = { {64 * 1024, 128} }, |
| 10114 | .block_erase = spi_block_erase_d8, |
| 10115 | }, { |
| 10116 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10117 | .block_erase = spi_block_erase_c7, |
| 10118 | } |
| 10119 | }, |
| 10120 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10121 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10122 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10123 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10124 | .voltage = {1700, 2000}, |
| 10125 | }, |
| 10126 | |
| 10127 | { |
| 10128 | .vendor = "Micron/Numonyx/ST", |
| 10129 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10130 | .bustype = BUS_SPI, |
| 10131 | .manufacture_id = ST_ID, |
| 10132 | .model_id = ST_N25Q064__3E, |
| 10133 | .total_size = 8192, |
| 10134 | .page_size = 256, |
| 10135 | /* supports SFDP */ |
| 10136 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10137 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10138 | .tested = TEST_OK_PREW, |
| 10139 | .probe = probe_spi_rdid, |
| 10140 | .probe_timing = TIMING_ZERO, |
| 10141 | .block_erasers = |
| 10142 | { |
| 10143 | { |
| 10144 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10145 | .block_erase = spi_block_erase_20, |
| 10146 | }, { |
| 10147 | .eraseblocks = { {64 * 1024, 128} }, |
| 10148 | .block_erase = spi_block_erase_d8, |
| 10149 | }, { |
| 10150 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10151 | .block_erase = spi_block_erase_c7, |
| 10152 | } |
| 10153 | }, |
| 10154 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10155 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10156 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10157 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10158 | .voltage = {2700, 3600}, |
| 10159 | }, |
| 10160 | |
| 10161 | { |
| 10162 | .vendor = "Micron/Numonyx/ST", |
| 10163 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10164 | .bustype = BUS_SPI, |
| 10165 | .manufacture_id = ST_ID, |
| 10166 | .model_id = ST_N25Q128__1E, |
| 10167 | .total_size = 16384, |
| 10168 | .page_size = 256, |
| 10169 | /* supports SFDP */ |
| 10170 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10171 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10172 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10173 | .probe = probe_spi_rdid, |
| 10174 | .probe_timing = TIMING_ZERO, |
| 10175 | .block_erasers = { |
| 10176 | { |
| 10177 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10178 | .block_erase = spi_block_erase_20, |
| 10179 | }, { |
| 10180 | .eraseblocks = { {64 * 1024, 256} }, |
| 10181 | .block_erase = spi_block_erase_d8, |
| 10182 | }, { |
| 10183 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10184 | .block_erase = spi_block_erase_c7, |
| 10185 | } |
| 10186 | }, |
| 10187 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10188 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10189 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10190 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10191 | .voltage = {1700, 2000}, |
| 10192 | }, |
| 10193 | |
| 10194 | { |
| 10195 | .vendor = "Micron/Numonyx/ST", |
| 10196 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10197 | .bustype = BUS_SPI, |
| 10198 | .manufacture_id = ST_ID, |
| 10199 | .model_id = ST_N25Q128__3E, |
| 10200 | .total_size = 16384, |
| 10201 | .page_size = 256, |
| 10202 | /* supports SFDP */ |
| 10203 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10204 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10205 | .tested = TEST_OK_PREW, |
| 10206 | .probe = probe_spi_rdid, |
| 10207 | .probe_timing = TIMING_ZERO, |
| 10208 | .block_erasers = { |
| 10209 | { |
| 10210 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10211 | .block_erase = spi_block_erase_20, |
| 10212 | }, { |
| 10213 | .eraseblocks = { {64 * 1024, 256} }, |
| 10214 | .block_erase = spi_block_erase_d8, |
| 10215 | }, { |
| 10216 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10217 | .block_erase = spi_block_erase_c7, |
| 10218 | } |
| 10219 | }, |
| 10220 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10221 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10222 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10223 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10224 | .voltage = {2700, 3600}, |
| 10225 | }, |
| 10226 | |
| 10227 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10228 | .vendor = "Micron", |
| 10229 | .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10230 | .bustype = BUS_SPI, |
| 10231 | .manufacture_id = ST_ID, |
| 10232 | .model_id = ST_N25Q256__3E, |
| 10233 | .total_size = 32768, |
| 10234 | .page_size = 256, |
| 10235 | /* supports SFDP */ |
| 10236 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10237 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10238 | .tested = TEST_UNTESTED, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10239 | .probe = probe_spi_rdid, |
| 10240 | .probe_timing = TIMING_ZERO, |
| 10241 | .block_erasers = { |
| 10242 | { |
| 10243 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10244 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10245 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10246 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10247 | .block_erase = spi_block_erase_20, |
| 10248 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10249 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10250 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10251 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10252 | .eraseblocks = { {64 * 1024, 512} }, |
| 10253 | .block_erase = spi_block_erase_d8, |
| 10254 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10255 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10256 | .block_erase = spi_block_erase_c7, |
| 10257 | } |
| 10258 | }, |
| 10259 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10260 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10261 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10262 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10263 | .voltage = {2700, 3600}, |
| 10264 | }, |
| 10265 | |
| 10266 | { |
| 10267 | .vendor = "Micron", |
| 10268 | .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10269 | .bustype = BUS_SPI, |
| 10270 | .manufacture_id = ST_ID, |
| 10271 | .model_id = ST_N25Q512__3E, |
| 10272 | .total_size = 65536, |
| 10273 | .page_size = 256, |
| 10274 | /* supports SFDP */ |
| 10275 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10276 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 10277 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10278 | .probe = probe_spi_rdid, |
| 10279 | .probe_timing = TIMING_ZERO, |
| 10280 | .block_erasers = { |
| 10281 | { |
| 10282 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10283 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10284 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10285 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10286 | .block_erase = spi_block_erase_20, |
| 10287 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10288 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 10289 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10290 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 10291 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10292 | .block_erase = spi_block_erase_d8, |
| 10293 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10294 | .eraseblocks = { {65536 * 1024, 1} }, |
| 10295 | .block_erase = spi_block_erase_c7, |
| 10296 | } |
| 10297 | }, |
| 10298 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10299 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10300 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10301 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10302 | .voltage = {2700, 3600}, |
| 10303 | }, |
| 10304 | |
| 10305 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10306 | .vendor = "MoselVitelic", |
| 10307 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10308 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10309 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10310 | .model_id = MVC_V29C51000B, |
| 10311 | .total_size = 64, |
| 10312 | .page_size = 512, |
| 10313 | .feature_bits = FEATURE_EITHER_RESET, |
| 10314 | .tested = TEST_UNTESTED, |
| 10315 | .probe = probe_jedec, |
| 10316 | .probe_timing = TIMING_ZERO, |
| 10317 | .block_erasers = |
| 10318 | { |
| 10319 | { |
| 10320 | .eraseblocks = { {512, 128} }, |
| 10321 | .block_erase = erase_sector_jedec, |
| 10322 | }, { |
| 10323 | .eraseblocks = { {64 * 1024, 1} }, |
| 10324 | .block_erase = erase_chip_block_jedec, |
| 10325 | }, |
| 10326 | }, |
| 10327 | .write = write_jedec_1, |
| 10328 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10329 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10330 | }, |
| 10331 | |
| 10332 | { |
| 10333 | .vendor = "MoselVitelic", |
| 10334 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10335 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10336 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10337 | .model_id = MVC_V29C51000T, |
| 10338 | .total_size = 64, |
| 10339 | .page_size = 512, |
| 10340 | .feature_bits = FEATURE_EITHER_RESET, |
| 10341 | .tested = TEST_UNTESTED, |
| 10342 | .probe = probe_jedec, |
| 10343 | .probe_timing = TIMING_ZERO, |
| 10344 | .block_erasers = |
| 10345 | { |
| 10346 | { |
| 10347 | .eraseblocks = { {512, 128} }, |
| 10348 | .block_erase = erase_sector_jedec, |
| 10349 | }, { |
| 10350 | .eraseblocks = { {64 * 1024, 1} }, |
| 10351 | .block_erase = erase_chip_block_jedec, |
| 10352 | }, |
| 10353 | }, |
| 10354 | .write = write_jedec_1, |
| 10355 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10356 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10357 | }, |
| 10358 | |
| 10359 | { |
| 10360 | .vendor = "MoselVitelic", |
| 10361 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10362 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10363 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10364 | .model_id = MVC_V29C51400B, |
| 10365 | .total_size = 512, |
| 10366 | .page_size = 1024, |
| 10367 | .feature_bits = FEATURE_EITHER_RESET, |
| 10368 | .tested = TEST_UNTESTED, |
| 10369 | .probe = probe_jedec, |
| 10370 | .probe_timing = TIMING_ZERO, |
| 10371 | .block_erasers = |
| 10372 | { |
| 10373 | { |
| 10374 | .eraseblocks = { {1024, 512} }, |
| 10375 | .block_erase = erase_sector_jedec, |
| 10376 | }, { |
| 10377 | .eraseblocks = { {512 * 1024, 1} }, |
| 10378 | .block_erase = erase_chip_block_jedec, |
| 10379 | }, |
| 10380 | }, |
| 10381 | .write = write_jedec_1, |
| 10382 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10383 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10384 | }, |
| 10385 | |
| 10386 | { |
| 10387 | .vendor = "MoselVitelic", |
| 10388 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10389 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10390 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10391 | .model_id = MVC_V29C51400T, |
| 10392 | .total_size = 512, |
| 10393 | .page_size = 1024, |
| 10394 | .feature_bits = FEATURE_EITHER_RESET, |
| 10395 | .tested = TEST_UNTESTED, |
| 10396 | .probe = probe_jedec, |
| 10397 | .probe_timing = TIMING_ZERO, |
| 10398 | .block_erasers = |
| 10399 | { |
| 10400 | { |
| 10401 | .eraseblocks = { {1024, 512} }, |
| 10402 | .block_erase = erase_sector_jedec, |
| 10403 | }, { |
| 10404 | .eraseblocks = { {512 * 1024, 1} }, |
| 10405 | .block_erase = erase_chip_block_jedec, |
| 10406 | }, |
| 10407 | }, |
| 10408 | .write = write_jedec_1, |
| 10409 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10410 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10411 | }, |
| 10412 | |
| 10413 | { |
| 10414 | .vendor = "MoselVitelic", |
| 10415 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10416 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10417 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10418 | .model_id = MVC_V29LC51000, |
| 10419 | .total_size = 64, |
| 10420 | .page_size = 512, |
| 10421 | .feature_bits = FEATURE_EITHER_RESET, |
| 10422 | .tested = TEST_UNTESTED, |
| 10423 | .probe = probe_jedec, |
| 10424 | .probe_timing = TIMING_ZERO, |
| 10425 | .block_erasers = |
| 10426 | { |
| 10427 | { |
| 10428 | .eraseblocks = { {512, 128} }, |
| 10429 | .block_erase = erase_sector_jedec, |
| 10430 | }, { |
| 10431 | .eraseblocks = { {64 * 1024, 1} }, |
| 10432 | .block_erase = erase_chip_block_jedec, |
| 10433 | }, |
| 10434 | }, |
| 10435 | .write = write_jedec_1, |
| 10436 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10437 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10438 | }, |
| 10439 | |
| 10440 | { |
| 10441 | .vendor = "MoselVitelic", |
| 10442 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10443 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10444 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10445 | .model_id = MVC_V29LC51001, |
| 10446 | .total_size = 128, |
| 10447 | .page_size = 512, |
| 10448 | .feature_bits = FEATURE_EITHER_RESET, |
| 10449 | .tested = TEST_UNTESTED, |
| 10450 | .probe = probe_jedec, |
| 10451 | .probe_timing = TIMING_ZERO, |
| 10452 | .block_erasers = |
| 10453 | { |
| 10454 | { |
| 10455 | .eraseblocks = { {512, 256} }, |
| 10456 | .block_erase = erase_sector_jedec, |
| 10457 | }, { |
| 10458 | .eraseblocks = { {128 * 1024, 1} }, |
| 10459 | .block_erase = erase_chip_block_jedec, |
| 10460 | }, |
| 10461 | }, |
| 10462 | .write = write_jedec_1, |
| 10463 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10464 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10465 | }, |
| 10466 | |
| 10467 | { |
| 10468 | .vendor = "MoselVitelic", |
| 10469 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10470 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10471 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10472 | .model_id = MVC_V29LC51002, |
| 10473 | .total_size = 256, |
| 10474 | .page_size = 512, |
| 10475 | .feature_bits = FEATURE_EITHER_RESET, |
| 10476 | .tested = TEST_UNTESTED, |
| 10477 | .probe = probe_jedec, |
| 10478 | .probe_timing = TIMING_ZERO, |
| 10479 | .block_erasers = |
| 10480 | { |
| 10481 | { |
| 10482 | .eraseblocks = { {512, 512} }, |
| 10483 | .block_erase = erase_sector_jedec, |
| 10484 | }, { |
| 10485 | .eraseblocks = { {256 * 1024, 1} }, |
| 10486 | .block_erase = erase_chip_block_jedec, |
| 10487 | }, |
| 10488 | }, |
| 10489 | .write = write_jedec_1, |
| 10490 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10491 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10492 | }, |
| 10493 | |
| 10494 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10495 | .vendor = "Nantronics", |
| 10496 | .name = "N25S10", |
| 10497 | .bustype = BUS_SPI, |
| 10498 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10499 | .model_id = NANTRONICS_N25S10, |
| 10500 | .total_size = 128, |
| 10501 | .page_size = 256, |
| 10502 | .feature_bits = FEATURE_WRSR_WREN, |
| 10503 | .tested = TEST_UNTESTED, |
| 10504 | .probe = probe_spi_rdid, |
| 10505 | .probe_timing = TIMING_ZERO, |
| 10506 | .block_erasers = |
| 10507 | { |
| 10508 | { |
| 10509 | .eraseblocks = { {4 * 1024, 32} }, |
| 10510 | .block_erase = spi_block_erase_20, |
| 10511 | }, { |
| 10512 | .eraseblocks = { {4 * 1024, 32} }, |
| 10513 | .block_erase = spi_block_erase_d7, |
| 10514 | }, { |
| 10515 | .eraseblocks = { {32 * 1024, 4} }, |
| 10516 | .block_erase = spi_block_erase_52, |
| 10517 | }, { |
| 10518 | .eraseblocks = { {64 * 1024, 2} }, |
| 10519 | .block_erase = spi_block_erase_d8, |
| 10520 | }, { |
| 10521 | .eraseblocks = { {128 * 1024, 1} }, |
| 10522 | .block_erase = spi_block_erase_60, |
| 10523 | }, { |
| 10524 | .eraseblocks = { {128 * 1024, 1} }, |
| 10525 | .block_erase = spi_block_erase_c7, |
| 10526 | } |
| 10527 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10528 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10529 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10530 | .write = spi_chip_write_256, |
| 10531 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10532 | .voltage = {2700, 3600}, |
| 10533 | }, |
| 10534 | |
| 10535 | { |
| 10536 | .vendor = "Nantronics", |
| 10537 | .name = "N25S20", |
| 10538 | .bustype = BUS_SPI, |
| 10539 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10540 | .model_id = NANTRONICS_N25S20, |
| 10541 | .total_size = 256, |
| 10542 | .page_size = 256, |
| 10543 | .feature_bits = FEATURE_WRSR_WREN, |
| 10544 | .tested = TEST_UNTESTED, |
| 10545 | .probe = probe_spi_rdid, |
| 10546 | .probe_timing = TIMING_ZERO, |
| 10547 | .block_erasers = |
| 10548 | { |
| 10549 | { |
| 10550 | .eraseblocks = { {4 * 1024, 64} }, |
| 10551 | .block_erase = spi_block_erase_20, |
| 10552 | }, { |
| 10553 | .eraseblocks = { {4 * 1024, 64} }, |
| 10554 | .block_erase = spi_block_erase_d7, |
| 10555 | }, { |
| 10556 | .eraseblocks = { {32 * 1024, 8} }, |
| 10557 | .block_erase = spi_block_erase_52, |
| 10558 | }, { |
| 10559 | .eraseblocks = { {64 * 1024, 4} }, |
| 10560 | .block_erase = spi_block_erase_d8, |
| 10561 | }, { |
| 10562 | .eraseblocks = { {256 * 1024, 1} }, |
| 10563 | .block_erase = spi_block_erase_60, |
| 10564 | }, { |
| 10565 | .eraseblocks = { {256 * 1024, 1} }, |
| 10566 | .block_erase = spi_block_erase_c7, |
| 10567 | } |
| 10568 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10569 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10570 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10571 | .write = spi_chip_write_256, |
| 10572 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10573 | .voltage = {2700, 3600}, |
| 10574 | }, |
| 10575 | |
| 10576 | { |
| 10577 | .vendor = "Nantronics", |
| 10578 | .name = "N25S40", |
| 10579 | .bustype = BUS_SPI, |
| 10580 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10581 | .model_id = NANTRONICS_N25S40, |
| 10582 | .total_size = 512, |
| 10583 | .page_size = 256, |
| 10584 | .feature_bits = FEATURE_WRSR_WREN, |
| 10585 | .tested = TEST_UNTESTED, |
| 10586 | .probe = probe_spi_rdid, |
| 10587 | .probe_timing = TIMING_ZERO, |
| 10588 | .block_erasers = |
| 10589 | { |
| 10590 | { |
| 10591 | .eraseblocks = { {4 * 1024, 128} }, |
| 10592 | .block_erase = spi_block_erase_20, |
| 10593 | }, { |
| 10594 | .eraseblocks = { {4 * 1024, 128} }, |
| 10595 | .block_erase = spi_block_erase_d7, |
| 10596 | }, { |
| 10597 | .eraseblocks = { {32 * 1024, 16} }, |
| 10598 | .block_erase = spi_block_erase_52, |
| 10599 | }, { |
| 10600 | .eraseblocks = { {64 * 1024, 8} }, |
| 10601 | .block_erase = spi_block_erase_d8, |
| 10602 | }, { |
| 10603 | .eraseblocks = { {512 * 1024, 1} }, |
| 10604 | .block_erase = spi_block_erase_60, |
| 10605 | }, { |
| 10606 | .eraseblocks = { {512 * 1024, 1} }, |
| 10607 | .block_erase = spi_block_erase_c7, |
| 10608 | } |
| 10609 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10610 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10611 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10612 | .write = spi_chip_write_256, |
| 10613 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10614 | .voltage = {2700, 3600}, |
| 10615 | }, |
| 10616 | |
| 10617 | { |
| 10618 | .vendor = "Nantronics", |
| 10619 | .name = "N25S80", |
| 10620 | .bustype = BUS_SPI, |
| 10621 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10622 | .model_id = NANTRONICS_N25S80, |
| 10623 | .total_size = 1024, |
| 10624 | .page_size = 256, |
| 10625 | .feature_bits = FEATURE_WRSR_WREN, |
| 10626 | .tested = TEST_UNTESTED, |
| 10627 | .probe = probe_spi_rdid, |
| 10628 | .probe_timing = TIMING_ZERO, |
| 10629 | .block_erasers = |
| 10630 | { |
| 10631 | { |
| 10632 | .eraseblocks = { {4 * 1024, 256} }, |
| 10633 | .block_erase = spi_block_erase_20, |
| 10634 | }, { |
| 10635 | .eraseblocks = { {32 * 1024, 32} }, |
| 10636 | .block_erase = spi_block_erase_52, |
| 10637 | }, { |
| 10638 | .eraseblocks = { {64 * 1024, 16} }, |
| 10639 | .block_erase = spi_block_erase_d8, |
| 10640 | }, { |
| 10641 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10642 | .block_erase = spi_block_erase_60, |
| 10643 | }, { |
| 10644 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10645 | .block_erase = spi_block_erase_c7, |
| 10646 | } |
| 10647 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10648 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10649 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10650 | .write = spi_chip_write_256, |
| 10651 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10652 | .voltage = {2700, 3600}, |
| 10653 | }, |
| 10654 | |
| 10655 | { |
| 10656 | .vendor = "Nantronics", |
| 10657 | .name = "N25S16", |
| 10658 | .bustype = BUS_SPI, |
| 10659 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 10660 | .model_id = NANTRONICS_N25S16, |
| 10661 | .total_size = 2048, |
| 10662 | .page_size = 256, |
| 10663 | .feature_bits = FEATURE_WRSR_WREN, |
| 10664 | .tested = TEST_UNTESTED, |
| 10665 | .probe = probe_spi_rdid, |
| 10666 | .probe_timing = TIMING_ZERO, |
| 10667 | .block_erasers = |
| 10668 | { |
| 10669 | { |
| 10670 | .eraseblocks = { {4 * 1024, 512} }, |
| 10671 | .block_erase = spi_block_erase_20, |
| 10672 | }, { |
| 10673 | .eraseblocks = { {64 * 1024, 32} }, |
| 10674 | .block_erase = spi_block_erase_d8, |
| 10675 | }, { |
| 10676 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10677 | .block_erase = spi_block_erase_60, |
| 10678 | }, { |
| 10679 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10680 | .block_erase = spi_block_erase_c7, |
| 10681 | } |
| 10682 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10683 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 10684 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10685 | .write = spi_chip_write_256, |
| 10686 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 10687 | .voltage = {2700, 3600}, |
| 10688 | }, |
| 10689 | |
| 10690 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10691 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10692 | .name = "Pm25LD256C", |
| 10693 | .bustype = BUS_SPI, |
| 10694 | .manufacture_id = PMC_ID, |
| 10695 | .model_id = PMC_PM25LD256C, |
| 10696 | .total_size = 32, |
| 10697 | .page_size = 256, |
| 10698 | .feature_bits = FEATURE_WRSR_WREN, |
| 10699 | .tested = TEST_UNTESTED, |
| 10700 | .probe = probe_spi_rdid, |
| 10701 | .probe_timing = TIMING_ZERO, |
| 10702 | .block_erasers = |
| 10703 | { |
| 10704 | { |
| 10705 | .eraseblocks = { {4 * 1024, 8} }, |
| 10706 | .block_erase = spi_block_erase_20, |
| 10707 | }, { |
| 10708 | .eraseblocks = { {4 * 1024, 8} }, |
| 10709 | .block_erase = spi_block_erase_d7, |
| 10710 | }, { |
| 10711 | .eraseblocks = { {32 * 1024, 1} }, |
| 10712 | .block_erase = spi_block_erase_d8, |
| 10713 | }, { |
| 10714 | .eraseblocks = { {32 * 1024, 1} }, |
| 10715 | .block_erase = spi_block_erase_60, |
| 10716 | }, { |
| 10717 | .eraseblocks = { {32 * 1024, 1} }, |
| 10718 | .block_erase = spi_block_erase_c7, |
| 10719 | } |
| 10720 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10721 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10722 | .unlock = spi_disable_blockprotect, |
| 10723 | .write = spi_chip_write_256, |
| 10724 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10725 | .voltage = {2700, 3600}, |
| 10726 | }, |
| 10727 | { |
| 10728 | .vendor = "PMC", |
| 10729 | .name = "Pm25LD512(C)", |
| 10730 | .bustype = BUS_SPI, |
| 10731 | .manufacture_id = PMC_ID, |
| 10732 | .model_id = PMC_PM25LD512, |
| 10733 | .total_size = 64, |
| 10734 | .page_size = 256, |
| 10735 | .feature_bits = FEATURE_WRSR_WREN, |
| 10736 | .tested = TEST_OK_PREW, |
| 10737 | .probe = probe_spi_rdid, |
| 10738 | .probe_timing = TIMING_ZERO, |
| 10739 | .block_erasers = |
| 10740 | { |
| 10741 | { |
| 10742 | .eraseblocks = { {4 * 1024, 16} }, |
| 10743 | .block_erase = spi_block_erase_20, |
| 10744 | }, { |
| 10745 | .eraseblocks = { {4 * 1024, 16} }, |
| 10746 | .block_erase = spi_block_erase_d7, |
| 10747 | }, { |
| 10748 | .eraseblocks = { {32 * 1024, 2} }, |
| 10749 | .block_erase = spi_block_erase_d8, |
| 10750 | }, { |
| 10751 | .eraseblocks = { {64 * 1024, 1} }, |
| 10752 | .block_erase = spi_block_erase_60, |
| 10753 | }, { |
| 10754 | .eraseblocks = { {64 * 1024, 1} }, |
| 10755 | .block_erase = spi_block_erase_c7, |
| 10756 | } |
| 10757 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10758 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10759 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10760 | .write = spi_chip_write_256, |
| 10761 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10762 | .voltage = {2300, 3600}, |
| 10763 | }, |
| 10764 | |
| 10765 | { |
| 10766 | .vendor = "PMC", |
| 10767 | .name = "Pm25LD010(C)", |
| 10768 | .bustype = BUS_SPI, |
| 10769 | .manufacture_id = PMC_ID, |
| 10770 | .model_id = PMC_PM25LD010, |
| 10771 | .total_size = 128, |
| 10772 | .page_size = 256, |
| 10773 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10774 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10775 | .probe = probe_spi_rdid, |
| 10776 | .probe_timing = TIMING_ZERO, |
| 10777 | .block_erasers = |
| 10778 | { |
| 10779 | { |
| 10780 | .eraseblocks = { {4 * 1024, 32} }, |
| 10781 | .block_erase = spi_block_erase_20, |
| 10782 | }, { |
| 10783 | .eraseblocks = { {4 * 1024, 32} }, |
| 10784 | .block_erase = spi_block_erase_d7, |
| 10785 | }, { |
| 10786 | .eraseblocks = { {32 * 1024, 4} }, |
| 10787 | .block_erase = spi_block_erase_d8, |
| 10788 | }, { |
| 10789 | .eraseblocks = { {128 * 1024, 1} }, |
| 10790 | .block_erase = spi_block_erase_60, |
| 10791 | }, { |
| 10792 | .eraseblocks = { {128 * 1024, 1} }, |
| 10793 | .block_erase = spi_block_erase_c7, |
| 10794 | } |
| 10795 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10796 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10797 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10798 | .write = spi_chip_write_256, |
| 10799 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10800 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 10801 | }, |
| 10802 | |
| 10803 | { |
| 10804 | .vendor = "PMC", |
| 10805 | .name = "Pm25LD020(C)", |
| 10806 | .bustype = BUS_SPI, |
| 10807 | .manufacture_id = PMC_ID, |
| 10808 | .model_id = PMC_PM25LD020, |
| 10809 | .total_size = 256, |
| 10810 | .page_size = 256, |
| 10811 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 10812 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10813 | .probe = probe_spi_rdid, |
| 10814 | .probe_timing = TIMING_ZERO, |
| 10815 | .block_erasers = |
| 10816 | { |
| 10817 | { |
| 10818 | .eraseblocks = { {4 * 1024, 64} }, |
| 10819 | .block_erase = spi_block_erase_20, |
| 10820 | }, { |
| 10821 | .eraseblocks = { {4 * 1024, 64} }, |
| 10822 | .block_erase = spi_block_erase_d7, |
| 10823 | }, { |
| 10824 | .eraseblocks = { {64 * 1024, 4} }, |
| 10825 | .block_erase = spi_block_erase_d8, |
| 10826 | }, { |
| 10827 | .eraseblocks = { {256 * 1024, 1} }, |
| 10828 | .block_erase = spi_block_erase_60, |
| 10829 | }, { |
| 10830 | .eraseblocks = { {256 * 1024, 1} }, |
| 10831 | .block_erase = spi_block_erase_c7, |
| 10832 | } |
| 10833 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10834 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10835 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 10836 | .write = spi_chip_write_256, |
| 10837 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10838 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 10839 | }, |
| 10840 | |
| 10841 | { |
| 10842 | .vendor = "PMC", |
| 10843 | .name = "Pm25LD040(C)", |
| 10844 | .bustype = BUS_SPI, |
| 10845 | .manufacture_id = PMC_ID, |
| 10846 | .model_id = PMC_PM25LV040, |
| 10847 | .total_size = 512, |
| 10848 | .page_size = 256, |
| 10849 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame^] | 10850 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10851 | .probe = probe_spi_rdid, |
| 10852 | .probe_timing = TIMING_ZERO, |
| 10853 | .block_erasers = |
| 10854 | { |
| 10855 | { |
| 10856 | .eraseblocks = { {4 * 1024, 128} }, |
| 10857 | .block_erase = spi_block_erase_20, |
| 10858 | }, { |
| 10859 | .eraseblocks = { {4 * 1024, 128} }, |
| 10860 | .block_erase = spi_block_erase_d7, |
| 10861 | }, { |
| 10862 | .eraseblocks = { {64 * 1024, 8} }, |
| 10863 | .block_erase = spi_block_erase_d8, |
| 10864 | }, { |
| 10865 | .eraseblocks = { {512 * 1024, 1} }, |
| 10866 | .block_erase = spi_block_erase_60, |
| 10867 | }, { |
| 10868 | .eraseblocks = { {512 * 1024, 1} }, |
| 10869 | .block_erase = spi_block_erase_c7, |
| 10870 | } |
| 10871 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10872 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10873 | .unlock = spi_disable_blockprotect, |
| 10874 | .write = spi_chip_write_256, |
| 10875 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 10876 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 10877 | }, |
| 10878 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 10879 | { |
| 10880 | .vendor = "PMC", |
| 10881 | .name = "Pm25LQ020", |
| 10882 | .bustype = BUS_SPI, |
| 10883 | .manufacture_id = PMC_ID, |
| 10884 | .model_id = PMC_PM25LQ020, |
| 10885 | .total_size = 256, |
| 10886 | .page_size = 256, |
| 10887 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10888 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10889 | .tested = TEST_UNTESTED, |
| 10890 | .probe = probe_spi_rdid, |
| 10891 | .probe_timing = TIMING_ZERO, |
| 10892 | .block_erasers = |
| 10893 | { |
| 10894 | { |
| 10895 | .eraseblocks = { {4 * 1024, 64} }, |
| 10896 | .block_erase = spi_block_erase_20, |
| 10897 | }, { |
| 10898 | .eraseblocks = { {4 * 1024, 64} }, |
| 10899 | .block_erase = spi_block_erase_d7, |
| 10900 | }, { |
| 10901 | .eraseblocks = { {64 * 1024, 4} }, |
| 10902 | .block_erase = spi_block_erase_d8, |
| 10903 | }, { |
| 10904 | .eraseblocks = { {256 * 1024, 1} }, |
| 10905 | .block_erase = spi_block_erase_60, |
| 10906 | }, { |
| 10907 | .eraseblocks = { {256 * 1024, 1} }, |
| 10908 | .block_erase = spi_block_erase_c7, |
| 10909 | } |
| 10910 | }, |
| 10911 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10912 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10913 | .write = spi_chip_write_256, |
| 10914 | .read = spi_chip_read, |
| 10915 | .voltage = {2300, 3600}, |
| 10916 | }, |
| 10917 | |
| 10918 | { |
| 10919 | .vendor = "PMC", |
| 10920 | .name = "Pm25LQ040", |
| 10921 | .bustype = BUS_SPI, |
| 10922 | .manufacture_id = PMC_ID, |
| 10923 | .model_id = PMC_PM25LQ040, |
| 10924 | .total_size = 512, |
| 10925 | .page_size = 256, |
| 10926 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10927 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10928 | .tested = TEST_UNTESTED, |
| 10929 | .probe = probe_spi_rdid, |
| 10930 | .probe_timing = TIMING_ZERO, |
| 10931 | .block_erasers = |
| 10932 | { |
| 10933 | { |
| 10934 | .eraseblocks = { {4 * 1024, 128} }, |
| 10935 | .block_erase = spi_block_erase_20, |
| 10936 | }, { |
| 10937 | .eraseblocks = { {4 * 1024, 128} }, |
| 10938 | .block_erase = spi_block_erase_d7, |
| 10939 | }, { |
| 10940 | .eraseblocks = { {64 * 1024, 8} }, |
| 10941 | .block_erase = spi_block_erase_d8, |
| 10942 | }, { |
| 10943 | .eraseblocks = { {512 * 1024, 1} }, |
| 10944 | .block_erase = spi_block_erase_60, |
| 10945 | }, { |
| 10946 | .eraseblocks = { {512 * 1024, 1} }, |
| 10947 | .block_erase = spi_block_erase_c7, |
| 10948 | } |
| 10949 | }, |
| 10950 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10951 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10952 | .write = spi_chip_write_256, |
| 10953 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10954 | .voltage = {2300, 3600}, |
| 10955 | }, |
| 10956 | |
| 10957 | { |
| 10958 | .vendor = "PMC", |
| 10959 | .name = "Pm25LQ080", |
| 10960 | .bustype = BUS_SPI, |
| 10961 | .manufacture_id = PMC_ID, |
| 10962 | .model_id = PMC_PM25LQ080, |
| 10963 | .total_size = 1024, |
| 10964 | .page_size = 256, |
| 10965 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 10966 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10967 | .tested = TEST_UNTESTED, |
| 10968 | .probe = probe_spi_rdid, |
| 10969 | .probe_timing = TIMING_ZERO, |
| 10970 | .block_erasers = |
| 10971 | { |
| 10972 | { |
| 10973 | .eraseblocks = { {4 * 1024, 256} }, |
| 10974 | .block_erase = spi_block_erase_20, |
| 10975 | }, { |
| 10976 | .eraseblocks = { {4 * 1024, 256} }, |
| 10977 | .block_erase = spi_block_erase_d7, |
| 10978 | }, { |
| 10979 | .eraseblocks = { {64 * 1024, 16} }, |
| 10980 | .block_erase = spi_block_erase_d8, |
| 10981 | }, { |
| 10982 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10983 | .block_erase = spi_block_erase_60, |
| 10984 | }, { |
| 10985 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10986 | .block_erase = spi_block_erase_c7, |
| 10987 | } |
| 10988 | }, |
| 10989 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10990 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10991 | .write = spi_chip_write_256, |
| 10992 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10993 | .voltage = {2300, 3600}, |
| 10994 | }, |
| 10995 | |
| 10996 | { |
| 10997 | .vendor = "PMC", |
| 10998 | .name = "Pm25LQ016", |
| 10999 | .bustype = BUS_SPI, |
| 11000 | .manufacture_id = PMC_ID, |
| 11001 | .model_id = PMC_PM25LQ016, |
| 11002 | .total_size = 2048, |
| 11003 | .page_size = 256, |
| 11004 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11005 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11006 | .tested = TEST_UNTESTED, |
| 11007 | .probe = probe_spi_rdid, |
| 11008 | .probe_timing = TIMING_ZERO, |
| 11009 | .block_erasers = |
| 11010 | { |
| 11011 | { |
| 11012 | .eraseblocks = { {4 * 1024, 512} }, |
| 11013 | .block_erase = spi_block_erase_20, |
| 11014 | }, { |
| 11015 | .eraseblocks = { {4 * 1024, 512} }, |
| 11016 | .block_erase = spi_block_erase_d7, |
| 11017 | }, { |
| 11018 | .eraseblocks = { {64 * 1024, 32} }, |
| 11019 | .block_erase = spi_block_erase_d8, |
| 11020 | }, { |
| 11021 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11022 | .block_erase = spi_block_erase_60, |
| 11023 | }, { |
| 11024 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11025 | .block_erase = spi_block_erase_c7, |
| 11026 | } |
| 11027 | }, |
| 11028 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11029 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11030 | .write = spi_chip_write_256, |
| 11031 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11032 | .voltage = {2300, 3600}, |
| 11033 | }, |
| 11034 | |
| 11035 | { |
| 11036 | .vendor = "PMC", |
| 11037 | .name = "Pm25LQ032C", |
| 11038 | .bustype = BUS_SPI, |
| 11039 | .manufacture_id = PMC_ID, |
| 11040 | .model_id = PMC_PM25LQ032C, |
| 11041 | .total_size = 4096, |
| 11042 | .page_size = 256, |
| 11043 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 11044 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11045 | .tested = TEST_OK_PREW, |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11046 | .probe = probe_spi_rdid, |
| 11047 | .probe_timing = TIMING_ZERO, |
| 11048 | .block_erasers = |
| 11049 | { |
| 11050 | { |
| 11051 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11052 | .block_erase = spi_block_erase_20, |
| 11053 | }, { |
| 11054 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11055 | .block_erase = spi_block_erase_d7, |
| 11056 | }, { |
| 11057 | .eraseblocks = { {64 * 1024, 64} }, |
| 11058 | .block_erase = spi_block_erase_d8, |
| 11059 | }, { |
| 11060 | .eraseblocks = { {4096 * 1024, 1} }, |
| 11061 | .block_erase = spi_block_erase_60, |
| 11062 | }, { |
| 11063 | .eraseblocks = { {4096 * 1024, 1} }, |
| 11064 | .block_erase = spi_block_erase_c7, |
| 11065 | } |
| 11066 | }, |
| 11067 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11068 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11069 | .write = spi_chip_write_256, |
| 11070 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11071 | .voltage = {2700, 3600}, |
| 11072 | }, |
| 11073 | |
| 11074 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11075 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11076 | .name = "Pm25LV512(A)", |
| 11077 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 11078 | .manufacture_id = PMC_ID_NOPREFIX, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11079 | .model_id = PMC_PM25LV512, |
| 11080 | .total_size = 64, |
| 11081 | .page_size = 256, |
| 11082 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 11083 | .tested = TEST_OK_PREW, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 11084 | .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] | 11085 | .probe_timing = TIMING_ZERO, |
| 11086 | .block_erasers = |
| 11087 | { |
| 11088 | { |
| 11089 | .eraseblocks = { {4 * 1024, 16} }, |
| 11090 | .block_erase = spi_block_erase_d7, |
| 11091 | }, { |
| 11092 | .eraseblocks = { {32 * 1024, 2} }, |
| 11093 | .block_erase = spi_block_erase_d8, |
| 11094 | }, { |
| 11095 | .eraseblocks = { {64 * 1024, 1} }, |
| 11096 | .block_erase = spi_block_erase_c7, |
| 11097 | } |
| 11098 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11099 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11100 | .unlock = spi_disable_blockprotect, |
| 11101 | .write = spi_chip_write_256, |
| 11102 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11103 | .voltage = {2700, 3600}, |
| 11104 | }, |
| 11105 | |
| 11106 | { |
| 11107 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11108 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11109 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 11110 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11111 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11112 | .total_size = 128, |
| 11113 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11114 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 11115 | .tested = TEST_OK_PREW, |
| 11116 | .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] | 11117 | .probe_timing = TIMING_ZERO, |
| 11118 | .block_erasers = |
| 11119 | { |
| 11120 | { |
| 11121 | .eraseblocks = { {4 * 1024, 32} }, |
| 11122 | .block_erase = spi_block_erase_d7, |
| 11123 | }, { |
| 11124 | .eraseblocks = { {32 * 1024, 4} }, |
| 11125 | .block_erase = spi_block_erase_d8, |
| 11126 | }, { |
| 11127 | .eraseblocks = { {128 * 1024, 1} }, |
| 11128 | .block_erase = spi_block_erase_c7, |
| 11129 | } |
| 11130 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11131 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11132 | .unlock = spi_disable_blockprotect, |
| 11133 | .write = spi_chip_write_256, |
| 11134 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11135 | .voltage = {2700, 3600}, |
| 11136 | }, |
| 11137 | |
| 11138 | { |
| 11139 | .vendor = "PMC", |
| 11140 | .name = "Pm25LV010A", |
| 11141 | .bustype = BUS_SPI, |
| 11142 | .manufacture_id = PMC_ID, |
| 11143 | .model_id = PMC_PM25LV010, |
| 11144 | .total_size = 128, |
| 11145 | .page_size = 256, |
| 11146 | .feature_bits = FEATURE_WRSR_WREN, |
| 11147 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11148 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11149 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11150 | .block_erasers = |
| 11151 | { |
| 11152 | { |
| 11153 | .eraseblocks = { {4 * 1024, 32} }, |
| 11154 | .block_erase = spi_block_erase_d7, |
| 11155 | }, { |
| 11156 | .eraseblocks = { {32 * 1024, 4} }, |
| 11157 | .block_erase = spi_block_erase_d8, |
| 11158 | }, { |
| 11159 | .eraseblocks = { {128 * 1024, 1} }, |
| 11160 | .block_erase = spi_block_erase_c7, |
| 11161 | } |
| 11162 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11163 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11164 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11165 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11166 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11167 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11168 | }, |
| 11169 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11170 | { |
| 11171 | .vendor = "PMC", |
| 11172 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11173 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11174 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11175 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11176 | .total_size = 256, |
| 11177 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11178 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11179 | .tested = TEST_UNTESTED, |
| 11180 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11181 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11182 | .block_erasers = |
| 11183 | { |
| 11184 | { |
| 11185 | .eraseblocks = { {4 * 1024, 64} }, |
| 11186 | .block_erase = spi_block_erase_d7, |
| 11187 | }, { |
| 11188 | .eraseblocks = { {64 * 1024, 4} }, |
| 11189 | .block_erase = spi_block_erase_d8, |
| 11190 | }, { |
| 11191 | .eraseblocks = { {256 * 1024, 1} }, |
| 11192 | .block_erase = spi_block_erase_c7, |
| 11193 | } |
| 11194 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11195 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11196 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11197 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11198 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11199 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11200 | }, |
| 11201 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11202 | { |
| 11203 | .vendor = "PMC", |
| 11204 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11205 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11206 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11207 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11208 | .total_size = 512, |
| 11209 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11210 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11211 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11212 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11213 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11214 | .block_erasers = |
| 11215 | { |
| 11216 | { |
| 11217 | .eraseblocks = { {4 * 1024, 128} }, |
| 11218 | .block_erase = spi_block_erase_d7, |
| 11219 | }, { |
| 11220 | .eraseblocks = { {64 * 1024, 8} }, |
| 11221 | .block_erase = spi_block_erase_d8, |
| 11222 | }, { |
| 11223 | .eraseblocks = { {512 * 1024, 1} }, |
| 11224 | .block_erase = spi_block_erase_c7, |
| 11225 | } |
| 11226 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11227 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11228 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11229 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11230 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11231 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11232 | }, |
| 11233 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11234 | { |
| 11235 | .vendor = "PMC", |
| 11236 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11237 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11238 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11239 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11240 | .total_size = 1024, |
| 11241 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11242 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11243 | .tested = TEST_UNTESTED, |
| 11244 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11245 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11246 | .block_erasers = |
| 11247 | { |
| 11248 | { |
| 11249 | .eraseblocks = { {4 * 1024, 256} }, |
| 11250 | .block_erase = spi_block_erase_d7, |
| 11251 | }, { |
| 11252 | .eraseblocks = { {4 * 1024, 256} }, |
| 11253 | .block_erase = spi_block_erase_20, |
| 11254 | }, { |
| 11255 | .eraseblocks = { {64 * 1024, 16} }, |
| 11256 | .block_erase = spi_block_erase_d8, |
| 11257 | }, { |
| 11258 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11259 | .block_erase = spi_block_erase_60, |
| 11260 | }, { |
| 11261 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11262 | .block_erase = spi_block_erase_c7, |
| 11263 | } |
| 11264 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11265 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11266 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11267 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11268 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11269 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11270 | }, |
| 11271 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11272 | { |
| 11273 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11274 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11275 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11276 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11277 | .model_id = PMC_PM25LV016B, |
| 11278 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11279 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11280 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11281 | .tested = TEST_UNTESTED, |
| 11282 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11283 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11284 | .block_erasers = |
| 11285 | { |
| 11286 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11287 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11288 | .block_erase = spi_block_erase_d7, |
| 11289 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11290 | .eraseblocks = { {4 * 1024, 512} }, |
| 11291 | .block_erase = spi_block_erase_20, |
| 11292 | }, { |
| 11293 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11294 | .block_erase = spi_block_erase_d8, |
| 11295 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11296 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11297 | .block_erase = spi_block_erase_60, |
| 11298 | }, { |
| 11299 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11300 | .block_erase = spi_block_erase_c7, |
| 11301 | } |
| 11302 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11303 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11304 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11305 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 11306 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11307 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11308 | }, |
| 11309 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11310 | { |
| 11311 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11312 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11313 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11314 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11315 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11316 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11317 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11318 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11319 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11320 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11321 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11322 | .block_erasers = |
| 11323 | { |
| 11324 | { |
| 11325 | .eraseblocks = { |
| 11326 | {128 * 1024, 1}, |
| 11327 | {96 * 1024, 1}, |
| 11328 | {8 * 1024, 2}, |
| 11329 | {16 * 1024, 1}, |
| 11330 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11331 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11332 | }, { |
| 11333 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11334 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11335 | }, |
| 11336 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11337 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11338 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11339 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11340 | }, |
| 11341 | |
| 11342 | { |
| 11343 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11344 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11345 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11346 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11347 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11348 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11349 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11350 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11351 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11352 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11353 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11354 | .block_erasers = |
| 11355 | { |
| 11356 | { |
| 11357 | .eraseblocks = { |
| 11358 | {16 * 1024, 1}, |
| 11359 | {8 * 1024, 2}, |
| 11360 | {96 * 1024, 1}, |
| 11361 | {128 * 1024, 1}, |
| 11362 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11363 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11364 | }, { |
| 11365 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11366 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11367 | }, |
| 11368 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11369 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11370 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11371 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 11372 | }, |
| 11373 | |
| 11374 | { |
| 11375 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11376 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11377 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11378 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11379 | .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] | 11380 | .total_size = 128, |
| 11381 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11382 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11383 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11384 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11385 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11386 | .block_erasers = |
| 11387 | { |
| 11388 | { |
| 11389 | .eraseblocks = { {4 * 1024, 32} }, |
| 11390 | .block_erase = erase_sector_jedec, |
| 11391 | }, { |
| 11392 | .eraseblocks = { {64 * 1024, 2} }, |
| 11393 | .block_erase = erase_block_jedec, |
| 11394 | }, { |
| 11395 | .eraseblocks = { {128 * 1024, 1} }, |
| 11396 | .block_erase = erase_chip_block_jedec, |
| 11397 | } |
| 11398 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11399 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11400 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11401 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 11402 | }, |
| 11403 | |
| 11404 | { |
| 11405 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11406 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11407 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11408 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11409 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11410 | .total_size = 256, |
| 11411 | .page_size = 4096, |
| 11412 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11413 | .tested = TEST_UNTESTED, |
| 11414 | .probe = probe_jedec, |
| 11415 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11416 | .block_erasers = |
| 11417 | { |
| 11418 | { |
| 11419 | .eraseblocks = { {4 * 1024, 64} }, |
| 11420 | .block_erase = erase_sector_jedec, |
| 11421 | }, { |
| 11422 | .eraseblocks = { {64 * 1024, 4} }, |
| 11423 | .block_erase = erase_block_jedec, |
| 11424 | }, { |
| 11425 | .eraseblocks = { {256 * 1024, 1} }, |
| 11426 | .block_erase = erase_chip_block_jedec, |
| 11427 | } |
| 11428 | }, |
| 11429 | .write = write_jedec_1, |
| 11430 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11431 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11432 | }, |
| 11433 | |
| 11434 | { |
| 11435 | .vendor = "PMC", |
| 11436 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11437 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11438 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11439 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11440 | .total_size = 512, |
| 11441 | .page_size = 4096, |
| 11442 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11443 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11444 | .probe = probe_jedec, |
| 11445 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11446 | .block_erasers = |
| 11447 | { |
| 11448 | { |
| 11449 | .eraseblocks = { {4 * 1024, 128} }, |
| 11450 | .block_erase = erase_sector_jedec, |
| 11451 | }, { |
| 11452 | .eraseblocks = { {64 * 1024, 8} }, |
| 11453 | .block_erase = erase_block_jedec, |
| 11454 | }, { |
| 11455 | .eraseblocks = { {512 * 1024, 1} }, |
| 11456 | .block_erase = erase_chip_block_jedec, |
| 11457 | } |
| 11458 | }, |
| 11459 | .write = write_jedec_1, |
| 11460 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11461 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11462 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 11463 | |
| 11464 | { |
| 11465 | .vendor = "PMC", |
| 11466 | .name = "Pm39LV512", |
| 11467 | .bustype = BUS_PARALLEL, |
| 11468 | .manufacture_id = PMC_ID_NOPREFIX, |
| 11469 | .model_id = PMC_PM39LV512, |
| 11470 | .total_size = 64, |
| 11471 | .page_size = 4096, |
| 11472 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11473 | .tested = TEST_OK_PREW, |
| 11474 | .probe = probe_jedec, |
| 11475 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11476 | .block_erasers = |
| 11477 | { |
| 11478 | { |
| 11479 | .eraseblocks = { {4 * 1024, 16} }, |
| 11480 | .block_erase = erase_sector_jedec, |
| 11481 | }, { |
| 11482 | .eraseblocks = { {64 * 1024, 1} }, |
| 11483 | .block_erase = erase_block_jedec, |
| 11484 | }, { |
| 11485 | .eraseblocks = { {64 * 1024, 1} }, |
| 11486 | .block_erase = erase_chip_block_jedec, |
| 11487 | } |
| 11488 | }, |
| 11489 | .write = write_jedec_1, |
| 11490 | .read = read_memmapped, |
| 11491 | .voltage = {2700, 3600}, |
| 11492 | }, |
| 11493 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 11494 | { |
| 11495 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11496 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11497 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11498 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11499 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11500 | .total_size = 256, |
| 11501 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11502 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11503 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11504 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11505 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11506 | .block_erasers = |
| 11507 | { |
| 11508 | { |
| 11509 | .eraseblocks = { {4 * 1024, 64} }, |
| 11510 | .block_erase = erase_sector_jedec, |
| 11511 | }, { |
| 11512 | .eraseblocks = { {16 * 1024, 16} }, |
| 11513 | .block_erase = erase_block_jedec, |
| 11514 | }, { |
| 11515 | .eraseblocks = { {256 * 1024, 1} }, |
| 11516 | .block_erase = erase_chip_block_jedec, |
| 11517 | } |
| 11518 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11519 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 11520 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11521 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11522 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11523 | }, |
| 11524 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11525 | { |
| 11526 | .vendor = "PMC", |
| 11527 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11528 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11529 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11530 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11531 | .total_size = 512, |
| 11532 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11533 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 11534 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11535 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 11536 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11537 | .block_erasers = |
| 11538 | { |
| 11539 | { |
| 11540 | .eraseblocks = { {4 * 1024, 128} }, |
| 11541 | .block_erase = erase_sector_jedec, |
| 11542 | }, { |
| 11543 | .eraseblocks = { {64 * 1024, 8} }, |
| 11544 | .block_erase = erase_block_jedec, |
| 11545 | }, { |
| 11546 | .eraseblocks = { {512 * 1024, 1} }, |
| 11547 | .block_erase = erase_chip_block_jedec, |
| 11548 | } |
| 11549 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11550 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 11551 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11552 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11553 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11554 | }, |
| 11555 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11556 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11557 | .vendor = "Sanyo", |
Stefan Tauner | a60d408 | 2014-06-04 16:17:03 +0000 | [diff] [blame] | 11558 | .name = "LE25FW106", |
| 11559 | .bustype = BUS_SPI, |
| 11560 | .manufacture_id = SANYO_ID, |
| 11561 | .model_id = SANYO_LE25FW106, |
| 11562 | .total_size = 128, |
| 11563 | .page_size = 256, |
| 11564 | .feature_bits = FEATURE_WRSR_WREN, |
| 11565 | .tested = TEST_OK_PREW, |
| 11566 | .probe = probe_spi_res2, |
| 11567 | .probe_timing = TIMING_ZERO, |
| 11568 | .block_erasers = { |
| 11569 | { |
| 11570 | .eraseblocks = { {2 * 1024, 64} }, |
| 11571 | .block_erase = spi_block_erase_d7, |
| 11572 | }, { |
| 11573 | .eraseblocks = { {32 * 1024, 4} }, |
| 11574 | .block_erase = spi_block_erase_d8, |
| 11575 | }, { |
| 11576 | .eraseblocks = { {128 * 1024, 1} }, |
| 11577 | .block_erase = spi_block_erase_c7, |
| 11578 | } |
| 11579 | }, |
| 11580 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 11581 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 11582 | .write = spi_chip_write_256, |
| 11583 | .read = spi_chip_read, |
| 11584 | .voltage = {2700, 3600}, |
| 11585 | }, |
| 11586 | |
| 11587 | { |
| 11588 | .vendor = "Sanyo", |
Stefan Tauner | 33491b8 | 2014-05-18 21:36:04 +0000 | [diff] [blame] | 11589 | .name = "LE25FW406A", |
| 11590 | .bustype = BUS_SPI, |
| 11591 | .manufacture_id = SANYO_ID, |
| 11592 | .model_id = SANYO_LE25FW406A, |
| 11593 | .total_size = 512, |
| 11594 | .page_size = 256, |
| 11595 | .feature_bits = FEATURE_WRSR_WREN, |
| 11596 | .tested = TEST_OK_PREW, |
| 11597 | .probe = probe_spi_res2, |
| 11598 | .probe_timing = TIMING_ZERO, |
| 11599 | .block_erasers = { |
| 11600 | { |
| 11601 | .eraseblocks = { {4 * 1024, 128} }, |
| 11602 | .block_erase = spi_block_erase_d7, |
| 11603 | }, { |
| 11604 | .eraseblocks = { {64 * 1024, 8} }, |
| 11605 | .block_erase = spi_block_erase_d8, |
| 11606 | }, { |
| 11607 | .eraseblocks = { {512 * 1024, 1} }, |
| 11608 | .block_erase = spi_block_erase_c7, |
| 11609 | } |
| 11610 | }, |
| 11611 | .printlock = spi_prettyprint_status_register_plain, |
| 11612 | .unlock = spi_disable_blockprotect, |
| 11613 | .write = spi_chip_write_256, |
| 11614 | .read = spi_chip_read, |
| 11615 | .voltage = {2700, 3600}, |
| 11616 | }, |
| 11617 | |
| 11618 | { |
| 11619 | .vendor = "Sanyo", |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11620 | .name = "LE25FU406B", |
| 11621 | .bustype = BUS_SPI, |
| 11622 | .manufacture_id = SANYO_ID, |
| 11623 | .model_id = SANYO_LE25FU406B, |
| 11624 | .total_size = 512, |
| 11625 | .page_size = 256, |
| 11626 | .feature_bits = FEATURE_WRSR_WREN, |
| 11627 | .tested = TEST_OK_PREW, |
| 11628 | .probe = probe_spi_res2, |
| 11629 | .probe_timing = TIMING_ZERO, |
| 11630 | .block_erasers = { |
| 11631 | { |
| 11632 | .eraseblocks = { {4 * 1024, 128} }, |
| 11633 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11634 | }, { |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11635 | .eraseblocks = { {64 * 1024, 8} }, |
| 11636 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11637 | }, { |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11638 | .eraseblocks = { {512 * 1024, 1} }, |
| 11639 | .block_erase = spi_block_erase_c7, |
| 11640 | } |
| 11641 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11642 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 11643 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11644 | .write = spi_chip_write_256, |
| 11645 | .read = spi_chip_read, |
| 11646 | .voltage = {2300, 3600}, |
| 11647 | }, |
| 11648 | |
| 11649 | { |
| 11650 | .vendor = "Sanyo", |
Stefan Tauner | 2f055df | 2015-12-25 22:13:15 +0000 | [diff] [blame] | 11651 | .name = "LE25FU406C/LE25U40CMC", |
| 11652 | .bustype = BUS_SPI, |
| 11653 | .manufacture_id = SANYO_ID, |
| 11654 | .model_id = SANYO_LE25FU406C, |
| 11655 | .total_size = 512, |
| 11656 | .page_size = 256, |
| 11657 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | ce2c09d | 2018-09-30 20:22:02 +0200 | [diff] [blame] | 11658 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2f055df | 2015-12-25 22:13:15 +0000 | [diff] [blame] | 11659 | .probe = probe_spi_rdid, |
| 11660 | .probe_timing = TIMING_ZERO, |
| 11661 | .block_erasers = { |
| 11662 | { |
| 11663 | .eraseblocks = { {4 * 1024, 128} }, |
| 11664 | .block_erase = spi_block_erase_20, |
| 11665 | }, { |
| 11666 | .eraseblocks = { {4 * 1024, 128} }, |
| 11667 | .block_erase = spi_block_erase_d7, |
| 11668 | }, { |
| 11669 | .eraseblocks = { {64 * 1024, 8} }, |
| 11670 | .block_erase = spi_block_erase_d8, |
| 11671 | }, { |
| 11672 | .eraseblocks = { {512 * 1024, 1} }, |
| 11673 | .block_erase = spi_block_erase_60, |
| 11674 | }, { |
| 11675 | .eraseblocks = { {512 * 1024, 1} }, |
| 11676 | .block_erase = spi_block_erase_c7, |
| 11677 | } |
| 11678 | }, |
| 11679 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11680 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11681 | .write = spi_chip_write_256, |
| 11682 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 11683 | .voltage = {2300, 3600}, |
| 11684 | }, |
| 11685 | |
| 11686 | { |
| 11687 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11688 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11689 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11690 | .manufacture_id = SANYO_ID, |
| 11691 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11692 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11693 | .page_size = 256, |
| 11694 | .tested = TEST_UNTESTED, |
| 11695 | .probe = probe_spi_rdid, |
| 11696 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11697 | .block_erasers = |
| 11698 | { |
| 11699 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11700 | .eraseblocks = { {256, 1024} }, |
| 11701 | .block_erase = spi_block_erase_db, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11702 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11703 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11704 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11705 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11706 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11707 | .block_erase = spi_block_erase_c7, |
| 11708 | } |
| 11709 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11710 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11711 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11712 | .write = spi_chip_write_256, |
| 11713 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11714 | .voltage = {2700, 3600}, |
| 11715 | }, |
| 11716 | |
| 11717 | { |
| 11718 | .vendor = "Sanyo", |
| 11719 | .name = "LE25FW403A", |
| 11720 | .bustype = BUS_SPI, |
| 11721 | .manufacture_id = SANYO_ID, |
| 11722 | .model_id = SANYO_LE25FW403A, |
| 11723 | .total_size = 512, |
| 11724 | .page_size = 256, |
| 11725 | .tested = TEST_UNTESTED, |
| 11726 | .probe = probe_spi_rdid, |
| 11727 | .probe_timing = TIMING_ZERO, |
| 11728 | .block_erasers = { |
| 11729 | { |
| 11730 | .eraseblocks = { {256, 2 * 1024} }, |
| 11731 | .block_erase = spi_block_erase_db, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11732 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11733 | .eraseblocks = { {64 * 1024, 8} }, |
| 11734 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11735 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11736 | .eraseblocks = { {512 * 1024, 1} }, |
| 11737 | .block_erase = spi_block_erase_c7, |
| 11738 | } |
| 11739 | }, |
| 11740 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11741 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11742 | .write = spi_chip_write_256, |
| 11743 | .read = spi_chip_read, |
| 11744 | .voltage = {2700, 3600}, |
| 11745 | }, |
| 11746 | |
| 11747 | { |
| 11748 | .vendor = "Sanyo", |
| 11749 | .name = "LE25FW418A", |
| 11750 | .bustype = BUS_SPI, |
| 11751 | .manufacture_id = SANYO_ID, |
| 11752 | .model_id = SANYO_LE25FW418A, |
| 11753 | .total_size = 512, |
| 11754 | .page_size = 256, |
| 11755 | .feature_bits = FEATURE_WRSR_WREN, |
| 11756 | .tested = TEST_UNTESTED, |
| 11757 | .probe = probe_spi_res2, |
| 11758 | .probe_timing = TIMING_ZERO, |
| 11759 | .block_erasers = { |
| 11760 | { |
| 11761 | .eraseblocks = { {4 * 1024, 128} }, |
| 11762 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11763 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11764 | .eraseblocks = { {64 * 1024, 8} }, |
| 11765 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11766 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11767 | .eraseblocks = { {512 * 1024, 1} }, |
| 11768 | .block_erase = spi_block_erase_c7, |
| 11769 | } |
| 11770 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11771 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11772 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11773 | .write = spi_chip_write_256, |
| 11774 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 11775 | .voltage = {2700, 3600}, |
| 11776 | }, |
| 11777 | |
| 11778 | { |
| 11779 | .vendor = "Sanyo", |
| 11780 | .name = "LE25FW806", |
| 11781 | .bustype = BUS_SPI, |
| 11782 | .manufacture_id = SANYO_ID, |
| 11783 | .model_id = SANYO_LE25FW806, |
| 11784 | .total_size = 1024, |
| 11785 | .page_size = 256, |
| 11786 | .feature_bits = FEATURE_WRSR_WREN, |
| 11787 | .tested = TEST_UNTESTED, |
| 11788 | .probe = probe_spi_res2, |
| 11789 | .probe_timing = TIMING_ZERO, |
| 11790 | .block_erasers = { |
| 11791 | { |
| 11792 | .eraseblocks = { {4 * 1024, 256} }, |
| 11793 | .block_erase = spi_block_erase_20, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11794 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11795 | .eraseblocks = { {4 * 1024, 256} }, |
| 11796 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11797 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11798 | .eraseblocks = { {64 * 1024, 16} }, |
| 11799 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11800 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11801 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11802 | .block_erase = spi_block_erase_c7, |
| 11803 | } |
| 11804 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11805 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11806 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11807 | .write = spi_chip_write_256, |
| 11808 | .read = spi_chip_read, |
| 11809 | .voltage = {2700, 3600}, |
| 11810 | }, |
| 11811 | |
| 11812 | { |
| 11813 | .vendor = "Sanyo", |
| 11814 | .name = "LE25FW808", |
| 11815 | .bustype = BUS_SPI, |
| 11816 | .manufacture_id = SANYO_ID, |
| 11817 | .model_id = SANYO_LE25FW808, |
| 11818 | .total_size = 1024, |
| 11819 | .page_size = 256, |
| 11820 | .feature_bits = FEATURE_WRSR_WREN, |
| 11821 | .tested = TEST_UNTESTED, |
| 11822 | .probe = probe_spi_res2, |
| 11823 | .probe_timing = TIMING_ZERO, |
| 11824 | .block_erasers = { |
| 11825 | { |
| 11826 | .eraseblocks = { {8 * 1024, 128} }, |
| 11827 | .block_erase = spi_block_erase_d7, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11828 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11829 | .eraseblocks = { {64 * 1024, 16} }, |
| 11830 | .block_erase = spi_block_erase_d8, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11831 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11832 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11833 | .block_erase = spi_block_erase_c7, |
| 11834 | } |
| 11835 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11836 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 11837 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 11838 | .write = spi_chip_write_256, |
| 11839 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 11840 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 11841 | }, |
| 11842 | |
| 11843 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11844 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 11845 | .name = "LH28F008BJT-BTLZ1", |
| 11846 | .bustype = BUS_PARALLEL, |
| 11847 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 11848 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 11849 | .total_size = 1024, |
| 11850 | .page_size = 64 * 1024, |
| 11851 | .tested = TEST_OK_PREW, |
| 11852 | .probe = probe_82802ab, |
| 11853 | .probe_timing = TIMING_ZERO, |
| 11854 | .block_erasers = |
| 11855 | { |
| 11856 | { |
| 11857 | .eraseblocks = { |
| 11858 | {8 * 1024, 8}, |
| 11859 | {64 * 1024, 15} |
| 11860 | }, |
| 11861 | .block_erase = erase_block_82802ab, |
| 11862 | }, { |
| 11863 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11864 | .block_erase = erase_sector_49lfxxxc, |
| 11865 | } |
| 11866 | }, |
| 11867 | .unlock = unlock_lh28f008bjt, |
| 11868 | .write = write_82802ab, |
| 11869 | .read = read_memmapped, |
| 11870 | .voltage = {2700, 3600}, |
| 11871 | }, |
| 11872 | |
| 11873 | { |
| 11874 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11875 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11876 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11877 | .manufacture_id = SHARP_ID, |
| 11878 | .model_id = SHARP_LHF00L04, |
| 11879 | .total_size = 1024, |
| 11880 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11881 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11882 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11883 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11884 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11885 | .block_erasers = |
| 11886 | { |
| 11887 | { |
| 11888 | .eraseblocks = { |
| 11889 | {64 * 1024, 15}, |
| 11890 | {8 * 1024, 8} |
| 11891 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11892 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11893 | }, { |
| 11894 | .eraseblocks = { |
| 11895 | {1024 * 1024, 1} |
| 11896 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11897 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 11898 | }, |
| 11899 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 11900 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11901 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11902 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11903 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11904 | }, |
| 11905 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11906 | { |
| 11907 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11908 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11909 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11910 | .manufacture_id = SPANSION_ID, |
| 11911 | .model_id = SPANSION_S25FL004A, |
| 11912 | .total_size = 512, |
| 11913 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11914 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11915 | .tested = TEST_UNTESTED, |
| 11916 | .probe = probe_spi_rdid, |
| 11917 | .probe_timing = TIMING_ZERO, |
| 11918 | .block_erasers = |
| 11919 | { |
| 11920 | { |
| 11921 | .eraseblocks = { {64 * 1024, 8} }, |
| 11922 | .block_erase = spi_block_erase_d8, |
| 11923 | }, { |
| 11924 | .eraseblocks = { {512 * 1024, 1} }, |
| 11925 | .block_erase = spi_block_erase_c7, |
| 11926 | } |
| 11927 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11928 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11929 | .unlock = spi_disable_blockprotect, |
| 11930 | .write = spi_chip_write_256, |
| 11931 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11932 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11933 | }, |
| 11934 | |
| 11935 | { |
| 11936 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11937 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11938 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11939 | .manufacture_id = SPANSION_ID, |
| 11940 | .model_id = SPANSION_S25FL008A, |
| 11941 | .total_size = 1024, |
| 11942 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11943 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11944 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11945 | .probe = probe_spi_rdid, |
| 11946 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11947 | .block_erasers = |
| 11948 | { |
| 11949 | { |
| 11950 | .eraseblocks = { {64 * 1024, 16} }, |
| 11951 | .block_erase = spi_block_erase_d8, |
| 11952 | }, { |
| 11953 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11954 | .block_erase = spi_block_erase_c7, |
| 11955 | } |
| 11956 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11957 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11958 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11959 | .write = spi_chip_write_256, |
| 11960 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11961 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 11962 | }, |
| 11963 | |
| 11964 | { |
| 11965 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11966 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11967 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11968 | .manufacture_id = SPANSION_ID, |
| 11969 | .model_id = SPANSION_S25FL016A, |
| 11970 | .total_size = 2048, |
| 11971 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11972 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11973 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11974 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11975 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11976 | .block_erasers = |
| 11977 | { |
| 11978 | { |
| 11979 | .eraseblocks = { {64 * 1024, 32} }, |
| 11980 | .block_erase = spi_block_erase_d8, |
| 11981 | }, { |
| 11982 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11983 | .block_erase = spi_block_erase_c7, |
| 11984 | } |
| 11985 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11986 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11987 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11988 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11989 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11990 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11991 | }, |
| 11992 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11993 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11994 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11995 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11996 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11997 | .manufacture_id = SPANSION_ID, |
| 11998 | .model_id = SPANSION_S25FL032A, |
| 11999 | .total_size = 4096, |
| 12000 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12001 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12002 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 12003 | .probe = probe_spi_rdid, |
| 12004 | .probe_timing = TIMING_ZERO, |
| 12005 | .block_erasers = |
| 12006 | { |
| 12007 | { |
| 12008 | .eraseblocks = { {64 * 1024, 64} }, |
| 12009 | .block_erase = spi_block_erase_d8, |
| 12010 | }, { |
| 12011 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12012 | .block_erase = spi_block_erase_c7, |
| 12013 | } |
| 12014 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12015 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 12016 | .unlock = spi_disable_blockprotect, |
| 12017 | .write = spi_chip_write_256, |
| 12018 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12019 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 12020 | }, |
| 12021 | |
| 12022 | { |
| 12023 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12024 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12025 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 12026 | .manufacture_id = SPANSION_ID, |
| 12027 | .model_id = SPANSION_S25FL064A, |
| 12028 | .total_size = 8192, |
| 12029 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12030 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 12031 | .tested = TEST_OK_PREW, |
| 12032 | .probe = probe_spi_rdid, |
| 12033 | .probe_timing = TIMING_ZERO, |
| 12034 | .block_erasers = |
| 12035 | { |
| 12036 | { |
| 12037 | .eraseblocks = { {64 * 1024, 128} }, |
| 12038 | .block_erase = spi_block_erase_d8, |
| 12039 | }, { |
| 12040 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12041 | .block_erase = spi_block_erase_c7, |
| 12042 | } |
| 12043 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12044 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 12045 | .unlock = spi_disable_blockprotect, |
| 12046 | .write = spi_chip_write_256, |
| 12047 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12048 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 12049 | }, |
| 12050 | |
| 12051 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12052 | .vendor = "Spansion", |
| 12053 | .name = "S25FL204K", |
| 12054 | .bustype = BUS_SPI, |
| 12055 | .manufacture_id = SPANSION_ID, |
| 12056 | .model_id = SPANSION_S25FL204, |
| 12057 | .total_size = 512, |
| 12058 | .page_size = 256, |
| 12059 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 12060 | .tested = TEST_OK_PR, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12061 | .probe = probe_spi_rdid, |
| 12062 | .probe_timing = TIMING_ZERO, |
| 12063 | .block_erasers = { |
| 12064 | { |
| 12065 | .eraseblocks = { {4 * 1024, 128} }, |
| 12066 | .block_erase = spi_block_erase_20, |
| 12067 | }, { |
| 12068 | .eraseblocks = { {64 * 1024, 8} }, |
| 12069 | .block_erase = spi_block_erase_d8, |
| 12070 | }, { |
| 12071 | .eraseblocks = { { 512 * 1024, 1} }, |
| 12072 | .block_erase = spi_block_erase_60, |
| 12073 | }, { |
| 12074 | .eraseblocks = { { 512 * 1024, 1} }, |
| 12075 | .block_erase = spi_block_erase_c7, |
| 12076 | } |
| 12077 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12078 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12079 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12080 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12081 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12082 | .voltage = {2700, 3600}, |
| 12083 | }, |
| 12084 | |
| 12085 | { |
| 12086 | .vendor = "Spansion", |
| 12087 | .name = "S25FL208K", |
| 12088 | .bustype = BUS_SPI, |
| 12089 | .manufacture_id = SPANSION_ID, |
| 12090 | .model_id = SPANSION_S25FL208, |
| 12091 | .total_size = 1024, |
| 12092 | .page_size = 256, |
| 12093 | .feature_bits = FEATURE_WRSR_WREN, |
| 12094 | .tested = TEST_UNTESTED, |
| 12095 | .probe = probe_spi_rdid, |
| 12096 | .probe_timing = TIMING_ZERO, |
| 12097 | .block_erasers = { |
| 12098 | { |
| 12099 | .eraseblocks = { {4 * 1024, 256} }, |
| 12100 | .block_erase = spi_block_erase_20, |
| 12101 | }, { |
| 12102 | .eraseblocks = { {64 * 1024, 16} }, |
| 12103 | .block_erase = spi_block_erase_d8, |
| 12104 | }, { |
| 12105 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 12106 | .block_erase = spi_block_erase_60, |
| 12107 | }, { |
| 12108 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 12109 | .block_erase = spi_block_erase_c7, |
| 12110 | } |
| 12111 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12112 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12113 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12114 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12115 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12116 | .voltage = {2700, 3600}, |
| 12117 | }, |
| 12118 | |
| 12119 | { |
| 12120 | .vendor = "Spansion", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12121 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12122 | .bustype = BUS_SPI, |
| 12123 | .manufacture_id = SPANSION_ID, |
| 12124 | .model_id = SPANSION_S25FL216, |
| 12125 | .total_size = 2048, |
| 12126 | .page_size = 256, |
| 12127 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 12128 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12129 | .tested = TEST_UNTESTED, |
| 12130 | .probe = probe_spi_rdid, |
| 12131 | .probe_timing = TIMING_ZERO, |
| 12132 | .block_erasers = { |
| 12133 | { |
| 12134 | .eraseblocks = { {4 * 1024, 512} }, |
| 12135 | .block_erase = spi_block_erase_20, |
| 12136 | }, { |
| 12137 | .eraseblocks = { {64 * 1024, 32} }, |
| 12138 | .block_erase = spi_block_erase_d8, |
| 12139 | }, { |
| 12140 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 12141 | .block_erase = spi_block_erase_60, |
| 12142 | }, { |
| 12143 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 12144 | .block_erase = spi_block_erase_c7, |
| 12145 | } |
| 12146 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12147 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12148 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12149 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12150 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 12151 | .voltage = {2700, 3600}, |
| 12152 | }, |
| 12153 | |
| 12154 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12155 | .vendor = "Spansion", |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 12156 | .name = "S25FL132K", |
| 12157 | .bustype = BUS_SPI, |
| 12158 | .manufacture_id = SPANSION_ID, |
| 12159 | .model_id = SPANSION_S25FL132K, |
| 12160 | .total_size = 4096, |
| 12161 | .page_size = 256, |
| 12162 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 12163 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12164 | .tested = TEST_UNTESTED, |
| 12165 | .probe = probe_spi_rdid, |
| 12166 | .probe_timing = TIMING_ZERO, |
| 12167 | .block_erasers = { |
| 12168 | { |
| 12169 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12170 | .block_erase = spi_block_erase_20, |
| 12171 | }, { |
| 12172 | .eraseblocks = { {64 * 1024, 64} }, |
| 12173 | .block_erase = spi_block_erase_d8, |
| 12174 | }, { |
| 12175 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 12176 | .block_erase = spi_block_erase_60, |
| 12177 | }, { |
| 12178 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 12179 | .block_erase = spi_block_erase_c7, |
| 12180 | } |
| 12181 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12182 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 12183 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 12184 | .write = spi_chip_write_256, |
| 12185 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12186 | .voltage = {2700, 3600}, |
| 12187 | }, |
| 12188 | |
| 12189 | { |
| 12190 | .vendor = "Spansion", |
| 12191 | .name = "S25FL164K", |
| 12192 | .bustype = BUS_SPI, |
| 12193 | .manufacture_id = SPANSION_ID, |
| 12194 | .model_id = SPANSION_S25FL164K, |
| 12195 | .total_size = 8192, |
| 12196 | .page_size = 256, |
| 12197 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 12198 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12199 | .tested = TEST_OK_PREW, |
| 12200 | .probe = probe_spi_rdid, |
| 12201 | .probe_timing = TIMING_ZERO, |
| 12202 | .block_erasers = { |
| 12203 | { |
| 12204 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12205 | .block_erase = spi_block_erase_20, |
| 12206 | }, { |
| 12207 | .eraseblocks = { {64 * 1024, 128} }, |
| 12208 | .block_erase = spi_block_erase_d8, |
| 12209 | }, { |
| 12210 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 12211 | .block_erase = spi_block_erase_60, |
| 12212 | }, { |
| 12213 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 12214 | .block_erase = spi_block_erase_c7, |
| 12215 | } |
| 12216 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12217 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 12218 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 12219 | .write = spi_chip_write_256, |
| 12220 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12221 | .voltage = {2700, 3600}, |
| 12222 | }, |
| 12223 | |
| 12224 | { |
| 12225 | .vendor = "Spansion", |
Jernej Å krabec | e814a9b | 2014-12-12 00:32:03 +0000 | [diff] [blame] | 12226 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 12227 | .bustype = BUS_SPI, |
| 12228 | .manufacture_id = SPANSION_ID, |
| 12229 | .model_id = SPANSION_S25FL128, |
| 12230 | .total_size = 16384, |
| 12231 | .page_size = 256, |
| 12232 | /* supports 4B addressing */ |
| 12233 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12234 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12235 | .tested = TEST_OK_PREW, |
| 12236 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 12237 | .probe = probe_spi_rdid, |
| 12238 | .probe_timing = TIMING_ZERO, |
| 12239 | .block_erasers = { |
| 12240 | { |
| 12241 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 12242 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 12243 | * space. Trying to access an address outside these 4kB blocks does have no |
| 12244 | * effect on the memory contents, e.g. |
| 12245 | .eraseblocks = { |
| 12246 | {4 * 1024, 32}, |
| 12247 | {64 * 1024, 254} // inaccessible |
| 12248 | }, |
| 12249 | .block_erase = spi_block_erase_20, |
| 12250 | }, { */ |
| 12251 | .eraseblocks = { { 64 * 1024, 256} }, |
| 12252 | .block_erase = spi_block_erase_d8, |
| 12253 | }, { |
| 12254 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12255 | .block_erase = spi_block_erase_60, |
| 12256 | }, { |
| 12257 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12258 | .block_erase = spi_block_erase_c7, |
| 12259 | } |
| 12260 | }, |
| 12261 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12262 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 12263 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12264 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12265 | .voltage = {2700, 3600}, |
| 12266 | }, |
| 12267 | |
| 12268 | { |
| 12269 | .vendor = "Spansion", |
| 12270 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 12271 | .bustype = BUS_SPI, |
| 12272 | .manufacture_id = SPANSION_ID, |
| 12273 | .model_id = SPANSION_S25FL128, |
| 12274 | .total_size = 16384, |
| 12275 | .page_size = 512, |
| 12276 | /* supports 4B addressing */ |
| 12277 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12278 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12279 | .tested = TEST_UNTESTED, |
| 12280 | .probe = probe_spi_rdid, |
| 12281 | .probe_timing = TIMING_ZERO, |
| 12282 | .block_erasers = { |
| 12283 | { |
| 12284 | .eraseblocks = { {256 * 1024, 64} }, |
| 12285 | .block_erase = spi_block_erase_d8, |
| 12286 | }, { |
| 12287 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12288 | .block_erase = spi_block_erase_60, |
| 12289 | }, { |
| 12290 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12291 | .block_erase = spi_block_erase_c7, |
| 12292 | } |
| 12293 | }, |
| 12294 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12295 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 12296 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12297 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12298 | .voltage = {2700, 3600}, |
| 12299 | }, |
| 12300 | |
| 12301 | { |
| 12302 | .vendor = "Spansion", |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12303 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 12304 | .bustype = BUS_SPI, |
| 12305 | .manufacture_id = SPANSION_ID, |
| 12306 | .model_id = SPANSION_S25FL128, |
| 12307 | .total_size = 16384, |
| 12308 | .page_size = 256, |
| 12309 | .feature_bits = FEATURE_WRSR_WREN, |
| 12310 | .tested = TEST_UNTESTED, |
| 12311 | .probe = probe_spi_rdid, |
| 12312 | .probe_timing = TIMING_ZERO, |
| 12313 | .block_erasers = { |
| 12314 | { |
| 12315 | .eraseblocks = { {64 * 1024, 256} }, |
| 12316 | .block_erase = spi_block_erase_20, |
| 12317 | }, { |
| 12318 | .eraseblocks = { {64 * 1024, 256} }, |
| 12319 | .block_erase = spi_block_erase_d8, |
| 12320 | }, { |
| 12321 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12322 | .block_erase = spi_block_erase_60, |
| 12323 | }, { |
| 12324 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12325 | .block_erase = spi_block_erase_c7, |
| 12326 | } |
| 12327 | }, |
| 12328 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 12329 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12330 | .write = spi_chip_write_256, |
| 12331 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12332 | .voltage = {2700, 3600}, |
| 12333 | }, |
| 12334 | |
| 12335 | { |
| 12336 | .vendor = "Spansion", |
| 12337 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 12338 | .bustype = BUS_SPI, |
| 12339 | .manufacture_id = SPANSION_ID, |
| 12340 | .model_id = SPANSION_S25FL128, |
| 12341 | .total_size = 16384, |
| 12342 | .page_size = 256, |
| 12343 | .feature_bits = FEATURE_WRSR_WREN, |
| 12344 | .tested = TEST_UNTESTED, |
| 12345 | .probe = probe_spi_rdid, |
| 12346 | .probe_timing = TIMING_ZERO, |
| 12347 | .block_erasers = { |
| 12348 | { |
| 12349 | .eraseblocks = { {256 * 1024, 64} }, |
| 12350 | .block_erase = spi_block_erase_d8, |
| 12351 | }, { |
| 12352 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12353 | .block_erase = spi_block_erase_c7, |
| 12354 | } |
| 12355 | }, |
| 12356 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12357 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12358 | .write = spi_chip_write_256, |
| 12359 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12360 | .voltage = {2700, 3600}, |
| 12361 | }, |
| 12362 | |
| 12363 | { |
| 12364 | .vendor = "Spansion", |
| 12365 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12366 | .bustype = BUS_SPI, |
| 12367 | .manufacture_id = SPANSION_ID, |
| 12368 | .model_id = SPANSION_S25FL128, |
| 12369 | .total_size = 16384, |
| 12370 | .page_size = 256, |
| 12371 | /* supports 4B addressing */ |
| 12372 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12373 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 12374 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12375 | .probe = probe_spi_rdid, |
| 12376 | .probe_timing = TIMING_ZERO, |
| 12377 | .block_erasers = { |
| 12378 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12379 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 12380 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 12381 | * have no effect on the memory contents, but sets a flag in the SR. |
| 12382 | .eraseblocks = { |
| 12383 | {4 * 1024, 32}, |
| 12384 | {64 * 1024, 254} // inaccessible |
| 12385 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12386 | .block_erase = spi_block_erase_20, |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12387 | }, { */ |
| 12388 | .eraseblocks = { { 64 * 1024, 256} }, |
| 12389 | .block_erase = spi_block_erase_d8, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12390 | }, { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12391 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12392 | .block_erase = spi_block_erase_60, |
| 12393 | }, { |
| 12394 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12395 | .block_erase = spi_block_erase_c7, |
| 12396 | } |
| 12397 | }, |
| 12398 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 12399 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 12400 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12401 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12402 | .voltage = {2700, 3600}, |
| 12403 | }, |
| 12404 | |
| 12405 | { |
| 12406 | .vendor = "Spansion", |
| 12407 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 12408 | .bustype = BUS_SPI, |
| 12409 | .manufacture_id = SPANSION_ID, |
| 12410 | .model_id = SPANSION_S25FL128, |
| 12411 | .total_size = 16384, |
| 12412 | .page_size = 512, |
| 12413 | /* supports 4B addressing */ |
| 12414 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 12415 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12416 | .tested = TEST_UNTESTED, |
| 12417 | .probe = probe_spi_rdid, |
| 12418 | .probe_timing = TIMING_ZERO, |
| 12419 | .block_erasers = { |
| 12420 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 12421 | .eraseblocks = { {256 * 1024, 64} }, |
| 12422 | .block_erase = spi_block_erase_d8, |
| 12423 | }, { |
| 12424 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12425 | .block_erase = spi_block_erase_60, |
| 12426 | }, { |
| 12427 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12428 | .block_erase = spi_block_erase_c7, |
| 12429 | } |
| 12430 | }, |
| 12431 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 12432 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 12433 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12434 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12435 | .voltage = {2700, 3600}, |
| 12436 | }, |
| 12437 | |
| 12438 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12439 | .vendor = "Spansion", |
| 12440 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 12441 | .bustype = BUS_SPI, |
| 12442 | .manufacture_id = SPANSION_ID, |
| 12443 | .model_id = SPANSION_S25FL128, |
| 12444 | .total_size = 16384, |
| 12445 | .page_size = 256, |
| 12446 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 12447 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12448 | .tested = TEST_OK_PREW, |
| 12449 | .probe = probe_spi_rdid, |
| 12450 | .probe_timing = TIMING_ZERO, |
| 12451 | .block_erasers = { |
| 12452 | { |
| 12453 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 12454 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 12455 | * effect on the memory contents, but sets a flag in the SR. |
| 12456 | .eraseblocks = { |
| 12457 | {4 * 1024, 32}, |
| 12458 | {64 * 1024, 254} // inaccessible |
| 12459 | }, |
| 12460 | .block_erase = spi_block_erase_20, |
| 12461 | }, { */ |
| 12462 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 12463 | .eraseblocks = { |
| 12464 | {8 * 1024, 16}, |
| 12465 | {64 * 1024, 254} // inaccessible |
| 12466 | }, |
| 12467 | .block_erase = spi_block_erase_40, |
| 12468 | }, { */ |
| 12469 | .eraseblocks = { { 64 * 1024, 256} }, |
| 12470 | .block_erase = spi_block_erase_d8, |
| 12471 | }, { |
| 12472 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12473 | .block_erase = spi_block_erase_60, |
| 12474 | }, { |
| 12475 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12476 | .block_erase = spi_block_erase_c7, |
| 12477 | } |
| 12478 | }, |
| 12479 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 12480 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12481 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12482 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12483 | .voltage = {2700, 3600}, |
| 12484 | }, |
| 12485 | |
| 12486 | { |
| 12487 | .vendor = "Spansion", |
| 12488 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 12489 | .bustype = BUS_SPI, |
| 12490 | .manufacture_id = SPANSION_ID, |
| 12491 | .model_id = SPANSION_S25FL128, |
| 12492 | .total_size = 16384, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 12493 | .page_size = 256, |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 12494 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 12495 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12496 | .tested = TEST_UNTESTED, |
| 12497 | .probe = probe_spi_rdid, |
| 12498 | .probe_timing = TIMING_ZERO, |
| 12499 | .block_erasers = { |
| 12500 | { |
| 12501 | .eraseblocks = { {256 * 1024, 64} }, |
| 12502 | .block_erase = spi_block_erase_d8, |
| 12503 | }, { |
| 12504 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12505 | .block_erase = spi_block_erase_60, |
| 12506 | }, { |
| 12507 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 12508 | .block_erase = spi_block_erase_c7, |
| 12509 | } |
| 12510 | }, |
| 12511 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 12512 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12513 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12514 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12515 | .voltage = {2700, 3600}, |
| 12516 | }, |
| 12517 | |
| 12518 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12519 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 12520 | .name = "SST25LF020A", |
| 12521 | .bustype = BUS_SPI, |
| 12522 | .manufacture_id = SST_ID, |
| 12523 | .model_id = SST_SST25VF020_REMS, |
| 12524 | .total_size = 256, |
| 12525 | .page_size = 256, |
| 12526 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12527 | .tested = TEST_OK_PREW, |
| 12528 | .probe = probe_spi_rems, |
| 12529 | .probe_timing = TIMING_ZERO, |
| 12530 | .block_erasers = |
| 12531 | { |
| 12532 | { |
| 12533 | .eraseblocks = { {4 * 1024, 64} }, |
| 12534 | .block_erase = spi_block_erase_20, |
| 12535 | }, { |
| 12536 | .eraseblocks = { {32 * 1024, 8} }, |
| 12537 | .block_erase = spi_block_erase_52, |
| 12538 | }, { |
| 12539 | .eraseblocks = { {256 * 1024, 1} }, |
| 12540 | .block_erase = spi_block_erase_60, |
| 12541 | }, |
| 12542 | }, |
| 12543 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12544 | .unlock = spi_disable_blockprotect, |
| 12545 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12546 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12547 | .voltage = {2700, 3600}, |
| 12548 | }, |
| 12549 | |
| 12550 | { |
| 12551 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12552 | .name = "SST25LF040A", |
| 12553 | .bustype = BUS_SPI, |
| 12554 | .manufacture_id = SST_ID, |
| 12555 | .model_id = SST_SST25VF040_REMS, |
| 12556 | .total_size = 512, |
| 12557 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12558 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 12559 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12560 | .probe = probe_spi_res2, |
| 12561 | .probe_timing = TIMING_ZERO, |
| 12562 | .block_erasers = |
| 12563 | { |
| 12564 | { |
| 12565 | .eraseblocks = { {4 * 1024, 128} }, |
| 12566 | .block_erase = spi_block_erase_20, |
| 12567 | }, { |
| 12568 | .eraseblocks = { {32 * 1024, 16} }, |
| 12569 | .block_erase = spi_block_erase_52, |
| 12570 | }, { |
| 12571 | .eraseblocks = { {512 * 1024, 1} }, |
| 12572 | .block_erase = spi_block_erase_60, |
| 12573 | }, |
| 12574 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12575 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12576 | .unlock = spi_disable_blockprotect, |
| 12577 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12578 | .read = spi_chip_read, |
| 12579 | .voltage = {3000, 3600}, |
| 12580 | }, |
| 12581 | |
| 12582 | { |
| 12583 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12584 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12585 | .bustype = BUS_SPI, |
| 12586 | .manufacture_id = SST_ID, |
| 12587 | .model_id = SST_SST25VF080_REMS, |
| 12588 | .total_size = 1024, |
| 12589 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12590 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12591 | .tested = TEST_UNTESTED, |
| 12592 | .probe = probe_spi_res2, |
| 12593 | .probe_timing = TIMING_ZERO, |
| 12594 | .block_erasers = |
| 12595 | { |
| 12596 | { |
| 12597 | .eraseblocks = { {4 * 1024, 256} }, |
| 12598 | .block_erase = spi_block_erase_20, |
| 12599 | }, { |
| 12600 | .eraseblocks = { {32 * 1024, 32} }, |
| 12601 | .block_erase = spi_block_erase_52, |
| 12602 | }, { |
| 12603 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12604 | .block_erase = spi_block_erase_60, |
| 12605 | }, |
| 12606 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12607 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12608 | .unlock = spi_disable_blockprotect, |
| 12609 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12610 | .read = spi_chip_read, |
| 12611 | .voltage = {3000, 3600}, |
| 12612 | }, |
| 12613 | |
| 12614 | { |
| 12615 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12616 | .name = "SST25VF512(A)", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12617 | .bustype = BUS_SPI, |
| 12618 | .manufacture_id = SST_ID, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12619 | .model_id = SST_SST25VF512_REMS, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12620 | .total_size = 64, |
| 12621 | .page_size = 256, |
| 12622 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12623 | .tested = TEST_OK_PREW, |
| 12624 | .probe = probe_spi_rems, |
| 12625 | .probe_timing = TIMING_ZERO, |
| 12626 | .block_erasers = |
| 12627 | { |
| 12628 | { |
| 12629 | .eraseblocks = { {4 * 1024, 16} }, |
| 12630 | .block_erase = spi_block_erase_20, |
| 12631 | }, { |
| 12632 | .eraseblocks = { {32 * 1024, 2} }, |
| 12633 | .block_erase = spi_block_erase_52, |
| 12634 | }, { |
| 12635 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12636 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12637 | }, { |
| 12638 | .eraseblocks = { {64 * 1024, 1} }, |
| 12639 | .block_erase = spi_block_erase_60, |
| 12640 | }, { |
| 12641 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12642 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12643 | }, |
| 12644 | }, |
| 12645 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12646 | .unlock = spi_disable_blockprotect, |
| 12647 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12648 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12649 | .voltage = {2700, 3600}, |
| 12650 | }, |
| 12651 | |
| 12652 | { |
| 12653 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12654 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12655 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12656 | .manufacture_id = SST_ID, |
| 12657 | .model_id = SST_SST25VF010_REMS, |
| 12658 | .total_size = 128, |
| 12659 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12660 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12661 | .tested = TEST_OK_PREW, |
| 12662 | .probe = probe_spi_rems, |
| 12663 | .probe_timing = TIMING_ZERO, |
| 12664 | .block_erasers = |
| 12665 | { |
| 12666 | { |
| 12667 | .eraseblocks = { {4 * 1024, 32} }, |
| 12668 | .block_erase = spi_block_erase_20, |
| 12669 | }, { |
| 12670 | .eraseblocks = { {32 * 1024, 4} }, |
| 12671 | .block_erase = spi_block_erase_52, |
| 12672 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12673 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12674 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12675 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12676 | .eraseblocks = { {128 * 1024, 1} }, |
| 12677 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12678 | }, { |
| 12679 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12680 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12681 | }, |
| 12682 | }, |
| 12683 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12684 | .unlock = spi_disable_blockprotect, |
| 12685 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12686 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12687 | .voltage = {2700, 3600}, |
| 12688 | }, |
| 12689 | |
| 12690 | { |
| 12691 | .vendor = "SST", |
| 12692 | .name = "SST25VF020", |
| 12693 | .bustype = BUS_SPI, |
| 12694 | .manufacture_id = SST_ID, |
| 12695 | .model_id = SST_SST25VF020_REMS, |
| 12696 | .total_size = 256, |
| 12697 | .page_size = 256, |
| 12698 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12699 | .tested = TEST_UNTESTED, |
| 12700 | .probe = probe_spi_rems, |
| 12701 | .probe_timing = TIMING_ZERO, |
| 12702 | .block_erasers = |
| 12703 | { |
| 12704 | { |
| 12705 | .eraseblocks = { {4 * 1024, 64} }, |
| 12706 | .block_erase = spi_block_erase_20, |
| 12707 | }, { |
| 12708 | .eraseblocks = { {32 * 1024, 8} }, |
| 12709 | .block_erase = spi_block_erase_52, |
| 12710 | }, { |
| 12711 | .eraseblocks = { {256 * 1024, 1} }, |
| 12712 | .block_erase = spi_block_erase_60, |
| 12713 | }, |
| 12714 | }, |
| 12715 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12716 | .unlock = spi_disable_blockprotect, |
| 12717 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12718 | .read = spi_chip_read, /* only */ |
| 12719 | .voltage = {2700, 3600}, |
| 12720 | }, |
| 12721 | |
| 12722 | { |
| 12723 | .vendor = "SST", |
| 12724 | .name = "SST25VF020B", |
| 12725 | .bustype = BUS_SPI, |
| 12726 | .manufacture_id = SST_ID, |
| 12727 | .model_id = SST_SST25VF020B, |
| 12728 | .total_size = 256, |
| 12729 | .page_size = 256, |
| 12730 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12731 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12732 | .probe = probe_spi_rdid, |
| 12733 | .probe_timing = TIMING_ZERO, |
| 12734 | .block_erasers = |
| 12735 | { |
| 12736 | { |
| 12737 | .eraseblocks = { {4 * 1024, 64} }, |
| 12738 | .block_erase = spi_block_erase_20, |
| 12739 | }, { |
| 12740 | .eraseblocks = { {32 * 1024, 8} }, |
| 12741 | .block_erase = spi_block_erase_52, |
| 12742 | }, { |
| 12743 | .eraseblocks = { {64 * 1024, 4} }, |
| 12744 | .block_erase = spi_block_erase_d8, |
| 12745 | }, { |
| 12746 | .eraseblocks = { {256 * 1024, 1} }, |
| 12747 | .block_erase = spi_block_erase_60, |
| 12748 | }, { |
| 12749 | .eraseblocks = { {256 * 1024, 1} }, |
| 12750 | .block_erase = spi_block_erase_c7, |
| 12751 | }, |
| 12752 | }, |
| 12753 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 12754 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 12755 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12756 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12757 | .voltage = {2700, 3600}, |
| 12758 | }, |
| 12759 | |
| 12760 | { |
| 12761 | .vendor = "SST", |
| 12762 | .name = "SST25VF040", |
| 12763 | .bustype = BUS_SPI, |
| 12764 | .manufacture_id = SST_ID, |
| 12765 | .model_id = SST_SST25VF040_REMS, |
| 12766 | .total_size = 512, |
| 12767 | .page_size = 256, |
| 12768 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12769 | .tested = TEST_OK_PR, |
| 12770 | .probe = probe_spi_rems, |
| 12771 | .probe_timing = TIMING_ZERO, |
| 12772 | .block_erasers = |
| 12773 | { |
| 12774 | { |
| 12775 | .eraseblocks = { {4 * 1024, 128} }, |
| 12776 | .block_erase = spi_block_erase_20, |
| 12777 | }, { |
| 12778 | .eraseblocks = { {32 * 1024, 16} }, |
| 12779 | .block_erase = spi_block_erase_52, |
| 12780 | }, { |
| 12781 | .eraseblocks = { {512 * 1024, 1} }, |
| 12782 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12783 | }, |
| 12784 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12785 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12786 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12787 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12788 | .read = spi_chip_read, |
| 12789 | .voltage = {2700, 3600}, |
| 12790 | }, |
| 12791 | |
| 12792 | { |
| 12793 | .vendor = "SST", |
| 12794 | .name = "SST25VF040B", |
| 12795 | .bustype = BUS_SPI, |
| 12796 | .manufacture_id = SST_ID, |
| 12797 | .model_id = SST_SST25VF040B, |
| 12798 | .total_size = 512, |
| 12799 | .page_size = 256, |
| 12800 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12801 | .tested = TEST_OK_PREW, |
| 12802 | .probe = probe_spi_rdid, |
| 12803 | .probe_timing = TIMING_ZERO, |
| 12804 | .block_erasers = |
| 12805 | { |
| 12806 | { |
| 12807 | .eraseblocks = { {4 * 1024, 128} }, |
| 12808 | .block_erase = spi_block_erase_20, |
| 12809 | }, { |
| 12810 | .eraseblocks = { {32 * 1024, 16} }, |
| 12811 | .block_erase = spi_block_erase_52, |
| 12812 | }, { |
| 12813 | .eraseblocks = { {64 * 1024, 8} }, |
| 12814 | .block_erase = spi_block_erase_d8, |
| 12815 | }, { |
| 12816 | .eraseblocks = { {512 * 1024, 1} }, |
| 12817 | .block_erase = spi_block_erase_60, |
| 12818 | }, { |
| 12819 | .eraseblocks = { {512 * 1024, 1} }, |
| 12820 | .block_erase = spi_block_erase_c7, |
| 12821 | }, |
| 12822 | }, |
| 12823 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12824 | .unlock = spi_disable_blockprotect, |
| 12825 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12826 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12827 | .voltage = {2700, 3600}, |
| 12828 | }, |
| 12829 | |
| 12830 | { |
| 12831 | .vendor = "SST", |
| 12832 | .name = "SST25VF040B.REMS", |
| 12833 | .bustype = BUS_SPI, |
| 12834 | .manufacture_id = SST_ID, |
| 12835 | .model_id = SST_SST25VF040B_REMS, |
| 12836 | .total_size = 512, |
| 12837 | .page_size = 256, |
| 12838 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12839 | .tested = TEST_OK_PREW, |
| 12840 | .probe = probe_spi_rems, |
| 12841 | .probe_timing = TIMING_ZERO, |
| 12842 | .block_erasers = |
| 12843 | { |
| 12844 | { |
| 12845 | .eraseblocks = { {4 * 1024, 128} }, |
| 12846 | .block_erase = spi_block_erase_20, |
| 12847 | }, { |
| 12848 | .eraseblocks = { {32 * 1024, 16} }, |
| 12849 | .block_erase = spi_block_erase_52, |
| 12850 | }, { |
| 12851 | .eraseblocks = { {64 * 1024, 8} }, |
| 12852 | .block_erase = spi_block_erase_d8, |
| 12853 | }, { |
| 12854 | .eraseblocks = { {512 * 1024, 1} }, |
| 12855 | .block_erase = spi_block_erase_60, |
| 12856 | }, { |
| 12857 | .eraseblocks = { {512 * 1024, 1} }, |
| 12858 | .block_erase = spi_block_erase_c7, |
| 12859 | }, |
| 12860 | }, |
| 12861 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12862 | .unlock = spi_disable_blockprotect, |
| 12863 | .write = spi_aai_write, |
| 12864 | .read = spi_chip_read, |
| 12865 | .voltage = {2700, 3600}, |
| 12866 | }, |
| 12867 | |
| 12868 | { |
| 12869 | .vendor = "SST", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12870 | .name = "SST25WF020A", |
| 12871 | .bustype = BUS_SPI, |
| 12872 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12873 | .model_id = SST_SST25WF020A, |
| 12874 | .total_size = 256, |
| 12875 | .page_size = 256, |
| 12876 | .feature_bits = FEATURE_WRSR_WREN, |
| 12877 | .tested = TEST_UNTESTED, |
| 12878 | .probe = probe_spi_rdid, |
| 12879 | .probe_timing = TIMING_ZERO, |
| 12880 | .block_erasers = |
| 12881 | { |
| 12882 | { |
| 12883 | .eraseblocks = { {4 * 1024, 64} }, |
| 12884 | .block_erase = spi_block_erase_20, |
| 12885 | }, { |
| 12886 | .eraseblocks = { {64 * 1024, 4} }, |
| 12887 | .block_erase = spi_block_erase_d8, |
| 12888 | }, { |
| 12889 | .eraseblocks = { {256 * 1024, 1} }, |
| 12890 | .block_erase = spi_block_erase_60, |
| 12891 | }, { |
| 12892 | .eraseblocks = { {256 * 1024, 1} }, |
| 12893 | .block_erase = spi_block_erase_c7, |
| 12894 | }, |
| 12895 | }, |
| 12896 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12897 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12898 | .write = spi_chip_write_256, |
| 12899 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12900 | .voltage = {1650, 1950}, |
| 12901 | }, |
| 12902 | |
| 12903 | { |
| 12904 | .vendor = "SST", |
| 12905 | .name = "SST25WF040B", |
| 12906 | .bustype = BUS_SPI, |
| 12907 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12908 | .model_id = SST_SST25WF040B, |
| 12909 | .total_size = 512, |
| 12910 | .page_size = 256, |
| 12911 | .feature_bits = FEATURE_WRSR_WREN, |
| 12912 | .tested = TEST_UNTESTED, |
| 12913 | .probe = probe_spi_rdid, |
| 12914 | .probe_timing = TIMING_ZERO, |
| 12915 | .block_erasers = |
| 12916 | { |
| 12917 | { |
| 12918 | .eraseblocks = { {4 * 1024, 128} }, |
| 12919 | .block_erase = spi_block_erase_20, |
| 12920 | }, { |
| 12921 | .eraseblocks = { {64 * 1024, 8} }, |
| 12922 | .block_erase = spi_block_erase_d8, |
| 12923 | }, { |
| 12924 | .eraseblocks = { {512 * 1024, 1} }, |
| 12925 | .block_erase = spi_block_erase_60, |
| 12926 | }, { |
| 12927 | .eraseblocks = { {512 * 1024, 1} }, |
| 12928 | .block_erase = spi_block_erase_c7, |
| 12929 | }, |
| 12930 | }, |
| 12931 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12932 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12933 | .write = spi_chip_write_256, |
| 12934 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 12935 | .voltage = {1650, 1950}, |
| 12936 | }, |
| 12937 | |
| 12938 | { |
| 12939 | .vendor = "SST", |
| 12940 | .name = "SST25WF080B", |
| 12941 | .bustype = BUS_SPI, |
| 12942 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 12943 | .model_id = SST_SST25WF080B, |
| 12944 | .total_size = 1024, |
| 12945 | .page_size = 256, |
| 12946 | .feature_bits = FEATURE_WRSR_WREN, |
| 12947 | .tested = TEST_OK_PREW, |
| 12948 | .probe = probe_spi_rdid, |
| 12949 | .probe_timing = TIMING_ZERO, |
| 12950 | .block_erasers = |
| 12951 | { |
| 12952 | { |
| 12953 | .eraseblocks = { {4 * 1024, 256} }, |
| 12954 | .block_erase = spi_block_erase_20, |
| 12955 | }, { |
| 12956 | .eraseblocks = { {64 * 1024, 16} }, |
| 12957 | .block_erase = spi_block_erase_d8, |
| 12958 | }, { |
| 12959 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12960 | .block_erase = spi_block_erase_60, |
| 12961 | }, { |
| 12962 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12963 | .block_erase = spi_block_erase_c7, |
| 12964 | }, |
| 12965 | }, |
| 12966 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 12967 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12968 | .write = spi_chip_write_256, |
| 12969 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 12970 | .voltage = {1650, 1950}, |
| 12971 | }, |
| 12972 | |
| 12973 | { |
| 12974 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12975 | .name = "SST25VF080B", |
| 12976 | .bustype = BUS_SPI, |
| 12977 | .manufacture_id = SST_ID, |
| 12978 | .model_id = SST_SST25VF080B, |
| 12979 | .total_size = 1024, |
| 12980 | .page_size = 256, |
| 12981 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12982 | .tested = TEST_OK_PREW, |
| 12983 | .probe = probe_spi_rdid, |
| 12984 | .probe_timing = TIMING_ZERO, |
| 12985 | .block_erasers = |
| 12986 | { |
| 12987 | { |
| 12988 | .eraseblocks = { {4 * 1024, 256} }, |
| 12989 | .block_erase = spi_block_erase_20, |
| 12990 | }, { |
| 12991 | .eraseblocks = { {32 * 1024, 32} }, |
| 12992 | .block_erase = spi_block_erase_52, |
| 12993 | }, { |
| 12994 | .eraseblocks = { {64 * 1024, 16} }, |
| 12995 | .block_erase = spi_block_erase_d8, |
| 12996 | }, { |
| 12997 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12998 | .block_erase = spi_block_erase_60, |
| 12999 | }, { |
| 13000 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13001 | .block_erase = spi_block_erase_c7, |
| 13002 | }, |
| 13003 | }, |
| 13004 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13005 | .unlock = spi_disable_blockprotect, |
| 13006 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13007 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13008 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13009 | }, |
| 13010 | |
| 13011 | { |
| 13012 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13013 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13014 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13015 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13016 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13017 | .total_size = 2048, |
| 13018 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13019 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13020 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13021 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13022 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13023 | .block_erasers = |
| 13024 | { |
| 13025 | { |
| 13026 | .eraseblocks = { {4 * 1024, 512} }, |
| 13027 | .block_erase = spi_block_erase_20, |
| 13028 | }, { |
| 13029 | .eraseblocks = { {32 * 1024, 64} }, |
| 13030 | .block_erase = spi_block_erase_52, |
| 13031 | }, { |
| 13032 | .eraseblocks = { {64 * 1024, 32} }, |
| 13033 | .block_erase = spi_block_erase_d8, |
| 13034 | }, { |
| 13035 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13036 | .block_erase = spi_block_erase_60, |
| 13037 | }, { |
| 13038 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13039 | .block_erase = spi_block_erase_c7, |
| 13040 | }, |
| 13041 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13042 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13043 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 13044 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13045 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13046 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13047 | }, |
| 13048 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13049 | { |
| 13050 | .vendor = "SST", |
| 13051 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13052 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13053 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13054 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13055 | .total_size = 4096, |
| 13056 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13057 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 13058 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13059 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13060 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13061 | .block_erasers = |
| 13062 | { |
| 13063 | { |
| 13064 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13065 | .block_erase = spi_block_erase_20, |
| 13066 | }, { |
| 13067 | .eraseblocks = { {32 * 1024, 128} }, |
| 13068 | .block_erase = spi_block_erase_52, |
| 13069 | }, { |
| 13070 | .eraseblocks = { {64 * 1024, 64} }, |
| 13071 | .block_erase = spi_block_erase_d8, |
| 13072 | }, { |
| 13073 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13074 | .block_erase = spi_block_erase_60, |
| 13075 | }, { |
| 13076 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13077 | .block_erase = spi_block_erase_c7, |
| 13078 | }, |
| 13079 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13080 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13081 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 13082 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13083 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13084 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13085 | }, |
| 13086 | |
| 13087 | { |
| 13088 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13089 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13090 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13091 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13092 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13093 | .total_size = 8192, |
| 13094 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13095 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 13096 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13097 | .probe = probe_spi_rdid, |
| 13098 | .probe_timing = TIMING_ZERO, |
| 13099 | .block_erasers = |
| 13100 | { |
| 13101 | { |
| 13102 | .eraseblocks = { {4 * 1024, 2048} }, |
| 13103 | .block_erase = spi_block_erase_20, |
| 13104 | }, { |
| 13105 | .eraseblocks = { {32 * 1024, 256} }, |
| 13106 | .block_erase = spi_block_erase_52, |
| 13107 | }, { |
| 13108 | .eraseblocks = { {64 * 1024, 128} }, |
| 13109 | .block_erase = spi_block_erase_d8, |
| 13110 | }, { |
| 13111 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13112 | .block_erase = spi_block_erase_60, |
| 13113 | }, { |
| 13114 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13115 | .block_erase = spi_block_erase_c7, |
| 13116 | }, |
| 13117 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13118 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13119 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 13120 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13121 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13122 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13123 | }, |
| 13124 | |
| 13125 | { |
| 13126 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13127 | .name = "SST26VF016B(A)", |
| 13128 | .bustype = BUS_SPI, |
| 13129 | .manufacture_id = SST_ID, |
| 13130 | .model_id = SST_SST26VF016B, |
| 13131 | .total_size = 2048, |
| 13132 | .page_size = 256, |
| 13133 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13134 | .tested = TEST_OK_PREW, |
| 13135 | .probe = probe_spi_rdid, |
| 13136 | .probe_timing = TIMING_ZERO, |
| 13137 | .block_erasers = |
| 13138 | { |
| 13139 | { |
| 13140 | .eraseblocks = { {4 * 1024, 512} }, |
| 13141 | .block_erase = spi_block_erase_20, |
| 13142 | }, { |
| 13143 | .eraseblocks = { |
| 13144 | {8 * 1024, 4}, |
| 13145 | {32 * 1024, 1}, |
| 13146 | {64 * 1024, 30}, |
| 13147 | {32 * 1024, 1}, |
| 13148 | {8 * 1024, 4}, |
| 13149 | }, |
| 13150 | .block_erase = spi_block_erase_d8, |
| 13151 | }, { |
| 13152 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13153 | .block_erase = spi_block_erase_c7, |
| 13154 | }, |
| 13155 | }, |
| 13156 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13157 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13158 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13159 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13160 | .voltage = {2700, 3600}, |
| 13161 | }, |
| 13162 | { |
| 13163 | .vendor = "SST", |
| 13164 | .name = "SST26VF032B(A)", |
| 13165 | .bustype = BUS_SPI, |
| 13166 | .manufacture_id = SST_ID, |
| 13167 | .model_id = SST_SST26VF032B, |
| 13168 | .total_size = 4096, |
| 13169 | .page_size = 256, |
| 13170 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13171 | .tested = TEST_UNTESTED, |
| 13172 | .probe = probe_spi_rdid, |
| 13173 | .probe_timing = TIMING_ZERO, |
| 13174 | .block_erasers = |
| 13175 | { |
| 13176 | { |
| 13177 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13178 | .block_erase = spi_block_erase_20, |
| 13179 | }, { |
| 13180 | .eraseblocks = { |
| 13181 | {8 * 1024, 4}, |
| 13182 | {32 * 1024, 1}, |
| 13183 | {64 * 1024, 62}, |
| 13184 | {32 * 1024, 1}, |
| 13185 | {8 * 1024, 4}, |
| 13186 | }, |
| 13187 | .block_erase = spi_block_erase_d8, |
| 13188 | }, { |
| 13189 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13190 | .block_erase = spi_block_erase_c7, |
| 13191 | }, |
| 13192 | }, |
| 13193 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13194 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13195 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13196 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13197 | .voltage = {2700, 3600}, |
| 13198 | }, |
| 13199 | |
| 13200 | |
| 13201 | { |
| 13202 | .vendor = "SST", |
| 13203 | .name = "SST26VF064B(A)", |
| 13204 | .bustype = BUS_SPI, |
| 13205 | .manufacture_id = SST_ID, |
| 13206 | .model_id = SST_SST26VF064B, |
| 13207 | .total_size = 8192, |
| 13208 | .page_size = 256, |
| 13209 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13210 | .tested = TEST_OK_PREW, |
| 13211 | .probe = probe_spi_rdid, |
| 13212 | .probe_timing = TIMING_ZERO, |
| 13213 | .block_erasers = |
| 13214 | { |
| 13215 | { |
| 13216 | .eraseblocks = { {4 * 1024, 2048} }, |
| 13217 | .block_erase = spi_block_erase_20, |
| 13218 | }, { |
| 13219 | .eraseblocks = { |
| 13220 | {8 * 1024, 4}, |
| 13221 | {32 * 1024, 1}, |
| 13222 | {64 * 1024, 126}, |
| 13223 | {32 * 1024, 1}, |
| 13224 | {8 * 1024, 4}, |
| 13225 | }, |
| 13226 | .block_erase = spi_block_erase_d8, |
| 13227 | }, { |
| 13228 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13229 | .block_erase = spi_block_erase_c7, |
| 13230 | }, |
| 13231 | }, |
| 13232 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13233 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13234 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13235 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13236 | .voltage = {2700, 3600}, |
| 13237 | }, |
| 13238 | |
| 13239 | { |
| 13240 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 13241 | .name = "SST25WF512", |
| 13242 | .bustype = BUS_SPI, |
| 13243 | .manufacture_id = SST_ID, |
| 13244 | .model_id = SST_SST25WF512, |
| 13245 | .total_size = 64, |
| 13246 | .page_size = 256, |
| 13247 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13248 | .tested = TEST_UNTESTED, |
| 13249 | .probe = probe_spi_rdid, |
| 13250 | .probe_timing = TIMING_ZERO, |
| 13251 | .block_erasers = |
| 13252 | { |
| 13253 | { |
| 13254 | .eraseblocks = { {4 * 1024, 16} }, |
| 13255 | .block_erase = spi_block_erase_20, |
| 13256 | }, { |
| 13257 | .eraseblocks = { {32 * 1024, 2} }, |
| 13258 | .block_erase = spi_block_erase_52, |
| 13259 | }, { |
| 13260 | .eraseblocks = { {1024 * 64, 1} }, |
| 13261 | .block_erase = spi_block_erase_60, |
| 13262 | }, { |
| 13263 | .eraseblocks = { {1024 * 64, 1} }, |
| 13264 | .block_erase = spi_block_erase_c7, |
| 13265 | }, |
| 13266 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 13267 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13268 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 13269 | .write = spi_aai_write, |
| 13270 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13271 | .voltage = {1650, 1950}, |
| 13272 | }, |
| 13273 | |
| 13274 | { |
| 13275 | .vendor = "SST", |
| 13276 | .name = "SST25WF010", |
| 13277 | .bustype = BUS_SPI, |
| 13278 | .manufacture_id = SST_ID, |
| 13279 | .model_id = SST_SST25WF010, |
| 13280 | .total_size = 128, |
| 13281 | .page_size = 256, |
| 13282 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13283 | .tested = TEST_UNTESTED, |
| 13284 | .probe = probe_spi_rdid, |
| 13285 | .probe_timing = TIMING_ZERO, |
| 13286 | .block_erasers = |
| 13287 | { |
| 13288 | { |
| 13289 | .eraseblocks = { {4 * 1024, 32} }, |
| 13290 | .block_erase = spi_block_erase_20, |
| 13291 | }, { |
| 13292 | .eraseblocks = { {32 * 1024, 4} }, |
| 13293 | .block_erase = spi_block_erase_52, |
| 13294 | }, { |
| 13295 | .eraseblocks = { {1024 * 128, 1} }, |
| 13296 | .block_erase = spi_block_erase_60, |
| 13297 | }, { |
| 13298 | .eraseblocks = { {1024 * 128, 1} }, |
| 13299 | .block_erase = spi_block_erase_c7, |
| 13300 | }, |
| 13301 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 13302 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13303 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 13304 | .write = spi_aai_write, |
| 13305 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13306 | .voltage = {1650, 1950}, |
| 13307 | }, |
| 13308 | |
| 13309 | { |
| 13310 | .vendor = "SST", |
| 13311 | .name = "SST25WF020", |
| 13312 | .bustype = BUS_SPI, |
| 13313 | .manufacture_id = SST_ID, |
| 13314 | .model_id = SST_SST25WF020, |
| 13315 | .total_size = 256, |
| 13316 | .page_size = 256, |
| 13317 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13318 | .tested = TEST_UNTESTED, |
| 13319 | .probe = probe_spi_rdid, |
| 13320 | .probe_timing = TIMING_ZERO, |
| 13321 | .block_erasers = |
| 13322 | { |
| 13323 | { |
| 13324 | .eraseblocks = { {4 * 1024, 64} }, |
| 13325 | .block_erase = spi_block_erase_20, |
| 13326 | }, { |
| 13327 | .eraseblocks = { {32 * 1024, 8} }, |
| 13328 | .block_erase = spi_block_erase_52, |
| 13329 | }, { |
| 13330 | .eraseblocks = { {64 * 1024, 4} }, |
| 13331 | .block_erase = spi_block_erase_d8, |
| 13332 | }, { |
| 13333 | .eraseblocks = { {1024 * 256, 1} }, |
| 13334 | .block_erase = spi_block_erase_60, |
| 13335 | }, { |
| 13336 | .eraseblocks = { {1024 * 256, 1} }, |
| 13337 | .block_erase = spi_block_erase_c7, |
| 13338 | }, |
| 13339 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 13340 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13341 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 13342 | .write = spi_aai_write, |
| 13343 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13344 | .voltage = {1650, 1950}, |
| 13345 | }, |
| 13346 | |
| 13347 | { |
| 13348 | .vendor = "SST", |
| 13349 | .name = "SST25WF040", |
| 13350 | .bustype = BUS_SPI, |
| 13351 | .manufacture_id = SST_ID, |
| 13352 | .model_id = SST_SST25WF040, |
| 13353 | .total_size = 512, |
| 13354 | .page_size = 256, |
| 13355 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13356 | .tested = TEST_UNTESTED, |
| 13357 | .probe = probe_spi_rdid, |
| 13358 | .probe_timing = TIMING_ZERO, |
| 13359 | .block_erasers = |
| 13360 | { |
| 13361 | { |
| 13362 | .eraseblocks = { {4 * 1024, 128} }, |
| 13363 | .block_erase = spi_block_erase_20, |
| 13364 | }, { |
| 13365 | .eraseblocks = { {32 * 1024, 16} }, |
| 13366 | .block_erase = spi_block_erase_52, |
| 13367 | }, { |
| 13368 | .eraseblocks = { {64 * 1024, 8} }, |
| 13369 | .block_erase = spi_block_erase_d8, |
| 13370 | }, { |
| 13371 | .eraseblocks = { {1024 * 512, 1} }, |
| 13372 | .block_erase = spi_block_erase_60, |
| 13373 | }, { |
| 13374 | .eraseblocks = { {1024 * 512, 1} }, |
| 13375 | .block_erase = spi_block_erase_c7, |
| 13376 | }, |
| 13377 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 13378 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13379 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13380 | .write = spi_aai_write, |
| 13381 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13382 | .voltage = {1650, 1950}, |
| 13383 | }, |
| 13384 | |
| 13385 | { |
| 13386 | .vendor = "SST", |
| 13387 | .name = "SST25WF080", |
| 13388 | .bustype = BUS_SPI, |
| 13389 | .manufacture_id = SST_ID, |
| 13390 | .model_id = SST_SST25WF080, |
| 13391 | .total_size = 1024, |
| 13392 | .page_size = 256, |
| 13393 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13394 | .tested = TEST_OK_PREW, |
| 13395 | .probe = probe_spi_rdid, |
| 13396 | .probe_timing = TIMING_ZERO, |
| 13397 | .block_erasers = |
| 13398 | { |
| 13399 | { |
| 13400 | .eraseblocks = { {4 * 1024, 256} }, |
| 13401 | .block_erase = spi_block_erase_20, |
| 13402 | }, { |
| 13403 | .eraseblocks = { {32 * 1024, 32} }, |
| 13404 | .block_erase = spi_block_erase_52, |
| 13405 | }, { |
| 13406 | .eraseblocks = { {64 * 1024, 16} }, |
| 13407 | .block_erase = spi_block_erase_d8, |
| 13408 | }, { |
| 13409 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13410 | .block_erase = spi_block_erase_60, |
| 13411 | }, { |
| 13412 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13413 | .block_erase = spi_block_erase_c7, |
| 13414 | }, |
| 13415 | }, |
| 13416 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 13417 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 13418 | .write = spi_aai_write, |
| 13419 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13420 | .voltage = {1650, 1950}, |
| 13421 | }, |
| 13422 | |
| 13423 | { |
| 13424 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13425 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13426 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13427 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13428 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13429 | .total_size = 512, |
| 13430 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13431 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13432 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13433 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13434 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13435 | .block_erasers = |
| 13436 | { |
| 13437 | { |
| 13438 | .eraseblocks = { {128, 4096} }, |
| 13439 | .block_erase = erase_sector_28sf040, |
| 13440 | }, { |
| 13441 | .eraseblocks = { {512 * 1024, 1} }, |
| 13442 | .block_erase = erase_chip_28sf040, |
| 13443 | } |
| 13444 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13445 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13446 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13447 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13448 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13449 | }, |
| 13450 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13451 | { |
| 13452 | .vendor = "SST", |
| 13453 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13454 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13455 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13456 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13457 | .total_size = 128, |
| 13458 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13459 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13460 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13461 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13462 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13463 | .block_erasers = |
| 13464 | { |
| 13465 | { |
| 13466 | .eraseblocks = { {128 * 1024, 1} }, |
| 13467 | .block_erase = erase_chip_block_jedec, |
| 13468 | } |
| 13469 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13470 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13471 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13472 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13473 | }, |
| 13474 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13475 | { |
| 13476 | .vendor = "SST", |
| 13477 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13478 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13479 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13480 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13481 | .total_size = 128, |
| 13482 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13483 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13484 | .tested = TEST_UNTESTED, |
| 13485 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13486 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13487 | .block_erasers = |
| 13488 | { |
| 13489 | { |
| 13490 | .eraseblocks = { {128 * 1024, 1} }, |
| 13491 | .block_erase = erase_chip_block_jedec, |
| 13492 | } |
| 13493 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13494 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13495 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13496 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13497 | }, |
| 13498 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13499 | { |
| 13500 | .vendor = "SST", |
| 13501 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13502 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13503 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13504 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13505 | .total_size = 256, |
| 13506 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13507 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13508 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13509 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13510 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13511 | .block_erasers = |
| 13512 | { |
| 13513 | { |
| 13514 | .eraseblocks = { {256 * 1024, 1} }, |
| 13515 | .block_erase = erase_chip_block_jedec, |
| 13516 | } |
| 13517 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13518 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13519 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13520 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13521 | }, |
| 13522 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13523 | { |
| 13524 | .vendor = "SST", |
| 13525 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13526 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13527 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13528 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13529 | .total_size = 256, |
| 13530 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13531 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13532 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13533 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13534 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13535 | .block_erasers = |
| 13536 | { |
| 13537 | { |
| 13538 | .eraseblocks = { {256 * 1024, 1} }, |
| 13539 | .block_erase = erase_chip_block_jedec, |
| 13540 | } |
| 13541 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13542 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13543 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13544 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13545 | }, |
| 13546 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13547 | { |
| 13548 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13549 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13550 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13551 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13552 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13553 | .total_size = 64, |
| 13554 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13555 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 13556 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13557 | .probe = probe_jedec, |
| 13558 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13559 | .block_erasers = |
| 13560 | { |
| 13561 | { |
| 13562 | .eraseblocks = { {4 * 1024, 16} }, |
| 13563 | .block_erase = erase_sector_jedec, |
| 13564 | }, { |
| 13565 | .eraseblocks = { {64 * 1024, 1} }, |
| 13566 | .block_erase = erase_chip_block_jedec, |
| 13567 | } |
| 13568 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13569 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13570 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13571 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 13572 | }, |
| 13573 | |
| 13574 | { |
| 13575 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13576 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13577 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13578 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13579 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13580 | .total_size = 128, |
| 13581 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13582 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13583 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13584 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13585 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13586 | .block_erasers = |
| 13587 | { |
| 13588 | { |
| 13589 | .eraseblocks = { {4 * 1024, 32} }, |
| 13590 | .block_erase = erase_sector_jedec, |
| 13591 | }, { |
| 13592 | .eraseblocks = { {128 * 1024, 1} }, |
| 13593 | .block_erase = erase_chip_block_jedec, |
| 13594 | } |
| 13595 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13596 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13597 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13598 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13599 | }, |
| 13600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13601 | { |
| 13602 | .vendor = "SST", |
| 13603 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13604 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13605 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13606 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13607 | .total_size = 256, |
| 13608 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13609 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 13610 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13611 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13612 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13613 | .block_erasers = |
| 13614 | { |
| 13615 | { |
| 13616 | .eraseblocks = { {4 * 1024, 64} }, |
| 13617 | .block_erase = erase_sector_jedec, |
| 13618 | }, { |
| 13619 | .eraseblocks = { {256 * 1024, 1} }, |
| 13620 | .block_erase = erase_chip_block_jedec, |
| 13621 | } |
| 13622 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13623 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13624 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13625 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13626 | }, |
| 13627 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13628 | { |
| 13629 | .vendor = "SST", |
| 13630 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13631 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13632 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13633 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13634 | .total_size = 512, |
| 13635 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13636 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 13637 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13638 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13639 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13640 | .block_erasers = |
| 13641 | { |
| 13642 | { |
| 13643 | .eraseblocks = { {4 * 1024, 128} }, |
| 13644 | .block_erase = erase_sector_jedec, |
| 13645 | }, { |
| 13646 | .eraseblocks = { {512 * 1024, 1} }, |
| 13647 | .block_erase = erase_chip_block_jedec, |
| 13648 | } |
| 13649 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13650 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13651 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13652 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13653 | }, |
| 13654 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13655 | { |
| 13656 | .vendor = "SST", |
| 13657 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13658 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13659 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13660 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13661 | .total_size = 64, |
| 13662 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13663 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 13664 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13665 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13666 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13667 | .block_erasers = |
| 13668 | { |
| 13669 | { |
| 13670 | .eraseblocks = { {4 * 1024, 16} }, |
| 13671 | .block_erase = erase_sector_jedec, |
| 13672 | }, { |
| 13673 | .eraseblocks = { {64 * 1024, 1} }, |
| 13674 | .block_erase = erase_chip_block_jedec, |
| 13675 | } |
| 13676 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13677 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13678 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13679 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13680 | }, |
| 13681 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13682 | { |
| 13683 | .vendor = "SST", |
| 13684 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13685 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13686 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13687 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13688 | .total_size = 128, |
| 13689 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13690 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 13691 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13692 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13693 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13694 | .block_erasers = |
| 13695 | { |
| 13696 | { |
| 13697 | .eraseblocks = { {4 * 1024, 32} }, |
| 13698 | .block_erase = erase_sector_jedec, |
| 13699 | }, { |
| 13700 | .eraseblocks = { {128 * 1024, 1} }, |
| 13701 | .block_erase = erase_chip_block_jedec, |
| 13702 | } |
| 13703 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13704 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13705 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13706 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13707 | }, |
| 13708 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13709 | { |
| 13710 | .vendor = "SST", |
| 13711 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13712 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13713 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13714 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13715 | .total_size = 256, |
| 13716 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13717 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13718 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13719 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13720 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13721 | .block_erasers = |
| 13722 | { |
| 13723 | { |
| 13724 | .eraseblocks = { {4 * 1024, 64} }, |
| 13725 | .block_erase = erase_sector_jedec, |
| 13726 | }, { |
| 13727 | .eraseblocks = { {256 * 1024, 1} }, |
| 13728 | .block_erase = erase_chip_block_jedec, |
| 13729 | } |
| 13730 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13731 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13732 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13733 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13734 | }, |
| 13735 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13736 | { |
| 13737 | .vendor = "SST", |
| 13738 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13739 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13740 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13741 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13742 | .total_size = 512, |
| 13743 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13744 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13745 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13746 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13747 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13748 | .block_erasers = |
| 13749 | { |
| 13750 | { |
| 13751 | .eraseblocks = { {4 * 1024, 128} }, |
| 13752 | .block_erase = erase_sector_jedec, |
| 13753 | }, { |
| 13754 | .eraseblocks = { {512 * 1024, 1} }, |
| 13755 | .block_erase = erase_chip_block_jedec, |
| 13756 | } |
| 13757 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13758 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13759 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13760 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 13761 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13762 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13763 | { |
| 13764 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13765 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13766 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13767 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13768 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13769 | .total_size = 1024, |
| 13770 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13771 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13772 | .tested = TEST_UNTESTED, |
| 13773 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13774 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13775 | .block_erasers = |
| 13776 | { |
| 13777 | { |
| 13778 | .eraseblocks = { {4 * 1024, 256} }, |
| 13779 | .block_erase = erase_sector_jedec, |
| 13780 | }, { |
| 13781 | .eraseblocks = { {64 * 1024, 16} }, |
| 13782 | .block_erase = erase_block_jedec, |
| 13783 | }, { |
| 13784 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13785 | .block_erase = erase_chip_block_jedec, |
| 13786 | } |
| 13787 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13788 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13789 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13790 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13791 | }, |
| 13792 | |
| 13793 | { |
| 13794 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13795 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13796 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13797 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13798 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13799 | .total_size = 256, |
| 13800 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13801 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13802 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13803 | .probe = probe_jedec, |
| 13804 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13805 | .block_erasers = |
| 13806 | { |
| 13807 | { |
| 13808 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13809 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13810 | }, { |
| 13811 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13812 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13813 | }, { |
| 13814 | .eraseblocks = { {256 * 1024, 1} }, |
| 13815 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13816 | } |
| 13817 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13818 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13819 | .unlock = unlock_sst_fwhub, |
| 13820 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13821 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13822 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13823 | }, |
| 13824 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13825 | { |
| 13826 | .vendor = "SST", |
| 13827 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13828 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13829 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13830 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13831 | .total_size = 384, |
| 13832 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13833 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13834 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13835 | .probe = probe_jedec, |
| 13836 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13837 | .block_erasers = |
| 13838 | { |
| 13839 | { |
| 13840 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13841 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13842 | }, { |
| 13843 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13844 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13845 | }, { |
| 13846 | .eraseblocks = { {384 * 1024, 1} }, |
| 13847 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13848 | } |
| 13849 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13850 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13851 | .unlock = unlock_sst_fwhub, |
| 13852 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13853 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13854 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13855 | }, |
| 13856 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13857 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13858 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 13859 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 13860 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13861 | .vendor = "SST", |
| 13862 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13863 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13864 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13865 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13866 | .total_size = 512, |
| 13867 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13868 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13869 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13870 | .probe = probe_jedec, |
| 13871 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13872 | .block_erasers = |
| 13873 | { |
| 13874 | { |
| 13875 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13876 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13877 | }, { |
| 13878 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13879 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13880 | }, { |
| 13881 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13882 | .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] | 13883 | }, |
| 13884 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13885 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13886 | .unlock = unlock_sst_fwhub, |
| 13887 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13888 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13889 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13890 | }, |
| 13891 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13892 | { |
| 13893 | .vendor = "SST", |
| 13894 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13895 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13896 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13897 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13898 | .total_size = 512, |
| 13899 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13900 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13901 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13902 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13903 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13904 | .block_erasers = |
| 13905 | { |
| 13906 | { |
| 13907 | .eraseblocks = { {4 * 1024, 128} }, |
| 13908 | .block_erase = erase_sector_49lfxxxc, |
| 13909 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13910 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13911 | {64 * 1024, 7}, |
| 13912 | {32 * 1024, 1}, |
| 13913 | {8 * 1024, 2}, |
| 13914 | {16 * 1024, 1}, |
| 13915 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13916 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13917 | } |
| 13918 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13919 | .printlock = printlock_regspace2_block_eraser_1, |
| 13920 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13921 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13922 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13923 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13924 | }, |
| 13925 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13926 | { |
| 13927 | .vendor = "SST", |
| 13928 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13929 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13930 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13931 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13932 | .total_size = 1024, |
| 13933 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13934 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13935 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13936 | .probe = probe_jedec, |
| 13937 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13938 | .block_erasers = |
| 13939 | { |
| 13940 | { |
| 13941 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13942 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13943 | }, { |
| 13944 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13945 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13946 | }, { |
| 13947 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13948 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13949 | } |
| 13950 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13951 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13952 | .unlock = unlock_sst_fwhub, |
| 13953 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13954 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13955 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13956 | }, |
| 13957 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13958 | { |
| 13959 | .vendor = "SST", |
| 13960 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13961 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13962 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13963 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13964 | .total_size = 1024, |
| 13965 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13966 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13967 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13968 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13969 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13970 | .block_erasers = |
| 13971 | { |
| 13972 | { |
| 13973 | .eraseblocks = { {4 * 1024, 256} }, |
| 13974 | .block_erase = erase_sector_49lfxxxc, |
| 13975 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13976 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13977 | {64 * 1024, 15}, |
| 13978 | {32 * 1024, 1}, |
| 13979 | {8 * 1024, 2}, |
| 13980 | {16 * 1024, 1}, |
| 13981 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13982 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13983 | } |
| 13984 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13985 | .printlock = printlock_regspace2_block_eraser_1, |
| 13986 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13987 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13988 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13989 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13990 | }, |
| 13991 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13992 | { |
| 13993 | .vendor = "SST", |
| 13994 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13995 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13996 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13997 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13998 | .total_size = 2048, |
| 13999 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14000 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14001 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14002 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14003 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14004 | .block_erasers = |
| 14005 | { |
| 14006 | { |
| 14007 | .eraseblocks = { {4 * 1024, 512} }, |
| 14008 | .block_erase = erase_sector_49lfxxxc, |
| 14009 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14010 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14011 | {64 * 1024, 31}, |
| 14012 | {32 * 1024, 1}, |
| 14013 | {8 * 1024, 2}, |
| 14014 | {16 * 1024, 1}, |
| 14015 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14016 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14017 | } |
| 14018 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14019 | .printlock = printlock_regspace2_block_eraser_1, |
| 14020 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14021 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14022 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14023 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14024 | }, |
| 14025 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14026 | { |
| 14027 | .vendor = "SST", |
| 14028 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14029 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14030 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14031 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14032 | .total_size = 256, |
| 14033 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14034 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 14035 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14036 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14037 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14038 | .block_erasers = |
| 14039 | { |
| 14040 | { |
| 14041 | .eraseblocks = { {4 * 1024, 64} }, |
| 14042 | .block_erase = erase_sector_jedec, |
| 14043 | }, { |
| 14044 | .eraseblocks = { {16 * 1024, 16} }, |
| 14045 | .block_erase = erase_block_jedec, |
| 14046 | }, { |
| 14047 | .eraseblocks = { {256 * 1024, 1} }, |
| 14048 | .block_erase = NULL, |
| 14049 | } |
| 14050 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14051 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14052 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14053 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 14054 | }, |
| 14055 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14056 | { |
| 14057 | .vendor = "SST", |
| 14058 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14059 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14060 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14061 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14062 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 14063 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14064 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14065 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14066 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14067 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14068 | .block_erasers = |
| 14069 | { |
| 14070 | { |
| 14071 | .eraseblocks = { {4 * 1024, 64} }, |
| 14072 | .block_erase = erase_sector_jedec, |
| 14073 | }, { |
| 14074 | .eraseblocks = { {16 * 1024, 16} }, |
| 14075 | .block_erase = erase_block_jedec, |
| 14076 | }, { |
| 14077 | .eraseblocks = { {256 * 1024, 1} }, |
| 14078 | .block_erase = NULL, |
| 14079 | } |
| 14080 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14081 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14082 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14083 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14084 | }, |
| 14085 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14086 | { |
| 14087 | .vendor = "SST", |
| 14088 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14089 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14090 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14091 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14092 | .total_size = 512, |
| 14093 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14094 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14095 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14096 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14097 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14098 | .block_erasers = |
| 14099 | { |
| 14100 | { |
| 14101 | .eraseblocks = { {4 * 1024, 128} }, |
| 14102 | .block_erase = erase_sector_jedec, |
| 14103 | }, { |
| 14104 | .eraseblocks = { {64 * 1024, 8} }, |
| 14105 | .block_erase = erase_block_jedec, |
| 14106 | }, { |
| 14107 | .eraseblocks = { {512 * 1024, 1} }, |
| 14108 | .block_erase = NULL, |
| 14109 | } |
| 14110 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14111 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14112 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14113 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14114 | }, |
| 14115 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14116 | { |
| 14117 | .vendor = "SST", |
| 14118 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14119 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14120 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14121 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14122 | .total_size = 512, |
| 14123 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 14124 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14125 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14126 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14127 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14128 | .block_erasers = |
| 14129 | { |
| 14130 | { |
| 14131 | .eraseblocks = { {4 * 1024, 128} }, |
| 14132 | .block_erase = erase_sector_jedec, |
| 14133 | }, { |
| 14134 | .eraseblocks = { {64 * 1024, 8} }, |
| 14135 | .block_erase = erase_block_jedec, |
| 14136 | }, { |
| 14137 | .eraseblocks = { {512 * 1024, 1} }, |
| 14138 | .block_erase = NULL, |
| 14139 | } |
| 14140 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14141 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14142 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14143 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14144 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14145 | }, |
| 14146 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14147 | { |
| 14148 | .vendor = "SST", |
| 14149 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14150 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14151 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 14152 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14153 | .total_size = 1024, |
| 14154 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14155 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 14156 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14157 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14158 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14159 | .block_erasers = |
| 14160 | { |
| 14161 | { |
| 14162 | .eraseblocks = { {4 * 1024, 256} }, |
| 14163 | .block_erase = erase_sector_jedec, |
| 14164 | }, { |
| 14165 | .eraseblocks = { {64 * 1024, 16} }, |
| 14166 | .block_erase = erase_block_jedec, |
| 14167 | }, { |
| 14168 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14169 | .block_erase = NULL, |
| 14170 | } |
| 14171 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14172 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14173 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14174 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14175 | }, |
| 14176 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14177 | { |
| 14178 | .vendor = "SST", |
| 14179 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14180 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14181 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14182 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14183 | .total_size = 2048, |
| 14184 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14185 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14186 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14187 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14188 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14189 | .block_erasers = |
| 14190 | { |
| 14191 | { |
| 14192 | .eraseblocks = { {4 * 1024, 512} }, |
| 14193 | .block_erase = erase_sector_49lfxxxc, |
| 14194 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14195 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14196 | {64 * 1024, 31}, |
| 14197 | {32 * 1024, 1}, |
| 14198 | {8 * 1024, 2}, |
| 14199 | {16 * 1024, 1}, |
| 14200 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14201 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14202 | } |
| 14203 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14204 | .printlock = printlock_regspace2_block_eraser_1, |
| 14205 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14206 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14207 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14208 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14209 | }, |
| 14210 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14211 | { |
| 14212 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14213 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14214 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14215 | .manufacture_id = ST_ID, |
| 14216 | .model_id = ST_M29F002B, |
| 14217 | .total_size = 256, |
| 14218 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14219 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14220 | .tested = TEST_UNTESTED, |
| 14221 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14222 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14223 | .block_erasers = |
| 14224 | { |
| 14225 | { |
| 14226 | .eraseblocks = { |
| 14227 | {16 * 1024, 1}, |
| 14228 | {8 * 1024, 2}, |
| 14229 | {32 * 1024, 1}, |
| 14230 | {64 * 1024, 3}, |
| 14231 | }, |
| 14232 | .block_erase = erase_sector_jedec, |
| 14233 | }, { |
| 14234 | .eraseblocks = { {256 * 1024, 1} }, |
| 14235 | .block_erase = erase_chip_block_jedec, |
| 14236 | } |
| 14237 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14238 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14239 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14240 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14241 | }, |
| 14242 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14243 | { |
| 14244 | .vendor = "ST", |
| 14245 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14246 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14247 | .manufacture_id = ST_ID, |
| 14248 | .model_id = ST_M29F002T, |
| 14249 | .total_size = 256, |
| 14250 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14251 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14252 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14253 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14254 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14255 | .block_erasers = |
| 14256 | { |
| 14257 | { |
| 14258 | .eraseblocks = { |
| 14259 | {64 * 1024, 3}, |
| 14260 | {32 * 1024, 1}, |
| 14261 | {8 * 1024, 2}, |
| 14262 | {16 * 1024, 1}, |
| 14263 | }, |
| 14264 | .block_erase = erase_sector_jedec, |
| 14265 | }, { |
| 14266 | .eraseblocks = { {256 * 1024, 1} }, |
| 14267 | .block_erase = erase_chip_block_jedec, |
| 14268 | } |
| 14269 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14270 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14271 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14272 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14273 | }, |
| 14274 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14275 | { |
| 14276 | .vendor = "ST", |
| 14277 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14278 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14279 | .manufacture_id = ST_ID, |
| 14280 | .model_id = ST_M29F040B, |
| 14281 | .total_size = 512, |
| 14282 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14283 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 14284 | .tested = TEST_UNTESTED, |
| 14285 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 14286 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14287 | .block_erasers = |
| 14288 | { |
| 14289 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14290 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14291 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14292 | }, { |
| 14293 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14294 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14295 | } |
| 14296 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14297 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14298 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14299 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14300 | }, |
| 14301 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14302 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14303 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14304 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14305 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14306 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14307 | .manufacture_id = ST_ID, |
| 14308 | .model_id = ST_M29F400BB, |
| 14309 | .total_size = 512, |
| 14310 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14311 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14312 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14313 | .probe = probe_jedec, |
| 14314 | .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] | 14315 | .block_erasers = |
| 14316 | { |
| 14317 | { |
| 14318 | .eraseblocks = { |
| 14319 | {16 * 1024, 1}, |
| 14320 | {8 * 1024, 2}, |
| 14321 | {32 * 1024, 1}, |
| 14322 | {64 * 1024, 7}, |
| 14323 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14324 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14325 | }, { |
| 14326 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14327 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14328 | } |
| 14329 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14330 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14331 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14332 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14333 | }, |
| 14334 | { |
| 14335 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 14336 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14337 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14338 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14339 | .manufacture_id = ST_ID, |
| 14340 | .model_id = ST_M29F400BT, |
| 14341 | .total_size = 512, |
| 14342 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14343 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14344 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14345 | .probe = probe_jedec, |
| 14346 | .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] | 14347 | .block_erasers = |
| 14348 | { |
| 14349 | { |
| 14350 | .eraseblocks = { |
| 14351 | {64 * 1024, 7}, |
| 14352 | {32 * 1024, 1}, |
| 14353 | {8 * 1024, 2}, |
| 14354 | {16 * 1024, 1}, |
| 14355 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14356 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14357 | }, { |
| 14358 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14359 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14360 | } |
| 14361 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14362 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14363 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14364 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14365 | }, |
| 14366 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14367 | { |
| 14368 | .vendor = "ST", |
| 14369 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14370 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14371 | .manufacture_id = ST_ID, |
| 14372 | .model_id = ST_M29W010B, |
| 14373 | .total_size = 128, |
| 14374 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14375 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14376 | .tested = TEST_UNTESTED, |
| 14377 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14378 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14379 | .block_erasers = |
| 14380 | { |
| 14381 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14382 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14383 | .block_erase = erase_sector_jedec, |
| 14384 | }, { |
| 14385 | .eraseblocks = { {128 * 1024, 1} }, |
| 14386 | .block_erase = erase_chip_block_jedec, |
| 14387 | } |
| 14388 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14389 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14390 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14391 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14392 | }, |
| 14393 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14394 | { |
| 14395 | .vendor = "ST", |
| 14396 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14397 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14398 | .manufacture_id = ST_ID, |
| 14399 | .model_id = ST_M29W040B, |
| 14400 | .total_size = 512, |
| 14401 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14402 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14403 | .tested = TEST_UNTESTED, |
| 14404 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14405 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14406 | .block_erasers = |
| 14407 | { |
| 14408 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14409 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14410 | .block_erase = erase_sector_jedec, |
| 14411 | }, { |
| 14412 | .eraseblocks = { {512 * 1024, 1} }, |
| 14413 | .block_erase = erase_chip_block_jedec, |
| 14414 | } |
| 14415 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14416 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14417 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14418 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14419 | }, |
| 14420 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14421 | { |
| 14422 | .vendor = "ST", |
| 14423 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14424 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14425 | .manufacture_id = ST_ID, |
| 14426 | .model_id = ST_M29W512B, |
| 14427 | .total_size = 64, |
| 14428 | .page_size = 64 * 1024, |
| 14429 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14430 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14431 | .probe = probe_jedec, |
| 14432 | .probe_timing = TIMING_ZERO, |
| 14433 | .block_erasers = |
| 14434 | { |
| 14435 | { |
| 14436 | .eraseblocks = { {64 * 1024, 1} }, |
| 14437 | .block_erase = erase_chip_block_jedec, |
| 14438 | } |
| 14439 | }, |
| 14440 | .write = write_jedec_1, |
| 14441 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14442 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14443 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 14444 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14445 | { |
| 14446 | .vendor = "ST", |
| 14447 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14448 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14449 | .manufacture_id = ST_ID, |
| 14450 | .model_id = ST_M50FLW040A, |
| 14451 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14452 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14453 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14454 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14455 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14456 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14457 | .block_erasers = |
| 14458 | { |
| 14459 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14460 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14461 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14462 | {64 * 1024, 5}, /* block */ |
| 14463 | {4 * 1024, 16}, /* sector */ |
| 14464 | {4 * 1024, 16}, /* sector */ |
| 14465 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14466 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14467 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14468 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14469 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14470 | } |
| 14471 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14472 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14473 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14474 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14475 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14476 | }, |
| 14477 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14478 | { |
| 14479 | .vendor = "ST", |
| 14480 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14481 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14482 | .manufacture_id = ST_ID, |
| 14483 | .model_id = ST_M50FLW040B, |
| 14484 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14485 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14486 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14487 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14488 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14489 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14490 | .block_erasers = |
| 14491 | { |
| 14492 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14493 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14494 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14495 | {4 * 1024, 16}, /* sector */ |
| 14496 | {64 * 1024, 5}, /* block */ |
| 14497 | {4 * 1024, 16}, /* sector */ |
| 14498 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14499 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14500 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14501 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14502 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14503 | } |
| 14504 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14505 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14506 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14507 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14508 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14509 | }, |
| 14510 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14511 | { |
| 14512 | .vendor = "ST", |
| 14513 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14514 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14515 | .manufacture_id = ST_ID, |
| 14516 | .model_id = ST_M50FLW080A, |
| 14517 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14518 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14519 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14520 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14521 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14522 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14523 | .block_erasers = |
| 14524 | { |
| 14525 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14526 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14527 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14528 | {64 * 1024, 13}, /* block */ |
| 14529 | {4 * 1024, 16}, /* sector */ |
| 14530 | {4 * 1024, 16}, /* sector */ |
| 14531 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14532 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14533 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14534 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14535 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14536 | } |
| 14537 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14538 | .printlock = printlock_regspace2_block_eraser_0, |
| 14539 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14540 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14541 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14542 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14543 | }, |
| 14544 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14545 | { |
| 14546 | .vendor = "ST", |
| 14547 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14548 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14549 | .manufacture_id = ST_ID, |
| 14550 | .model_id = ST_M50FLW080B, |
| 14551 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14552 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14553 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14554 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14555 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14556 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14557 | .block_erasers = |
| 14558 | { |
| 14559 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14560 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14561 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14562 | {4 * 1024, 16}, /* sector */ |
| 14563 | {64 * 1024, 13}, /* block */ |
| 14564 | {4 * 1024, 16}, /* sector */ |
| 14565 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14566 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14567 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14568 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14569 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14570 | } |
| 14571 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14572 | .printlock = printlock_regspace2_block_eraser_0, |
| 14573 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14574 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14575 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14576 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14577 | }, |
| 14578 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14579 | { |
| 14580 | .vendor = "ST", |
| 14581 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14582 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14583 | .manufacture_id = ST_ID, |
| 14584 | .model_id = ST_M50FW002, |
| 14585 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14586 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14587 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14588 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14589 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14590 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14591 | .block_erasers = |
| 14592 | { |
| 14593 | { |
| 14594 | .eraseblocks = { |
| 14595 | {64 * 1024, 3}, |
| 14596 | {32 * 1024, 1}, |
| 14597 | {8 * 1024, 2}, |
| 14598 | {16 * 1024, 1}, |
| 14599 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14600 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14601 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14602 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14603 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14604 | } |
| 14605 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14606 | .printlock = printlock_regspace2_block_eraser_0, |
| 14607 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14608 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14609 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14610 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14611 | }, |
| 14612 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14613 | { |
| 14614 | .vendor = "ST", |
| 14615 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14616 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14617 | .manufacture_id = ST_ID, |
| 14618 | .model_id = ST_M50FW016, |
| 14619 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14620 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14621 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14622 | .tested = TEST_UNTESTED, |
| 14623 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14624 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14625 | .block_erasers = |
| 14626 | { |
| 14627 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14628 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14629 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14630 | } |
| 14631 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14632 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14633 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14634 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14635 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14636 | }, |
| 14637 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14638 | { |
| 14639 | .vendor = "ST", |
| 14640 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14641 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14642 | .manufacture_id = ST_ID, |
| 14643 | .model_id = ST_M50FW040, |
| 14644 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14645 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14646 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14647 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14648 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14649 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14650 | .block_erasers = |
| 14651 | { |
| 14652 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14653 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14654 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14655 | } |
| 14656 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14657 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14658 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14659 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14660 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14661 | }, |
| 14662 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14663 | { |
| 14664 | .vendor = "ST", |
| 14665 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14666 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14667 | .manufacture_id = ST_ID, |
| 14668 | .model_id = ST_M50FW080, |
| 14669 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14670 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14671 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14672 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14673 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14674 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14675 | .block_erasers = |
| 14676 | { |
| 14677 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14678 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14679 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14680 | } |
| 14681 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14682 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14683 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14684 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14685 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14686 | }, |
| 14687 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14688 | { |
| 14689 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14690 | .name = "M50LPW080", |
| 14691 | .bustype = BUS_LPC, /* A/A Mux */ |
| 14692 | .manufacture_id = ST_ID, |
| 14693 | .model_id = ST_M50LPW080, |
| 14694 | .total_size = 1024, |
| 14695 | .page_size = 0, |
| 14696 | .feature_bits = FEATURE_REGISTERMAP, |
| 14697 | .tested = TEST_UNTESTED, |
| 14698 | .probe = probe_82802ab, |
| 14699 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14700 | .block_erasers = |
| 14701 | { |
| 14702 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14703 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14704 | .block_erase = erase_block_82802ab, |
| 14705 | } |
| 14706 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14707 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14708 | .write = write_82802ab, |
| 14709 | .read = read_memmapped, |
| 14710 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 14711 | }, |
| 14712 | |
| 14713 | { |
| 14714 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14715 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14716 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14717 | .manufacture_id = ST_ID, |
| 14718 | .model_id = ST_M50LPW116, |
| 14719 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14720 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14721 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14722 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14723 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14724 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14725 | .block_erasers = |
| 14726 | { |
| 14727 | { |
| 14728 | .eraseblocks = { |
| 14729 | {4 * 1024, 16}, |
| 14730 | {64 * 1024, 30}, |
| 14731 | {32 * 1024, 1}, |
| 14732 | {8 * 1024, 2}, |
| 14733 | {16 * 1024, 1}, |
| 14734 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14735 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14736 | } |
| 14737 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14738 | .printlock = printlock_regspace2_block_eraser_0, |
| 14739 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14740 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14741 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14742 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14743 | }, |
| 14744 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14745 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14746 | .vendor = "SyncMOS/MoselVitelic", |
| 14747 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14748 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14749 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14750 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14751 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14752 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14753 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14754 | .tested = TEST_UNTESTED, |
| 14755 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14756 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14757 | .block_erasers = |
| 14758 | { |
| 14759 | { |
| 14760 | .eraseblocks = { {512, 256} }, |
| 14761 | .block_erase = erase_sector_jedec, |
| 14762 | }, { |
| 14763 | .eraseblocks = { {128 * 1024, 1} }, |
| 14764 | .block_erase = erase_chip_block_jedec, |
| 14765 | }, |
| 14766 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14767 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14768 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14769 | .voltage = {4500, 5500}, |
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 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14773 | .vendor = "SyncMOS/MoselVitelic", |
| 14774 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14775 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14776 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14777 | .model_id = SM_MVC_29C51001T, |
| 14778 | .total_size = 128, |
| 14779 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14780 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14781 | .tested = TEST_UNTESTED, |
| 14782 | .probe = probe_jedec, |
| 14783 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14784 | .block_erasers = |
| 14785 | { |
| 14786 | { |
| 14787 | .eraseblocks = { {512, 256} }, |
| 14788 | .block_erase = erase_sector_jedec, |
| 14789 | }, { |
| 14790 | .eraseblocks = { {128 * 1024, 1} }, |
| 14791 | .block_erase = erase_chip_block_jedec, |
| 14792 | }, |
| 14793 | }, |
| 14794 | .write = write_jedec_1, |
| 14795 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14796 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14797 | }, |
| 14798 | |
| 14799 | { |
| 14800 | .vendor = "SyncMOS/MoselVitelic", |
| 14801 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14802 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14803 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14804 | .model_id = SM_MVC_29C51002B, |
| 14805 | .total_size = 256, |
| 14806 | .page_size = 512, |
| 14807 | .feature_bits = FEATURE_EITHER_RESET, |
| 14808 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14809 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14810 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14811 | .block_erasers = |
| 14812 | { |
| 14813 | { |
| 14814 | .eraseblocks = { {512, 512} }, |
| 14815 | .block_erase = erase_sector_jedec, |
| 14816 | }, { |
| 14817 | .eraseblocks = { {256 * 1024, 1} }, |
| 14818 | .block_erase = erase_chip_block_jedec, |
| 14819 | }, |
| 14820 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14821 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14822 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14823 | }, |
| 14824 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14825 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14826 | .vendor = "SyncMOS/MoselVitelic", |
| 14827 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14828 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14829 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14830 | .model_id = SM_MVC_29C51002T, |
| 14831 | .total_size = 256, |
| 14832 | .page_size = 512, |
| 14833 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14834 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14835 | .probe = probe_jedec, |
| 14836 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14837 | .block_erasers = |
| 14838 | { |
| 14839 | { |
| 14840 | .eraseblocks = { {512, 512} }, |
| 14841 | .block_erase = erase_sector_jedec, |
| 14842 | }, { |
| 14843 | .eraseblocks = { {256 * 1024, 1} }, |
| 14844 | .block_erase = erase_chip_block_jedec, |
| 14845 | }, |
| 14846 | }, |
| 14847 | .write = write_jedec_1, |
| 14848 | .read = read_memmapped, |
| 14849 | }, |
| 14850 | |
| 14851 | { |
| 14852 | .vendor = "SyncMOS/MoselVitelic", |
| 14853 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14854 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14855 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14856 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14857 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14858 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14859 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14860 | .tested = TEST_UNTESTED, |
| 14861 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14862 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14863 | .block_erasers = |
| 14864 | { |
| 14865 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14866 | .eraseblocks = { {1024, 512} }, |
| 14867 | .block_erase = erase_sector_jedec, |
| 14868 | }, { |
| 14869 | .eraseblocks = { {512 * 1024, 1} }, |
| 14870 | .block_erase = erase_chip_block_jedec, |
| 14871 | }, |
| 14872 | }, |
| 14873 | .write = write_jedec_1, |
| 14874 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14875 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14876 | }, |
| 14877 | |
| 14878 | { |
| 14879 | .vendor = "SyncMOS/MoselVitelic", |
| 14880 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14881 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14882 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14883 | .model_id = SM_MVC_29C51004T, |
| 14884 | .total_size = 512, |
| 14885 | .page_size = 1024, |
| 14886 | .feature_bits = FEATURE_EITHER_RESET, |
| 14887 | .tested = TEST_UNTESTED, |
| 14888 | .probe = probe_jedec, |
| 14889 | .probe_timing = TIMING_ZERO, |
| 14890 | .block_erasers = |
| 14891 | { |
| 14892 | { |
| 14893 | .eraseblocks = { {1024, 512} }, |
| 14894 | .block_erase = erase_sector_jedec, |
| 14895 | }, { |
| 14896 | .eraseblocks = { {512 * 1024, 1} }, |
| 14897 | .block_erase = erase_chip_block_jedec, |
| 14898 | }, |
| 14899 | }, |
| 14900 | .write = write_jedec_1, |
| 14901 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14902 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14903 | }, |
| 14904 | |
| 14905 | { |
| 14906 | .vendor = "SyncMOS/MoselVitelic", |
| 14907 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14908 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14909 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14910 | .model_id = SM_MVC_29C31004B, |
| 14911 | .total_size = 512, |
| 14912 | .page_size = 1024, |
| 14913 | .feature_bits = FEATURE_EITHER_RESET, |
| 14914 | .tested = TEST_UNTESTED, |
| 14915 | .probe = probe_jedec, |
| 14916 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14917 | .block_erasers = |
| 14918 | { |
| 14919 | { |
| 14920 | .eraseblocks = { {1024, 512} }, |
| 14921 | .block_erase = erase_sector_jedec, |
| 14922 | }, { |
| 14923 | .eraseblocks = { {512 * 1024, 1} }, |
| 14924 | .block_erase = erase_chip_block_jedec, |
| 14925 | }, |
| 14926 | }, |
| 14927 | .write = write_jedec_1, |
| 14928 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14929 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14930 | }, |
| 14931 | |
| 14932 | { |
| 14933 | .vendor = "SyncMOS/MoselVitelic", |
| 14934 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14935 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 14936 | .manufacture_id = SYNCMOS_MVC_ID, |
| 14937 | .model_id = SM_MVC_29C31004T, |
| 14938 | .total_size = 512, |
| 14939 | .page_size = 1024, |
| 14940 | .feature_bits = FEATURE_EITHER_RESET, |
| 14941 | .tested = TEST_UNTESTED, |
| 14942 | .probe = probe_jedec, |
| 14943 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14944 | .block_erasers = |
| 14945 | { |
| 14946 | { |
| 14947 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14948 | .block_erase = erase_sector_jedec, |
| 14949 | }, { |
| 14950 | .eraseblocks = { {512 * 1024, 1} }, |
| 14951 | .block_erase = erase_chip_block_jedec, |
| 14952 | }, |
| 14953 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14954 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14955 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14956 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14957 | }, |
| 14958 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14959 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 14960 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14961 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14962 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14963 | .manufacture_id = TI_OLD_ID, |
| 14964 | .model_id = TI_TMS29F002RB, |
| 14965 | .total_size = 256, |
| 14966 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14967 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14968 | .tested = TEST_UNTESTED, |
| 14969 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14970 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14971 | .block_erasers = |
| 14972 | { |
| 14973 | { |
| 14974 | .eraseblocks = { |
| 14975 | {16 * 1024, 1}, |
| 14976 | {8 * 1024, 2}, |
| 14977 | {32 * 1024, 1}, |
| 14978 | {64 * 1024, 3}, |
| 14979 | }, |
| 14980 | .block_erase = erase_sector_jedec, |
| 14981 | }, { |
| 14982 | .eraseblocks = { {256 * 1024, 1} }, |
| 14983 | .block_erase = erase_chip_block_jedec, |
| 14984 | }, |
| 14985 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14986 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14987 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14988 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14989 | }, |
| 14990 | |
| 14991 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 14992 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14993 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14994 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 14995 | .manufacture_id = TI_OLD_ID, |
| 14996 | .model_id = TI_TMS29F002RT, |
| 14997 | .total_size = 256, |
| 14998 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14999 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15000 | .tested = TEST_UNTESTED, |
| 15001 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15002 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15003 | .block_erasers = |
| 15004 | { |
| 15005 | { |
| 15006 | .eraseblocks = { |
| 15007 | {64 * 1024, 3}, |
| 15008 | {32 * 1024, 1}, |
| 15009 | {8 * 1024, 2}, |
| 15010 | {16 * 1024, 1}, |
| 15011 | }, |
| 15012 | .block_erase = erase_sector_jedec, |
| 15013 | }, { |
| 15014 | .eraseblocks = { {256 * 1024, 1} }, |
| 15015 | .block_erase = erase_chip_block_jedec, |
| 15016 | }, |
| 15017 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15018 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15019 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15020 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 15021 | }, |
| 15022 | |
| 15023 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15024 | .vendor = "Winbond", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 15025 | .name = "W25Q40.V", |
| 15026 | .bustype = BUS_SPI, |
| 15027 | .manufacture_id = WINBOND_NEX_ID, |
| 15028 | .model_id = WINBOND_NEX_W25Q40_V, |
| 15029 | .total_size = 512, |
| 15030 | .page_size = 256, |
| 15031 | /* supports SFDP */ |
| 15032 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15033 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 15034 | .tested = TEST_OK_PREW, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 15035 | .probe = probe_spi_rdid, |
| 15036 | .probe_timing = TIMING_ZERO, |
| 15037 | .block_erasers = |
| 15038 | { |
| 15039 | { |
| 15040 | .eraseblocks = { {4 * 1024, 128} }, |
| 15041 | .block_erase = spi_block_erase_20, |
| 15042 | }, { |
| 15043 | .eraseblocks = { {32 * 1024, 16} }, |
| 15044 | .block_erase = spi_block_erase_52, |
| 15045 | }, { |
| 15046 | .eraseblocks = { {64 * 1024, 8} }, |
| 15047 | .block_erase = spi_block_erase_d8, |
| 15048 | }, { |
| 15049 | .eraseblocks = { {512 * 1024, 1} }, |
| 15050 | .block_erase = spi_block_erase_60, |
| 15051 | }, { |
| 15052 | .eraseblocks = { {512 * 1024, 1} }, |
| 15053 | .block_erase = spi_block_erase_c7, |
| 15054 | } |
| 15055 | }, |
| 15056 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15057 | .unlock = spi_disable_blockprotect, |
| 15058 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15059 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15060 | .voltage = {2700, 3600}, |
| 15061 | }, |
| 15062 | |
| 15063 | { |
| 15064 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15065 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15066 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15067 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15068 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15069 | .total_size = 1024, |
| 15070 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15071 | /* supports SFDP */ |
| 15072 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 15073 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 15074 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15075 | .probe = probe_spi_rdid, |
| 15076 | .probe_timing = TIMING_ZERO, |
| 15077 | .block_erasers = |
| 15078 | { |
| 15079 | { |
| 15080 | .eraseblocks = { {4 * 1024, 256} }, |
| 15081 | .block_erase = spi_block_erase_20, |
| 15082 | }, { |
| 15083 | .eraseblocks = { {32 * 1024, 32} }, |
| 15084 | .block_erase = spi_block_erase_52, |
| 15085 | }, { |
| 15086 | .eraseblocks = { {64 * 1024, 16} }, |
| 15087 | .block_erase = spi_block_erase_d8, |
| 15088 | }, { |
| 15089 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15090 | .block_erase = spi_block_erase_60, |
| 15091 | }, { |
| 15092 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15093 | .block_erase = spi_block_erase_c7, |
| 15094 | } |
| 15095 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15096 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15097 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15098 | .write = spi_chip_write_256, |
| 15099 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15100 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15101 | }, |
| 15102 | |
| 15103 | { |
| 15104 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15105 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15106 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15107 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15108 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15109 | .total_size = 2048, |
| 15110 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15111 | /* supports SFDP */ |
| 15112 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 15113 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 15114 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15115 | .probe = probe_spi_rdid, |
| 15116 | .probe_timing = TIMING_ZERO, |
| 15117 | .block_erasers = |
| 15118 | { |
| 15119 | { |
| 15120 | .eraseblocks = { {4 * 1024, 512} }, |
| 15121 | .block_erase = spi_block_erase_20, |
| 15122 | }, { |
| 15123 | .eraseblocks = { {32 * 1024, 64} }, |
| 15124 | .block_erase = spi_block_erase_52, |
| 15125 | }, { |
| 15126 | .eraseblocks = { {64 * 1024, 32} }, |
| 15127 | .block_erase = spi_block_erase_d8, |
| 15128 | }, { |
| 15129 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15130 | .block_erase = spi_block_erase_60, |
| 15131 | }, { |
| 15132 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15133 | .block_erase = spi_block_erase_c7, |
| 15134 | } |
| 15135 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15136 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15137 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15138 | .write = spi_chip_write_256, |
| 15139 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15140 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15141 | }, |
| 15142 | |
| 15143 | { |
| 15144 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15145 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15146 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15147 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15148 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15149 | .total_size = 4096, |
| 15150 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15151 | /* supports SFDP */ |
| 15152 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 15153 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 15154 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15155 | .probe = probe_spi_rdid, |
| 15156 | .probe_timing = TIMING_ZERO, |
| 15157 | .block_erasers = |
| 15158 | { |
| 15159 | { |
| 15160 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15161 | .block_erase = spi_block_erase_20, |
| 15162 | }, { |
| 15163 | .eraseblocks = { {32 * 1024, 128} }, |
| 15164 | .block_erase = spi_block_erase_52, |
| 15165 | }, { |
| 15166 | .eraseblocks = { {64 * 1024, 64} }, |
| 15167 | .block_erase = spi_block_erase_d8, |
| 15168 | }, { |
| 15169 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15170 | .block_erase = spi_block_erase_60, |
| 15171 | }, { |
| 15172 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15173 | .block_erase = spi_block_erase_c7, |
| 15174 | } |
| 15175 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15176 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15177 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15178 | .write = spi_chip_write_256, |
| 15179 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15180 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 15181 | }, |
| 15182 | |
| 15183 | { |
| 15184 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15185 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15186 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 15187 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15188 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 15189 | .total_size = 8192, |
| 15190 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15191 | /* supports SFDP */ |
| 15192 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 15193 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 15194 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 15195 | .probe = probe_spi_rdid, |
| 15196 | .probe_timing = TIMING_ZERO, |
| 15197 | .block_erasers = |
| 15198 | { |
| 15199 | { |
| 15200 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15201 | .block_erase = spi_block_erase_20, |
| 15202 | }, { |
| 15203 | .eraseblocks = { {32 * 1024, 256} }, |
| 15204 | .block_erase = spi_block_erase_52, |
| 15205 | }, { |
| 15206 | .eraseblocks = { {64 * 1024, 128} }, |
| 15207 | .block_erase = spi_block_erase_d8, |
| 15208 | }, { |
| 15209 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15210 | .block_erase = spi_block_erase_60, |
| 15211 | }, { |
| 15212 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15213 | .block_erase = spi_block_erase_c7, |
| 15214 | } |
| 15215 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15216 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15217 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 15218 | .write = spi_chip_write_256, |
| 15219 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15220 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 15221 | }, |
| 15222 | |
| 15223 | { |
| 15224 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15225 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15226 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15227 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15228 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15229 | .total_size = 16384, |
| 15230 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15231 | /* supports SFDP */ |
| 15232 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 15233 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15234 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15235 | .probe = probe_spi_rdid, |
| 15236 | .probe_timing = TIMING_ZERO, |
| 15237 | .block_erasers = |
| 15238 | { |
| 15239 | { |
| 15240 | .eraseblocks = { {4 * 1024, 4096} }, |
| 15241 | .block_erase = spi_block_erase_20, |
| 15242 | }, { |
| 15243 | .eraseblocks = { {32 * 1024, 512} }, |
| 15244 | .block_erase = spi_block_erase_52, |
| 15245 | }, { |
| 15246 | .eraseblocks = { {64 * 1024, 256} }, |
| 15247 | .block_erase = spi_block_erase_d8, |
| 15248 | }, { |
| 15249 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15250 | .block_erase = spi_block_erase_60, |
| 15251 | }, { |
| 15252 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15253 | .block_erase = spi_block_erase_c7, |
| 15254 | } |
| 15255 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15256 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15257 | .unlock = spi_disable_blockprotect, |
| 15258 | .write = spi_chip_write_256, |
| 15259 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15260 | .voltage = {2700, 3600}, |
| 15261 | }, |
| 15262 | |
| 15263 | { |
| 15264 | .vendor = "Winbond", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 15265 | .name = "W25Q256.V", |
| 15266 | .bustype = BUS_SPI, |
| 15267 | .manufacture_id = WINBOND_NEX_ID, |
| 15268 | .model_id = WINBOND_NEX_W25Q256_V, |
| 15269 | .total_size = 32768, |
| 15270 | .page_size = 256, |
| 15271 | /* supports SFDP */ |
| 15272 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15273 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 15274 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 15275 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 15276 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 15277 | .probe = probe_spi_rdid, |
| 15278 | .probe_timing = TIMING_ZERO, |
| 15279 | .block_erasers = |
| 15280 | { |
| 15281 | { |
| 15282 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 15283 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 15284 | }, { |
| 15285 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 15286 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 15287 | }, { |
| 15288 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 15289 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 15290 | }, { |
| 15291 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 15292 | .block_erase = spi_block_erase_60, |
| 15293 | }, { |
| 15294 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 15295 | .block_erase = spi_block_erase_c7, |
| 15296 | } |
| 15297 | }, |
| 15298 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15299 | .unlock = spi_disable_blockprotect, |
| 15300 | .write = spi_chip_write_256, |
| 15301 | .read = spi_chip_read, |
| 15302 | .voltage = {2700, 3600}, |
| 15303 | }, |
| 15304 | |
| 15305 | { |
| 15306 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15307 | .name = "W25Q20.W", |
| 15308 | .bustype = BUS_SPI, |
| 15309 | .manufacture_id = WINBOND_NEX_ID, |
| 15310 | .model_id = WINBOND_NEX_W25Q20_W, |
| 15311 | .total_size = 256, |
| 15312 | .page_size = 256, |
| 15313 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15314 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15315 | .tested = TEST_UNTESTED, |
| 15316 | .probe = probe_spi_rdid, |
| 15317 | .probe_timing = TIMING_ZERO, |
| 15318 | .block_erasers = |
| 15319 | { |
| 15320 | { |
| 15321 | .eraseblocks = { {4 * 1024, 64} }, |
| 15322 | .block_erase = spi_block_erase_20, |
| 15323 | }, { |
| 15324 | .eraseblocks = { {32 * 1024, 8} }, |
| 15325 | .block_erase = spi_block_erase_52, |
| 15326 | }, { |
| 15327 | .eraseblocks = { {64 * 1024, 4} }, |
| 15328 | .block_erase = spi_block_erase_d8, |
| 15329 | }, { |
| 15330 | .eraseblocks = { {256 * 1024, 1} }, |
| 15331 | .block_erase = spi_block_erase_60, |
| 15332 | }, { |
| 15333 | .eraseblocks = { {256 * 1024, 1} }, |
| 15334 | .block_erase = spi_block_erase_c7, |
| 15335 | } |
| 15336 | }, |
| 15337 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15338 | .unlock = spi_disable_blockprotect, |
| 15339 | .write = spi_chip_write_256, |
| 15340 | .read = spi_chip_read, |
| 15341 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15342 | }, |
| 15343 | |
| 15344 | { |
| 15345 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 15346 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15347 | .bustype = BUS_SPI, |
| 15348 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 15349 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15350 | .total_size = 512, |
| 15351 | .page_size = 256, |
| 15352 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15353 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15354 | .tested = TEST_UNTESTED, |
| 15355 | .probe = probe_spi_rdid, |
| 15356 | .probe_timing = TIMING_ZERO, |
| 15357 | .block_erasers = |
| 15358 | { |
| 15359 | { |
| 15360 | .eraseblocks = { {4 * 1024, 128} }, |
| 15361 | .block_erase = spi_block_erase_20, |
| 15362 | }, { |
| 15363 | .eraseblocks = { {32 * 1024, 16} }, |
| 15364 | .block_erase = spi_block_erase_52, |
| 15365 | }, { |
| 15366 | .eraseblocks = { {64 * 1024, 8} }, |
| 15367 | .block_erase = spi_block_erase_d8, |
| 15368 | }, { |
| 15369 | .eraseblocks = { {512 * 1024, 1} }, |
| 15370 | .block_erase = spi_block_erase_60, |
| 15371 | }, { |
| 15372 | .eraseblocks = { {512 * 1024, 1} }, |
| 15373 | .block_erase = spi_block_erase_c7, |
| 15374 | } |
| 15375 | }, |
| 15376 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15377 | .unlock = spi_disable_blockprotect, |
| 15378 | .write = spi_chip_write_256, |
| 15379 | .read = spi_chip_read, |
| 15380 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15381 | }, |
| 15382 | |
| 15383 | { |
| 15384 | .vendor = "Winbond", |
David Hendricks | c699f5c | 2018-03-11 17:29:49 -0700 | [diff] [blame] | 15385 | .name = "W25Q80BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15386 | .bustype = BUS_SPI, |
| 15387 | .manufacture_id = WINBOND_NEX_ID, |
David Hendricks | c699f5c | 2018-03-11 17:29:49 -0700 | [diff] [blame] | 15388 | .model_id = WINBOND_NEX_W25Q80BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15389 | .total_size = 1024, |
| 15390 | .page_size = 256, |
| 15391 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15392 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15393 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15394 | .probe = probe_spi_rdid, |
| 15395 | .probe_timing = TIMING_ZERO, |
| 15396 | .block_erasers = |
| 15397 | { |
| 15398 | { |
| 15399 | .eraseblocks = { {4 * 1024, 256} }, |
| 15400 | .block_erase = spi_block_erase_20, |
| 15401 | }, { |
| 15402 | .eraseblocks = { {32 * 1024, 32} }, |
| 15403 | .block_erase = spi_block_erase_52, |
| 15404 | }, { |
| 15405 | .eraseblocks = { {64 * 1024, 16} }, |
| 15406 | .block_erase = spi_block_erase_d8, |
| 15407 | }, { |
| 15408 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 15409 | .block_erase = spi_block_erase_60, |
| 15410 | }, { |
| 15411 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 15412 | .block_erase = spi_block_erase_c7, |
| 15413 | } |
| 15414 | }, |
| 15415 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15416 | .unlock = spi_disable_blockprotect, |
| 15417 | .write = spi_chip_write_256, |
| 15418 | .read = spi_chip_read, |
| 15419 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15420 | }, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 15421 | |
| 15422 | { |
| 15423 | .vendor = "Winbond", |
| 15424 | .name = "W25Q40EW", |
| 15425 | .bustype = BUS_SPI, |
| 15426 | .manufacture_id = WINBOND_NEX_ID, |
| 15427 | .model_id = WINBOND_NEX_W25Q40EW, |
| 15428 | .total_size = 512, |
| 15429 | .page_size = 256, |
| 15430 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15431 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15432 | .tested = TEST_UNTESTED, |
| 15433 | .probe = probe_spi_rdid, |
| 15434 | .probe_timing = TIMING_ZERO, |
| 15435 | .block_erasers = |
| 15436 | { |
| 15437 | { |
| 15438 | .eraseblocks = { {4 * 1024, 128} }, |
| 15439 | .block_erase = spi_block_erase_20, |
| 15440 | }, { |
| 15441 | .eraseblocks = { {32 * 1024, 16} }, |
| 15442 | .block_erase = spi_block_erase_52, |
| 15443 | }, { |
| 15444 | .eraseblocks = { {64 * 1024, 8} }, |
| 15445 | .block_erase = spi_block_erase_d8, |
| 15446 | }, { |
| 15447 | .eraseblocks = { {512 * 1024, 1} }, |
| 15448 | .block_erase = spi_block_erase_60, |
| 15449 | }, { |
| 15450 | .eraseblocks = { {512 * 1024, 1} }, |
| 15451 | .block_erase = spi_block_erase_c7, |
| 15452 | } |
| 15453 | }, |
| 15454 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15455 | .unlock = spi_disable_blockprotect, |
| 15456 | .write = spi_chip_write_256, |
| 15457 | .read = spi_chip_read, |
| 15458 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15459 | }, |
| 15460 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 15461 | { |
| 15462 | .vendor = "Winbond", |
| 15463 | .name = "W25Q80EW", |
| 15464 | .bustype = BUS_SPI, |
| 15465 | .manufacture_id = WINBOND_NEX_ID, |
| 15466 | .model_id = WINBOND_NEX_W25Q80EW, |
| 15467 | .total_size = 1024, |
| 15468 | .page_size = 256, |
| 15469 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15470 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15471 | .tested = TEST_OK_PREW, |
| 15472 | .probe = probe_spi_rdid, |
| 15473 | .probe_timing = TIMING_ZERO, |
| 15474 | .block_erasers = |
| 15475 | { |
| 15476 | { |
| 15477 | .eraseblocks = { {4 * 1024, 256} }, |
| 15478 | .block_erase = spi_block_erase_20, |
| 15479 | }, { |
| 15480 | .eraseblocks = { {32 * 1024, 32} }, |
| 15481 | .block_erase = spi_block_erase_52, |
| 15482 | }, { |
| 15483 | .eraseblocks = { {64 * 1024, 16} }, |
| 15484 | .block_erase = spi_block_erase_d8, |
| 15485 | }, { |
| 15486 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 15487 | .block_erase = spi_block_erase_60, |
| 15488 | }, { |
| 15489 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 15490 | .block_erase = spi_block_erase_c7, |
| 15491 | } |
| 15492 | }, |
| 15493 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15494 | .unlock = spi_disable_blockprotect, |
| 15495 | .write = spi_chip_write_256, |
| 15496 | .read = spi_chip_read, |
| 15497 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15498 | }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15499 | |
| 15500 | { |
| 15501 | .vendor = "Winbond", |
| 15502 | .name = "W25Q16.W", |
| 15503 | .bustype = BUS_SPI, |
| 15504 | .manufacture_id = WINBOND_NEX_ID, |
| 15505 | .model_id = WINBOND_NEX_W25Q16_W, |
| 15506 | .total_size = 2048, |
| 15507 | .page_size = 256, |
| 15508 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15509 | /* QPI enable 0x38, disable 0xFF */ |
| 15510 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15511 | .tested = TEST_UNTESTED, |
| 15512 | .probe = probe_spi_rdid, |
| 15513 | .probe_timing = TIMING_ZERO, |
| 15514 | .block_erasers = |
| 15515 | { |
| 15516 | { |
| 15517 | .eraseblocks = { {4 * 1024, 512} }, |
| 15518 | .block_erase = spi_block_erase_20, |
| 15519 | }, { |
| 15520 | .eraseblocks = { {32 * 1024, 64} }, |
| 15521 | .block_erase = spi_block_erase_52, |
| 15522 | }, { |
| 15523 | .eraseblocks = { {64 * 1024, 32} }, |
| 15524 | .block_erase = spi_block_erase_d8, |
| 15525 | }, { |
| 15526 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15527 | .block_erase = spi_block_erase_60, |
| 15528 | }, { |
| 15529 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15530 | .block_erase = spi_block_erase_c7, |
| 15531 | } |
| 15532 | }, |
| 15533 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15534 | .unlock = spi_disable_blockprotect, |
| 15535 | .write = spi_chip_write_256, |
| 15536 | .read = spi_chip_read, |
| 15537 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15538 | }, |
| 15539 | |
| 15540 | { |
| 15541 | .vendor = "Winbond", |
| 15542 | .name = "W25Q32.W", |
| 15543 | .bustype = BUS_SPI, |
| 15544 | .manufacture_id = WINBOND_NEX_ID, |
| 15545 | .model_id = WINBOND_NEX_W25Q32_W, |
| 15546 | .total_size = 4096, |
| 15547 | .page_size = 256, |
| 15548 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15549 | /* QPI enable 0x38, disable 0xFF */ |
| 15550 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 15551 | .tested = TEST_OK_PREW, |
| 15552 | .probe = probe_spi_rdid, |
| 15553 | .probe_timing = TIMING_ZERO, |
| 15554 | .block_erasers = |
| 15555 | { |
| 15556 | { |
| 15557 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15558 | .block_erase = spi_block_erase_20, |
| 15559 | }, { |
| 15560 | .eraseblocks = { {32 * 1024, 128} }, |
| 15561 | .block_erase = spi_block_erase_52, |
| 15562 | }, { |
| 15563 | .eraseblocks = { {64 * 1024, 64} }, |
| 15564 | .block_erase = spi_block_erase_d8, |
| 15565 | }, { |
| 15566 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15567 | .block_erase = spi_block_erase_60, |
| 15568 | }, { |
| 15569 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15570 | .block_erase = spi_block_erase_c7, |
| 15571 | } |
| 15572 | }, |
| 15573 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15574 | .unlock = spi_disable_blockprotect, |
| 15575 | .write = spi_chip_write_256, |
| 15576 | .read = spi_chip_read, |
| 15577 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 15578 | }, |
| 15579 | |
| 15580 | { |
| 15581 | .vendor = "Winbond", |
| 15582 | .name = "W25Q64.W", |
| 15583 | .bustype = BUS_SPI, |
| 15584 | .manufacture_id = WINBOND_NEX_ID, |
| 15585 | .model_id = WINBOND_NEX_W25Q64_W, |
| 15586 | .total_size = 8192, |
| 15587 | .page_size = 256, |
| 15588 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15589 | /* QPI enable 0x38, disable 0xFF */ |
| 15590 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15591 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 15592 | .probe = probe_spi_rdid, |
| 15593 | .probe_timing = TIMING_ZERO, |
| 15594 | .block_erasers = |
| 15595 | { |
| 15596 | { |
| 15597 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15598 | .block_erase = spi_block_erase_20, |
| 15599 | }, { |
| 15600 | .eraseblocks = { {32 * 1024, 256} }, |
| 15601 | .block_erase = spi_block_erase_52, |
| 15602 | }, { |
| 15603 | .eraseblocks = { {64 * 1024, 128} }, |
| 15604 | .block_erase = spi_block_erase_d8, |
| 15605 | }, { |
| 15606 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15607 | .block_erase = spi_block_erase_60, |
| 15608 | }, { |
| 15609 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15610 | .block_erase = spi_block_erase_c7, |
| 15611 | } |
| 15612 | }, |
| 15613 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15614 | .unlock = spi_disable_blockprotect, |
| 15615 | .write = spi_chip_write_256, |
| 15616 | .read = spi_chip_read, |
| 15617 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15618 | }, |
| 15619 | |
| 15620 | { |
| 15621 | .vendor = "Winbond", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 15622 | .name = "W25Q128.W", |
| 15623 | .bustype = BUS_SPI, |
| 15624 | .manufacture_id = WINBOND_NEX_ID, |
| 15625 | .model_id = WINBOND_NEX_W25Q128_W, |
| 15626 | .total_size = 16384, |
| 15627 | .page_size = 256, |
| 15628 | /* supports SFDP */ |
| 15629 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 15630 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 15631 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 15632 | .probe = probe_spi_rdid, |
| 15633 | .probe_timing = TIMING_ZERO, |
| 15634 | .block_erasers = |
| 15635 | { |
| 15636 | { |
| 15637 | .eraseblocks = { {4 * 1024, 4096} }, |
| 15638 | .block_erase = spi_block_erase_20, |
| 15639 | }, { |
| 15640 | .eraseblocks = { {32 * 1024, 512} }, |
| 15641 | .block_erase = spi_block_erase_52, |
| 15642 | }, { |
| 15643 | .eraseblocks = { {64 * 1024, 256} }, |
| 15644 | .block_erase = spi_block_erase_d8, |
| 15645 | }, { |
| 15646 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15647 | .block_erase = spi_block_erase_60, |
| 15648 | }, { |
| 15649 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 15650 | .block_erase = spi_block_erase_c7, |
| 15651 | } |
| 15652 | }, |
| 15653 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15654 | .unlock = spi_disable_blockprotect, |
| 15655 | .write = spi_chip_write_256, |
| 15656 | .read = spi_chip_read, |
| 15657 | .voltage = {1650, 1950}, |
| 15658 | }, |
| 15659 | |
| 15660 | { |
| 15661 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15662 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15663 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15664 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15665 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15666 | .total_size = 128, |
| 15667 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15668 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 15669 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15670 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15671 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15672 | .block_erasers = |
| 15673 | { |
| 15674 | { |
| 15675 | .eraseblocks = { {4 * 1024, 32} }, |
| 15676 | .block_erase = spi_block_erase_20, |
| 15677 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15678 | .eraseblocks = { {64 * 1024, 2} }, |
| 15679 | .block_erase = spi_block_erase_d8, |
| 15680 | }, { |
| 15681 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15682 | .block_erase = spi_block_erase_c7, |
| 15683 | } |
| 15684 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15685 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15686 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15687 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15688 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15689 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15690 | }, |
| 15691 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15692 | { |
| 15693 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15694 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15695 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15696 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15697 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15698 | .total_size = 256, |
| 15699 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15700 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15701 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15702 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15703 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15704 | .block_erasers = |
| 15705 | { |
| 15706 | { |
| 15707 | .eraseblocks = { {4 * 1024, 64} }, |
| 15708 | .block_erase = spi_block_erase_20, |
| 15709 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15710 | .eraseblocks = { {64 * 1024, 4} }, |
| 15711 | .block_erase = spi_block_erase_d8, |
| 15712 | }, { |
| 15713 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15714 | .block_erase = spi_block_erase_c7, |
| 15715 | } |
| 15716 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15717 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15718 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15719 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15720 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15721 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15722 | }, |
| 15723 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15724 | { |
| 15725 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15726 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15727 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15728 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15729 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15730 | .total_size = 512, |
| 15731 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15732 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 15733 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15734 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15735 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15736 | .block_erasers = |
| 15737 | { |
| 15738 | { |
| 15739 | .eraseblocks = { {4 * 1024, 128} }, |
| 15740 | .block_erase = spi_block_erase_20, |
| 15741 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15742 | .eraseblocks = { {64 * 1024, 8} }, |
| 15743 | .block_erase = spi_block_erase_d8, |
| 15744 | }, { |
| 15745 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15746 | .block_erase = spi_block_erase_c7, |
| 15747 | } |
| 15748 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15749 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15750 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15751 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15752 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15753 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15754 | }, |
| 15755 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15756 | { |
| 15757 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15758 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15759 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15760 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15761 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15762 | .total_size = 1024, |
| 15763 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15764 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 15765 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15766 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15767 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15768 | .block_erasers = |
| 15769 | { |
| 15770 | { |
| 15771 | .eraseblocks = { {4 * 1024, 256} }, |
| 15772 | .block_erase = spi_block_erase_20, |
| 15773 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15774 | .eraseblocks = { {64 * 1024, 16} }, |
| 15775 | .block_erase = spi_block_erase_d8, |
| 15776 | }, { |
| 15777 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15778 | .block_erase = spi_block_erase_c7, |
| 15779 | } |
| 15780 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15781 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15782 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 15783 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15784 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15785 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15786 | }, |
| 15787 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15788 | { |
| 15789 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15790 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15791 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15792 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15793 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15794 | .total_size = 2048, |
| 15795 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15796 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 15797 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15798 | .probe = probe_spi_rdid, |
| 15799 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15800 | .block_erasers = |
| 15801 | { |
| 15802 | { |
| 15803 | .eraseblocks = { {4 * 1024, 512} }, |
| 15804 | .block_erase = spi_block_erase_20, |
| 15805 | }, { |
| 15806 | .eraseblocks = { {32 * 1024, 64} }, |
| 15807 | .block_erase = spi_block_erase_52, |
| 15808 | }, { |
| 15809 | .eraseblocks = { {64 * 1024, 32} }, |
| 15810 | .block_erase = spi_block_erase_d8, |
| 15811 | }, { |
| 15812 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15813 | .block_erase = spi_block_erase_60, |
| 15814 | }, { |
| 15815 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15816 | .block_erase = spi_block_erase_c7, |
| 15817 | } |
| 15818 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15819 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15820 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15821 | .write = spi_chip_write_256, |
| 15822 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15823 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 15824 | }, |
| 15825 | |
| 15826 | { |
| 15827 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15828 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15829 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15830 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15831 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15832 | .total_size = 4096, |
| 15833 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15834 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 15835 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15836 | .probe = probe_spi_rdid, |
| 15837 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15838 | .block_erasers = |
| 15839 | { |
| 15840 | { |
| 15841 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15842 | .block_erase = spi_block_erase_20, |
| 15843 | }, { |
| 15844 | .eraseblocks = { {32 * 1024, 128} }, |
| 15845 | .block_erase = spi_block_erase_52, |
| 15846 | }, { |
| 15847 | .eraseblocks = { {64 * 1024, 64} }, |
| 15848 | .block_erase = spi_block_erase_d8, |
| 15849 | }, { |
| 15850 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15851 | .block_erase = spi_block_erase_60, |
| 15852 | }, { |
| 15853 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15854 | .block_erase = spi_block_erase_c7, |
| 15855 | } |
| 15856 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15857 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15858 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15859 | .write = spi_chip_write_256, |
| 15860 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15861 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15862 | }, |
| 15863 | |
| 15864 | { |
| 15865 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15866 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15867 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15868 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15869 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15870 | .total_size = 8192, |
| 15871 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 15872 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15873 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15874 | .probe = probe_spi_rdid, |
| 15875 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15876 | .block_erasers = |
| 15877 | { |
| 15878 | { |
| 15879 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15880 | .block_erase = spi_block_erase_20, |
| 15881 | }, { |
| 15882 | .eraseblocks = { {32 * 1024, 256} }, |
| 15883 | .block_erase = spi_block_erase_52, |
| 15884 | }, { |
| 15885 | .eraseblocks = { {64 * 1024, 128} }, |
| 15886 | .block_erase = spi_block_erase_d8, |
| 15887 | }, { |
| 15888 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15889 | .block_erase = spi_block_erase_60, |
| 15890 | }, { |
| 15891 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15892 | .block_erase = spi_block_erase_c7, |
| 15893 | } |
| 15894 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 15895 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 15896 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15897 | .write = spi_chip_write_256, |
| 15898 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15899 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15900 | }, |
| 15901 | |
| 15902 | { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 15903 | .vendor = "Winbond", |
| 15904 | .name = "W25P80", |
| 15905 | .bustype = BUS_SPI, |
| 15906 | .manufacture_id = WINBOND_NEX_ID, |
| 15907 | .model_id = WINBOND_NEX_W25P80, |
| 15908 | .total_size = 1024, |
| 15909 | .page_size = 256, |
| 15910 | .feature_bits = FEATURE_WRSR_WREN, |
| 15911 | .tested = TEST_UNTESTED, |
| 15912 | .probe = probe_spi_rdid, |
| 15913 | .probe_timing = TIMING_ZERO, |
| 15914 | .block_erasers = |
| 15915 | { |
| 15916 | { |
| 15917 | .eraseblocks = { {64 * 1024, 16} }, |
| 15918 | .block_erase = spi_block_erase_d8, |
| 15919 | }, { |
| 15920 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15921 | .block_erase = spi_block_erase_c7, |
| 15922 | } |
| 15923 | }, |
| 15924 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15925 | .unlock = spi_disable_blockprotect, |
| 15926 | .write = spi_chip_write_256, |
| 15927 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15928 | .voltage = {2700, 3600}, |
| 15929 | }, |
| 15930 | |
| 15931 | { |
| 15932 | .vendor = "Winbond", |
| 15933 | .name = "W25P16", |
| 15934 | .bustype = BUS_SPI, |
| 15935 | .manufacture_id = WINBOND_NEX_ID, |
| 15936 | .model_id = WINBOND_NEX_W25P16, |
| 15937 | .total_size = 2048, |
| 15938 | .page_size = 256, |
| 15939 | .feature_bits = FEATURE_WRSR_WREN, |
| 15940 | .tested = TEST_UNTESTED, |
| 15941 | .probe = probe_spi_rdid, |
| 15942 | .probe_timing = TIMING_ZERO, |
| 15943 | .block_erasers = |
| 15944 | { |
| 15945 | { |
| 15946 | .eraseblocks = { {64 * 1024, 32} }, |
| 15947 | .block_erase = spi_block_erase_d8, |
| 15948 | }, { |
| 15949 | .eraseblocks = { {2048 * 1024, 1} }, |
| 15950 | .block_erase = spi_block_erase_c7, |
| 15951 | } |
| 15952 | }, |
| 15953 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15954 | .unlock = spi_disable_blockprotect, |
| 15955 | .write = spi_chip_write_256, |
| 15956 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15957 | .voltage = {2700, 3600}, |
| 15958 | }, |
| 15959 | |
| 15960 | { |
| 15961 | .vendor = "Winbond", |
| 15962 | .name = "W25P32", |
| 15963 | .bustype = BUS_SPI, |
| 15964 | .manufacture_id = WINBOND_NEX_ID, |
| 15965 | .model_id = WINBOND_NEX_W25P32, |
| 15966 | .total_size = 4096, |
| 15967 | .page_size = 256, |
| 15968 | .feature_bits = FEATURE_WRSR_WREN, |
| 15969 | .tested = TEST_UNTESTED, |
| 15970 | .probe = probe_spi_rdid, |
| 15971 | .probe_timing = TIMING_ZERO, |
| 15972 | .block_erasers = |
| 15973 | { |
| 15974 | { |
| 15975 | .eraseblocks = { {64 * 1024, 64} }, |
| 15976 | .block_erase = spi_block_erase_d8, |
| 15977 | }, { |
| 15978 | .eraseblocks = { {4096 * 1024, 1} }, |
| 15979 | .block_erase = spi_block_erase_c7, |
| 15980 | } |
| 15981 | }, |
| 15982 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15983 | .unlock = spi_disable_blockprotect, |
| 15984 | .write = spi_chip_write_256, |
| 15985 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15986 | .voltage = {2700, 3600}, |
| 15987 | }, |
| 15988 | { |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 15989 | .vendor = "Winbond", |
Urja Rannikko | 2a1aaba | 2015-06-20 11:53:10 +0000 | [diff] [blame] | 15990 | .name = "W29C512A/W29EE512", |
| 15991 | .bustype = BUS_PARALLEL, |
| 15992 | .manufacture_id = WINBOND_ID, |
| 15993 | .model_id = WINBOND_W29C512A, |
| 15994 | .total_size = 64, |
| 15995 | .page_size = 128, |
| 15996 | .feature_bits = FEATURE_LONG_RESET, |
| 15997 | .tested = TEST_OK_PREW, |
| 15998 | .probe = probe_jedec, |
| 15999 | .probe_timing = 10, |
| 16000 | .block_erasers = |
| 16001 | { |
| 16002 | { |
| 16003 | .eraseblocks = { {64 * 1024, 1} }, |
| 16004 | .block_erase = erase_chip_block_jedec, |
| 16005 | } |
| 16006 | }, |
| 16007 | .write = write_jedec, |
| 16008 | .read = read_memmapped, |
| 16009 | .voltage = {4500, 5500}, |
| 16010 | }, |
| 16011 | |
| 16012 | { |
| 16013 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 16014 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16015 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 16016 | .manufacture_id = WINBOND_ID, |
| 16017 | .model_id = WINBOND_W29C010, |
| 16018 | .total_size = 128, |
| 16019 | .page_size = 128, |
| 16020 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 16021 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 16022 | .probe = probe_w29ee011, |
| 16023 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 16024 | .block_erasers = |
| 16025 | { |
| 16026 | { |
| 16027 | .eraseblocks = { {128 * 1024, 1} }, |
| 16028 | .block_erase = erase_chip_block_jedec, |
| 16029 | } |
| 16030 | }, |
| 16031 | .write = write_jedec, |
| 16032 | .read = read_memmapped, |
| 16033 | }, |
| 16034 | |
| 16035 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 16036 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16037 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16038 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16039 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16040 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16041 | .total_size = 128, |
| 16042 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16043 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 16044 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16045 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16046 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16047 | .block_erasers = |
| 16048 | { |
| 16049 | { |
| 16050 | .eraseblocks = { {128 * 1024, 1} }, |
| 16051 | .block_erase = erase_chip_block_jedec, |
| 16052 | } |
| 16053 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16054 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16055 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16056 | }, |
| 16057 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16058 | { |
| 16059 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16060 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16061 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16062 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16063 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16064 | .total_size = 256, |
| 16065 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16066 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16067 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16068 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16069 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16070 | .block_erasers = |
| 16071 | { |
| 16072 | { |
| 16073 | .eraseblocks = { {256 * 1024, 1} }, |
| 16074 | .block_erase = erase_chip_block_jedec, |
| 16075 | } |
| 16076 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16077 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16078 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16079 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16080 | }, |
| 16081 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16082 | { |
| 16083 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16084 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16085 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16086 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16087 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16088 | .total_size = 512, |
| 16089 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16090 | .feature_bits = FEATURE_LONG_RESET, |
| 16091 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16092 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16093 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16094 | .block_erasers = |
| 16095 | { |
| 16096 | { |
| 16097 | .eraseblocks = { {512 * 1024, 1} }, |
| 16098 | .block_erase = erase_chip_block_jedec, |
| 16099 | } |
| 16100 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16101 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16102 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16103 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16104 | }, |
| 16105 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16106 | { |
| 16107 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 16108 | .name = "W29GL032CB", |
| 16109 | .bustype = BUS_PARALLEL, |
| 16110 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16111 | .model_id = WINBOND_W29GL032CB, |
| 16112 | .total_size = 4096, |
| 16113 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16114 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16115 | .tested = TEST_UNTESTED, |
| 16116 | .probe = probe_jedec_29gl, |
| 16117 | .probe_timing = TIMING_ZERO, |
| 16118 | .block_erasers = |
| 16119 | { |
| 16120 | { |
| 16121 | .eraseblocks = { |
| 16122 | {8 * 1024, 8}, |
| 16123 | {64 * 1024, 63}, |
| 16124 | }, |
| 16125 | .block_erase = erase_sector_jedec, |
| 16126 | }, { |
| 16127 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16128 | .block_erase = erase_chip_block_jedec, |
| 16129 | }, |
| 16130 | }, |
| 16131 | .write = write_jedec_1, |
| 16132 | .read = read_memmapped, |
| 16133 | .voltage = {2700, 3600}, |
| 16134 | }, |
| 16135 | |
| 16136 | { |
| 16137 | .vendor = "Winbond", |
| 16138 | .name = "W29GL032CT", |
| 16139 | .bustype = BUS_PARALLEL, |
| 16140 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16141 | .model_id = WINBOND_W29GL032CT, |
| 16142 | .total_size = 4096, |
| 16143 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16144 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16145 | .tested = TEST_UNTESTED, |
| 16146 | .probe = probe_jedec_29gl, |
| 16147 | .probe_timing = TIMING_ZERO, |
| 16148 | .block_erasers = |
| 16149 | { |
| 16150 | { |
| 16151 | .eraseblocks = { |
| 16152 | {64 * 1024, 63}, |
| 16153 | {8 * 1024, 8}, |
| 16154 | }, |
| 16155 | .block_erase = erase_sector_jedec, |
| 16156 | }, { |
| 16157 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16158 | .block_erase = erase_chip_block_jedec, |
| 16159 | }, |
| 16160 | }, |
| 16161 | .write = write_jedec_1, |
| 16162 | .read = read_memmapped, |
| 16163 | .voltage = {2700, 3600}, |
| 16164 | }, |
| 16165 | |
| 16166 | { |
| 16167 | .vendor = "Winbond", |
| 16168 | .name = "W29GL032CH/L", |
| 16169 | .bustype = BUS_PARALLEL, |
| 16170 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16171 | .model_id = WINBOND_W29GL032CHL, |
| 16172 | .total_size = 4096, |
| 16173 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16174 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16175 | .tested = TEST_UNTESTED, |
| 16176 | .probe = probe_jedec_29gl, |
| 16177 | .probe_timing = TIMING_ZERO, |
| 16178 | .block_erasers = |
| 16179 | { |
| 16180 | { |
| 16181 | .eraseblocks = { {64 * 1024, 64} }, |
| 16182 | .block_erase = erase_sector_jedec, |
| 16183 | }, { |
| 16184 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16185 | .block_erase = erase_chip_block_jedec, |
| 16186 | }, |
| 16187 | }, |
| 16188 | .write = write_jedec_1, |
| 16189 | .read = read_memmapped, |
| 16190 | .voltage = {2700, 3600}, |
| 16191 | }, |
| 16192 | |
| 16193 | { |
| 16194 | .vendor = "Winbond", |
| 16195 | .name = "W29GL064CB", |
| 16196 | .bustype = BUS_PARALLEL, |
| 16197 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16198 | .model_id = WINBOND_W29GL064CB, |
| 16199 | .total_size = 8192, |
| 16200 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16201 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16202 | .tested = TEST_UNTESTED, |
| 16203 | .probe = probe_jedec_29gl, |
| 16204 | .probe_timing = TIMING_ZERO, |
| 16205 | .block_erasers = |
| 16206 | { |
| 16207 | { |
| 16208 | .eraseblocks = { |
| 16209 | {8 * 1024, 8}, |
| 16210 | {64 * 1024, 127}, |
| 16211 | }, |
| 16212 | .block_erase = erase_sector_jedec, |
| 16213 | }, { |
| 16214 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16215 | .block_erase = erase_chip_block_jedec, |
| 16216 | }, |
| 16217 | }, |
| 16218 | .write = write_jedec_1, |
| 16219 | .read = read_memmapped, |
| 16220 | .voltage = {2700, 3600}, |
| 16221 | }, |
| 16222 | |
| 16223 | { |
| 16224 | .vendor = "Winbond", |
| 16225 | .name = "W29GL064CT", |
| 16226 | .bustype = BUS_PARALLEL, |
| 16227 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16228 | .model_id = WINBOND_W29GL064CT, |
| 16229 | .total_size = 8192, |
| 16230 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16231 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16232 | .tested = TEST_UNTESTED, |
| 16233 | .probe = probe_jedec_29gl, |
| 16234 | .probe_timing = TIMING_ZERO, |
| 16235 | .block_erasers = |
| 16236 | { |
| 16237 | { |
| 16238 | .eraseblocks = { |
| 16239 | {64 * 1024, 127}, |
| 16240 | {8 * 1024, 8}, |
| 16241 | }, |
| 16242 | .block_erase = erase_sector_jedec, |
| 16243 | }, { |
| 16244 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16245 | .block_erase = erase_chip_block_jedec, |
| 16246 | }, |
| 16247 | }, |
| 16248 | .write = write_jedec_1, |
| 16249 | .read = read_memmapped, |
| 16250 | .voltage = {2700, 3600}, |
| 16251 | }, |
| 16252 | |
| 16253 | { |
| 16254 | .vendor = "Winbond", |
| 16255 | .name = "W29GL064CH/L", |
| 16256 | .bustype = BUS_PARALLEL, |
| 16257 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16258 | .model_id = WINBOND_W29GL064CHL, |
| 16259 | .total_size = 8192, |
| 16260 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16261 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16262 | .tested = TEST_UNTESTED, |
| 16263 | .probe = probe_jedec_29gl, |
| 16264 | .probe_timing = TIMING_ZERO, |
| 16265 | .block_erasers = |
| 16266 | { |
| 16267 | { |
| 16268 | .eraseblocks = { {64 * 1024, 128} }, |
| 16269 | .block_erase = erase_sector_jedec, |
| 16270 | }, { |
| 16271 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16272 | .block_erase = erase_chip_block_jedec, |
| 16273 | }, |
| 16274 | }, |
| 16275 | .write = write_jedec_1, |
| 16276 | .read = read_memmapped, |
| 16277 | .voltage = {2700, 3600}, |
| 16278 | }, |
| 16279 | |
| 16280 | { |
| 16281 | .vendor = "Winbond", |
| 16282 | .name = "W29GL128C", |
| 16283 | .bustype = BUS_PARALLEL, |
| 16284 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 16285 | .model_id = WINBOND_W29GL128CHL, |
| 16286 | .total_size = 16384, |
| 16287 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 16288 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 16289 | .tested = TEST_UNTESTED, |
| 16290 | .probe = probe_jedec_29gl, |
| 16291 | .probe_timing = TIMING_ZERO, |
| 16292 | .block_erasers = |
| 16293 | { |
| 16294 | { |
| 16295 | .eraseblocks = { {128 * 1024, 128} }, |
| 16296 | .block_erase = erase_sector_jedec, |
| 16297 | }, { |
| 16298 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16299 | .block_erase = erase_chip_block_jedec, |
| 16300 | }, |
| 16301 | }, |
| 16302 | .write = write_jedec_1, |
| 16303 | .read = read_memmapped, |
| 16304 | .voltage = {2700, 3600}, |
| 16305 | }, |
| 16306 | |
| 16307 | { |
| 16308 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 16309 | .name = "W39F010", |
| 16310 | .bustype = BUS_PARALLEL, |
| 16311 | .manufacture_id = WINBOND_ID, |
| 16312 | .model_id = WINBOND_W39F010, |
| 16313 | .total_size = 128, |
| 16314 | .page_size = 4 * 1024, |
| 16315 | .feature_bits = FEATURE_EITHER_RESET, |
| 16316 | .tested = TEST_OK_PREW, |
| 16317 | .probe = probe_jedec, |
| 16318 | .probe_timing = 10, |
| 16319 | .block_erasers = |
| 16320 | { |
| 16321 | { |
| 16322 | .eraseblocks = { {4 * 1024, 32} }, |
| 16323 | .block_erase = erase_block_jedec, |
| 16324 | }, { |
| 16325 | .eraseblocks = { {128 * 1024, 1} }, |
| 16326 | .block_erase = erase_chip_block_jedec, |
| 16327 | } |
| 16328 | }, |
| 16329 | .printlock = printlock_w39f010, |
| 16330 | .write = write_jedec_1, |
| 16331 | .read = read_memmapped, |
| 16332 | .voltage = {4500, 5500}, |
| 16333 | }, |
| 16334 | |
| 16335 | { |
| 16336 | .vendor = "Winbond", |
| 16337 | .name = "W39L010", |
| 16338 | .bustype = BUS_PARALLEL, |
| 16339 | .manufacture_id = WINBOND_ID, |
| 16340 | .model_id = WINBOND_W39L010, |
| 16341 | .total_size = 128, |
| 16342 | .page_size = 4 * 1024, |
| 16343 | .feature_bits = FEATURE_EITHER_RESET, |
| 16344 | .tested = TEST_UNTESTED, |
| 16345 | .probe = probe_jedec, |
| 16346 | .probe_timing = 10, |
| 16347 | .block_erasers = |
| 16348 | { |
| 16349 | { |
| 16350 | .eraseblocks = { {4 * 1024, 32} }, |
| 16351 | .block_erase = erase_block_jedec, |
| 16352 | }, { |
| 16353 | .eraseblocks = { {128 * 1024, 1} }, |
| 16354 | .block_erase = erase_chip_block_jedec, |
| 16355 | } |
| 16356 | }, |
| 16357 | .printlock = printlock_w39l010, |
| 16358 | .write = write_jedec_1, |
| 16359 | .read = read_memmapped, |
| 16360 | .voltage = {3000, 3600}, |
| 16361 | }, |
| 16362 | |
| 16363 | { |
| 16364 | .vendor = "Winbond", |
| 16365 | .name = "W39L020", |
| 16366 | .bustype = BUS_PARALLEL, |
| 16367 | .manufacture_id = WINBOND_ID, |
| 16368 | .model_id = WINBOND_W39L020, |
| 16369 | .total_size = 256, |
| 16370 | .page_size = 4 * 1024, |
| 16371 | .feature_bits = FEATURE_EITHER_RESET, |
| 16372 | .tested = TEST_UNTESTED, |
| 16373 | .probe = probe_jedec, |
| 16374 | .probe_timing = 10, |
| 16375 | .block_erasers = |
| 16376 | { |
| 16377 | { |
| 16378 | .eraseblocks = { {4 * 1024, 64} }, |
| 16379 | .block_erase = erase_block_jedec, |
| 16380 | }, { |
| 16381 | .eraseblocks = { {64 * 1024, 4} }, |
| 16382 | .block_erase = erase_sector_jedec, |
| 16383 | }, { |
| 16384 | .eraseblocks = { {256 * 1024, 1} }, |
| 16385 | .block_erase = erase_chip_block_jedec, |
| 16386 | } |
| 16387 | }, |
| 16388 | .printlock = printlock_w39l020, |
| 16389 | .write = write_jedec_1, |
| 16390 | .read = read_memmapped, |
| 16391 | .voltage = {3000, 3600}, |
| 16392 | }, |
| 16393 | |
| 16394 | { |
| 16395 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 16396 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16397 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 16398 | .manufacture_id = WINBOND_ID, |
| 16399 | .model_id = WINBOND_W39L040, |
| 16400 | .total_size = 512, |
| 16401 | .page_size = 64 * 1024, |
| 16402 | .feature_bits = FEATURE_EITHER_RESET, |
| 16403 | .tested = TEST_OK_PR, |
| 16404 | .probe = probe_jedec, |
| 16405 | .probe_timing = 10, |
| 16406 | .block_erasers = |
| 16407 | { |
| 16408 | { |
| 16409 | .eraseblocks = { {4 * 1024, 128} }, |
| 16410 | .block_erase = erase_block_jedec, |
| 16411 | }, { |
| 16412 | .eraseblocks = { {64 * 1024, 8} }, |
| 16413 | .block_erase = erase_sector_jedec, |
| 16414 | }, { |
| 16415 | .eraseblocks = { {512 * 1024, 1} }, |
| 16416 | .block_erase = erase_chip_block_jedec, |
| 16417 | } |
| 16418 | }, |
| 16419 | .printlock = printlock_w39l040, |
| 16420 | .write = write_jedec_1, |
| 16421 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16422 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 16423 | }, |
| 16424 | |
| 16425 | { |
| 16426 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16427 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16428 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16429 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16430 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16431 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16432 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16433 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 16434 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16435 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 16436 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16437 | .block_erasers = |
| 16438 | { |
| 16439 | { |
| 16440 | .eraseblocks = { {64 * 1024, 8} }, |
| 16441 | .block_erase = erase_sector_jedec, |
| 16442 | }, { |
| 16443 | .eraseblocks = { {512 * 1024, 1} }, |
| 16444 | .block_erase = erase_chip_block_jedec, |
| 16445 | } |
| 16446 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16447 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16448 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16449 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16450 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16451 | }, |
| 16452 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16453 | { |
| 16454 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16455 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16456 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16457 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16458 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16459 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16460 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16461 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16462 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16463 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16464 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16465 | .block_erasers = |
| 16466 | { |
| 16467 | { |
| 16468 | .eraseblocks = { {64 * 1024, 8} }, |
| 16469 | .block_erase = erase_sector_jedec, |
| 16470 | }, { |
| 16471 | .eraseblocks = { {512 * 1024, 1} }, |
| 16472 | .block_erase = erase_chip_block_jedec, |
| 16473 | } |
| 16474 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16475 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16476 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16477 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16478 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16479 | }, |
| 16480 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16481 | { |
| 16482 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16483 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16484 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16485 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16486 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16487 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16488 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16489 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16490 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16491 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16492 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16493 | .block_erasers = |
| 16494 | { |
| 16495 | { |
| 16496 | .eraseblocks = { {64 * 1024, 8} }, |
| 16497 | .block_erase = erase_sector_jedec, |
| 16498 | }, { |
| 16499 | .eraseblocks = { {512 * 1024, 1} }, |
| 16500 | .block_erase = erase_chip_block_jedec, |
| 16501 | } |
| 16502 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 16503 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16504 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16505 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16506 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16507 | }, |
| 16508 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16509 | { |
| 16510 | .vendor = "Winbond", |
| 16511 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16512 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16513 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16514 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16515 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16516 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 16517 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 16518 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16519 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16520 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16521 | .block_erasers = |
| 16522 | { |
| 16523 | { |
| 16524 | .eraseblocks = { {4 * 1024, 128} }, |
| 16525 | .block_erase = erase_block_jedec, |
| 16526 | }, { |
| 16527 | .eraseblocks = { {64 * 1024, 8} }, |
| 16528 | .block_erase = erase_sector_jedec, |
| 16529 | }, { |
| 16530 | .eraseblocks = { {512 * 1024, 1} }, |
| 16531 | .block_erase = erase_chip_block_jedec, |
| 16532 | } |
| 16533 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16534 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16535 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16536 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16537 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16538 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16539 | }, |
| 16540 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16541 | { |
| 16542 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16543 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16544 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16545 | .manufacture_id = WINBOND_ID, |
| 16546 | .model_id = WINBOND_W39V040B, |
| 16547 | .total_size = 512, |
| 16548 | .page_size = 64 * 1024, |
| 16549 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 16550 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16551 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16552 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16553 | .block_erasers = |
| 16554 | { |
| 16555 | { |
| 16556 | .eraseblocks = { {64 * 1024, 8} }, |
| 16557 | .block_erase = erase_sector_jedec, |
| 16558 | }, { |
| 16559 | .eraseblocks = { {512 * 1024, 1} }, |
| 16560 | .block_erase = erase_chip_block_jedec, |
| 16561 | } |
| 16562 | }, |
| 16563 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16564 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16565 | .write = write_jedec_1, |
| 16566 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16567 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16568 | }, |
| 16569 | |
| 16570 | { |
| 16571 | .vendor = "Winbond", |
| 16572 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16573 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16574 | .manufacture_id = WINBOND_ID, |
| 16575 | .model_id = WINBOND_W39V040C, |
| 16576 | .total_size = 512, |
| 16577 | .page_size = 64 * 1024, |
| 16578 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 16579 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16580 | .probe = probe_jedec, |
| 16581 | .probe_timing = 10, |
| 16582 | .block_erasers = |
| 16583 | { |
| 16584 | { |
| 16585 | .eraseblocks = { {64 * 1024, 8} }, |
| 16586 | .block_erase = erase_sector_jedec, |
| 16587 | }, { |
| 16588 | .eraseblocks = { {512 * 1024, 1} }, |
| 16589 | .block_erase = erase_chip_block_jedec, |
| 16590 | } |
| 16591 | }, |
| 16592 | .printlock = printlock_w39v040fc, |
| 16593 | .write = write_jedec_1, |
| 16594 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16595 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16596 | }, |
| 16597 | |
| 16598 | { |
| 16599 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16600 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16601 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16602 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16603 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16604 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16605 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16606 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 16607 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16608 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 16609 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16610 | .block_erasers = |
| 16611 | { |
| 16612 | { |
| 16613 | .eraseblocks = { {64 * 1024, 16} }, |
| 16614 | .block_erase = erase_sector_jedec, |
| 16615 | }, { |
| 16616 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16617 | .block_erase = erase_chip_block_jedec, |
| 16618 | } |
| 16619 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16620 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16621 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16622 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16623 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16624 | }, |
| 16625 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16626 | { |
| 16627 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16628 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16629 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16630 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16631 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16632 | .total_size = 256, |
| 16633 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16634 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 16635 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16636 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16637 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16638 | .block_erasers = |
| 16639 | { |
| 16640 | { |
| 16641 | .eraseblocks = { |
| 16642 | {128 * 1024, 1}, |
| 16643 | {96 * 1024, 1}, |
| 16644 | {8 * 1024, 2}, |
| 16645 | {16 * 1024, 1}, |
| 16646 | }, |
| 16647 | .block_erase = erase_sector_jedec, |
| 16648 | }, { |
| 16649 | .eraseblocks = { {256 * 1024, 1} }, |
| 16650 | .block_erase = erase_chip_block_jedec, |
| 16651 | } |
| 16652 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16653 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16654 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16655 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16656 | }, |
| 16657 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16658 | { |
| 16659 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16660 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16661 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16662 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16663 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16664 | .total_size = 256, |
| 16665 | .page_size = 128, |
| 16666 | .feature_bits = FEATURE_EITHER_RESET, |
| 16667 | .tested = TEST_OK_PROBE, |
| 16668 | .probe = probe_jedec, |
| 16669 | .probe_timing = 10, |
| 16670 | .block_erasers = |
| 16671 | { |
| 16672 | { |
| 16673 | .eraseblocks = { {256 * 1024, 1} }, |
| 16674 | .block_erase = erase_chip_block_jedec, |
| 16675 | } |
| 16676 | }, |
| 16677 | .write = write_jedec_1, |
| 16678 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16679 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 16680 | }, |
| 16681 | |
| 16682 | { |
| 16683 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16684 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16685 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16686 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16687 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16688 | .total_size = 256, |
| 16689 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16690 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16691 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16692 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 16693 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16694 | .block_erasers = |
| 16695 | { |
| 16696 | { |
| 16697 | .eraseblocks = { |
| 16698 | {64 * 1024, 3}, |
| 16699 | {32 * 1024, 1}, |
| 16700 | {8 * 1024, 2}, |
| 16701 | {16 * 1024, 1}, |
| 16702 | }, |
| 16703 | .block_erase = erase_sector_jedec, |
| 16704 | }, { |
| 16705 | .eraseblocks = { {256 * 1024, 1} }, |
| 16706 | .block_erase = erase_chip_block_jedec, |
| 16707 | } |
| 16708 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16709 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16710 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16711 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16712 | }, |
| 16713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16714 | { |
| 16715 | .vendor = "Winbond", |
| 16716 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16717 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16718 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16719 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16720 | .total_size = 256, |
| 16721 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16722 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16723 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16724 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16725 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16726 | .block_erasers = |
| 16727 | { |
| 16728 | { |
| 16729 | .eraseblocks = { |
| 16730 | {64 * 1024, 3}, |
| 16731 | {32 * 1024, 1}, |
| 16732 | {8 * 1024, 2}, |
| 16733 | {16 * 1024, 1}, |
| 16734 | }, |
| 16735 | .block_erase = erase_sector_jedec, |
| 16736 | }, { |
| 16737 | .eraseblocks = { {256 * 1024, 1} }, |
| 16738 | .block_erase = erase_chip_block_jedec, |
| 16739 | } |
| 16740 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16741 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16742 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16743 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16744 | }, |
| 16745 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16746 | { |
| 16747 | .vendor = "Winbond", |
| 16748 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16749 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16750 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16751 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16752 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16753 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16754 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 16755 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 16756 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16757 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16758 | .block_erasers = |
| 16759 | { |
| 16760 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16761 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16762 | .block_erase = erase_sector_jedec, |
| 16763 | }, { |
| 16764 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16765 | .block_erase = erase_chip_block_jedec, |
| 16766 | } |
| 16767 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16768 | .printlock = printlock_w39v080fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16769 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16770 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16771 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16772 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16773 | }, |
| 16774 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16775 | { |
| 16776 | .vendor = "Winbond", |
| 16777 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16778 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16779 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 16780 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16781 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 16782 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16783 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16784 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 16785 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16786 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16787 | .block_erasers = |
| 16788 | { |
| 16789 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16790 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 16791 | .block_erase = erase_sector_jedec, |
| 16792 | }, { |
| 16793 | .eraseblocks = { {512 * 1024, 1} }, |
| 16794 | .block_erase = erase_chip_block_jedec, |
| 16795 | } |
| 16796 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 16797 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16798 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16799 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 16800 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16801 | }, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 16802 | |
| 16803 | { |
| 16804 | .vendor = "Zetta Device", |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 16805 | .name = "ZD25D20", |
| 16806 | .bustype = BUS_SPI, |
| 16807 | .manufacture_id = ZETTADEVICE_ID, |
| 16808 | .model_id = ZETTADEVICE_ZD25D20, |
| 16809 | .total_size = 256, |
| 16810 | .page_size = 256, |
| 16811 | .feature_bits = FEATURE_WRSR_WREN, |
| 16812 | .tested = TEST_UNTESTED, |
| 16813 | .probe = probe_spi_rdid, |
| 16814 | .probe_timing = TIMING_ZERO, |
| 16815 | .block_erasers = |
| 16816 | { |
| 16817 | { |
| 16818 | .eraseblocks = { {4 * 1024, 64} }, |
| 16819 | .block_erase = spi_block_erase_20, |
| 16820 | }, { |
| 16821 | .eraseblocks = { {32 * 1024, 8} }, |
| 16822 | .block_erase = spi_block_erase_52, |
| 16823 | }, { |
| 16824 | .eraseblocks = { {64 * 1024, 4} }, |
| 16825 | .block_erase = spi_block_erase_d8, |
| 16826 | }, { |
| 16827 | .eraseblocks = { {256 * 1024, 1} }, |
| 16828 | .block_erase = spi_block_erase_60, |
| 16829 | }, { |
| 16830 | .eraseblocks = { {256 * 1024, 1} }, |
| 16831 | .block_erase = spi_block_erase_c7, |
| 16832 | } |
| 16833 | }, |
| 16834 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16835 | .unlock = spi_disable_blockprotect, |
| 16836 | .write = spi_chip_write_256, |
| 16837 | .read = spi_chip_read, |
| 16838 | .voltage = {2700, 3600}, |
| 16839 | }, |
| 16840 | |
| 16841 | { |
| 16842 | .vendor = "Zetta Device", |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 16843 | .name = "ZD25D40", |
| 16844 | .bustype = BUS_SPI, |
| 16845 | .manufacture_id = ZETTADEVICE_ID, |
| 16846 | .model_id = ZETTADEVICE_ZD25D40, |
| 16847 | .total_size = 512, |
| 16848 | .page_size = 256, |
| 16849 | .feature_bits = FEATURE_WRSR_WREN, |
| 16850 | .tested = TEST_UNTESTED, |
| 16851 | .probe = probe_spi_rdid, |
| 16852 | .probe_timing = TIMING_ZERO, |
| 16853 | .block_erasers = |
| 16854 | { |
| 16855 | { |
| 16856 | .eraseblocks = { {4 * 1024, 128} }, |
| 16857 | .block_erase = spi_block_erase_20, |
| 16858 | }, { |
| 16859 | .eraseblocks = { {32 * 1024, 16} }, |
| 16860 | .block_erase = spi_block_erase_52, |
| 16861 | }, { |
| 16862 | .eraseblocks = { {64 * 1024, 8} }, |
| 16863 | .block_erase = spi_block_erase_d8, |
| 16864 | }, { |
| 16865 | .eraseblocks = { {512 * 1024, 1} }, |
| 16866 | .block_erase = spi_block_erase_60, |
| 16867 | }, { |
| 16868 | .eraseblocks = { {512 * 1024, 1} }, |
| 16869 | .block_erase = spi_block_erase_c7, |
| 16870 | } |
| 16871 | }, |
| 16872 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16873 | .unlock = spi_disable_blockprotect, |
| 16874 | .write = spi_chip_write_256, |
| 16875 | .read = spi_chip_read, |
| 16876 | .voltage = {2700, 3600}, |
| 16877 | }, |
| 16878 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 16879 | { |
| 16880 | .vendor = "Unknown", |
| 16881 | .name = "SFDP-capable chip", |
| 16882 | .bustype = BUS_SPI, |
| 16883 | .manufacture_id = GENERIC_MANUF_ID, |
| 16884 | .model_id = SFDP_DEVICE_ID, |
| 16885 | /* We present our own "report this" text hence we do not |
| 16886 | * want the default "This flash part has status UNTESTED..." |
| 16887 | * text to be printed. */ |
| 16888 | .tested = TEST_OK_PREW, |
| 16889 | .probe = probe_spi_sfdp, |
| 16890 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 16891 | .read = spi_chip_read, |
| 16892 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 16893 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 16894 | /* Everything below will be set by the probing function. */ |
| 16895 | .write = NULL, |
| 16896 | .total_size = 0, |
| 16897 | .page_size = 0, |
| 16898 | .feature_bits = 0, |
| 16899 | .block_erasers = {}, |
| 16900 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16901 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16902 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 16903 | .vendor = "Programmer", |
| 16904 | .name = "Opaque flash chip", |
| 16905 | .bustype = BUS_PROG, |
| 16906 | .manufacture_id = PROGMANUF_ID, |
| 16907 | .model_id = PROGDEV_ID, |
| 16908 | .total_size = 0, |
| 16909 | .page_size = 256, |
| 16910 | /* probe is assumed to work, rest will be filled in by probe */ |
| 16911 | .tested = TEST_OK_PROBE, |
| 16912 | .probe = probe_opaque, |
| 16913 | /* eraseblock sizes will be set by the probing function */ |
| 16914 | .block_erasers = |
| 16915 | { |
| 16916 | { |
| 16917 | .block_erase = erase_opaque, |
| 16918 | } |
| 16919 | }, |
| 16920 | .write = write_opaque, |
| 16921 | .read = read_opaque, |
| 16922 | }, |
| 16923 | |
| 16924 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 16925 | .vendor = "AMIC", |
| 16926 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16927 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 16928 | .manufacture_id = AMIC_ID, |
| 16929 | .model_id = GENERIC_DEVICE_ID, |
| 16930 | .total_size = 0, |
| 16931 | .page_size = 256, |
| 16932 | .tested = TEST_BAD_PREW, |
| 16933 | .probe = probe_spi_rdid4, |
| 16934 | .probe_timing = TIMING_ZERO, |
| 16935 | .write = NULL, |
| 16936 | .read = NULL, |
| 16937 | }, |
| 16938 | |
| 16939 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16940 | .vendor = "Atmel", |
| 16941 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16942 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16943 | .manufacture_id = ATMEL_ID, |
| 16944 | .model_id = GENERIC_DEVICE_ID, |
| 16945 | .total_size = 0, |
| 16946 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16947 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16948 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16949 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16950 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16951 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16952 | }, |
| 16953 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16954 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 16955 | .vendor = "Eon", |
| 16956 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16957 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16958 | .manufacture_id = EON_ID_NOPREFIX, |
| 16959 | .model_id = GENERIC_DEVICE_ID, |
| 16960 | .total_size = 0, |
| 16961 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16962 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16963 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16964 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16965 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16966 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16967 | }, |
| 16968 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16969 | { |
| 16970 | .vendor = "Macronix", |
| 16971 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16972 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 16973 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16974 | .model_id = GENERIC_DEVICE_ID, |
| 16975 | .total_size = 0, |
| 16976 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16977 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16978 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16979 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16980 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16981 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16982 | }, |
| 16983 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16984 | { |
| 16985 | .vendor = "PMC", |
| 16986 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16987 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16988 | .manufacture_id = PMC_ID, |
| 16989 | .model_id = GENERIC_DEVICE_ID, |
| 16990 | .total_size = 0, |
| 16991 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 16992 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16993 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 16994 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16995 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16996 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16997 | }, |
| 16998 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16999 | { |
| 17000 | .vendor = "SST", |
| 17001 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17002 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17003 | .manufacture_id = SST_ID, |
| 17004 | .model_id = GENERIC_DEVICE_ID, |
| 17005 | .total_size = 0, |
| 17006 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 17007 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17008 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17009 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17010 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17011 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17012 | }, |
| 17013 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17014 | { |
| 17015 | .vendor = "ST", |
| 17016 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17017 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17018 | .manufacture_id = ST_ID, |
| 17019 | .model_id = GENERIC_DEVICE_ID, |
| 17020 | .total_size = 0, |
| 17021 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 17022 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17023 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17024 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17025 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17026 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17027 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 17028 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17029 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 17030 | .vendor = "Sanyo", |
| 17031 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17032 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 17033 | .manufacture_id = SANYO_ID, |
| 17034 | .model_id = GENERIC_DEVICE_ID, |
| 17035 | .total_size = 0, |
| 17036 | .page_size = 256, |
| 17037 | .tested = TEST_BAD_PREW, |
| 17038 | .probe = probe_spi_rdid, |
| 17039 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 17040 | .write = NULL, |
| 17041 | .read = NULL, |
| 17042 | }, |
| 17043 | |
| 17044 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 17045 | .vendor = "Winbond", |
| 17046 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 17047 | .bustype = BUS_SPI, |
| 17048 | .manufacture_id = WINBOND_NEX_ID, |
| 17049 | .model_id = GENERIC_DEVICE_ID, |
| 17050 | .total_size = 0, |
| 17051 | .page_size = 256, |
| 17052 | .tested = TEST_BAD_PREW, |
| 17053 | .probe = probe_spi_rdid, |
| 17054 | .probe_timing = TIMING_ZERO, |
| 17055 | .write = NULL, |
| 17056 | .read = NULL, |
| 17057 | }, |
| 17058 | |
| 17059 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17060 | .vendor = "Generic", |
| 17061 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17062 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17063 | .manufacture_id = GENERIC_MANUF_ID, |
| 17064 | .model_id = GENERIC_DEVICE_ID, |
| 17065 | .total_size = 0, |
| 17066 | .page_size = 256, |
| 17067 | .tested = TEST_BAD_PREW, |
| 17068 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17069 | .write = NULL, |
| 17070 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 17071 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17072 | { |
| 17073 | .vendor = "Generic", |
| 17074 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17075 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17076 | .manufacture_id = GENERIC_MANUF_ID, |
| 17077 | .model_id = GENERIC_DEVICE_ID, |
| 17078 | .total_size = 0, |
| 17079 | .page_size = 256, |
| 17080 | .tested = TEST_BAD_PREW, |
| 17081 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 17082 | .write = NULL, |
| 17083 | }, |
| 17084 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 17085 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 17086 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 17087 | |
| 17088 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |