Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 2 | * This file is part of the flashrom project. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | d22a1d4 | 2007-09-09 20:21:05 +0000 | [diff] [blame] | 4 | * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 | * Copyright (C) 2004 Tyan Corp |
Stefan Reinauer | 4c390c8 | 2008-07-02 13:33:09 +0000 | [diff] [blame] | 6 | * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 7 | * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
Sean Nelson | c57a920 | 2010-01-04 17:15:23 +0000 | [diff] [blame] | 8 | * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 9 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 14 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 19 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 26 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 27 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 28 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 29 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 30 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 31 | * |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 32 | * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly |
| 33 | * alphabetically sorted. Within families keep them in order of density. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 34 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 35 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 36 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 37 | /* |
| 38 | * .vendor = Vendor name |
| 39 | * .name = Chip name |
| 40 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 41 | * .manufacture_id = Manufacturer chip ID |
| 42 | * .model_id = Model chip ID |
| 43 | * .total_size = Total size in (binary) kbytes |
| 44 | * .page_size = Page or eraseblock(?) size in bytes |
| 45 | * .tested = Test status |
| 46 | * .probe = Probe function |
| 47 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 48 | * .block_erasers[] = Array of erase layouts and erase functions |
| 49 | * { |
| 50 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 51 | * .block_erase = Block erase function |
| 52 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 53 | * .printlock = Chip lock status function |
| 54 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 55 | * .write = Chip write function |
| 56 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 57 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 58 | */ |
| 59 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 60 | { |
| 61 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 62 | .name = "Am29F010A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 63 | .bustype = BUS_PARALLEL, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 64 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 65 | .model_id = AMD_AM29F010B, /* Same as Am29F010A */ |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 66 | .total_size = 128, |
| 67 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 68 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 69 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 70 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 71 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 72 | .block_erasers = |
| 73 | { |
| 74 | { |
| 75 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 76 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 77 | }, { |
| 78 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 79 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 80 | }, |
| 81 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 82 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 83 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 84 | .voltage = {4500, 5500}, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 85 | }, |
| 86 | |
| 87 | { |
| 88 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 89 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 90 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 91 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 92 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 93 | .total_size = 256, |
| 94 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 95 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 96 | .tested = TEST_UNTESTED, |
| 97 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 98 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 99 | .block_erasers = |
| 100 | { |
| 101 | { |
| 102 | .eraseblocks = { |
| 103 | {16 * 1024, 1}, |
| 104 | {8 * 1024, 2}, |
| 105 | {32 * 1024, 1}, |
| 106 | {64 * 1024, 3}, |
| 107 | }, |
| 108 | .block_erase = erase_sector_jedec, |
| 109 | }, { |
| 110 | .eraseblocks = { {256 * 1024, 1} }, |
| 111 | .block_erase = erase_chip_block_jedec, |
| 112 | }, |
| 113 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 114 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 115 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 116 | .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] | 117 | }, |
| 118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 119 | { |
| 120 | .vendor = "AMD", |
| 121 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 122 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 124 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 125 | .total_size = 256, |
| 126 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 127 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 128 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 129 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 130 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 131 | .block_erasers = |
| 132 | { |
| 133 | { |
| 134 | .eraseblocks = { |
| 135 | {64 * 1024, 3}, |
| 136 | {32 * 1024, 1}, |
| 137 | {8 * 1024, 2}, |
| 138 | {16 * 1024, 1}, |
| 139 | }, |
| 140 | .block_erase = erase_sector_jedec, |
| 141 | }, { |
| 142 | .eraseblocks = { {256 * 1024, 1} }, |
| 143 | .block_erase = erase_chip_block_jedec, |
| 144 | }, |
| 145 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 146 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 147 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 148 | .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] | 149 | }, |
| 150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 151 | { |
| 152 | .vendor = "AMD", |
| 153 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 154 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 155 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 156 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 157 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 158 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 159 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 160 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 161 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 162 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 163 | .block_erasers = |
| 164 | { |
| 165 | { |
| 166 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 167 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 168 | }, { |
| 169 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 170 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 171 | }, |
| 172 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 174 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 175 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 176 | }, |
| 177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 178 | { |
| 179 | .vendor = "AMD", |
| 180 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 181 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 182 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 183 | .model_id = AMD_AM29F040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 184 | .total_size = 512, |
| 185 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 186 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 187 | .tested = TEST_UNTESTED, |
| 188 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | .block_erasers = |
| 191 | { |
| 192 | { |
| 193 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 194 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 195 | }, { |
| 196 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 197 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 198 | }, |
| 199 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 202 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 203 | }, |
| 204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 205 | { |
| 206 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 207 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 208 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 209 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 210 | .model_id = AMD_AM29F080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 211 | .total_size = 1024, |
| 212 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 213 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 214 | .tested = TEST_UNTESTED, |
| 215 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 217 | .block_erasers = |
| 218 | { |
| 219 | { |
| 220 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 221 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 222 | }, { |
| 223 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 224 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 225 | }, |
| 226 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 227 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 228 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 229 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 230 | }, |
| 231 | |
| 232 | { |
| 233 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 234 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 235 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 236 | .manufacture_id = AMD_ID, |
| 237 | .model_id = AMD_AM29LV001BB, |
| 238 | .total_size = 128, |
| 239 | .page_size = 64 * 1024, /* unused */ |
| 240 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 241 | .tested = TEST_OK_PREW, |
| 242 | .probe = probe_jedec, |
| 243 | .probe_timing = TIMING_ZERO, |
| 244 | .block_erasers = |
| 245 | { |
| 246 | { |
| 247 | .eraseblocks = { |
| 248 | {8 * 1024, 1}, |
| 249 | {4 * 1024, 2}, |
| 250 | {16 * 1024, 7}, |
| 251 | }, |
| 252 | .block_erase = erase_sector_jedec, |
| 253 | }, { |
| 254 | .eraseblocks = { {128 * 1024, 1} }, |
| 255 | .block_erase = erase_chip_block_jedec, |
| 256 | }, |
| 257 | }, |
| 258 | .write = write_jedec_1, |
| 259 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 260 | .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] | 261 | }, |
| 262 | |
| 263 | { |
| 264 | .vendor = "AMD", |
| 265 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 266 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 267 | .manufacture_id = AMD_ID, |
| 268 | .model_id = AMD_AM29LV001BT, |
| 269 | .total_size = 128, |
| 270 | .page_size = 64 * 1024, /* unused */ |
| 271 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 272 | .tested = TEST_UNTESTED, |
| 273 | .probe = probe_jedec, |
| 274 | .probe_timing = TIMING_ZERO, |
| 275 | .block_erasers = |
| 276 | { |
| 277 | { |
| 278 | .eraseblocks = { |
| 279 | {16 * 1024, 7}, |
| 280 | {4 * 1024, 2}, |
| 281 | {8 * 1024, 1}, |
| 282 | }, |
| 283 | .block_erase = erase_sector_jedec, |
| 284 | }, { |
| 285 | .eraseblocks = { {128 * 1024, 1} }, |
| 286 | .block_erase = erase_chip_block_jedec, |
| 287 | }, |
| 288 | }, |
| 289 | .write = write_jedec_1, |
| 290 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 291 | .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] | 292 | }, |
| 293 | |
| 294 | { |
| 295 | .vendor = "AMD", |
| 296 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 297 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 298 | .manufacture_id = AMD_ID, |
| 299 | .model_id = AMD_AM29LV002BB, |
| 300 | .total_size = 256, |
| 301 | .page_size = 64 * 1024, /* unused */ |
| 302 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 303 | .tested = TEST_UNTESTED, |
| 304 | .probe = probe_jedec, |
| 305 | .probe_timing = TIMING_ZERO, |
| 306 | .block_erasers = |
| 307 | { |
| 308 | { |
| 309 | .eraseblocks = { |
| 310 | {16 * 1024, 1}, |
| 311 | {8 * 1024, 2}, |
| 312 | {32 * 1024, 1}, |
| 313 | {64 * 1024, 3}, |
| 314 | }, |
| 315 | .block_erase = erase_sector_jedec, |
| 316 | }, { |
| 317 | .eraseblocks = { {256 * 1024, 1} }, |
| 318 | .block_erase = erase_chip_block_jedec, |
| 319 | }, |
| 320 | }, |
| 321 | .write = write_jedec_1, |
| 322 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 323 | .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] | 324 | }, |
| 325 | |
| 326 | { |
| 327 | .vendor = "AMD", |
| 328 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 329 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 330 | .manufacture_id = AMD_ID, |
| 331 | .model_id = AMD_AM29LV002BT, |
| 332 | .total_size = 256, |
| 333 | .page_size = 64 * 1024, /* unused */ |
| 334 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 335 | .tested = TEST_UNTESTED, |
| 336 | .probe = probe_jedec, |
| 337 | .probe_timing = TIMING_ZERO, |
| 338 | .block_erasers = |
| 339 | { |
| 340 | { |
| 341 | .eraseblocks = { |
| 342 | {64 * 1024, 3}, |
| 343 | {32 * 1024, 1}, |
| 344 | {8 * 1024, 2}, |
| 345 | {16 * 1024, 1}, |
| 346 | }, |
| 347 | .block_erase = erase_sector_jedec, |
| 348 | }, { |
| 349 | .eraseblocks = { {256 * 1024, 1} }, |
| 350 | .block_erase = erase_chip_block_jedec, |
| 351 | }, |
| 352 | }, |
| 353 | .write = write_jedec_1, |
| 354 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 355 | .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] | 356 | }, |
| 357 | |
| 358 | { |
| 359 | .vendor = "AMD", |
| 360 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 361 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 362 | .manufacture_id = AMD_ID, |
| 363 | .model_id = AMD_AM29LV004BB, |
| 364 | .total_size = 512, |
| 365 | .page_size = 64 * 1024, /* unused */ |
| 366 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 367 | .tested = TEST_UNTESTED, |
| 368 | .probe = probe_jedec, |
| 369 | .probe_timing = TIMING_ZERO, |
| 370 | .block_erasers = |
| 371 | { |
| 372 | { |
| 373 | .eraseblocks = { |
| 374 | {16 * 1024, 1}, |
| 375 | {8 * 1024, 2}, |
| 376 | {32 * 1024, 1}, |
| 377 | {64 * 1024, 7}, |
| 378 | }, |
| 379 | .block_erase = erase_sector_jedec, |
| 380 | }, { |
| 381 | .eraseblocks = { {512 * 1024, 1} }, |
| 382 | .block_erase = erase_chip_block_jedec, |
| 383 | }, |
| 384 | }, |
| 385 | .write = write_jedec_1, |
| 386 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 387 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 388 | }, |
| 389 | |
| 390 | { |
| 391 | .vendor = "AMD", |
| 392 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 393 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 394 | .manufacture_id = AMD_ID, |
| 395 | .model_id = AMD_AM29LV004BT, |
| 396 | .total_size = 512, |
| 397 | .page_size = 64 * 1024, /* unused */ |
| 398 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 399 | .tested = TEST_UNTESTED, |
| 400 | .probe = probe_jedec, |
| 401 | .probe_timing = TIMING_ZERO, |
| 402 | .block_erasers = |
| 403 | { |
| 404 | { |
| 405 | .eraseblocks = { |
| 406 | {64 * 1024, 7}, |
| 407 | {32 * 1024, 1}, |
| 408 | {8 * 1024, 2}, |
| 409 | {16 * 1024, 1}, |
| 410 | }, |
| 411 | .block_erase = erase_sector_jedec, |
| 412 | }, { |
| 413 | .eraseblocks = { {512 * 1024, 1} }, |
| 414 | .block_erase = erase_chip_block_jedec, |
| 415 | }, |
| 416 | }, |
| 417 | .write = write_jedec_1, |
| 418 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 419 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 420 | }, |
| 421 | |
| 422 | { |
| 423 | .vendor = "AMD", |
| 424 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 425 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 426 | .manufacture_id = AMD_ID, |
| 427 | .model_id = AMD_AM29LV008BB, |
| 428 | .total_size = 1024, |
| 429 | .page_size = 64 * 1024, /* unused */ |
| 430 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 431 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 432 | .probe = probe_jedec, |
| 433 | .probe_timing = TIMING_ZERO, |
| 434 | .block_erasers = |
| 435 | { |
| 436 | { |
| 437 | .eraseblocks = { |
| 438 | {16 * 1024, 1}, |
| 439 | {8 * 1024, 2}, |
| 440 | {32 * 1024, 1}, |
| 441 | {64 * 1024, 15}, |
| 442 | }, |
| 443 | .block_erase = erase_sector_jedec, |
| 444 | }, { |
| 445 | .eraseblocks = { {1024 * 1024, 1} }, |
| 446 | .block_erase = erase_chip_block_jedec, |
| 447 | }, |
| 448 | }, |
| 449 | .write = write_jedec_1, |
| 450 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 451 | .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] | 452 | }, |
| 453 | |
| 454 | { |
| 455 | .vendor = "AMD", |
| 456 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 457 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 458 | .manufacture_id = AMD_ID, |
| 459 | .model_id = AMD_AM29LV008BT, |
| 460 | .total_size = 1024, |
| 461 | .page_size = 64 * 1024, /* unused */ |
| 462 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 463 | .tested = TEST_UNTESTED, |
| 464 | .probe = probe_jedec, |
| 465 | .probe_timing = TIMING_ZERO, |
| 466 | .block_erasers = |
| 467 | { |
| 468 | { |
| 469 | .eraseblocks = { |
| 470 | {64 * 1024, 15}, |
| 471 | {32 * 1024, 1}, |
| 472 | {8 * 1024, 2}, |
| 473 | {16 * 1024, 1}, |
| 474 | }, |
| 475 | .block_erase = erase_sector_jedec, |
| 476 | }, { |
| 477 | .eraseblocks = { {1024 * 1024, 1} }, |
| 478 | .block_erase = erase_chip_block_jedec, |
| 479 | }, |
| 480 | }, |
| 481 | .write = write_jedec_1, |
| 482 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 483 | .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] | 484 | }, |
| 485 | |
| 486 | { |
| 487 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 488 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 489 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 490 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 491 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 492 | .total_size = 512, |
| 493 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 494 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 495 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 496 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 498 | .block_erasers = |
| 499 | { |
| 500 | { |
| 501 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 502 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 503 | }, { |
| 504 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 505 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 506 | }, |
| 507 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 508 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 509 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 510 | .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] | 511 | }, |
| 512 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 513 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 514 | .vendor = "AMD", |
| 515 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 516 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 517 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 518 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 519 | .total_size = 1024, |
| 520 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 521 | .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] | 522 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 523 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 524 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 525 | .block_erasers = |
| 526 | { |
| 527 | { |
| 528 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 529 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 530 | }, { |
| 531 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 532 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 533 | }, |
| 534 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 535 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 536 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 537 | .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] | 538 | }, |
| 539 | |
| 540 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 541 | .vendor = "AMIC", |
| 542 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 543 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 544 | .manufacture_id = AMIC_ID, |
| 545 | .model_id = AMIC_A25L05PT, |
| 546 | .total_size = 64, |
| 547 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 548 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 549 | .tested = TEST_UNTESTED, |
| 550 | .probe = probe_spi_rdid4, |
| 551 | .probe_timing = TIMING_ZERO, |
| 552 | .block_erasers = |
| 553 | { |
| 554 | { |
| 555 | .eraseblocks = { |
| 556 | {32 * 1024, 1}, |
| 557 | {16 * 1024, 1}, |
| 558 | {8 * 1024, 1}, |
| 559 | {4 * 1024, 2}, |
| 560 | }, |
| 561 | .block_erase = spi_block_erase_d8, |
| 562 | }, { |
| 563 | .eraseblocks = { {64 * 1024, 1} }, |
| 564 | .block_erase = spi_block_erase_c7, |
| 565 | } |
| 566 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 567 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 568 | .unlock = spi_disable_blockprotect, |
| 569 | .write = spi_chip_write_256, |
| 570 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 571 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 572 | }, |
| 573 | |
| 574 | { |
| 575 | .vendor = "AMIC", |
| 576 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 577 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 578 | .manufacture_id = AMIC_ID, |
| 579 | .model_id = AMIC_A25L05PU, |
| 580 | .total_size = 64, |
| 581 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 582 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 583 | .tested = TEST_UNTESTED, |
| 584 | .probe = probe_spi_rdid4, |
| 585 | .probe_timing = TIMING_ZERO, |
| 586 | .block_erasers = |
| 587 | { |
| 588 | { |
| 589 | .eraseblocks = { |
| 590 | {4 * 1024, 2}, |
| 591 | {8 * 1024, 1}, |
| 592 | {16 * 1024, 1}, |
| 593 | {32 * 1024, 1}, |
| 594 | }, |
| 595 | .block_erase = spi_block_erase_d8, |
| 596 | }, { |
| 597 | .eraseblocks = { {64 * 1024, 1} }, |
| 598 | .block_erase = spi_block_erase_c7, |
| 599 | } |
| 600 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 601 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 602 | .unlock = spi_disable_blockprotect, |
| 603 | .write = spi_chip_write_256, |
| 604 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 605 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 606 | }, |
| 607 | |
| 608 | { |
| 609 | .vendor = "AMIC", |
| 610 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 611 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 612 | .manufacture_id = AMIC_ID, |
| 613 | .model_id = AMIC_A25L10PT, |
| 614 | .total_size = 128, |
| 615 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 616 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 617 | .tested = TEST_UNTESTED, |
| 618 | .probe = probe_spi_rdid4, |
| 619 | .probe_timing = TIMING_ZERO, |
| 620 | .block_erasers = |
| 621 | { |
| 622 | { |
| 623 | .eraseblocks = { |
| 624 | {64 * 1024, 1}, |
| 625 | {32 * 1024, 1}, |
| 626 | {16 * 1024, 1}, |
| 627 | {8 * 1024, 1}, |
| 628 | {4 * 1024, 2}, |
| 629 | }, |
| 630 | .block_erase = spi_block_erase_d8, |
| 631 | }, { |
| 632 | .eraseblocks = { {128 * 1024, 1} }, |
| 633 | .block_erase = spi_block_erase_c7, |
| 634 | } |
| 635 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 636 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 637 | .unlock = spi_disable_blockprotect, |
| 638 | .write = spi_chip_write_256, |
| 639 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 640 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 641 | }, |
| 642 | |
| 643 | { |
| 644 | .vendor = "AMIC", |
| 645 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 646 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 647 | .manufacture_id = AMIC_ID, |
| 648 | .model_id = AMIC_A25L10PU, |
| 649 | .total_size = 128, |
| 650 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 651 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 652 | .tested = TEST_UNTESTED, |
| 653 | .probe = probe_spi_rdid4, |
| 654 | .probe_timing = TIMING_ZERO, |
| 655 | .block_erasers = |
| 656 | { |
| 657 | { |
| 658 | .eraseblocks = { |
| 659 | {4 * 1024, 2}, |
| 660 | {8 * 1024, 1}, |
| 661 | {16 * 1024, 1}, |
| 662 | {32 * 1024, 1}, |
| 663 | {64 * 1024, 1}, |
| 664 | }, |
| 665 | .block_erase = spi_block_erase_d8, |
| 666 | }, { |
| 667 | .eraseblocks = { {128 * 1024, 1} }, |
| 668 | .block_erase = spi_block_erase_c7, |
| 669 | } |
| 670 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 671 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 672 | .unlock = spi_disable_blockprotect, |
| 673 | .write = spi_chip_write_256, |
| 674 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 675 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 676 | }, |
| 677 | |
| 678 | { |
| 679 | .vendor = "AMIC", |
| 680 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 681 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 682 | .manufacture_id = AMIC_ID, |
| 683 | .model_id = AMIC_A25L20PT, |
| 684 | .total_size = 256, |
| 685 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 686 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 687 | .tested = TEST_UNTESTED, |
| 688 | .probe = probe_spi_rdid4, |
| 689 | .probe_timing = TIMING_ZERO, |
| 690 | .block_erasers = |
| 691 | { |
| 692 | { |
| 693 | .eraseblocks = { |
| 694 | {64 * 1024, 3}, |
| 695 | {32 * 1024, 1}, |
| 696 | {16 * 1024, 1}, |
| 697 | {8 * 1024, 1}, |
| 698 | {4 * 1024, 2}, |
| 699 | }, |
| 700 | .block_erase = spi_block_erase_d8, |
| 701 | }, { |
| 702 | .eraseblocks = { {256 * 1024, 1} }, |
| 703 | .block_erase = spi_block_erase_c7, |
| 704 | } |
| 705 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 706 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 707 | .unlock = spi_disable_blockprotect, |
| 708 | .write = spi_chip_write_256, |
| 709 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 710 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 711 | }, |
| 712 | |
| 713 | { |
| 714 | .vendor = "AMIC", |
| 715 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 716 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 717 | .manufacture_id = AMIC_ID, |
| 718 | .model_id = AMIC_A25L20PU, |
| 719 | .total_size = 256, |
| 720 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 721 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 722 | .tested = TEST_UNTESTED, |
| 723 | .probe = probe_spi_rdid4, |
| 724 | .probe_timing = TIMING_ZERO, |
| 725 | .block_erasers = |
| 726 | { |
| 727 | { |
| 728 | .eraseblocks = { |
| 729 | {4 * 1024, 2}, |
| 730 | {8 * 1024, 1}, |
| 731 | {16 * 1024, 1}, |
| 732 | {32 * 1024, 1}, |
| 733 | {64 * 1024, 3}, |
| 734 | }, |
| 735 | .block_erase = spi_block_erase_d8, |
| 736 | }, { |
| 737 | .eraseblocks = { {256 * 1024, 1} }, |
| 738 | .block_erase = spi_block_erase_c7, |
| 739 | } |
| 740 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 741 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 742 | .unlock = spi_disable_blockprotect, |
| 743 | .write = spi_chip_write_256, |
| 744 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 745 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 746 | }, |
| 747 | |
| 748 | /* The A25L40P{T,U} chips are distinguished by their |
| 749 | * erase block layouts, but without any distinction in RDID. |
| 750 | * This inexplicable quirk was verified by Rudolf Marek |
| 751 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 752 | */ |
| 753 | { |
| 754 | .vendor = "AMIC", |
| 755 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 756 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 757 | .manufacture_id = AMIC_ID, |
| 758 | .model_id = AMIC_A25L40PT, |
| 759 | .total_size = 512, |
| 760 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 761 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 762 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 763 | .probe = probe_spi_rdid4, |
| 764 | .probe_timing = TIMING_ZERO, |
| 765 | .block_erasers = |
| 766 | { |
| 767 | { |
| 768 | .eraseblocks = { |
| 769 | {64 * 1024, 7}, |
| 770 | {32 * 1024, 1}, |
| 771 | {16 * 1024, 1}, |
| 772 | {8 * 1024, 1}, |
| 773 | {4 * 1024, 2}, |
| 774 | }, |
| 775 | .block_erase = spi_block_erase_d8, |
| 776 | }, { |
| 777 | .eraseblocks = { {512 * 1024, 1} }, |
| 778 | .block_erase = spi_block_erase_c7, |
| 779 | } |
| 780 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 781 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 782 | .unlock = spi_disable_blockprotect, |
| 783 | .write = spi_chip_write_256, |
| 784 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 785 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 786 | }, |
| 787 | |
| 788 | { |
| 789 | .vendor = "AMIC", |
| 790 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 791 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 792 | .manufacture_id = AMIC_ID, |
| 793 | .model_id = AMIC_A25L40PU, |
| 794 | .total_size = 512, |
| 795 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 796 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 797 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 798 | .probe = probe_spi_rdid4, |
| 799 | .probe_timing = TIMING_ZERO, |
| 800 | .block_erasers = |
| 801 | { |
| 802 | { |
| 803 | .eraseblocks = { |
| 804 | {4 * 1024, 2}, |
| 805 | {8 * 1024, 1}, |
| 806 | {16 * 1024, 1}, |
| 807 | {32 * 1024, 1}, |
| 808 | {64 * 1024, 7}, |
| 809 | }, |
| 810 | .block_erase = spi_block_erase_d8, |
| 811 | }, { |
| 812 | .eraseblocks = { {512 * 1024, 1} }, |
| 813 | .block_erase = spi_block_erase_c7, |
| 814 | } |
| 815 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 816 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 817 | .unlock = spi_disable_blockprotect, |
| 818 | .write = spi_chip_write_256, |
| 819 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 820 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 821 | }, |
| 822 | |
| 823 | { |
| 824 | .vendor = "AMIC", |
| 825 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 826 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 827 | .manufacture_id = AMIC_ID, |
| 828 | .model_id = AMIC_A25L80P, |
| 829 | .total_size = 1024, |
| 830 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 831 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 832 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 833 | .probe = probe_spi_rdid4, |
| 834 | .probe_timing = TIMING_ZERO, |
| 835 | .block_erasers = |
| 836 | { |
| 837 | { |
| 838 | .eraseblocks = { |
| 839 | {4 * 1024, 2}, |
| 840 | {8 * 1024, 1}, |
| 841 | {16 * 1024, 1}, |
| 842 | {32 * 1024, 1}, |
| 843 | {64 * 1024, 15}, |
| 844 | }, |
| 845 | .block_erase = spi_block_erase_d8, |
| 846 | }, { |
| 847 | .eraseblocks = { {1024 * 1024, 1} }, |
| 848 | .block_erase = spi_block_erase_c7, |
| 849 | } |
| 850 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 851 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 852 | .unlock = spi_disable_blockprotect, |
| 853 | .write = spi_chip_write_256, |
| 854 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 855 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 856 | }, |
| 857 | |
| 858 | { |
| 859 | .vendor = "AMIC", |
| 860 | .name = "A25L16PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 861 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 862 | .manufacture_id = AMIC_ID, |
| 863 | .model_id = AMIC_A25L16PT, |
| 864 | .total_size = 2048, |
| 865 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 866 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 867 | .tested = TEST_UNTESTED, |
| 868 | .probe = probe_spi_rdid4, |
| 869 | .probe_timing = TIMING_ZERO, |
| 870 | .block_erasers = |
| 871 | { |
| 872 | { |
| 873 | .eraseblocks = { |
| 874 | {64 * 1024, 31}, |
| 875 | {32 * 1024, 1}, |
| 876 | {16 * 1024, 1}, |
| 877 | {8 * 1024, 1}, |
| 878 | {4 * 1024, 2}, |
| 879 | }, |
| 880 | .block_erase = spi_block_erase_d8, |
| 881 | }, { |
| 882 | .eraseblocks = { {2048 * 1024, 1} }, |
| 883 | .block_erase = spi_block_erase_60, |
| 884 | }, { |
| 885 | .eraseblocks = { {2048 * 1024, 1} }, |
| 886 | .block_erase = spi_block_erase_c7, |
| 887 | } |
| 888 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 889 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 890 | .unlock = spi_disable_blockprotect, |
| 891 | .write = spi_chip_write_256, |
| 892 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 893 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 894 | }, |
| 895 | |
| 896 | { |
| 897 | .vendor = "AMIC", |
| 898 | .name = "A25L16PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 899 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 900 | .manufacture_id = AMIC_ID, |
| 901 | .model_id = AMIC_A25L16PU, |
| 902 | .total_size = 2048, |
| 903 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 904 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 905 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 906 | .probe = probe_spi_rdid4, |
| 907 | .probe_timing = TIMING_ZERO, |
| 908 | .block_erasers = |
| 909 | { |
| 910 | { |
| 911 | .eraseblocks = { |
| 912 | {4 * 1024, 2}, |
| 913 | {8 * 1024, 1}, |
| 914 | {16 * 1024, 1}, |
| 915 | {32 * 1024, 1}, |
| 916 | {64 * 1024, 31}, |
| 917 | }, |
| 918 | .block_erase = spi_block_erase_d8, |
| 919 | }, { |
| 920 | .eraseblocks = { {2048 * 1024, 1} }, |
| 921 | .block_erase = spi_block_erase_60, |
| 922 | }, { |
| 923 | .eraseblocks = { {2048 * 1024, 1} }, |
| 924 | .block_erase = spi_block_erase_c7, |
| 925 | } |
| 926 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 927 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 928 | .unlock = spi_disable_blockprotect, |
| 929 | .write = spi_chip_write_256, |
| 930 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 931 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 932 | }, |
| 933 | |
| 934 | { |
| 935 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 936 | .name = "A25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 937 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 938 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 939 | .model_id = AMIC_A25L512, |
| 940 | .total_size = 64, |
| 941 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 942 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 943 | .tested = TEST_UNTESTED, |
| 944 | .probe = probe_spi_rdid, |
| 945 | .probe_timing = TIMING_ZERO, |
| 946 | .block_erasers = |
| 947 | { |
| 948 | { |
| 949 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 950 | .block_erase = spi_block_erase_20, |
| 951 | }, { |
| 952 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 953 | .block_erase = spi_block_erase_d8, |
| 954 | }, { |
| 955 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 956 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 957 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 958 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 959 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 960 | .unlock = spi_disable_blockprotect, |
| 961 | .write = spi_chip_write_256, |
| 962 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 963 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 964 | }, |
| 965 | |
| 966 | { |
| 967 | .vendor = "AMIC", |
| 968 | .name = "A25L010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 969 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 970 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 971 | .model_id = AMIC_A25L010, |
| 972 | .total_size = 128, |
| 973 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 974 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 975 | .tested = TEST_UNTESTED, |
| 976 | .probe = probe_spi_rdid, |
| 977 | .probe_timing = TIMING_ZERO, |
| 978 | .block_erasers = |
| 979 | { |
| 980 | { |
| 981 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 982 | .block_erase = spi_block_erase_20, |
| 983 | }, { |
| 984 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 985 | .block_erase = spi_block_erase_d8, |
| 986 | }, { |
| 987 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 988 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 989 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 990 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 991 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 992 | .unlock = spi_disable_blockprotect, |
| 993 | .write = spi_chip_write_256, |
| 994 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 995 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 996 | }, |
| 997 | |
| 998 | { |
| 999 | .vendor = "AMIC", |
| 1000 | .name = "A25L020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1001 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1002 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1003 | .model_id = AMIC_A25L020, |
| 1004 | .total_size = 256, |
| 1005 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1006 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1007 | .tested = TEST_UNTESTED, |
| 1008 | .probe = probe_spi_rdid, |
| 1009 | .probe_timing = TIMING_ZERO, |
| 1010 | .block_erasers = |
| 1011 | { |
| 1012 | { |
| 1013 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 1014 | .block_erase = spi_block_erase_20, |
| 1015 | }, { |
| 1016 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 1017 | .block_erase = spi_block_erase_d8, |
| 1018 | }, { |
| 1019 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 1020 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1021 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1022 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1023 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1024 | .unlock = spi_disable_blockprotect, |
| 1025 | .write = spi_chip_write_256, |
| 1026 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1027 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1028 | }, |
| 1029 | |
| 1030 | { |
| 1031 | .vendor = "AMIC", |
| 1032 | .name = "A25L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1033 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1034 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1035 | .model_id = AMIC_A25L040, |
| 1036 | .total_size = 512, |
| 1037 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1038 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1039 | .tested = TEST_UNTESTED, |
| 1040 | .probe = probe_spi_rdid, |
| 1041 | .probe_timing = TIMING_ZERO, |
| 1042 | .block_erasers = |
| 1043 | { |
| 1044 | { |
| 1045 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1046 | .block_erase = spi_block_erase_20, |
| 1047 | }, { |
| 1048 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1049 | .block_erase = spi_block_erase_d8, |
| 1050 | }, { |
| 1051 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1052 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1053 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1054 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1055 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1056 | .unlock = spi_disable_blockprotect, |
| 1057 | .write = spi_chip_write_256, |
| 1058 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1059 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1060 | }, |
| 1061 | |
| 1062 | { |
| 1063 | .vendor = "AMIC", |
| 1064 | .name = "A25L080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1065 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1066 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1067 | .model_id = AMIC_A25L080, |
| 1068 | .total_size = 1024, |
| 1069 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1070 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1071 | .tested = TEST_UNTESTED, |
| 1072 | .probe = probe_spi_rdid, |
| 1073 | .probe_timing = TIMING_ZERO, |
| 1074 | .block_erasers = |
| 1075 | { |
| 1076 | { |
| 1077 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1078 | .block_erase = spi_block_erase_20, |
| 1079 | }, { |
| 1080 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1081 | .block_erase = spi_block_erase_d8, |
| 1082 | }, { |
| 1083 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1084 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1085 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1086 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1087 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1088 | .unlock = spi_disable_blockprotect, |
| 1089 | .write = spi_chip_write_256, |
| 1090 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1091 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1092 | }, |
| 1093 | |
| 1094 | { |
| 1095 | .vendor = "AMIC", |
| 1096 | .name = "A25L016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1097 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1098 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1099 | .model_id = AMIC_A25L016, |
| 1100 | .total_size = 2048, |
| 1101 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1102 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1103 | .tested = TEST_UNTESTED, |
| 1104 | .probe = probe_spi_rdid, |
| 1105 | .probe_timing = TIMING_ZERO, |
| 1106 | .block_erasers = |
| 1107 | { |
| 1108 | { |
| 1109 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1110 | .block_erase = spi_block_erase_20, |
| 1111 | }, { |
| 1112 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1113 | .block_erase = spi_block_erase_d8, |
| 1114 | }, { |
| 1115 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1116 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1117 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1118 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1119 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1120 | .unlock = spi_disable_blockprotect, |
| 1121 | .write = spi_chip_write_256, |
| 1122 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1123 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1124 | }, |
| 1125 | |
| 1126 | { |
| 1127 | .vendor = "AMIC", |
| 1128 | .name = "A25L032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1129 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1130 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1131 | .model_id = AMIC_A25L032, |
| 1132 | .total_size = 4096, |
| 1133 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1134 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1135 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1136 | .tested = TEST_OK_PREW, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1137 | .probe = probe_spi_rdid, |
| 1138 | .probe_timing = TIMING_ZERO, |
| 1139 | .block_erasers = |
| 1140 | { |
| 1141 | { |
| 1142 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1143 | .block_erase = spi_block_erase_20, |
| 1144 | }, { |
| 1145 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1146 | .block_erase = spi_block_erase_52, |
| 1147 | }, { |
| 1148 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1149 | .block_erase = spi_block_erase_d8, |
| 1150 | }, { |
| 1151 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1152 | .block_erase = spi_block_erase_60, |
| 1153 | }, { |
| 1154 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1155 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1156 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1157 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1158 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1159 | .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] | 1160 | .write = spi_chip_write_256, |
| 1161 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1162 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1163 | }, |
| 1164 | |
| 1165 | { |
| 1166 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1167 | .name = "A25LQ16", |
| 1168 | .bustype = BUS_SPI, |
| 1169 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1170 | .model_id = AMIC_A25LQ16, |
| 1171 | .total_size = 2048, |
| 1172 | .page_size = 256, |
| 1173 | /* supports SFDP */ |
| 1174 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1175 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1176 | .tested = TEST_UNTESTED, |
| 1177 | .probe = probe_spi_rdid, |
| 1178 | .probe_timing = TIMING_ZERO, |
| 1179 | .block_erasers = { |
| 1180 | { |
| 1181 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1182 | .block_erase = spi_block_erase_20, |
| 1183 | }, { |
| 1184 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1185 | .block_erase = spi_block_erase_52, |
| 1186 | }, { |
| 1187 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1188 | .block_erase = spi_block_erase_d8, |
| 1189 | }, { |
| 1190 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1191 | .block_erase = spi_block_erase_60, |
| 1192 | }, { |
| 1193 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1194 | .block_erase = spi_block_erase_c7, |
| 1195 | } |
| 1196 | }, |
| 1197 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1198 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1199 | .write = spi_chip_write_256, |
| 1200 | .read = spi_chip_read, |
| 1201 | .voltage = {2700, 3600}, |
| 1202 | }, |
| 1203 | |
| 1204 | { |
| 1205 | .vendor = "AMIC", |
| 1206 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1207 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1208 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1209 | .model_id = AMIC_A25LQ032, |
| 1210 | .total_size = 4096, |
| 1211 | .page_size = 256, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1212 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1213 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1214 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1215 | .tested = TEST_UNTESTED, |
| 1216 | .probe = probe_spi_rdid, |
| 1217 | .probe_timing = TIMING_ZERO, |
| 1218 | .block_erasers = |
| 1219 | { |
| 1220 | { |
| 1221 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1222 | .block_erase = spi_block_erase_20, |
| 1223 | }, { |
| 1224 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1225 | .block_erase = spi_block_erase_52, |
| 1226 | }, { |
| 1227 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1228 | .block_erase = spi_block_erase_d8, |
| 1229 | }, { |
| 1230 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1231 | .block_erase = spi_block_erase_60, |
| 1232 | }, { |
| 1233 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1234 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1235 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1236 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1237 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1238 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1239 | .write = spi_chip_write_256, |
| 1240 | .read = spi_chip_read, |
| 1241 | .voltage = {2700, 3600}, |
| 1242 | }, |
| 1243 | |
| 1244 | { |
| 1245 | .vendor = "AMIC", |
| 1246 | .name = "A25LQ64", |
| 1247 | .bustype = BUS_SPI, |
| 1248 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1249 | .model_id = AMIC_A25LQ032, |
| 1250 | .total_size = 8192, |
| 1251 | .page_size = 256, |
| 1252 | /* supports SFDP */ |
| 1253 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1254 | /* QPI enable 0x35, disable 0xF5 */ |
| 1255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1256 | .tested = TEST_UNTESTED, |
| 1257 | .probe = probe_spi_rdid, |
| 1258 | .probe_timing = TIMING_ZERO, |
| 1259 | .block_erasers = |
| 1260 | { |
| 1261 | { |
| 1262 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1263 | .block_erase = spi_block_erase_20, |
| 1264 | }, { |
| 1265 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1266 | .block_erase = spi_block_erase_52, |
| 1267 | }, { |
| 1268 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1269 | .block_erase = spi_block_erase_d8, |
| 1270 | }, { |
| 1271 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1272 | .block_erase = spi_block_erase_60, |
| 1273 | }, { |
| 1274 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1275 | .block_erase = spi_block_erase_c7, |
| 1276 | } |
| 1277 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1278 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1279 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1280 | .write = spi_chip_write_256, |
| 1281 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1282 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1283 | }, |
| 1284 | |
| 1285 | { |
| 1286 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1287 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1288 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1289 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1290 | .model_id = AMIC_A29002B, |
| 1291 | .total_size = 256, |
| 1292 | .page_size = 64 * 1024, |
| 1293 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1294 | .tested = TEST_UNTESTED, |
| 1295 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1296 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1297 | .block_erasers = |
| 1298 | { |
| 1299 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1300 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1301 | {16 * 1024, 1}, |
| 1302 | {8 * 1024, 2}, |
| 1303 | {32 * 1024, 1}, |
| 1304 | {64 * 1024, 3}, |
| 1305 | }, |
| 1306 | .block_erase = erase_sector_jedec, |
| 1307 | }, { |
| 1308 | .eraseblocks = { {256 * 1024, 1} }, |
| 1309 | .block_erase = erase_chip_block_jedec, |
| 1310 | }, |
| 1311 | }, |
| 1312 | .write = write_jedec_1, |
| 1313 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1314 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1315 | }, |
| 1316 | |
| 1317 | { |
| 1318 | .vendor = "AMIC", |
| 1319 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1320 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1321 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1322 | .model_id = AMIC_A29002T, |
| 1323 | .total_size = 256, |
| 1324 | .page_size = 64 * 1024, |
| 1325 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1326 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1327 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1328 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1329 | .block_erasers = |
| 1330 | { |
| 1331 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1332 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1333 | {64 * 1024, 3}, |
| 1334 | {32 * 1024, 1}, |
| 1335 | {8 * 1024, 2}, |
| 1336 | {16 * 1024, 1}, |
| 1337 | }, |
| 1338 | .block_erase = erase_sector_jedec, |
| 1339 | }, { |
| 1340 | .eraseblocks = { {256 * 1024, 1} }, |
| 1341 | .block_erase = erase_chip_block_jedec, |
| 1342 | }, |
| 1343 | }, |
| 1344 | .write = write_jedec_1, |
| 1345 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1346 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1347 | }, |
| 1348 | |
| 1349 | { |
| 1350 | .vendor = "AMIC", |
| 1351 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1352 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1353 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1354 | .model_id = AMIC_A29040B, |
| 1355 | .total_size = 512, |
| 1356 | .page_size = 64 * 1024, |
| 1357 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1358 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1359 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1360 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1361 | .block_erasers = |
| 1362 | { |
| 1363 | { |
| 1364 | .eraseblocks = { {64 * 1024, 8} }, |
| 1365 | .block_erase = erase_sector_jedec, |
| 1366 | }, { |
| 1367 | .eraseblocks = { {512 * 1024, 1} }, |
| 1368 | .block_erase = erase_chip_block_jedec, |
| 1369 | }, |
| 1370 | }, |
| 1371 | .write = write_jedec_1, |
| 1372 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1373 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1374 | }, |
| 1375 | |
| 1376 | { |
| 1377 | .vendor = "AMIC", |
| 1378 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1379 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1380 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1381 | .model_id = AMIC_A49LF040A, |
| 1382 | .total_size = 512, |
| 1383 | .page_size = 64 * 1024, |
| 1384 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1385 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1386 | .probe = probe_jedec, |
| 1387 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1388 | .block_erasers = |
| 1389 | { |
| 1390 | { |
| 1391 | .eraseblocks = { {64 * 1024, 8} }, |
| 1392 | .block_erase = erase_block_jedec, |
| 1393 | }, { |
| 1394 | .eraseblocks = { {512 * 1024, 1} }, |
| 1395 | .block_erase = erase_chip_block_jedec, |
| 1396 | } |
| 1397 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1398 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1399 | .write = write_jedec_1, |
| 1400 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1401 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1402 | }, |
| 1403 | |
| 1404 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1405 | .vendor = "Atmel", |
| 1406 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1407 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1408 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1409 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1410 | .total_size = 256, |
| 1411 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1412 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1413 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1414 | .tested = TEST_UNTESTED, |
| 1415 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1416 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1417 | .block_erasers = |
| 1418 | { |
| 1419 | { |
| 1420 | .eraseblocks = { {4 * 1024, 64} }, |
| 1421 | .block_erase = spi_block_erase_20, |
| 1422 | }, { |
| 1423 | .eraseblocks = { {32 * 1024, 8} }, |
| 1424 | .block_erase = spi_block_erase_52, |
| 1425 | }, { |
| 1426 | .eraseblocks = { {64 * 1024, 4} }, |
| 1427 | .block_erase = spi_block_erase_d8, |
| 1428 | }, { |
| 1429 | .eraseblocks = { {256 * 1024, 1} }, |
| 1430 | .block_erase = spi_block_erase_60, |
| 1431 | }, { |
| 1432 | .eraseblocks = { {256 * 1024, 1} }, |
| 1433 | .block_erase = spi_block_erase_c7, |
| 1434 | } |
| 1435 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1436 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1437 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1438 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1439 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1440 | .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] | 1441 | }, |
| 1442 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1443 | { |
| 1444 | .vendor = "Atmel", |
| 1445 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1446 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1447 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1448 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1449 | .total_size = 512, |
| 1450 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1451 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1452 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1453 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1454 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1455 | .block_erasers = |
| 1456 | { |
| 1457 | { |
| 1458 | .eraseblocks = { {4 * 1024, 128} }, |
| 1459 | .block_erase = spi_block_erase_20, |
| 1460 | }, { |
| 1461 | .eraseblocks = { {32 * 1024, 16} }, |
| 1462 | .block_erase = spi_block_erase_52, |
| 1463 | }, { |
| 1464 | .eraseblocks = { {64 * 1024, 8} }, |
| 1465 | .block_erase = spi_block_erase_d8, |
| 1466 | }, { |
| 1467 | .eraseblocks = { {512 * 1024, 1} }, |
| 1468 | .block_erase = spi_block_erase_60, |
| 1469 | }, { |
| 1470 | .eraseblocks = { {512 * 1024, 1} }, |
| 1471 | .block_erase = spi_block_erase_c7, |
| 1472 | } |
| 1473 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1474 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1475 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1476 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1477 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1478 | .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] | 1479 | }, |
| 1480 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1481 | { |
| 1482 | .vendor = "Atmel", |
| 1483 | .name = "AT25DF081", |
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_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1487 | .total_size = 1024, |
| 1488 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1489 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1490 | .tested = TEST_UNTESTED, |
| 1491 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1492 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1493 | .block_erasers = |
| 1494 | { |
| 1495 | { |
| 1496 | .eraseblocks = { {4 * 1024, 256} }, |
| 1497 | .block_erase = spi_block_erase_20, |
| 1498 | }, { |
| 1499 | .eraseblocks = { {32 * 1024, 32} }, |
| 1500 | .block_erase = spi_block_erase_52, |
| 1501 | }, { |
| 1502 | .eraseblocks = { {64 * 1024, 16} }, |
| 1503 | .block_erase = spi_block_erase_d8, |
| 1504 | }, { |
| 1505 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1506 | .block_erase = spi_block_erase_60, |
| 1507 | }, { |
| 1508 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1509 | .block_erase = spi_block_erase_c7, |
| 1510 | } |
| 1511 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1512 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1513 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1514 | .write = spi_chip_write_256, |
| 1515 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1516 | .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] | 1517 | }, |
| 1518 | |
| 1519 | { |
| 1520 | .vendor = "Atmel", |
| 1521 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1522 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1523 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1524 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1525 | .total_size = 1024, |
| 1526 | .page_size = 256, |
| 1527 | .feature_bits = FEATURE_WRSR_WREN, |
| 1528 | .tested = TEST_UNTESTED, |
| 1529 | .probe = probe_spi_rdid, |
| 1530 | .probe_timing = TIMING_ZERO, |
| 1531 | .block_erasers = |
| 1532 | { |
| 1533 | { |
| 1534 | .eraseblocks = { {4 * 1024, 256} }, |
| 1535 | .block_erase = spi_block_erase_20, |
| 1536 | }, { |
| 1537 | .eraseblocks = { {32 * 1024, 32} }, |
| 1538 | .block_erase = spi_block_erase_52, |
| 1539 | }, { |
| 1540 | .eraseblocks = { {64 * 1024, 16} }, |
| 1541 | .block_erase = spi_block_erase_d8, |
| 1542 | }, { |
| 1543 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1544 | .block_erase = spi_block_erase_60, |
| 1545 | }, { |
| 1546 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1547 | .block_erase = spi_block_erase_c7, |
| 1548 | } |
| 1549 | }, |
| 1550 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1551 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1552 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1553 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1554 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1555 | }, |
| 1556 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1557 | { |
| 1558 | .vendor = "Atmel", |
| 1559 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1560 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1561 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1562 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1563 | .total_size = 2048, |
| 1564 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1565 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 1566 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1567 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1568 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1569 | .block_erasers = |
| 1570 | { |
| 1571 | { |
| 1572 | .eraseblocks = { {4 * 1024, 512} }, |
| 1573 | .block_erase = spi_block_erase_20, |
| 1574 | }, { |
| 1575 | .eraseblocks = { {32 * 1024, 64} }, |
| 1576 | .block_erase = spi_block_erase_52, |
| 1577 | }, { |
| 1578 | .eraseblocks = { {64 * 1024, 32} }, |
| 1579 | .block_erase = spi_block_erase_d8, |
| 1580 | }, { |
| 1581 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1582 | .block_erase = spi_block_erase_60, |
| 1583 | }, { |
| 1584 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1585 | .block_erase = spi_block_erase_c7, |
| 1586 | } |
| 1587 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1588 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1589 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1590 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1591 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1592 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1593 | }, |
| 1594 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1595 | { |
| 1596 | .vendor = "Atmel", |
| 1597 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1598 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1599 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1600 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1601 | .total_size = 4096, |
| 1602 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1603 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1604 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1605 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1606 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1607 | .block_erasers = |
| 1608 | { |
| 1609 | { |
| 1610 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1611 | .block_erase = spi_block_erase_20, |
| 1612 | }, { |
| 1613 | .eraseblocks = { {32 * 1024, 128} }, |
| 1614 | .block_erase = spi_block_erase_52, |
| 1615 | }, { |
| 1616 | .eraseblocks = { {64 * 1024, 64} }, |
| 1617 | .block_erase = spi_block_erase_d8, |
| 1618 | }, { |
| 1619 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1620 | .block_erase = spi_block_erase_60, |
| 1621 | }, { |
| 1622 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1623 | .block_erase = spi_block_erase_c7, |
| 1624 | } |
| 1625 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1626 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1627 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1628 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1629 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1630 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1631 | }, |
| 1632 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1633 | { |
| 1634 | .vendor = "Atmel", |
| 1635 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1636 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1637 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1638 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1639 | .total_size = 4096, |
| 1640 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1641 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1642 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1643 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1644 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1645 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1646 | .block_erasers = |
| 1647 | { |
| 1648 | { |
| 1649 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1650 | .block_erase = spi_block_erase_20, |
| 1651 | }, { |
| 1652 | .eraseblocks = { {32 * 1024, 128} }, |
| 1653 | .block_erase = spi_block_erase_52, |
| 1654 | }, { |
| 1655 | .eraseblocks = { {64 * 1024, 64} }, |
| 1656 | .block_erase = spi_block_erase_d8, |
| 1657 | }, { |
| 1658 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1659 | .block_erase = spi_block_erase_60, |
| 1660 | }, { |
| 1661 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1662 | .block_erase = spi_block_erase_c7, |
| 1663 | } |
| 1664 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1665 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1666 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1667 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1668 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1669 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1670 | }, |
| 1671 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1672 | { |
| 1673 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1674 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1675 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1676 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1677 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1678 | .total_size = 8192, |
| 1679 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1680 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1681 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1682 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1683 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1684 | .block_erasers = |
| 1685 | { |
| 1686 | { |
| 1687 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1688 | .block_erase = spi_block_erase_20, |
| 1689 | }, { |
| 1690 | .eraseblocks = { {32 * 1024, 256} }, |
| 1691 | .block_erase = spi_block_erase_52, |
| 1692 | }, { |
| 1693 | .eraseblocks = { {64 * 1024, 128} }, |
| 1694 | .block_erase = spi_block_erase_d8, |
| 1695 | }, { |
| 1696 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1697 | .block_erase = spi_block_erase_60, |
| 1698 | }, { |
| 1699 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1700 | .block_erase = spi_block_erase_c7, |
| 1701 | } |
| 1702 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1703 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1704 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1705 | .write = spi_chip_write_256, |
| 1706 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1707 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1708 | }, |
| 1709 | |
| 1710 | { |
| 1711 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1712 | .name = "AT25DL081", |
| 1713 | .bustype = BUS_SPI, |
| 1714 | .manufacture_id = ATMEL_ID, |
| 1715 | .model_id = ATMEL_AT25DF081, |
| 1716 | .total_size = 1024, |
| 1717 | .page_size = 256, |
| 1718 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1719 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1720 | .tested = TEST_UNTESTED, |
| 1721 | .probe = probe_spi_rdid, |
| 1722 | .probe_timing = TIMING_ZERO, |
| 1723 | .block_erasers = |
| 1724 | { |
| 1725 | { |
| 1726 | .eraseblocks = { {4 * 1024, 256} }, |
| 1727 | .block_erase = spi_block_erase_20, |
| 1728 | }, { |
| 1729 | .eraseblocks = { {32 * 1024, 32} }, |
| 1730 | .block_erase = spi_block_erase_52, |
| 1731 | }, { |
| 1732 | .eraseblocks = { {64 * 1024, 16} }, |
| 1733 | .block_erase = spi_block_erase_d8, |
| 1734 | }, { |
| 1735 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1736 | .block_erase = spi_block_erase_60, |
| 1737 | }, { |
| 1738 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1739 | .block_erase = spi_block_erase_c7, |
| 1740 | } |
| 1741 | }, |
| 1742 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1743 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1744 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1745 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1746 | .voltage = {1650, 1950}, |
| 1747 | }, |
| 1748 | |
| 1749 | { |
| 1750 | .vendor = "Atmel", |
| 1751 | .name = "AT25DL161", |
| 1752 | .bustype = BUS_SPI, |
| 1753 | .manufacture_id = ATMEL_ID, |
| 1754 | .model_id = ATMEL_AT25DL161, |
| 1755 | .total_size = 2048, |
| 1756 | .page_size = 256, |
| 1757 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1758 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1759 | .tested = TEST_UNTESTED, |
| 1760 | .probe = probe_spi_rdid, |
| 1761 | .probe_timing = TIMING_ZERO, |
| 1762 | .block_erasers = |
| 1763 | { |
| 1764 | { |
| 1765 | .eraseblocks = { {4 * 1024, 512} }, |
| 1766 | .block_erase = spi_block_erase_20, |
| 1767 | }, { |
| 1768 | .eraseblocks = { {32 * 1024, 64} }, |
| 1769 | .block_erase = spi_block_erase_52, |
| 1770 | }, { |
| 1771 | .eraseblocks = { {64 * 1024, 32} }, |
| 1772 | .block_erase = spi_block_erase_d8, |
| 1773 | }, { |
| 1774 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1775 | .block_erase = spi_block_erase_60, |
| 1776 | }, { |
| 1777 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1778 | .block_erase = spi_block_erase_c7, |
| 1779 | } |
| 1780 | }, |
| 1781 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1782 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1783 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1784 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1785 | .voltage = {1650, 1950}, |
| 1786 | }, |
| 1787 | |
| 1788 | { |
| 1789 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1790 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1791 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1792 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1793 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1794 | .total_size = 2048, |
| 1795 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1796 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1797 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1798 | .tested = TEST_UNTESTED, |
| 1799 | .probe = probe_spi_rdid, |
| 1800 | .probe_timing = TIMING_ZERO, |
| 1801 | .block_erasers = |
| 1802 | { |
| 1803 | { |
| 1804 | .eraseblocks = { {4 * 1024, 512} }, |
| 1805 | .block_erase = spi_block_erase_20, |
| 1806 | }, { |
| 1807 | .eraseblocks = { {32 * 1024, 64} }, |
| 1808 | .block_erase = spi_block_erase_52, |
| 1809 | }, { |
| 1810 | .eraseblocks = { {64 * 1024, 32} }, |
| 1811 | .block_erase = spi_block_erase_d8, |
| 1812 | }, { |
| 1813 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1814 | .block_erase = spi_block_erase_60, |
| 1815 | }, { |
| 1816 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1817 | .block_erase = spi_block_erase_c7, |
| 1818 | } |
| 1819 | }, |
| 1820 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1821 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1822 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1823 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1824 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1825 | }, |
| 1826 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1827 | { |
| 1828 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1829 | .name = "AT25F512", |
| 1830 | .bustype = BUS_SPI, |
| 1831 | .manufacture_id = ATMEL_ID, |
| 1832 | .model_id = ATMEL_AT25F512, |
| 1833 | .total_size = 64, |
| 1834 | .page_size = 256, |
| 1835 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1836 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1837 | .probe = probe_spi_at25f, |
| 1838 | .probe_timing = TIMING_ZERO, |
| 1839 | .block_erasers = |
| 1840 | { |
| 1841 | { |
| 1842 | .eraseblocks = { {32 * 1024, 2} }, |
| 1843 | .block_erase = spi_block_erase_52, |
| 1844 | }, { |
| 1845 | .eraseblocks = { {64 * 1024, 1} }, |
| 1846 | .block_erase = spi_block_erase_62, |
| 1847 | } |
| 1848 | }, |
| 1849 | .printlock = spi_prettyprint_status_register_at25f, |
| 1850 | .unlock = spi_disable_blockprotect_at25f, |
| 1851 | .write = spi_chip_write_256, |
| 1852 | .read = spi_chip_read, |
| 1853 | .voltage = {2700, 3600}, |
| 1854 | }, |
| 1855 | |
| 1856 | { |
| 1857 | .vendor = "Atmel", |
| 1858 | .name = "AT25F512A", |
| 1859 | .bustype = BUS_SPI, |
| 1860 | .manufacture_id = ATMEL_ID, |
| 1861 | .model_id = ATMEL_AT25F512A, |
| 1862 | .total_size = 64, |
| 1863 | .page_size = 128, |
| 1864 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1865 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1866 | .probe = probe_spi_at25f, |
| 1867 | .probe_timing = TIMING_ZERO, |
| 1868 | .block_erasers = |
| 1869 | { |
| 1870 | { |
| 1871 | .eraseblocks = { {32 * 1024, 2} }, |
| 1872 | .block_erase = spi_block_erase_52, |
| 1873 | }, { |
| 1874 | .eraseblocks = { {64 * 1024, 1} }, |
| 1875 | .block_erase = spi_block_erase_62, |
| 1876 | } |
| 1877 | }, |
| 1878 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 1879 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 1880 | .unlock = spi_disable_blockprotect_at25f512a, |
| 1881 | .write = spi_chip_write_256, |
| 1882 | .read = spi_chip_read, |
| 1883 | .voltage = {2700, 3600}, |
| 1884 | }, |
| 1885 | |
| 1886 | { |
| 1887 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1888 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1889 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1890 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1891 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1892 | .total_size = 64, |
| 1893 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1894 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1895 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1896 | .tested = TEST_UNTESTED, |
| 1897 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1898 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1899 | .block_erasers = |
| 1900 | { |
| 1901 | { |
| 1902 | .eraseblocks = { {4 * 1024, 16} }, |
| 1903 | .block_erase = spi_block_erase_20, |
| 1904 | }, { |
| 1905 | .eraseblocks = { {32 * 1024, 2} }, |
| 1906 | .block_erase = spi_block_erase_52, |
| 1907 | }, { |
| 1908 | .eraseblocks = { {32 * 1024, 2} }, |
| 1909 | .block_erase = spi_block_erase_d8, |
| 1910 | }, { |
| 1911 | .eraseblocks = { {64 * 1024, 1} }, |
| 1912 | .block_erase = spi_block_erase_60, |
| 1913 | }, { |
| 1914 | .eraseblocks = { {64 * 1024, 1} }, |
| 1915 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 1916 | }, { |
| 1917 | .eraseblocks = { {64 * 1024, 1} }, |
| 1918 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1919 | } |
| 1920 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 1921 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 1922 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1923 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1924 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1925 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1926 | }, |
| 1927 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1928 | { |
| 1929 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1930 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1931 | * All other properties seem to be the same.*/ |
| 1932 | .name = "AT25F1024(A)", |
| 1933 | .bustype = BUS_SPI, |
| 1934 | .manufacture_id = ATMEL_ID, |
| 1935 | .model_id = ATMEL_AT25F1024, |
| 1936 | .total_size = 128, |
| 1937 | .page_size = 256, |
| 1938 | .feature_bits = FEATURE_WRSR_WREN, |
| 1939 | .tested = TEST_OK_PREW, |
| 1940 | .probe = probe_spi_at25f, |
| 1941 | .probe_timing = TIMING_ZERO, |
| 1942 | .block_erasers = |
| 1943 | { |
| 1944 | { |
| 1945 | .eraseblocks = { {32 * 1024, 4} }, |
| 1946 | .block_erase = spi_block_erase_52, |
| 1947 | }, { |
| 1948 | .eraseblocks = { {128 * 1024, 1} }, |
| 1949 | .block_erase = spi_block_erase_62, |
| 1950 | } |
| 1951 | }, |
| 1952 | .printlock = spi_prettyprint_status_register_at25f, |
| 1953 | .unlock = spi_disable_blockprotect_at25f, |
| 1954 | .write = spi_chip_write_256, |
| 1955 | .read = spi_chip_read, |
| 1956 | .voltage = {2700, 3600}, |
| 1957 | }, |
| 1958 | |
| 1959 | { |
| 1960 | .vendor = "Atmel", |
| 1961 | .name = "AT25F2048", |
| 1962 | .bustype = BUS_SPI, |
| 1963 | .manufacture_id = ATMEL_ID, |
| 1964 | .model_id = ATMEL_AT25F2048, |
| 1965 | .total_size = 256, |
| 1966 | .page_size = 256, |
| 1967 | .feature_bits = FEATURE_WRSR_WREN, |
| 1968 | .tested = TEST_UNTESTED, |
| 1969 | .probe = probe_spi_at25f, |
| 1970 | .probe_timing = TIMING_ZERO, |
| 1971 | .block_erasers = |
| 1972 | { |
| 1973 | { |
| 1974 | .eraseblocks = { {64 * 1024, 4} }, |
| 1975 | .block_erase = spi_block_erase_52, |
| 1976 | }, { |
| 1977 | .eraseblocks = { {256 * 1024, 1} }, |
| 1978 | .block_erase = spi_block_erase_62, |
| 1979 | } |
| 1980 | }, |
| 1981 | .printlock = spi_prettyprint_status_register_at25f, |
| 1982 | .unlock = spi_disable_blockprotect_at25f, |
| 1983 | .write = spi_chip_write_256, |
| 1984 | .read = spi_chip_read, |
| 1985 | .voltage = {2700, 3600}, |
| 1986 | }, |
| 1987 | |
| 1988 | { |
| 1989 | .vendor = "Atmel", |
| 1990 | .name = "AT25F4096", |
| 1991 | .bustype = BUS_SPI, |
| 1992 | .manufacture_id = ATMEL_ID, |
| 1993 | .model_id = ATMEL_AT25F4096, |
| 1994 | .total_size = 512, |
| 1995 | .page_size = 256, |
| 1996 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 1997 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1998 | .probe = probe_spi_at25f, |
| 1999 | .probe_timing = TIMING_ZERO, |
| 2000 | .block_erasers = |
| 2001 | { |
| 2002 | { |
| 2003 | .eraseblocks = { {64 * 1024, 8} }, |
| 2004 | .block_erase = spi_block_erase_52, |
| 2005 | }, { |
| 2006 | .eraseblocks = { {512 * 1024, 1} }, |
| 2007 | .block_erase = spi_block_erase_62, |
| 2008 | } |
| 2009 | }, |
| 2010 | .printlock = spi_prettyprint_status_register_at25f4096, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 2011 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2012 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2013 | .write = spi_chip_write_256, |
| 2014 | .read = spi_chip_read, |
| 2015 | .voltage = {2700, 3600}, |
| 2016 | }, |
| 2017 | |
| 2018 | { |
| 2019 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2020 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2021 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2022 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2023 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2024 | .total_size = 128, |
| 2025 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2026 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2027 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2028 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2029 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2030 | .block_erasers = |
| 2031 | { |
| 2032 | { |
| 2033 | .eraseblocks = { {4 * 1024, 32} }, |
| 2034 | .block_erase = spi_block_erase_20, |
| 2035 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2036 | .eraseblocks = { {4 * 1024, 32} }, |
| 2037 | .block_erase = spi_block_erase_d7, |
| 2038 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2039 | .eraseblocks = { {32 * 1024, 4} }, |
| 2040 | .block_erase = spi_block_erase_52, |
| 2041 | }, { |
| 2042 | .eraseblocks = { {32 * 1024, 4} }, |
| 2043 | .block_erase = spi_block_erase_d8, |
| 2044 | }, { |
| 2045 | .eraseblocks = { {128 * 1024, 1} }, |
| 2046 | .block_erase = spi_block_erase_60, |
| 2047 | }, { |
| 2048 | .eraseblocks = { {128 * 1024, 1} }, |
| 2049 | .block_erase = spi_block_erase_c7, |
| 2050 | } |
| 2051 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2052 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2053 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2054 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2055 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2056 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2057 | }, |
| 2058 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2059 | { |
| 2060 | .vendor = "Atmel", |
| 2061 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2062 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2063 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2064 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2065 | .total_size = 512, |
| 2066 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2067 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2068 | .tested = TEST_UNTESTED, |
| 2069 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2070 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2071 | .block_erasers = |
| 2072 | { |
| 2073 | { |
| 2074 | .eraseblocks = { {4 * 1024, 128} }, |
| 2075 | .block_erase = spi_block_erase_20, |
| 2076 | }, { |
| 2077 | .eraseblocks = { {64 * 1024, 8} }, |
| 2078 | .block_erase = spi_block_erase_52, |
| 2079 | }, { |
| 2080 | .eraseblocks = { {64 * 1024, 8} }, |
| 2081 | .block_erase = spi_block_erase_d8, |
| 2082 | }, { |
| 2083 | .eraseblocks = { {512 * 1024, 1} }, |
| 2084 | .block_erase = spi_block_erase_60, |
| 2085 | }, { |
| 2086 | .eraseblocks = { {512 * 1024, 1} }, |
| 2087 | .block_erase = spi_block_erase_c7, |
| 2088 | } |
| 2089 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2090 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2091 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2092 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2093 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2094 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2095 | }, |
| 2096 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2097 | { |
| 2098 | .vendor = "Atmel", |
| 2099 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2100 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2101 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2102 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2103 | .total_size = 512, |
| 2104 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2105 | /* 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] | 2106 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2107 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2108 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2109 | .block_erasers = |
| 2110 | { |
| 2111 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2112 | .eraseblocks = { {256, 2048} }, |
| 2113 | .block_erase = spi_block_erase_81, |
| 2114 | }, { |
| 2115 | .eraseblocks = { {2 * 1024, 256} }, |
| 2116 | .block_erase = spi_block_erase_50, |
| 2117 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2118 | .eraseblocks = { {4 * 1024, 128} }, |
| 2119 | .block_erase = spi_block_erase_20, |
| 2120 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2121 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2122 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2123 | /* 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] | 2124 | .write = spi_chip_write_1, |
| 2125 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2126 | .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] | 2127 | }, |
| 2128 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2129 | { |
| 2130 | .vendor = "Atmel", |
| 2131 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2132 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2133 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2134 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2135 | .total_size = 1024, |
| 2136 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2137 | .feature_bits = FEATURE_WRSR_WREN, |
| 2138 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2139 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2140 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2141 | .block_erasers = |
| 2142 | { |
| 2143 | { |
| 2144 | .eraseblocks = { {4 * 1024, 256} }, |
| 2145 | .block_erase = spi_block_erase_20, |
| 2146 | }, { |
| 2147 | .eraseblocks = { {32 * 1024, 32} }, |
| 2148 | .block_erase = spi_block_erase_52, |
| 2149 | }, { |
| 2150 | .eraseblocks = { {64 * 1024, 16} }, |
| 2151 | .block_erase = spi_block_erase_d8, |
| 2152 | }, { |
| 2153 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2154 | .block_erase = spi_block_erase_60, |
| 2155 | }, { |
| 2156 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2157 | .block_erase = spi_block_erase_c7, |
| 2158 | } |
| 2159 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2160 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2161 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2162 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2163 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2164 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2165 | }, |
| 2166 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2167 | { |
| 2168 | .vendor = "Atmel", |
| 2169 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2170 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2171 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2172 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2173 | .total_size = 2048, |
| 2174 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2175 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2176 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2177 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2178 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2179 | .block_erasers = |
| 2180 | { |
| 2181 | { |
| 2182 | .eraseblocks = { {4 * 1024, 512} }, |
| 2183 | .block_erase = spi_block_erase_20, |
| 2184 | }, { |
| 2185 | .eraseblocks = { {32 * 1024, 64} }, |
| 2186 | .block_erase = spi_block_erase_52, |
| 2187 | }, { |
| 2188 | .eraseblocks = { {64 * 1024, 32} }, |
| 2189 | .block_erase = spi_block_erase_d8, |
| 2190 | }, { |
| 2191 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2192 | .block_erase = spi_block_erase_60, |
| 2193 | }, { |
| 2194 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2195 | .block_erase = spi_block_erase_c7, |
| 2196 | } |
| 2197 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2198 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2199 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2200 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2201 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2202 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2203 | }, |
| 2204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2205 | { |
| 2206 | .vendor = "Atmel", |
| 2207 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2208 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2209 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2210 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2211 | .total_size = 2048, |
| 2212 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2213 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2214 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2215 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2217 | .block_erasers = |
| 2218 | { |
| 2219 | { |
| 2220 | .eraseblocks = { {4 * 1024, 512} }, |
| 2221 | .block_erase = spi_block_erase_20, |
| 2222 | }, { |
| 2223 | .eraseblocks = { {32 * 1024, 64} }, |
| 2224 | .block_erase = spi_block_erase_52, |
| 2225 | }, { |
| 2226 | .eraseblocks = { {64 * 1024, 32} }, |
| 2227 | .block_erase = spi_block_erase_d8, |
| 2228 | }, { |
| 2229 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2230 | .block_erase = spi_block_erase_60, |
| 2231 | }, { |
| 2232 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2233 | .block_erase = spi_block_erase_c7, |
| 2234 | } |
| 2235 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2236 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2237 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2238 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2239 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2240 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2241 | }, |
| 2242 | |
| 2243 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2244 | /*{ |
| 2245 | .vendor = "Atmel", |
| 2246 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2247 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2248 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2249 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2250 | .total_size = 4096, |
| 2251 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2252 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2253 | .tested = TEST_UNTESTED, |
| 2254 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2255 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2256 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2257 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2258 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2259 | .read = spi_chip_read, |
| 2260 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2261 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2262 | { |
| 2263 | .vendor = "Atmel", |
| 2264 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2265 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2266 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2267 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2268 | .total_size = 512, |
| 2269 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 2270 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD }, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2271 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2272 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2273 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2274 | .block_erasers = |
| 2275 | { |
| 2276 | { |
| 2277 | .eraseblocks = { {4 * 1024, 128} }, |
| 2278 | .block_erase = spi_block_erase_20, |
| 2279 | }, { |
| 2280 | .eraseblocks = { {32 * 1024, 16} }, |
| 2281 | .block_erase = spi_block_erase_52, |
| 2282 | }, { |
| 2283 | .eraseblocks = { {64 * 1024, 8} }, |
| 2284 | .block_erase = spi_block_erase_d8, |
| 2285 | }, { |
| 2286 | .eraseblocks = { {512 * 1024, 1} }, |
| 2287 | .block_erase = spi_block_erase_60, |
| 2288 | }, { |
| 2289 | .eraseblocks = { {512 * 1024, 1} }, |
| 2290 | .block_erase = spi_block_erase_c7, |
| 2291 | } |
| 2292 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2293 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2294 | .write = NULL /* Incompatible Page write */, |
| 2295 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2296 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2297 | }, |
| 2298 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2299 | { |
| 2300 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2301 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2302 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2303 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2304 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2305 | .total_size = 64, |
| 2306 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2307 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2308 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2309 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2310 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2311 | .block_erasers = |
| 2312 | { |
| 2313 | { |
| 2314 | .eraseblocks = { {64 * 1024, 1} }, |
| 2315 | .block_erase = erase_chip_block_jedec, |
| 2316 | } |
| 2317 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2318 | .write = write_jedec, |
| 2319 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2320 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2321 | }, |
| 2322 | |
| 2323 | { |
| 2324 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2325 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2326 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2327 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2328 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2329 | .total_size = 128, |
| 2330 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2331 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2332 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2333 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2334 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2335 | .block_erasers = |
| 2336 | { |
| 2337 | { |
| 2338 | .eraseblocks = { {128 * 1024, 1} }, |
| 2339 | .block_erase = erase_chip_block_jedec, |
| 2340 | } |
| 2341 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2342 | .write = write_jedec, /* FIXME */ |
| 2343 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2344 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2345 | }, |
| 2346 | |
| 2347 | { |
| 2348 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2349 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2350 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2351 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2352 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2353 | .total_size = 256, |
| 2354 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2355 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2356 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2357 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2358 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2359 | .block_erasers = |
| 2360 | { |
| 2361 | { |
| 2362 | .eraseblocks = { {256 * 1024, 1} }, |
| 2363 | .block_erase = erase_chip_block_jedec, |
| 2364 | } |
| 2365 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2366 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2367 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2368 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2369 | }, |
| 2370 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2371 | { |
| 2372 | .vendor = "Atmel", |
| 2373 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2374 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2375 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2376 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2377 | .total_size = 512, |
| 2378 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2379 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2380 | .tested = TEST_UNTESTED, |
| 2381 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2382 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2383 | .block_erasers = |
| 2384 | { |
| 2385 | { |
| 2386 | .eraseblocks = { {512 * 1024, 1} }, |
| 2387 | .block_erase = erase_chip_block_jedec, |
| 2388 | } |
| 2389 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2390 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2391 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2392 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2393 | }, |
| 2394 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2395 | { |
| 2396 | .vendor = "Atmel", |
| 2397 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2398 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2399 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2400 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2401 | .total_size = 16896 /* No power of two sizes */, |
| 2402 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2403 | /* 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] | 2404 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2405 | .feature_bits = FEATURE_OTP, |
| 2406 | .tested = TEST_UNTESTED, |
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, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2409 | .block_erasers = |
| 2410 | { |
| 2411 | { |
| 2412 | .eraseblocks = { |
| 2413 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2414 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2415 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2416 | }, |
| 2417 | .block_erase = spi_erase_at45cs_sector, |
| 2418 | } |
| 2419 | }, |
| 2420 | .printlock = spi_prettyprint_status_register_plain, |
| 2421 | .gran = write_gran_1056bytes, |
| 2422 | .write = spi_write_at45db, |
| 2423 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2424 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2425 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2426 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2427 | { |
| 2428 | .vendor = "Atmel", |
| 2429 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2430 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2431 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2432 | .model_id = ATMEL_AT45DB011D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2433 | .total_size = 128 /* or 132, determined from status register */, |
| 2434 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2435 | /* 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] | 2436 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2437 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2438 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2439 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2440 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2441 | .block_erasers = |
| 2442 | { |
| 2443 | { |
| 2444 | .eraseblocks = { {256, 512} }, |
| 2445 | .block_erase = spi_erase_at45db_page, |
| 2446 | }, { |
| 2447 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2448 | .block_erase = spi_erase_at45db_block, |
| 2449 | }, { |
| 2450 | .eraseblocks = { |
| 2451 | {8 * 256, 1}, |
| 2452 | {120 * 256, 1}, |
| 2453 | {128 * 256, 3}, |
| 2454 | }, |
| 2455 | .block_erase = spi_erase_at45db_sector |
| 2456 | }, { |
| 2457 | .eraseblocks = { {128 * 1024, 1} }, |
| 2458 | .block_erase = spi_erase_at45db_chip, |
| 2459 | } |
| 2460 | }, |
| 2461 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2462 | .printlock = spi_prettyprint_status_register_at45db, |
| 2463 | /* granularity will be set by the probing function. */ |
| 2464 | .write = spi_write_at45db, |
| 2465 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2466 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2467 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2468 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2469 | { |
| 2470 | .vendor = "Atmel", |
| 2471 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2472 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2473 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2474 | .model_id = ATMEL_AT45DB021D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2475 | .total_size = 256 /* or 264, determined from status register */, |
| 2476 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2477 | /* 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] | 2478 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2479 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2480 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2481 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2482 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2483 | .block_erasers = |
| 2484 | { |
| 2485 | { |
| 2486 | .eraseblocks = { {256, 1024} }, |
| 2487 | .block_erase = spi_erase_at45db_page, |
| 2488 | }, { |
| 2489 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2490 | .block_erase = spi_erase_at45db_block, |
| 2491 | }, { |
| 2492 | .eraseblocks = { |
| 2493 | {8 * 256, 1}, |
| 2494 | {120 * 256, 1}, |
| 2495 | {128 * 256, 7}, |
| 2496 | }, |
| 2497 | .block_erase = spi_erase_at45db_sector |
| 2498 | }, { |
| 2499 | .eraseblocks = { {256 * 1024, 1} }, |
| 2500 | .block_erase = spi_erase_at45db_chip, |
| 2501 | } |
| 2502 | }, |
| 2503 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2504 | .printlock = spi_prettyprint_status_register_at45db, |
| 2505 | /* granularity will be set by the probing function. */ |
| 2506 | .write = spi_write_at45db, |
| 2507 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2508 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2509 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2510 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2511 | { |
| 2512 | .vendor = "Atmel", |
| 2513 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2514 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2515 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2516 | .model_id = ATMEL_AT45DB041D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2517 | .total_size = 512 /* or 528, determined from status register */, |
| 2518 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2519 | /* 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] | 2520 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2521 | .feature_bits = FEATURE_OTP, |
| 2522 | .tested = TEST_OK_PREW, |
| 2523 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2524 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2525 | .block_erasers = |
| 2526 | { |
| 2527 | { |
| 2528 | .eraseblocks = { {256, 2048} }, |
| 2529 | .block_erase = spi_erase_at45db_page, |
| 2530 | }, { |
| 2531 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2532 | .block_erase = spi_erase_at45db_block, |
| 2533 | }, { |
| 2534 | .eraseblocks = { |
| 2535 | {8 * 256, 1}, |
| 2536 | {248 * 256, 1}, |
| 2537 | {256 * 256, 7}, |
| 2538 | }, |
| 2539 | .block_erase = spi_erase_at45db_sector |
| 2540 | }, { |
| 2541 | .eraseblocks = { {512 * 1024, 1} }, |
| 2542 | .block_erase = spi_erase_at45db_chip, |
| 2543 | } |
| 2544 | }, |
| 2545 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2546 | .printlock = spi_prettyprint_status_register_at45db, |
| 2547 | /* granularity will be set by the probing function. */ |
| 2548 | .write = spi_write_at45db, |
| 2549 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2550 | .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] | 2551 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2552 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2553 | { |
| 2554 | .vendor = "Atmel", |
| 2555 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2556 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2557 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2558 | .model_id = ATMEL_AT45DB081D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2559 | .total_size = 1024 /* or 1056, determined from status register */, |
| 2560 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2561 | /* 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] | 2562 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2563 | .feature_bits = FEATURE_OTP, |
| 2564 | .tested = TEST_UNTESTED, |
| 2565 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2566 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2567 | .block_erasers = |
| 2568 | { |
| 2569 | { |
| 2570 | .eraseblocks = { {256, 4096} }, |
| 2571 | .block_erase = spi_erase_at45db_page, |
| 2572 | }, { |
| 2573 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2574 | .block_erase = spi_erase_at45db_block, |
| 2575 | }, { |
| 2576 | .eraseblocks = { |
| 2577 | {8 * 256, 1}, |
| 2578 | {248 * 256, 1}, |
| 2579 | {256 * 256, 15}, |
| 2580 | }, |
| 2581 | .block_erase = spi_erase_at45db_sector |
| 2582 | }, { |
| 2583 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2584 | .block_erase = spi_erase_at45db_chip, |
| 2585 | } |
| 2586 | }, |
| 2587 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2588 | .printlock = spi_prettyprint_status_register_at45db, |
| 2589 | /* granularity will be set by the probing function. */ |
| 2590 | .write = spi_write_at45db, |
| 2591 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2592 | .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] | 2593 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2594 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2595 | { |
| 2596 | .vendor = "Atmel", |
| 2597 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2598 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2599 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2600 | .model_id = ATMEL_AT45DB161D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2601 | .total_size = 2048 /* or 2112, determined from status register */, |
| 2602 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2603 | /* 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] | 2604 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2605 | .feature_bits = FEATURE_OTP, |
| 2606 | .tested = TEST_OK_PREW, |
| 2607 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2608 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2609 | .block_erasers = |
| 2610 | { |
| 2611 | { |
| 2612 | .eraseblocks = { {512, 4096} }, |
| 2613 | .block_erase = spi_erase_at45db_page, |
| 2614 | }, { |
| 2615 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2616 | .block_erase = spi_erase_at45db_block, |
| 2617 | }, { |
| 2618 | .eraseblocks = { |
| 2619 | {8 * 512, 1}, |
| 2620 | {248 * 512, 1}, |
| 2621 | {256 * 512, 15}, |
| 2622 | }, |
| 2623 | .block_erase = spi_erase_at45db_sector |
| 2624 | }, { |
| 2625 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2626 | .block_erase = spi_erase_at45db_chip, |
| 2627 | } |
| 2628 | }, |
| 2629 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2630 | .printlock = spi_prettyprint_status_register_at45db, |
| 2631 | /* granularity will be set by the probing function. */ |
| 2632 | .write = spi_write_at45db, |
| 2633 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2634 | .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] | 2635 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2636 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2637 | { |
| 2638 | .vendor = "Atmel", |
| 2639 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2640 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2641 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2642 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2643 | .total_size = 4224 /* No power of two sizes */, |
| 2644 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2645 | /* 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] | 2646 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2647 | .feature_bits = FEATURE_OTP, |
| 2648 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2649 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2650 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2651 | .block_erasers = |
| 2652 | { |
| 2653 | { |
| 2654 | .eraseblocks = { {528, 8192} }, |
| 2655 | .block_erase = spi_erase_at45db_page, |
| 2656 | }, { |
| 2657 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2658 | .block_erase = spi_erase_at45db_block, |
| 2659 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2660 | * there seems to be no erase functions for them. |
| 2661 | { |
| 2662 | .eraseblocks = { |
| 2663 | {8 * 528, 1}, |
| 2664 | {120 * 528, 1}, |
| 2665 | {128 * 528, 63}, |
| 2666 | }, |
| 2667 | .block_erase = spi_erase_at45db_sector |
| 2668 | }, */ { |
| 2669 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2670 | .block_erase = spi_erase_at45db_chip, |
| 2671 | } |
| 2672 | }, |
| 2673 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
| 2674 | .gran = write_gran_528bytes, |
| 2675 | .write = spi_write_at45db, |
| 2676 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2677 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2678 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2679 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2680 | { |
| 2681 | .vendor = "Atmel", |
| 2682 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2683 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2684 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2685 | .model_id = ATMEL_AT45DB321D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2686 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2687 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2688 | /* 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] | 2689 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2690 | .feature_bits = FEATURE_OTP, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2691 | .tested = TEST_UNTESTED, |
| 2692 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2693 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2694 | .block_erasers = |
| 2695 | { |
| 2696 | { |
| 2697 | .eraseblocks = { {512, 8192} }, |
| 2698 | .block_erase = spi_erase_at45db_page, |
| 2699 | }, { |
| 2700 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2701 | .block_erase = spi_erase_at45db_block, |
| 2702 | }, { |
| 2703 | .eraseblocks = { |
| 2704 | {8 * 512, 1}, |
| 2705 | {120 * 512, 1}, |
| 2706 | {128 * 512, 63}, |
| 2707 | }, |
| 2708 | .block_erase = spi_erase_at45db_sector |
| 2709 | }, { |
| 2710 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2711 | .block_erase = spi_erase_at45db_chip, |
| 2712 | } |
| 2713 | }, |
| 2714 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2715 | .printlock = spi_prettyprint_status_register_at45db, |
| 2716 | /* granularity will be set by the probing function. */ |
| 2717 | .write = spi_write_at45db, |
| 2718 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2719 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2720 | }, |
| 2721 | |
| 2722 | { |
| 2723 | .vendor = "Atmel", |
| 2724 | .name = "AT45DB321E", |
| 2725 | .bustype = BUS_SPI, |
| 2726 | .manufacture_id = ATMEL_ID, |
| 2727 | .model_id = ATMEL_AT45DB321C, |
| 2728 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2729 | .page_size = 512 /* or 528, determined from status register */, |
| 2730 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2731 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2732 | .feature_bits = FEATURE_OTP, |
| 2733 | .tested = TEST_UNTESTED, |
| 2734 | .probe = probe_spi_at45db, |
| 2735 | .probe_timing = TIMING_ZERO, |
| 2736 | .block_erasers = |
| 2737 | { |
| 2738 | { |
| 2739 | .eraseblocks = { {512, 8192} }, |
| 2740 | .block_erase = spi_erase_at45db_page, |
| 2741 | }, { |
| 2742 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2743 | .block_erase = spi_erase_at45db_block, |
| 2744 | }, { |
| 2745 | .eraseblocks = { |
| 2746 | {8 * 512, 1}, |
| 2747 | {120 * 512, 1}, |
| 2748 | {128 * 512, 63}, |
| 2749 | }, |
| 2750 | .block_erase = spi_erase_at45db_sector |
| 2751 | }, { |
| 2752 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2753 | .block_erase = spi_erase_at45db_chip, |
| 2754 | } |
| 2755 | }, |
| 2756 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2757 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
| 2758 | /* granularity will be set by the probing function. */ |
| 2759 | .write = spi_write_at45db, |
| 2760 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2761 | .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] | 2762 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2763 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2764 | { |
| 2765 | .vendor = "Atmel", |
| 2766 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2767 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2768 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2769 | .model_id = ATMEL_AT45DB642D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2770 | .total_size = 8192 /* or 8448, determined from status register */, |
| 2771 | .page_size = 1024 /* or 1056, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2772 | /* 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] | 2773 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2774 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2775 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2776 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2777 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2778 | .block_erasers = |
| 2779 | { |
| 2780 | { |
| 2781 | .eraseblocks = { {1024, 8192} }, |
| 2782 | .block_erase = spi_erase_at45db_page, |
| 2783 | }, { |
| 2784 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 2785 | .block_erase = spi_erase_at45db_block, |
| 2786 | }, { |
| 2787 | .eraseblocks = { |
| 2788 | {8 * 1024, 1}, |
| 2789 | {248 * 1024, 1}, |
| 2790 | {256 * 1024, 31}, |
| 2791 | }, |
| 2792 | .block_erase = spi_erase_at45db_sector |
| 2793 | }, { |
| 2794 | .eraseblocks = { {8192 * 1024, 1} }, |
| 2795 | .block_erase = spi_erase_at45db_chip, |
| 2796 | } |
| 2797 | }, |
| 2798 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2799 | .printlock = spi_prettyprint_status_register_at45db, |
| 2800 | /* granularity will be set by the probing function. */ |
| 2801 | .write = spi_write_at45db, |
| 2802 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2803 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2804 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2805 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2806 | { |
| 2807 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2808 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2809 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2810 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2811 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2812 | .total_size = 64, |
| 2813 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2814 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2815 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2816 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2817 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2818 | .block_erasers = |
| 2819 | { |
| 2820 | { |
| 2821 | .eraseblocks = { {64 * 1024, 1} }, |
| 2822 | .block_erase = erase_chip_block_jedec, |
| 2823 | } |
| 2824 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2825 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2826 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2827 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2828 | }, |
| 2829 | |
| 2830 | { |
| 2831 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2832 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2833 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2834 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2835 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2836 | .total_size = 256, |
| 2837 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2838 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2839 | .tested = TEST_UNTESTED, |
| 2840 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2841 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2842 | .block_erasers = |
| 2843 | { |
| 2844 | { |
| 2845 | .eraseblocks = { |
| 2846 | {16 * 1024, 1}, |
| 2847 | {8 * 1024, 2}, |
| 2848 | {96 * 1024, 1}, |
| 2849 | {128 * 1024, 1}, |
| 2850 | }, |
| 2851 | .block_erase = erase_sector_jedec, |
| 2852 | }, { |
| 2853 | .eraseblocks = { {256 * 1024, 1} }, |
| 2854 | .block_erase = erase_chip_block_jedec, |
| 2855 | } |
| 2856 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2857 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2858 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2859 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2860 | }, |
| 2861 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2862 | { |
| 2863 | .vendor = "Atmel", |
| 2864 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2865 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2866 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2867 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2868 | .total_size = 256, |
| 2869 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2870 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2871 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2872 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2873 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2874 | .block_erasers = |
| 2875 | { |
| 2876 | { |
| 2877 | .eraseblocks = { |
| 2878 | {128 * 1024, 1}, |
| 2879 | {96 * 1024, 1}, |
| 2880 | {8 * 1024, 2}, |
| 2881 | {16 * 1024, 1}, |
| 2882 | }, |
| 2883 | .block_erase = erase_sector_jedec, |
| 2884 | }, { |
| 2885 | .eraseblocks = { {256 * 1024, 1} }, |
| 2886 | .block_erase = erase_chip_block_jedec, |
| 2887 | } |
| 2888 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2889 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2890 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2891 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2892 | }, |
| 2893 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2894 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2895 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2896 | .name = "AT49(H)F010", |
| 2897 | .bustype = BUS_PARALLEL, |
| 2898 | .manufacture_id = ATMEL_ID, |
| 2899 | .model_id = ATMEL_AT49F010, |
| 2900 | .total_size = 128, |
| 2901 | .page_size = 0, /* unused */ |
| 2902 | .feature_bits = FEATURE_EITHER_RESET, |
| 2903 | .tested = TEST_OK_PREW, |
| 2904 | .probe = probe_jedec, |
| 2905 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2906 | .block_erasers = |
| 2907 | { |
| 2908 | { |
| 2909 | .eraseblocks = { {128 * 1024, 1} }, |
| 2910 | .block_erase = erase_chip_block_jedec, |
| 2911 | } |
| 2912 | }, |
| 2913 | .printlock = printlock_at49f, |
| 2914 | .write = write_jedec_1, |
| 2915 | .read = read_memmapped, |
| 2916 | .voltage = {4500, 5500}, |
| 2917 | }, |
| 2918 | |
| 2919 | { |
| 2920 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2921 | .name = "AT49F020", |
| 2922 | .bustype = BUS_PARALLEL, |
| 2923 | .manufacture_id = ATMEL_ID, |
| 2924 | .model_id = ATMEL_AT49F020, |
| 2925 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2926 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2927 | .feature_bits = FEATURE_EITHER_RESET, |
| 2928 | .tested = TEST_OK_PRE, |
| 2929 | .probe = probe_jedec, |
| 2930 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2931 | .block_erasers = |
| 2932 | { |
| 2933 | { |
| 2934 | .eraseblocks = { {256 * 1024, 1} }, |
| 2935 | .block_erase = erase_chip_block_jedec, |
| 2936 | } |
| 2937 | /* Chip features an optional permanent write protection |
| 2938 | * of the first 8 kB. The erase function is the same as |
| 2939 | * above, but 00000H to 01FFFH will not be erased. |
| 2940 | * FIXME: add another eraser when partial erasers are |
| 2941 | * supported. |
| 2942 | */ |
| 2943 | }, |
| 2944 | .printlock = printlock_at49f, |
| 2945 | .write = write_jedec_1, |
| 2946 | .read = read_memmapped, |
| 2947 | .voltage = {4500, 5500}, |
| 2948 | }, |
| 2949 | |
| 2950 | { |
| 2951 | .vendor = "Atmel", |
| 2952 | .name = "AT49F040", |
| 2953 | .bustype = BUS_PARALLEL, |
| 2954 | .manufacture_id = ATMEL_ID, |
| 2955 | .model_id = ATMEL_AT49F040, |
| 2956 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2957 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2958 | .feature_bits = FEATURE_EITHER_RESET, |
| 2959 | .tested = TEST_UNTESTED, |
| 2960 | .probe = probe_jedec, |
| 2961 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2962 | .block_erasers = |
| 2963 | { |
| 2964 | { |
| 2965 | .eraseblocks = { {512 * 1024, 1} }, |
| 2966 | .block_erase = erase_chip_block_jedec, |
| 2967 | } |
| 2968 | /* Chip features an optional permanent write protection |
| 2969 | * of the first 16 kB. The erase function is the same as |
| 2970 | * above, but 00000H to 03FFFH will not be erased. |
| 2971 | * FIXME: add another eraser when partial erasers are |
| 2972 | * supported. |
| 2973 | */ |
| 2974 | }, |
| 2975 | .printlock = printlock_at49f, |
| 2976 | .write = write_jedec_1, |
| 2977 | .read = read_memmapped, |
| 2978 | .voltage = {4500, 5500}, |
| 2979 | }, |
| 2980 | |
| 2981 | { |
| 2982 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2983 | .name = "AT49F080", |
| 2984 | .bustype = BUS_PARALLEL, |
| 2985 | .manufacture_id = ATMEL_ID, |
| 2986 | .model_id = ATMEL_AT49F080, |
| 2987 | .total_size = 1024, |
| 2988 | .page_size = 0, /* unused */ |
| 2989 | .feature_bits = FEATURE_EITHER_RESET, |
| 2990 | .tested = TEST_UNTESTED, |
| 2991 | .probe = probe_jedec, |
| 2992 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2993 | .block_erasers = |
| 2994 | { |
| 2995 | { |
| 2996 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2997 | .block_erase = erase_chip_block_jedec, |
| 2998 | } |
| 2999 | /* Chip features an optional permanent write protection |
| 3000 | * of the first 16 kB. The erase function is the same as |
| 3001 | * above, but 00000H to 03FFFH will not be erased. |
| 3002 | * FIXME: add another eraser when partial erasers are |
| 3003 | * supported. |
| 3004 | */ |
| 3005 | }, |
| 3006 | .printlock = printlock_at49f, |
| 3007 | .write = write_jedec_1, |
| 3008 | .read = read_memmapped, |
| 3009 | .voltage = {4500, 5500}, |
| 3010 | }, |
| 3011 | |
| 3012 | { |
| 3013 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3014 | .vendor = "Atmel", |
| 3015 | .name = "AT49F080T", |
| 3016 | .bustype = BUS_PARALLEL, |
| 3017 | .manufacture_id = ATMEL_ID, |
| 3018 | .model_id = ATMEL_AT49F080T, |
| 3019 | .total_size = 1024, |
| 3020 | .page_size = 0, /* unused */ |
| 3021 | .feature_bits = FEATURE_EITHER_RESET, |
| 3022 | .tested = TEST_UNTESTED, |
| 3023 | .probe = probe_jedec, |
| 3024 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3025 | .block_erasers = |
| 3026 | { |
| 3027 | { |
| 3028 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3029 | .block_erase = erase_chip_block_jedec, |
| 3030 | } |
| 3031 | /* Chip features an optional permanent write protection |
| 3032 | * of the first 16 kB. The erase function is the same as |
| 3033 | * above, but FC000H to FFFFFH will not be erased. |
| 3034 | * FIXME: add another eraser when partial erasers are |
| 3035 | * supported. |
| 3036 | */ |
| 3037 | }, |
| 3038 | .printlock = printlock_at49f, |
| 3039 | .write = write_jedec_1, |
| 3040 | .read = read_memmapped, |
| 3041 | .voltage = {4500, 5500}, |
| 3042 | }, |
| 3043 | |
| 3044 | { |
| 3045 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3046 | .name = "AT49LH002", |
| 3047 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3048 | .manufacture_id = ATMEL_ID, |
| 3049 | .model_id = ATMEL_AT49LH002, |
| 3050 | .total_size = 256, |
| 3051 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3052 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3053 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3054 | .probe = probe_82802ab, |
| 3055 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3056 | .block_erasers = |
| 3057 | { |
| 3058 | { |
| 3059 | .eraseblocks = { |
| 3060 | {64 * 1024, 3}, |
| 3061 | {32 * 1024, 1}, |
| 3062 | {8 * 1024, 2}, |
| 3063 | {16 * 1024, 1}, |
| 3064 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3065 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3066 | }, { |
| 3067 | .eraseblocks = { |
| 3068 | {64 * 1024, 4}, |
| 3069 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3070 | .block_erase = erase_block_82802ab, |
| 3071 | }, |
| 3072 | }, |
| 3073 | .printlock = printlock_regspace2_block_eraser_0, |
| 3074 | .unlock = unlock_regspace2_block_eraser_0, |
| 3075 | .write = write_82802ab, |
| 3076 | .read = read_memmapped, |
| 3077 | .voltage = {3000, 3600}, |
| 3078 | }, |
| 3079 | |
| 3080 | { |
| 3081 | .vendor = "Atmel", |
| 3082 | .name = "AT49LH00B4", |
| 3083 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3084 | .manufacture_id = ATMEL_ID, |
| 3085 | .model_id = ATMEL_AT49LH00B4, |
| 3086 | .total_size = 512, |
| 3087 | .page_size = 0, /* unused */ |
| 3088 | .feature_bits = FEATURE_REGISTERMAP, |
| 3089 | .tested = TEST_UNTESTED, |
| 3090 | .probe = probe_82802ab, |
| 3091 | .probe_timing = TIMING_ZERO, |
| 3092 | .block_erasers = |
| 3093 | { |
| 3094 | { |
| 3095 | .eraseblocks = { |
| 3096 | {8 * 1024, 2}, |
| 3097 | {16 * 1024, 1}, |
| 3098 | {32 * 1024, 1}, |
| 3099 | {64 * 1024, 7}, |
| 3100 | }, |
| 3101 | .block_erase = NULL, /* TODO: Implement. */ |
| 3102 | }, { |
| 3103 | .eraseblocks = { |
| 3104 | {64 * 1024, 8}, |
| 3105 | }, |
| 3106 | .block_erase = erase_block_82802ab, |
| 3107 | }, |
| 3108 | }, |
| 3109 | .printlock = printlock_regspace2_block_eraser_0, |
| 3110 | .unlock = unlock_regspace2_block_eraser_0, |
| 3111 | .write = write_82802ab, |
| 3112 | .read = read_memmapped, |
| 3113 | .voltage = {3000, 3600}, |
| 3114 | }, |
| 3115 | |
| 3116 | { |
| 3117 | .vendor = "Atmel", |
| 3118 | .name = "AT49LH004", |
| 3119 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3120 | .manufacture_id = ATMEL_ID, |
| 3121 | .model_id = ATMEL_AT49LH004, |
| 3122 | .total_size = 512, |
| 3123 | .page_size = 0, /* unused */ |
| 3124 | .feature_bits = FEATURE_REGISTERMAP, |
| 3125 | .tested = TEST_UNTESTED, |
| 3126 | .probe = probe_82802ab, |
| 3127 | .probe_timing = TIMING_ZERO, |
| 3128 | .block_erasers = |
| 3129 | { |
| 3130 | { |
| 3131 | .eraseblocks = { |
| 3132 | {64 * 1024, 7}, |
| 3133 | {32 * 1024, 1}, |
| 3134 | {8 * 1024, 2}, |
| 3135 | {16 * 1024, 1}, |
| 3136 | }, |
| 3137 | .block_erase = erase_block_82802ab, |
| 3138 | }, { |
| 3139 | .eraseblocks = { |
| 3140 | {64 * 1024, 8}, |
| 3141 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3142 | .block_erase = NULL, /* TODO: Implement. */ |
| 3143 | }, |
| 3144 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3145 | .printlock = printlock_regspace2_block_eraser_0, |
| 3146 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3147 | .write = write_82802ab, |
| 3148 | .read = read_memmapped, |
| 3149 | .voltage = {3000, 3600}, |
| 3150 | }, |
| 3151 | |
| 3152 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3153 | .vendor = "Catalyst", |
| 3154 | .name = "CAT28F512", |
| 3155 | .bustype = BUS_PARALLEL, |
| 3156 | .manufacture_id = CATALYST_ID, |
| 3157 | .model_id = CATALYST_CAT28F512, |
| 3158 | .total_size = 64, |
| 3159 | .page_size = 0, /* unused */ |
| 3160 | .feature_bits = 0, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 3161 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD }, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3162 | .probe = probe_jedec, /* FIXME! */ |
| 3163 | .probe_timing = TIMING_ZERO, |
| 3164 | .block_erasers = |
| 3165 | { |
| 3166 | { |
| 3167 | .eraseblocks = { {64 * 1024, 1} }, |
| 3168 | .block_erase = NULL, /* TODO */ |
| 3169 | }, |
| 3170 | }, |
| 3171 | .write = NULL, /* TODO */ |
| 3172 | .read = read_memmapped, |
| 3173 | .voltage = {4500, 5500}, |
| 3174 | }, |
| 3175 | |
| 3176 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3177 | .vendor = "Bright", |
| 3178 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3179 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3180 | .manufacture_id = BRIGHT_ID, |
| 3181 | .model_id = BRIGHT_BM29F040, |
| 3182 | .total_size = 512, |
| 3183 | .page_size = 64 * 1024, |
| 3184 | .feature_bits = FEATURE_EITHER_RESET, |
| 3185 | .tested = TEST_OK_PR, |
| 3186 | .probe = probe_jedec, |
| 3187 | .probe_timing = TIMING_ZERO, |
| 3188 | .block_erasers = |
| 3189 | { |
| 3190 | { |
| 3191 | .eraseblocks = { {64 * 1024, 8} }, |
| 3192 | .block_erase = erase_sector_jedec, |
| 3193 | }, { |
| 3194 | .eraseblocks = { {512 * 1024, 1} }, |
| 3195 | .block_erase = erase_chip_block_jedec, |
| 3196 | }, |
| 3197 | }, |
| 3198 | .write = write_jedec_1, |
| 3199 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3200 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3201 | }, |
| 3202 | |
| 3203 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3204 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3205 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3206 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3207 | .manufacture_id = ESMT_ID, |
| 3208 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3209 | .total_size = 256, |
| 3210 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3211 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3212 | .tested = TEST_UNTESTED, |
| 3213 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3214 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3215 | .block_erasers = |
| 3216 | { |
| 3217 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3218 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3219 | {128 * 1024, 1}, |
| 3220 | {96 * 1024, 1}, |
| 3221 | {8 * 1024, 2}, |
| 3222 | {16 * 1024, 1}, |
| 3223 | }, |
| 3224 | .block_erase = erase_sector_jedec, |
| 3225 | }, { |
| 3226 | .eraseblocks = { {256 * 1024, 1} }, |
| 3227 | .block_erase = erase_chip_block_jedec, |
| 3228 | } |
| 3229 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3230 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3231 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3232 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3233 | }, |
| 3234 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3235 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3236 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3237 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3238 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3239 | .manufacture_id = ESMT_ID, |
| 3240 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3241 | .total_size = 1024, |
| 3242 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3243 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3244 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3245 | .probe = probe_spi_rdid, |
| 3246 | .probe_timing = TIMING_ZERO, |
| 3247 | .block_erasers = |
| 3248 | { |
| 3249 | { |
| 3250 | .eraseblocks = { {4 * 1024, 256} }, |
| 3251 | .block_erase = spi_block_erase_20, |
| 3252 | }, { |
| 3253 | .eraseblocks = { {64 * 1024, 16} }, |
| 3254 | .block_erase = spi_block_erase_d8, |
| 3255 | }, { |
| 3256 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3257 | .block_erase = spi_block_erase_60, |
| 3258 | }, { |
| 3259 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3260 | .block_erase = spi_block_erase_c7, |
| 3261 | } |
| 3262 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3263 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3264 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3265 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3266 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3267 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3268 | }, |
| 3269 | |
| 3270 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3271 | .vendor = "ESMT", |
| 3272 | .name = "F25L32PA", |
| 3273 | .bustype = BUS_SPI, |
| 3274 | .manufacture_id = ESMT_ID, |
| 3275 | .model_id = ESMT_F25L32PA, |
| 3276 | .total_size = 4096, |
| 3277 | .page_size = 256, |
| 3278 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3279 | .tested = TEST_UNTESTED, |
| 3280 | .probe = probe_spi_rdid, |
| 3281 | .probe_timing = TIMING_ZERO, |
| 3282 | .block_erasers = |
| 3283 | { |
| 3284 | { |
| 3285 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3286 | .block_erase = spi_block_erase_20, |
| 3287 | }, { |
| 3288 | .eraseblocks = { {64 * 1024, 64} }, |
| 3289 | .block_erase = spi_block_erase_d8, |
| 3290 | }, { |
| 3291 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3292 | .block_erase = spi_block_erase_60, |
| 3293 | }, { |
| 3294 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3295 | .block_erase = spi_block_erase_c7, |
| 3296 | } |
| 3297 | }, |
| 3298 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3299 | .unlock = spi_disable_blockprotect, |
| 3300 | .write = spi_chip_write_256, |
| 3301 | .read = spi_chip_read, |
| 3302 | .voltage = {2700, 3600}, |
| 3303 | }, |
| 3304 | |
| 3305 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3306 | .vendor = "Eon", |
| 3307 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3308 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3309 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3310 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3311 | .total_size = 64, |
| 3312 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3313 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3314 | .tested = TEST_UNTESTED, |
| 3315 | .probe = probe_spi_rdid, |
| 3316 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3317 | .block_erasers = |
| 3318 | { |
| 3319 | { |
| 3320 | .eraseblocks = { |
| 3321 | {4 * 1024, 2}, |
| 3322 | {8 * 1024, 1}, |
| 3323 | {16 * 1024, 1}, |
| 3324 | {32 * 1024, 1}, |
| 3325 | }, |
| 3326 | .block_erase = spi_block_erase_d8, |
| 3327 | }, { |
| 3328 | .eraseblocks = { {64 * 1024, 1} }, |
| 3329 | .block_erase = spi_block_erase_c7, |
| 3330 | } |
| 3331 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3332 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3333 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3334 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3335 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3336 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3337 | }, |
| 3338 | |
| 3339 | { |
| 3340 | .vendor = "Eon", |
| 3341 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3342 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3343 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3344 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3345 | .total_size = 64, |
| 3346 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3347 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3348 | .tested = TEST_UNTESTED, |
| 3349 | .probe = probe_spi_rdid, |
| 3350 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3351 | .block_erasers = |
| 3352 | { |
| 3353 | { |
| 3354 | .eraseblocks = { |
| 3355 | {32 * 1024, 1}, |
| 3356 | {16 * 1024, 1}, |
| 3357 | {8 * 1024, 1}, |
| 3358 | {4 * 1024, 2}, |
| 3359 | }, |
| 3360 | .block_erase = spi_block_erase_d8, |
| 3361 | }, { |
| 3362 | .eraseblocks = { {64 * 1024, 1} }, |
| 3363 | .block_erase = spi_block_erase_c7, |
| 3364 | } |
| 3365 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3366 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3367 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3368 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3369 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3370 | .voltage = {2700, 3600}, |
| 3371 | }, |
| 3372 | |
| 3373 | { |
| 3374 | .vendor = "Eon", |
| 3375 | .name = "EN25P05", |
| 3376 | .bustype = BUS_SPI, |
| 3377 | .manufacture_id = EON_ID_NOPREFIX, |
| 3378 | .model_id = EON_EN25B05, |
| 3379 | .total_size = 64, |
| 3380 | .page_size = 256, |
| 3381 | .feature_bits = FEATURE_WRSR_WREN, |
| 3382 | .tested = TEST_UNTESTED, |
| 3383 | .probe = probe_spi_rdid, |
| 3384 | .probe_timing = TIMING_ZERO, |
| 3385 | .block_erasers = |
| 3386 | { |
| 3387 | { |
| 3388 | .eraseblocks = { |
| 3389 | {32 * 1024, 2} }, |
| 3390 | .block_erase = spi_block_erase_d8, |
| 3391 | }, { |
| 3392 | .eraseblocks = { {64 * 1024, 1} }, |
| 3393 | .block_erase = spi_block_erase_c7, |
| 3394 | } |
| 3395 | }, |
| 3396 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3397 | .unlock = spi_disable_blockprotect, |
| 3398 | .write = spi_chip_write_256, |
| 3399 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3400 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3401 | }, |
| 3402 | |
| 3403 | { |
| 3404 | .vendor = "Eon", |
| 3405 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3406 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3407 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3408 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3409 | .total_size = 128, |
| 3410 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3411 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3412 | .tested = TEST_UNTESTED, |
| 3413 | .probe = probe_spi_rdid, |
| 3414 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3415 | .block_erasers = |
| 3416 | { |
| 3417 | { |
| 3418 | .eraseblocks = { |
| 3419 | {4 * 1024, 2}, |
| 3420 | {8 * 1024, 1}, |
| 3421 | {16 * 1024, 1}, |
| 3422 | {32 * 1024, 3}, |
| 3423 | }, |
| 3424 | .block_erase = spi_block_erase_d8, |
| 3425 | }, { |
| 3426 | .eraseblocks = { {128 * 1024, 1} }, |
| 3427 | .block_erase = spi_block_erase_c7, |
| 3428 | } |
| 3429 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3430 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3431 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3432 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3433 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3434 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3435 | }, |
| 3436 | |
| 3437 | { |
| 3438 | .vendor = "Eon", |
| 3439 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3440 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3441 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3442 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3443 | .total_size = 128, |
| 3444 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3445 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3446 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3447 | .probe = probe_spi_rdid, |
| 3448 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3449 | .block_erasers = |
| 3450 | { |
| 3451 | { |
| 3452 | .eraseblocks = { |
| 3453 | {32 * 1024, 3}, |
| 3454 | {16 * 1024, 1}, |
| 3455 | {8 * 1024, 1}, |
| 3456 | {4 * 1024, 2}, |
| 3457 | }, |
| 3458 | .block_erase = spi_block_erase_d8, |
| 3459 | }, { |
| 3460 | .eraseblocks = { {128 * 1024, 1} }, |
| 3461 | .block_erase = spi_block_erase_c7, |
| 3462 | } |
| 3463 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3464 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3465 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3466 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3467 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3468 | .voltage = {2700, 3600}, |
| 3469 | }, |
| 3470 | |
| 3471 | { |
| 3472 | .vendor = "Eon", |
| 3473 | .name = "EN25P10", |
| 3474 | .bustype = BUS_SPI, |
| 3475 | .manufacture_id = EON_ID_NOPREFIX, |
| 3476 | .model_id = EON_EN25B10, |
| 3477 | .total_size = 128, |
| 3478 | .page_size = 256, |
| 3479 | .feature_bits = FEATURE_WRSR_WREN, |
| 3480 | .tested = TEST_UNTESTED, |
| 3481 | .probe = probe_spi_rdid, |
| 3482 | .probe_timing = TIMING_ZERO, |
| 3483 | .block_erasers = |
| 3484 | { |
| 3485 | { |
| 3486 | .eraseblocks = { {32 * 1024, 4} }, |
| 3487 | .block_erase = spi_block_erase_d8, |
| 3488 | }, { |
| 3489 | .eraseblocks = { {128 * 1024, 1} }, |
| 3490 | .block_erase = spi_block_erase_c7, |
| 3491 | } |
| 3492 | }, |
| 3493 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3494 | .unlock = spi_disable_blockprotect, |
| 3495 | .write = spi_chip_write_256, |
| 3496 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3497 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3498 | }, |
| 3499 | |
| 3500 | { |
| 3501 | .vendor = "Eon", |
| 3502 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3503 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3504 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3505 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3506 | .total_size = 256, |
| 3507 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3508 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3509 | .tested = TEST_UNTESTED, |
| 3510 | .probe = probe_spi_rdid, |
| 3511 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3512 | .block_erasers = |
| 3513 | { |
| 3514 | { |
| 3515 | .eraseblocks = { |
| 3516 | {4 * 1024, 2}, |
| 3517 | {8 * 1024, 1}, |
| 3518 | {16 * 1024, 1}, |
| 3519 | {32 * 1024, 1}, |
| 3520 | {64 * 1024, 3} |
| 3521 | }, |
| 3522 | .block_erase = spi_block_erase_d8, |
| 3523 | }, { |
| 3524 | .eraseblocks = { {256 * 1024, 1} }, |
| 3525 | .block_erase = spi_block_erase_c7, |
| 3526 | } |
| 3527 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3528 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3529 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3530 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3531 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3532 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3533 | }, |
| 3534 | |
| 3535 | { |
| 3536 | .vendor = "Eon", |
| 3537 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3538 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3539 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3540 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3541 | .total_size = 256, |
| 3542 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3543 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3544 | .tested = TEST_UNTESTED, |
| 3545 | .probe = probe_spi_rdid, |
| 3546 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3547 | .block_erasers = |
| 3548 | { |
| 3549 | { |
| 3550 | .eraseblocks = { |
| 3551 | {64 * 1024, 3}, |
| 3552 | {32 * 1024, 1}, |
| 3553 | {16 * 1024, 1}, |
| 3554 | {8 * 1024, 1}, |
| 3555 | {4 * 1024, 2}, |
| 3556 | }, |
| 3557 | .block_erase = spi_block_erase_d8, |
| 3558 | }, { |
| 3559 | .eraseblocks = { {256 * 1024, 1} }, |
| 3560 | .block_erase = spi_block_erase_c7, |
| 3561 | } |
| 3562 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3563 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3564 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3565 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3566 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3567 | .voltage = {2700, 3600}, |
| 3568 | }, |
| 3569 | |
| 3570 | { |
| 3571 | .vendor = "Eon", |
| 3572 | .name = "EN25P20", |
| 3573 | .bustype = BUS_SPI, |
| 3574 | .manufacture_id = EON_ID_NOPREFIX, |
| 3575 | .model_id = EON_EN25B20, |
| 3576 | .total_size = 256, |
| 3577 | .page_size = 256, |
| 3578 | .feature_bits = FEATURE_WRSR_WREN, |
| 3579 | .tested = TEST_UNTESTED, |
| 3580 | .probe = probe_spi_rdid, |
| 3581 | .probe_timing = TIMING_ZERO, |
| 3582 | .block_erasers = |
| 3583 | { |
| 3584 | { |
| 3585 | .eraseblocks = { {64 * 1024, 4} }, |
| 3586 | .block_erase = spi_block_erase_d8, |
| 3587 | }, { |
| 3588 | .eraseblocks = { {256 * 1024, 1} }, |
| 3589 | .block_erase = spi_block_erase_c7, |
| 3590 | } |
| 3591 | }, |
| 3592 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3593 | .unlock = spi_disable_blockprotect, |
| 3594 | .write = spi_chip_write_256, |
| 3595 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3596 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3597 | }, |
| 3598 | |
| 3599 | { |
| 3600 | .vendor = "Eon", |
| 3601 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3602 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3603 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3604 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3605 | .total_size = 512, |
| 3606 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3607 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3608 | .tested = TEST_UNTESTED, |
| 3609 | .probe = probe_spi_rdid, |
| 3610 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3611 | .block_erasers = |
| 3612 | { |
| 3613 | { |
| 3614 | .eraseblocks = { |
| 3615 | {4 * 1024, 2}, |
| 3616 | {8 * 1024, 1}, |
| 3617 | {16 * 1024, 1}, |
| 3618 | {32 * 1024, 1}, |
| 3619 | {64 * 1024, 7} |
| 3620 | }, |
| 3621 | .block_erase = spi_block_erase_d8, |
| 3622 | }, { |
| 3623 | .eraseblocks = { {512 * 1024, 1} }, |
| 3624 | .block_erase = spi_block_erase_c7, |
| 3625 | } |
| 3626 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3627 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3628 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3629 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3630 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3631 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3632 | }, |
| 3633 | |
| 3634 | { |
| 3635 | .vendor = "Eon", |
| 3636 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3637 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3638 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3639 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3640 | .total_size = 512, |
| 3641 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3642 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3643 | .tested = TEST_UNTESTED, |
| 3644 | .probe = probe_spi_rdid, |
| 3645 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3646 | .block_erasers = |
| 3647 | { |
| 3648 | { |
| 3649 | .eraseblocks = { |
| 3650 | {64 * 1024, 7}, |
| 3651 | {32 * 1024, 1}, |
| 3652 | {16 * 1024, 1}, |
| 3653 | {8 * 1024, 1}, |
| 3654 | {4 * 1024, 2}, |
| 3655 | }, |
| 3656 | .block_erase = spi_block_erase_d8, |
| 3657 | }, { |
| 3658 | .eraseblocks = { {512 * 1024, 1} }, |
| 3659 | .block_erase = spi_block_erase_c7, |
| 3660 | } |
| 3661 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3662 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3663 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3664 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3665 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3666 | .voltage = {2700, 3600}, |
| 3667 | }, |
| 3668 | |
| 3669 | { |
| 3670 | .vendor = "Eon", |
| 3671 | .name = "EN25P40", |
| 3672 | .bustype = BUS_SPI, |
| 3673 | .manufacture_id = EON_ID_NOPREFIX, |
| 3674 | .model_id = EON_EN25B40, |
| 3675 | .total_size = 512, |
| 3676 | .page_size = 256, |
| 3677 | .feature_bits = FEATURE_WRSR_WREN, |
| 3678 | .tested = TEST_UNTESTED, |
| 3679 | .probe = probe_spi_rdid, |
| 3680 | .probe_timing = TIMING_ZERO, |
| 3681 | .block_erasers = |
| 3682 | { |
| 3683 | { |
| 3684 | .eraseblocks = { {64 * 1024, 8} }, |
| 3685 | .block_erase = spi_block_erase_d8, |
| 3686 | }, { |
| 3687 | .eraseblocks = { {512 * 1024, 1} }, |
| 3688 | .block_erase = spi_block_erase_c7, |
| 3689 | } |
| 3690 | }, |
| 3691 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3692 | .unlock = spi_disable_blockprotect, |
| 3693 | .write = spi_chip_write_256, |
| 3694 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3695 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3696 | }, |
| 3697 | |
| 3698 | { |
| 3699 | .vendor = "Eon", |
| 3700 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3701 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3702 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3703 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3704 | .total_size = 1024, |
| 3705 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3706 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3707 | .tested = TEST_UNTESTED, |
| 3708 | .probe = probe_spi_rdid, |
| 3709 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3710 | .block_erasers = |
| 3711 | { |
| 3712 | { |
| 3713 | .eraseblocks = { |
| 3714 | {4 * 1024, 2}, |
| 3715 | {8 * 1024, 1}, |
| 3716 | {16 * 1024, 1}, |
| 3717 | {32 * 1024, 1}, |
| 3718 | {64 * 1024, 15} |
| 3719 | }, |
| 3720 | .block_erase = spi_block_erase_d8, |
| 3721 | }, { |
| 3722 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3723 | .block_erase = spi_block_erase_c7, |
| 3724 | } |
| 3725 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3726 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3727 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3728 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3729 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3730 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3731 | }, |
| 3732 | |
| 3733 | { |
| 3734 | .vendor = "Eon", |
| 3735 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3736 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3737 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3738 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3739 | .total_size = 1024, |
| 3740 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3741 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3742 | .tested = TEST_UNTESTED, |
| 3743 | .probe = probe_spi_rdid, |
| 3744 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3745 | .block_erasers = |
| 3746 | { |
| 3747 | { |
| 3748 | .eraseblocks = { |
| 3749 | {64 * 1024, 15}, |
| 3750 | {32 * 1024, 1}, |
| 3751 | {16 * 1024, 1}, |
| 3752 | {8 * 1024, 1}, |
| 3753 | {4 * 1024, 2}, |
| 3754 | }, |
| 3755 | .block_erase = spi_block_erase_d8, |
| 3756 | }, { |
| 3757 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3758 | .block_erase = spi_block_erase_c7, |
| 3759 | } |
| 3760 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3761 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3762 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3763 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3764 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3765 | .voltage = {2700, 3600}, |
| 3766 | }, |
| 3767 | |
| 3768 | { |
| 3769 | .vendor = "Eon", |
| 3770 | .name = "EN25P80", |
| 3771 | .bustype = BUS_SPI, |
| 3772 | .manufacture_id = EON_ID_NOPREFIX, |
| 3773 | .model_id = EON_EN25B80, |
| 3774 | .total_size = 1024, |
| 3775 | .page_size = 256, |
| 3776 | .feature_bits = FEATURE_WRSR_WREN, |
| 3777 | .tested = TEST_UNTESTED, |
| 3778 | .probe = probe_spi_rdid, |
| 3779 | .probe_timing = TIMING_ZERO, |
| 3780 | .block_erasers = |
| 3781 | { |
| 3782 | { |
| 3783 | .eraseblocks = { {64 * 1024, 16} }, |
| 3784 | .block_erase = spi_block_erase_d8, |
| 3785 | }, { |
| 3786 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3787 | .block_erase = spi_block_erase_c7, |
| 3788 | } |
| 3789 | }, |
| 3790 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3791 | .unlock = spi_disable_blockprotect, |
| 3792 | .write = spi_chip_write_256, |
| 3793 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3794 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3795 | }, |
| 3796 | |
| 3797 | { |
| 3798 | .vendor = "Eon", |
| 3799 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3800 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3801 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3802 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3803 | .total_size = 2048, |
| 3804 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3805 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3806 | .tested = TEST_UNTESTED, |
| 3807 | .probe = probe_spi_rdid, |
| 3808 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3809 | .block_erasers = |
| 3810 | { |
| 3811 | { |
| 3812 | .eraseblocks = { |
| 3813 | {4 * 1024, 2}, |
| 3814 | {8 * 1024, 1}, |
| 3815 | {16 * 1024, 1}, |
| 3816 | {32 * 1024, 1}, |
| 3817 | {64 * 1024, 31}, |
| 3818 | }, |
| 3819 | .block_erase = spi_block_erase_d8, |
| 3820 | }, { |
| 3821 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3822 | .block_erase = spi_block_erase_c7, |
| 3823 | } |
| 3824 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3825 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3826 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3827 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3828 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3829 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3830 | }, |
| 3831 | |
| 3832 | { |
| 3833 | .vendor = "Eon", |
| 3834 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3835 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3836 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3837 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3838 | .total_size = 2048, |
| 3839 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3840 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3841 | .tested = TEST_UNTESTED, |
| 3842 | .probe = probe_spi_rdid, |
| 3843 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3844 | .block_erasers = |
| 3845 | { |
| 3846 | { |
| 3847 | .eraseblocks = { |
| 3848 | {64 * 1024, 31}, |
| 3849 | {32 * 1024, 1}, |
| 3850 | {16 * 1024, 1}, |
| 3851 | {8 * 1024, 1}, |
| 3852 | {4 * 1024, 2}, |
| 3853 | }, |
| 3854 | .block_erase = spi_block_erase_d8, |
| 3855 | }, { |
| 3856 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3857 | .block_erase = spi_block_erase_c7, |
| 3858 | } |
| 3859 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3860 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3861 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3862 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3863 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3864 | .voltage = {2700, 3600}, |
| 3865 | }, |
| 3866 | |
| 3867 | { |
| 3868 | .vendor = "Eon", |
| 3869 | .name = "EN25P16", |
| 3870 | .bustype = BUS_SPI, |
| 3871 | .manufacture_id = EON_ID_NOPREFIX, |
| 3872 | .model_id = EON_EN25B16, |
| 3873 | .total_size = 2048, |
| 3874 | .page_size = 256, |
| 3875 | .feature_bits = FEATURE_WRSR_WREN, |
| 3876 | .tested = TEST_UNTESTED, |
| 3877 | .probe = probe_spi_rdid, |
| 3878 | .probe_timing = TIMING_ZERO, |
| 3879 | .block_erasers = |
| 3880 | { |
| 3881 | { |
| 3882 | .eraseblocks = { {64 * 1024, 32} }, |
| 3883 | .block_erase = spi_block_erase_d8, |
| 3884 | }, { |
| 3885 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3886 | .block_erase = spi_block_erase_c7, |
| 3887 | } |
| 3888 | }, |
| 3889 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3890 | .unlock = spi_disable_blockprotect, |
| 3891 | .write = spi_chip_write_256, |
| 3892 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3893 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3894 | }, |
| 3895 | |
| 3896 | { |
| 3897 | .vendor = "Eon", |
| 3898 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3899 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3900 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3901 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3902 | .total_size = 4096, |
| 3903 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3904 | /* OTP: 512B total; enter 0x3A */ |
| 3905 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3906 | .tested = TEST_UNTESTED, |
| 3907 | .probe = probe_spi_rdid, |
| 3908 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3909 | .block_erasers = |
| 3910 | { |
| 3911 | { |
| 3912 | .eraseblocks = { |
| 3913 | {4 * 1024, 2}, |
| 3914 | {8 * 1024, 1}, |
| 3915 | {16 * 1024, 1}, |
| 3916 | {32 * 1024, 1}, |
| 3917 | {64 * 1024, 63}, |
| 3918 | }, |
| 3919 | .block_erase = spi_block_erase_d8, |
| 3920 | }, { |
| 3921 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3922 | .block_erase = spi_block_erase_c7, |
| 3923 | } |
| 3924 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3925 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3926 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3927 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3928 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3929 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3930 | }, |
| 3931 | |
| 3932 | { |
| 3933 | .vendor = "Eon", |
| 3934 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3935 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3936 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3937 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3938 | .total_size = 4096, |
| 3939 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3940 | /* OTP: 512B total; enter 0x3A */ |
| 3941 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3942 | .tested = TEST_UNTESTED, |
| 3943 | .probe = probe_spi_rdid, |
| 3944 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3945 | .block_erasers = |
| 3946 | { |
| 3947 | { |
| 3948 | .eraseblocks = { |
| 3949 | {64 * 1024, 63}, |
| 3950 | {32 * 1024, 1}, |
| 3951 | {16 * 1024, 1}, |
| 3952 | {8 * 1024, 1}, |
| 3953 | {4 * 1024, 2}, |
| 3954 | }, |
| 3955 | .block_erase = spi_block_erase_d8, |
| 3956 | }, { |
| 3957 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3958 | .block_erase = spi_block_erase_c7, |
| 3959 | } |
| 3960 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3961 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3962 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3963 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3964 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3965 | .voltage = {2700, 3600}, |
| 3966 | }, |
| 3967 | |
| 3968 | { |
| 3969 | .vendor = "Eon", |
| 3970 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 3971 | .bustype = BUS_SPI, |
| 3972 | .manufacture_id = EON_ID_NOPREFIX, |
| 3973 | .model_id = EON_EN25B32, |
| 3974 | .total_size = 4096, |
| 3975 | .page_size = 256, |
| 3976 | /* OTP: 512B total; enter 0x3A */ |
| 3977 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 3978 | .tested = TEST_UNTESTED, |
| 3979 | .probe = probe_spi_rdid, |
| 3980 | .probe_timing = TIMING_ZERO, |
| 3981 | .block_erasers = |
| 3982 | { |
| 3983 | { |
| 3984 | .eraseblocks = { {64 * 1024, 64} }, |
| 3985 | .block_erase = spi_block_erase_d8, |
| 3986 | }, { |
| 3987 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3988 | .block_erase = spi_block_erase_c7, |
| 3989 | } |
| 3990 | }, |
| 3991 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3992 | .unlock = spi_disable_blockprotect, |
| 3993 | .write = spi_chip_write_256, |
| 3994 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3995 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3996 | }, |
| 3997 | |
| 3998 | { |
| 3999 | .vendor = "Eon", |
| 4000 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4001 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4002 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4003 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4004 | .total_size = 8192, |
| 4005 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4006 | /* OTP: 512B total; enter 0x3A */ |
| 4007 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4008 | .tested = TEST_UNTESTED, |
| 4009 | .probe = probe_spi_rdid, |
| 4010 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4011 | .block_erasers = |
| 4012 | { |
| 4013 | { |
| 4014 | .eraseblocks = { |
| 4015 | {4 * 1024, 2}, |
| 4016 | {8 * 1024, 1}, |
| 4017 | {16 * 1024, 1}, |
| 4018 | {32 * 1024, 1}, |
| 4019 | {64 * 1024, 127}, |
| 4020 | }, |
| 4021 | .block_erase = spi_block_erase_d8, |
| 4022 | }, { |
| 4023 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4024 | .block_erase = spi_block_erase_c7, |
| 4025 | } |
| 4026 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4027 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4028 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4029 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4030 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4031 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4032 | }, |
| 4033 | |
| 4034 | { |
| 4035 | .vendor = "Eon", |
| 4036 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4037 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4038 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4039 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4040 | .total_size = 8192, |
| 4041 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4042 | /* OTP: 512B total; enter 0x3A */ |
| 4043 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4044 | .tested = TEST_UNTESTED, |
| 4045 | .probe = probe_spi_rdid, |
| 4046 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4047 | .block_erasers = |
| 4048 | { |
| 4049 | { |
| 4050 | .eraseblocks = { |
| 4051 | {64 * 1024, 127}, |
| 4052 | {32 * 1024, 1}, |
| 4053 | {16 * 1024, 1}, |
| 4054 | {8 * 1024, 1}, |
| 4055 | {4 * 1024, 2}, |
| 4056 | }, |
| 4057 | .block_erase = spi_block_erase_d8, |
| 4058 | }, { |
| 4059 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4060 | .block_erase = spi_block_erase_c7, |
| 4061 | } |
| 4062 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4063 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4064 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4065 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4066 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4067 | .voltage = {2700, 3600}, |
| 4068 | }, |
| 4069 | |
| 4070 | { |
| 4071 | .vendor = "Eon", |
| 4072 | .name = "EN25P64", |
| 4073 | .bustype = BUS_SPI, |
| 4074 | .manufacture_id = EON_ID_NOPREFIX, |
| 4075 | .model_id = EON_EN25B64, |
| 4076 | .total_size = 8192, |
| 4077 | .page_size = 256, |
| 4078 | /* OTP: 512B total; enter 0x3A */ |
| 4079 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4080 | .tested = TEST_UNTESTED, |
| 4081 | .probe = probe_spi_rdid, |
| 4082 | .probe_timing = TIMING_ZERO, |
| 4083 | .block_erasers = |
| 4084 | { |
| 4085 | { |
| 4086 | .eraseblocks = { {64 * 1024, 128} }, |
| 4087 | .block_erase = spi_block_erase_d8, |
| 4088 | }, { |
| 4089 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4090 | .block_erase = spi_block_erase_c7, |
| 4091 | } |
| 4092 | }, |
| 4093 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4094 | .unlock = spi_disable_blockprotect, |
| 4095 | .write = spi_chip_write_256, |
| 4096 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4097 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4098 | }, |
| 4099 | |
| 4100 | { |
| 4101 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4102 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4103 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4104 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4105 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4106 | .total_size = 64, |
| 4107 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4108 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4109 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4110 | .probe = probe_spi_rdid, |
| 4111 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4112 | .block_erasers = |
| 4113 | { |
| 4114 | { |
| 4115 | .eraseblocks = { {4 * 1024, 16} }, |
| 4116 | .block_erase = spi_block_erase_20, |
| 4117 | }, { |
| 4118 | .eraseblocks = { {32 * 1024, 2} }, |
| 4119 | .block_erase = spi_block_erase_d8, |
| 4120 | }, { |
| 4121 | .eraseblocks = { {32 * 1024, 2} }, |
| 4122 | .block_erase = spi_block_erase_52, |
| 4123 | }, { |
| 4124 | .eraseblocks = { {64 * 1024, 1} }, |
| 4125 | .block_erase = spi_block_erase_60, |
| 4126 | }, { |
| 4127 | .eraseblocks = { {64 * 1024, 1} }, |
| 4128 | .block_erase = spi_block_erase_c7, |
| 4129 | } |
| 4130 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4131 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4132 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4133 | .write = spi_chip_write_256, |
| 4134 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4135 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4136 | }, |
| 4137 | |
| 4138 | { |
| 4139 | .vendor = "Eon", |
| 4140 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4141 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4142 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4143 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4144 | .total_size = 128, |
| 4145 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4146 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4147 | .tested = TEST_UNTESTED, |
| 4148 | .probe = probe_spi_rdid, |
| 4149 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4150 | .block_erasers = |
| 4151 | { |
| 4152 | { |
| 4153 | .eraseblocks = { {4 * 1024, 32} }, |
| 4154 | .block_erase = spi_block_erase_20, |
| 4155 | }, { |
| 4156 | .eraseblocks = { {32 * 1024, 4} }, |
| 4157 | .block_erase = spi_block_erase_d8, |
| 4158 | }, { |
| 4159 | .eraseblocks = { {32 * 1024, 4} }, |
| 4160 | .block_erase = spi_block_erase_52, |
| 4161 | }, { |
| 4162 | .eraseblocks = { {128 * 1024, 1} }, |
| 4163 | .block_erase = spi_block_erase_60, |
| 4164 | }, { |
| 4165 | .eraseblocks = { {128 * 1024, 1} }, |
| 4166 | .block_erase = spi_block_erase_c7, |
| 4167 | } |
| 4168 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4169 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4170 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4171 | .write = spi_chip_write_256, |
| 4172 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4173 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4174 | }, |
| 4175 | |
| 4176 | { |
| 4177 | .vendor = "Eon", |
| 4178 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4179 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4180 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4181 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4182 | .total_size = 256, |
| 4183 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4184 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4185 | .tested = TEST_UNTESTED, |
| 4186 | .probe = probe_spi_rdid, |
| 4187 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4188 | .block_erasers = |
| 4189 | { |
| 4190 | { |
| 4191 | .eraseblocks = { {4 * 1024, 64} }, |
| 4192 | .block_erase = spi_block_erase_20, |
| 4193 | }, { |
| 4194 | .eraseblocks = { {64 * 1024, 4} }, |
| 4195 | .block_erase = spi_block_erase_d8, |
| 4196 | }, { |
| 4197 | .eraseblocks = { {64 * 1024, 4} }, |
| 4198 | .block_erase = spi_block_erase_52, |
| 4199 | }, { |
| 4200 | .eraseblocks = { {256 * 1024, 1} }, |
| 4201 | .block_erase = spi_block_erase_60, |
| 4202 | }, { |
| 4203 | .eraseblocks = { {256 * 1024, 1} }, |
| 4204 | .block_erase = spi_block_erase_c7, |
| 4205 | } |
| 4206 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4207 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4208 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4209 | .write = spi_chip_write_256, |
| 4210 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4211 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4212 | }, |
| 4213 | |
| 4214 | { |
| 4215 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4216 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4217 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4218 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4219 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4220 | .total_size = 512, |
| 4221 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4222 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4223 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4224 | .probe = probe_spi_rdid, |
| 4225 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4226 | .block_erasers = |
| 4227 | { |
| 4228 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4229 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4230 | .block_erase = spi_block_erase_20, |
| 4231 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4232 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4233 | .block_erase = spi_block_erase_d8, |
| 4234 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4235 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4236 | .block_erase = spi_block_erase_60, |
| 4237 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4238 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4239 | .block_erase = spi_block_erase_c7, |
| 4240 | }, |
| 4241 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4242 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4243 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4244 | .write = spi_chip_write_256, |
| 4245 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4246 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4247 | }, |
| 4248 | |
| 4249 | { |
| 4250 | .vendor = "Eon", |
| 4251 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4252 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4253 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4254 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4255 | .total_size = 1024, |
| 4256 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4257 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 4258 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4259 | .probe = probe_spi_rdid, |
| 4260 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4261 | .block_erasers = |
| 4262 | { |
| 4263 | { |
| 4264 | .eraseblocks = { {4 * 1024, 256} }, |
| 4265 | .block_erase = spi_block_erase_20, |
| 4266 | }, { |
| 4267 | .eraseblocks = { {64 * 1024, 16} }, |
| 4268 | .block_erase = spi_block_erase_d8, |
| 4269 | }, { |
| 4270 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4271 | .block_erase = spi_block_erase_60, |
| 4272 | }, { |
| 4273 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4274 | .block_erase = spi_block_erase_c7, |
| 4275 | } |
| 4276 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4277 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4278 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4279 | .write = spi_chip_write_256, |
| 4280 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4281 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4282 | }, |
| 4283 | |
| 4284 | { |
| 4285 | .vendor = "Eon", |
| 4286 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4287 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4288 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4289 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4290 | .total_size = 2048, |
| 4291 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4292 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4293 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4294 | .probe = probe_spi_rdid, |
| 4295 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4296 | .block_erasers = |
| 4297 | { |
| 4298 | { |
| 4299 | .eraseblocks = { {4 * 1024, 512} }, |
| 4300 | .block_erase = spi_block_erase_20, |
| 4301 | }, { |
| 4302 | .eraseblocks = { {64 * 1024, 32} }, |
| 4303 | .block_erase = spi_block_erase_d8, |
| 4304 | }, { |
| 4305 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4306 | .block_erase = spi_block_erase_60, |
| 4307 | }, { |
| 4308 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4309 | .block_erase = spi_block_erase_c7, |
| 4310 | } |
| 4311 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4312 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4313 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4314 | .write = spi_chip_write_256, |
| 4315 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4316 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4317 | }, |
| 4318 | |
| 4319 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4320 | .vendor = "Eon", |
| 4321 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4322 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4323 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4324 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4325 | .total_size = 4096, |
| 4326 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4327 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4328 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4329 | .probe = probe_spi_rdid, |
| 4330 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4331 | .block_erasers = |
| 4332 | { |
| 4333 | { |
| 4334 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4335 | .block_erase = spi_block_erase_20, |
| 4336 | }, { |
| 4337 | .eraseblocks = { {64 * 1024, 64} }, |
| 4338 | .block_erase = spi_block_erase_d8, |
| 4339 | }, { |
| 4340 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4341 | .block_erase = spi_block_erase_60, |
| 4342 | }, { |
| 4343 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4344 | .block_erase = spi_block_erase_c7, |
| 4345 | } |
| 4346 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4347 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4348 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4349 | .write = spi_chip_write_256, |
| 4350 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4351 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4352 | }, |
| 4353 | |
| 4354 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4355 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4356 | .name = "EN25F64", |
| 4357 | .bustype = BUS_SPI, |
| 4358 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4359 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4360 | .total_size = 8192, |
| 4361 | .page_size = 256, |
| 4362 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4363 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4364 | .probe = probe_spi_rdid, |
| 4365 | .probe_timing = TIMING_ZERO, |
| 4366 | .block_erasers = |
| 4367 | { |
| 4368 | { |
| 4369 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4370 | .block_erase = spi_block_erase_20, |
| 4371 | }, { |
| 4372 | .eraseblocks = { {64 * 1024, 128} }, |
| 4373 | .block_erase = spi_block_erase_d8, |
| 4374 | }, { |
| 4375 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4376 | .block_erase = spi_block_erase_60, |
| 4377 | }, { |
| 4378 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4379 | .block_erase = spi_block_erase_c7, |
| 4380 | } |
| 4381 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4382 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4383 | .unlock = spi_disable_blockprotect, |
| 4384 | .write = spi_chip_write_256, |
| 4385 | .read = spi_chip_read, |
| 4386 | .voltage = {2700, 3600}, |
| 4387 | }, |
| 4388 | |
| 4389 | { |
| 4390 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4391 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4392 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4393 | .manufacture_id = EON_ID_NOPREFIX, |
| 4394 | .model_id = EON_EN25Q40, |
| 4395 | .total_size = 512, |
| 4396 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4397 | /* OTP: 256B total; enter 0x3A */ |
| 4398 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4399 | .tested = TEST_UNTESTED, |
| 4400 | .probe = probe_spi_rdid, |
| 4401 | .probe_timing = TIMING_ZERO, |
| 4402 | .block_erasers = |
| 4403 | { |
| 4404 | { |
| 4405 | .eraseblocks = { {4 * 1024, 128} }, |
| 4406 | .block_erase = spi_block_erase_20, |
| 4407 | }, { |
| 4408 | .eraseblocks = { {64 * 1024, 8} }, |
| 4409 | .block_erase = spi_block_erase_d8, |
| 4410 | }, { |
| 4411 | .eraseblocks = { {512 * 1024, 1} }, |
| 4412 | .block_erase = spi_block_erase_60, |
| 4413 | }, { |
| 4414 | .eraseblocks = { {512 * 1024, 1} }, |
| 4415 | .block_erase = spi_block_erase_c7, |
| 4416 | } |
| 4417 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4418 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4419 | .unlock = spi_disable_blockprotect, |
| 4420 | .write = spi_chip_write_256, |
| 4421 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4422 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4423 | }, |
| 4424 | |
| 4425 | { |
| 4426 | .vendor = "Eon", |
| 4427 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4428 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4429 | .manufacture_id = EON_ID_NOPREFIX, |
| 4430 | .model_id = EON_EN25Q80, |
| 4431 | .total_size = 1024, |
| 4432 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4433 | /* OTP: 256B total; enter 0x3A */ |
| 4434 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4435 | .tested = TEST_UNTESTED, |
| 4436 | .probe = probe_spi_rdid, |
| 4437 | .probe_timing = TIMING_ZERO, |
| 4438 | .block_erasers = |
| 4439 | { |
| 4440 | { |
| 4441 | .eraseblocks = { {4 * 1024, 256} }, |
| 4442 | .block_erase = spi_block_erase_20, |
| 4443 | }, { |
| 4444 | .eraseblocks = { {64 * 1024, 16} }, |
| 4445 | .block_erase = spi_block_erase_d8, |
| 4446 | }, { |
| 4447 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4448 | .block_erase = spi_block_erase_60, |
| 4449 | }, { |
| 4450 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4451 | .block_erase = spi_block_erase_c7, |
| 4452 | } |
| 4453 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4454 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4455 | .unlock = spi_disable_blockprotect, |
| 4456 | .write = spi_chip_write_256, |
| 4457 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4458 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4459 | }, |
| 4460 | |
| 4461 | { |
| 4462 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4463 | but has different write protection capabilities */ |
| 4464 | .vendor = "Eon", |
| 4465 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4466 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4467 | .manufacture_id = EON_ID_NOPREFIX, |
| 4468 | .model_id = EON_EN25Q16, |
| 4469 | .total_size = 2048, |
| 4470 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4471 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4472 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4473 | .tested = TEST_UNTESTED, |
| 4474 | .probe = probe_spi_rdid, |
| 4475 | .probe_timing = TIMING_ZERO, |
| 4476 | .block_erasers = |
| 4477 | { |
| 4478 | { |
| 4479 | .eraseblocks = { {4 * 1024, 512} }, |
| 4480 | .block_erase = spi_block_erase_20, |
| 4481 | }, { |
| 4482 | .eraseblocks = { {64 * 1024, 32} }, |
| 4483 | .block_erase = spi_block_erase_d8, |
| 4484 | }, { |
| 4485 | /* not supported by Q16 version */ |
| 4486 | .eraseblocks = { {64 * 1024, 32} }, |
| 4487 | .block_erase = spi_block_erase_52, |
| 4488 | }, { |
| 4489 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4490 | .block_erase = spi_block_erase_60, |
| 4491 | }, { |
| 4492 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 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 */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4497 | .unlock = spi_disable_blockprotect, |
| 4498 | .write = spi_chip_write_256, |
| 4499 | .read = spi_chip_read, |
| 4500 | .voltage = {2700, 3600}, |
| 4501 | }, |
| 4502 | |
| 4503 | { |
| 4504 | .vendor = "Eon", |
| 4505 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4506 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4507 | .manufacture_id = EON_ID_NOPREFIX, |
| 4508 | .model_id = EON_EN25Q32, |
| 4509 | .total_size = 4096, |
| 4510 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4511 | /* OTP: 512B total; enter 0x3A */ |
| 4512 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4513 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4514 | .probe = probe_spi_rdid, |
| 4515 | .probe_timing = TIMING_ZERO, |
| 4516 | .block_erasers = |
| 4517 | { |
| 4518 | { |
| 4519 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4520 | .block_erase = spi_block_erase_20, |
| 4521 | }, { |
| 4522 | .eraseblocks = { {64 * 1024, 64} }, |
| 4523 | .block_erase = spi_block_erase_d8, |
| 4524 | }, { |
| 4525 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4526 | .block_erase = spi_block_erase_60, |
| 4527 | }, { |
| 4528 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4529 | .block_erase = spi_block_erase_c7, |
| 4530 | } |
| 4531 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4532 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4533 | .unlock = spi_disable_blockprotect, |
| 4534 | .write = spi_chip_write_256, |
| 4535 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4536 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4537 | }, |
| 4538 | |
| 4539 | { |
| 4540 | .vendor = "Eon", |
| 4541 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4542 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4543 | .manufacture_id = EON_ID_NOPREFIX, |
| 4544 | .model_id = EON_EN25Q64, |
| 4545 | .total_size = 8192, |
| 4546 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4547 | /* OTP: 512B total; enter 0x3A */ |
| 4548 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4549 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4550 | .probe = probe_spi_rdid, |
| 4551 | .probe_timing = TIMING_ZERO, |
| 4552 | .block_erasers = |
| 4553 | { |
| 4554 | { |
| 4555 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4556 | .block_erase = spi_block_erase_20, |
| 4557 | }, { |
| 4558 | .eraseblocks = { {64 * 1024, 128} }, |
| 4559 | .block_erase = spi_block_erase_d8, |
| 4560 | }, { |
| 4561 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4562 | .block_erase = spi_block_erase_60, |
| 4563 | }, { |
| 4564 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4565 | .block_erase = spi_block_erase_c7, |
| 4566 | } |
| 4567 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4568 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4569 | .unlock = spi_disable_blockprotect, |
| 4570 | .write = spi_chip_write_256, |
| 4571 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4572 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4573 | }, |
| 4574 | |
| 4575 | { |
| 4576 | .vendor = "Eon", |
| 4577 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4578 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4579 | .manufacture_id = EON_ID_NOPREFIX, |
| 4580 | .model_id = EON_EN25Q128, |
| 4581 | .total_size = 16384, |
| 4582 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4583 | /* OTP: 512B total; enter 0x3A */ |
| 4584 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4585 | .tested = TEST_UNTESTED, |
| 4586 | .probe = probe_spi_rdid, |
| 4587 | .probe_timing = TIMING_ZERO, |
| 4588 | .block_erasers = |
| 4589 | { |
| 4590 | { |
| 4591 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4592 | .block_erase = spi_block_erase_20, |
| 4593 | }, { |
| 4594 | .eraseblocks = { {64 * 1024, 256} }, |
| 4595 | .block_erase = spi_block_erase_d8, |
| 4596 | }, { |
| 4597 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4598 | .block_erase = spi_block_erase_60, |
| 4599 | }, { |
| 4600 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4601 | .block_erase = spi_block_erase_c7, |
| 4602 | } |
| 4603 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4604 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4605 | .unlock = spi_disable_blockprotect, |
| 4606 | .write = spi_chip_write_256, |
| 4607 | .read = spi_chip_read, |
| 4608 | }, |
| 4609 | |
| 4610 | { |
| 4611 | .vendor = "Eon", |
| 4612 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4613 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4614 | .manufacture_id = EON_ID_NOPREFIX, |
| 4615 | .model_id = EON_EN25QH16, |
| 4616 | .total_size = 2048, |
| 4617 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4618 | /* supports SFDP */ |
| 4619 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4620 | /* QPI enable 0x38, disable 0xFF */ |
| 4621 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4622 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4623 | .probe = probe_spi_rdid, |
| 4624 | .probe_timing = TIMING_ZERO, |
| 4625 | .block_erasers = |
| 4626 | { |
| 4627 | { |
| 4628 | .eraseblocks = { {4 * 1024, 512} }, |
| 4629 | .block_erase = spi_block_erase_20, |
| 4630 | }, { |
| 4631 | .eraseblocks = { {64 * 1024, 32} }, |
| 4632 | .block_erase = spi_block_erase_d8, |
| 4633 | }, { |
| 4634 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4635 | .block_erase = spi_block_erase_60, |
| 4636 | }, { |
| 4637 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4638 | .block_erase = spi_block_erase_c7, |
| 4639 | } |
| 4640 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4641 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4642 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4643 | .write = spi_chip_write_256, |
| 4644 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4645 | .voltage = {2700, 3600}, |
| 4646 | }, |
| 4647 | |
| 4648 | { |
| 4649 | .vendor = "Eon", |
| 4650 | .name = "EN25QH32", |
| 4651 | .bustype = BUS_SPI, |
| 4652 | .manufacture_id = EON_ID_NOPREFIX, |
| 4653 | .model_id = EON_EN25QH32, |
| 4654 | .total_size = 4096, |
| 4655 | .page_size = 256, |
| 4656 | /* supports SFDP */ |
| 4657 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4658 | /* QPI enable 0x38, disable 0xFF */ |
| 4659 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4660 | .tested = TEST_UNTESTED, |
| 4661 | .probe = probe_spi_rdid, |
| 4662 | .probe_timing = TIMING_ZERO, |
| 4663 | .block_erasers = |
| 4664 | { |
| 4665 | { |
| 4666 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4667 | .block_erase = spi_block_erase_20, |
| 4668 | }, { |
| 4669 | .eraseblocks = { {64 * 1024, 64} }, |
| 4670 | .block_erase = spi_block_erase_d8, |
| 4671 | }, { |
| 4672 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4673 | .block_erase = spi_block_erase_60, |
| 4674 | }, { |
| 4675 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4676 | .block_erase = spi_block_erase_c7, |
| 4677 | } |
| 4678 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4679 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4680 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4681 | .write = spi_chip_write_256, |
| 4682 | .read = spi_chip_read, |
| 4683 | .voltage = {2700, 3600}, |
| 4684 | }, |
| 4685 | |
| 4686 | { |
| 4687 | .vendor = "Eon", |
| 4688 | .name = "EN25QH64", |
| 4689 | .bustype = BUS_SPI, |
| 4690 | .manufacture_id = EON_ID_NOPREFIX, |
| 4691 | .model_id = EON_EN25QH64, |
| 4692 | .total_size = 8192, |
| 4693 | .page_size = 256, |
| 4694 | /* supports SFDP */ |
| 4695 | /* OTP: 512B total; enter 0x3A */ |
| 4696 | /* QPI enable 0x38, disable 0xFF */ |
| 4697 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 4698 | .tested = TEST_OK_PR, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4699 | .probe = probe_spi_rdid, |
| 4700 | .probe_timing = TIMING_ZERO, |
| 4701 | .block_erasers = { |
| 4702 | { |
| 4703 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4704 | .block_erase = spi_block_erase_20, |
| 4705 | }, { |
| 4706 | .eraseblocks = { {64 * 1024, 128} }, |
| 4707 | .block_erase = spi_block_erase_d8, |
| 4708 | }, { |
| 4709 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4710 | .block_erase = spi_block_erase_60, |
| 4711 | }, { |
| 4712 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4713 | .block_erase = spi_block_erase_c7, |
| 4714 | } |
| 4715 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4716 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4717 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4718 | .write = spi_chip_write_256, |
| 4719 | .read = spi_chip_read, |
| 4720 | .voltage = {2700, 3600}, |
| 4721 | }, |
| 4722 | |
| 4723 | { |
| 4724 | .vendor = "Eon", |
| 4725 | .name = "EN25QH128", |
| 4726 | .bustype = BUS_SPI, |
| 4727 | .manufacture_id = EON_ID_NOPREFIX, |
| 4728 | .model_id = EON_EN25QH128, |
| 4729 | .total_size = 16384, |
| 4730 | .page_size = 256, |
| 4731 | /* supports SFDP */ |
| 4732 | /* OTP: 512B total; enter 0x3A */ |
| 4733 | /* QPI enable 0x38, disable 0xFF */ |
| 4734 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4735 | .tested = TEST_UNTESTED, |
| 4736 | .probe = probe_spi_rdid, |
| 4737 | .probe_timing = TIMING_ZERO, |
| 4738 | .block_erasers = { |
| 4739 | { |
| 4740 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4741 | .block_erase = spi_block_erase_20, |
| 4742 | }, { |
| 4743 | .eraseblocks = { {64 * 1024, 256} }, |
| 4744 | .block_erase = spi_block_erase_d8, |
| 4745 | }, { |
| 4746 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4747 | .block_erase = spi_block_erase_60, |
| 4748 | }, { |
| 4749 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4750 | .block_erase = spi_block_erase_c7, |
| 4751 | } |
| 4752 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4753 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4754 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4755 | .write = spi_chip_write_256, |
| 4756 | .read = spi_chip_read, |
| 4757 | .voltage = {2700, 3600}, |
| 4758 | }, |
| 4759 | |
| 4760 | { |
| 4761 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4762 | .name = "EN25S10", |
| 4763 | .bustype = BUS_SPI, |
| 4764 | .manufacture_id = EON_ID_NOPREFIX, |
| 4765 | .model_id = EON_EN25S10, |
| 4766 | .total_size = 128, |
| 4767 | .page_size = 256, |
| 4768 | /* OTP: 256B total; enter 0x3A */ |
| 4769 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4770 | .tested = TEST_UNTESTED, |
| 4771 | .probe = probe_spi_rdid, |
| 4772 | .probe_timing = TIMING_ZERO, |
| 4773 | .block_erasers = { |
| 4774 | { |
| 4775 | .eraseblocks = { {4 * 1024, 32} }, |
| 4776 | .block_erase = spi_block_erase_20, |
| 4777 | }, { |
| 4778 | .eraseblocks = { {32 * 1024, 4} }, |
| 4779 | .block_erase = spi_block_erase_52, |
| 4780 | }, { |
| 4781 | .eraseblocks = { {128 * 1024, 1} }, |
| 4782 | .block_erase = spi_block_erase_60, |
| 4783 | }, { |
| 4784 | .eraseblocks = { {128 * 1024, 1} }, |
| 4785 | .block_erase = spi_block_erase_c7, |
| 4786 | } |
| 4787 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4788 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4789 | .unlock = spi_disable_blockprotect, |
| 4790 | .write = spi_chip_write_256, |
| 4791 | .read = spi_chip_read, |
| 4792 | .voltage = {1650, 1950}, |
| 4793 | }, |
| 4794 | |
| 4795 | { |
| 4796 | .vendor = "Eon", |
| 4797 | .name = "EN25S20", |
| 4798 | .bustype = BUS_SPI, |
| 4799 | .manufacture_id = EON_ID_NOPREFIX, |
| 4800 | .model_id = EON_EN25S20, |
| 4801 | .total_size = 256, |
| 4802 | .page_size = 256, |
| 4803 | /* OTP: 256B total; enter 0x3A */ |
| 4804 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4805 | .tested = TEST_UNTESTED, |
| 4806 | .probe = probe_spi_rdid, |
| 4807 | .probe_timing = TIMING_ZERO, |
| 4808 | .block_erasers = { |
| 4809 | { |
| 4810 | .eraseblocks = { {4 * 1024, 64} }, |
| 4811 | .block_erase = spi_block_erase_20, |
| 4812 | }, { |
| 4813 | .eraseblocks = { {64 * 1024, 4} }, |
| 4814 | .block_erase = spi_block_erase_d8, |
| 4815 | }, { |
| 4816 | .eraseblocks = { {256 * 1024, 1} }, |
| 4817 | .block_erase = spi_block_erase_60, |
| 4818 | }, { |
| 4819 | .eraseblocks = { {256 * 1024, 1} }, |
| 4820 | .block_erase = spi_block_erase_c7, |
| 4821 | } |
| 4822 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4823 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4824 | .unlock = spi_disable_blockprotect, |
| 4825 | .write = spi_chip_write_256, |
| 4826 | .read = spi_chip_read, |
| 4827 | .voltage = {1650, 1950}, |
| 4828 | }, |
| 4829 | |
| 4830 | { |
| 4831 | .vendor = "Eon", |
| 4832 | .name = "EN25S40", |
| 4833 | .bustype = BUS_SPI, |
| 4834 | .manufacture_id = EON_ID_NOPREFIX, |
| 4835 | .model_id = EON_EN25S40, |
| 4836 | .total_size = 512, |
| 4837 | .page_size = 256, |
| 4838 | /* OTP: 256B total; enter 0x3A */ |
| 4839 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4840 | .tested = TEST_UNTESTED, |
| 4841 | .probe = probe_spi_rdid, |
| 4842 | .probe_timing = TIMING_ZERO, |
| 4843 | .block_erasers = { |
| 4844 | { |
| 4845 | .eraseblocks = { {4 * 1024, 128} }, |
| 4846 | .block_erase = spi_block_erase_20, |
| 4847 | }, { |
| 4848 | .eraseblocks = { {64 * 1024, 8} }, |
| 4849 | .block_erase = spi_block_erase_d8, |
| 4850 | }, { |
| 4851 | .eraseblocks = { {512 * 1024, 1} }, |
| 4852 | .block_erase = spi_block_erase_60, |
| 4853 | }, { |
| 4854 | .eraseblocks = { {512 * 1024, 1} }, |
| 4855 | .block_erase = spi_block_erase_c7, |
| 4856 | } |
| 4857 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4858 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4859 | .unlock = spi_disable_blockprotect, |
| 4860 | .write = spi_chip_write_256, |
| 4861 | .read = spi_chip_read, |
| 4862 | .voltage = {1650, 1950}, |
| 4863 | }, |
| 4864 | |
| 4865 | { |
| 4866 | .vendor = "Eon", |
| 4867 | .name = "EN25S80", |
| 4868 | .bustype = BUS_SPI, |
| 4869 | .manufacture_id = EON_ID_NOPREFIX, |
| 4870 | .model_id = EON_EN25S80, |
| 4871 | .total_size = 1024, |
| 4872 | .page_size = 256, |
| 4873 | /* OTP: 256B total; enter 0x3A */ |
| 4874 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4875 | .tested = TEST_UNTESTED, |
| 4876 | .probe = probe_spi_rdid, |
| 4877 | .probe_timing = TIMING_ZERO, |
| 4878 | .block_erasers = { |
| 4879 | { |
| 4880 | .eraseblocks = { {4 * 1024, 256} }, |
| 4881 | .block_erase = spi_block_erase_20, |
| 4882 | }, { |
| 4883 | .eraseblocks = { {64 * 1024, 16} }, |
| 4884 | .block_erase = spi_block_erase_d8, |
| 4885 | }, { |
| 4886 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4887 | .block_erase = spi_block_erase_60, |
| 4888 | }, { |
| 4889 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4890 | .block_erase = spi_block_erase_c7, |
| 4891 | } |
| 4892 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4893 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4894 | .unlock = spi_disable_blockprotect, |
| 4895 | .write = spi_chip_write_256, |
| 4896 | .read = spi_chip_read, |
| 4897 | .voltage = {1650, 1950}, |
| 4898 | }, |
| 4899 | |
| 4900 | { |
| 4901 | .vendor = "Eon", |
| 4902 | .name = "EN25S16", |
| 4903 | .bustype = BUS_SPI, |
| 4904 | .manufacture_id = EON_ID_NOPREFIX, |
| 4905 | .model_id = EON_EN25S16, |
| 4906 | .total_size = 2048, |
| 4907 | .page_size = 256, |
| 4908 | /* OTP: 512B total; enter 0x3A */ |
| 4909 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4910 | .tested = TEST_UNTESTED, |
| 4911 | .probe = probe_spi_rdid, |
| 4912 | .probe_timing = TIMING_ZERO, |
| 4913 | .block_erasers = { |
| 4914 | { |
| 4915 | .eraseblocks = { {4 * 1024, 512} }, |
| 4916 | .block_erase = spi_block_erase_20, |
| 4917 | }, { |
| 4918 | .eraseblocks = { {64 * 1024, 32} }, |
| 4919 | .block_erase = spi_block_erase_52, |
| 4920 | }, { |
| 4921 | .eraseblocks = { {32 * 1024, 64} }, |
| 4922 | .block_erase = spi_block_erase_d8, |
| 4923 | }, { |
| 4924 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4925 | .block_erase = spi_block_erase_60, |
| 4926 | }, { |
| 4927 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4928 | .block_erase = spi_block_erase_c7, |
| 4929 | } |
| 4930 | }, |
| 4931 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4932 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4933 | .write = spi_chip_write_256, |
| 4934 | .read = spi_chip_read, |
| 4935 | .voltage = {1650, 1950}, |
| 4936 | }, |
| 4937 | |
| 4938 | { |
| 4939 | .vendor = "Eon", |
| 4940 | .name = "EN25S32", |
| 4941 | .bustype = BUS_SPI, |
| 4942 | .manufacture_id = EON_ID_NOPREFIX, |
| 4943 | .model_id = EON_EN25S32, |
| 4944 | .total_size = 4096, |
| 4945 | .page_size = 256, |
| 4946 | /* OTP: 512B total; enter 0x3A */ |
| 4947 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4948 | .tested = TEST_UNTESTED, |
| 4949 | .probe = probe_spi_rdid, |
| 4950 | .probe_timing = TIMING_ZERO, |
| 4951 | .block_erasers = { |
| 4952 | { |
| 4953 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4954 | .block_erase = spi_block_erase_20, |
| 4955 | }, { |
| 4956 | .eraseblocks = { {32 * 1024, 128} }, |
| 4957 | .block_erase = spi_block_erase_52, |
| 4958 | }, { |
| 4959 | .eraseblocks = { {64 * 1024, 64} }, |
| 4960 | .block_erase = spi_block_erase_d8, |
| 4961 | }, { |
| 4962 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4963 | .block_erase = spi_block_erase_60, |
| 4964 | }, { |
| 4965 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4966 | .block_erase = spi_block_erase_c7, |
| 4967 | } |
| 4968 | }, |
| 4969 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4970 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4971 | .write = spi_chip_write_256, |
| 4972 | .read = spi_chip_read, |
| 4973 | .voltage = {1650, 1950}, |
| 4974 | }, |
| 4975 | |
| 4976 | { |
| 4977 | .vendor = "Eon", |
| 4978 | .name = "EN25S64", |
| 4979 | .bustype = BUS_SPI, |
| 4980 | .manufacture_id = EON_ID_NOPREFIX, |
| 4981 | .model_id = EON_EN25S64, |
| 4982 | .total_size = 8192, |
| 4983 | .page_size = 256, |
| 4984 | /* OTP: 512B total; enter 0x3A */ |
| 4985 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4986 | .tested = TEST_UNTESTED, |
| 4987 | .probe = probe_spi_rdid, |
| 4988 | .probe_timing = TIMING_ZERO, |
| 4989 | .block_erasers = { |
| 4990 | { |
| 4991 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4992 | .block_erase = spi_block_erase_20, |
| 4993 | }, { |
| 4994 | .eraseblocks = { {64 * 1024, 128} }, |
| 4995 | .block_erase = spi_block_erase_d8, |
| 4996 | }, { |
| 4997 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4998 | .block_erase = spi_block_erase_60, |
| 4999 | }, { |
| 5000 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5001 | .block_erase = spi_block_erase_c7, |
| 5002 | } |
| 5003 | }, |
| 5004 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5005 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5006 | .write = spi_chip_write_256, |
| 5007 | .read = spi_chip_read, |
| 5008 | .voltage = {1650, 1950}, |
| 5009 | }, |
| 5010 | |
| 5011 | { |
| 5012 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5013 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5014 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5015 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5016 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5017 | .total_size = 128, |
| 5018 | .page_size = 128, |
| 5019 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5020 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5021 | .probe = probe_jedec, |
| 5022 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5023 | .block_erasers = |
| 5024 | { |
| 5025 | { |
| 5026 | .eraseblocks = { {16 * 1024, 8} }, |
| 5027 | .block_erase = erase_sector_jedec, |
| 5028 | }, |
| 5029 | { |
| 5030 | .eraseblocks = { {128 * 1024, 1} }, |
| 5031 | .block_erase = erase_chip_block_jedec, |
| 5032 | }, |
| 5033 | }, |
| 5034 | .write = write_jedec_1, |
| 5035 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5036 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5037 | }, |
| 5038 | |
| 5039 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5040 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5041 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5042 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5043 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5044 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5045 | .total_size = 256, |
| 5046 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5047 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5048 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5049 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5050 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5051 | .block_erasers = |
| 5052 | { |
| 5053 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5054 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5055 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5056 | {8 * 1024, 2}, |
| 5057 | {32 * 1024, 1}, |
| 5058 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5059 | }, |
| 5060 | .block_erase = erase_sector_jedec, |
| 5061 | }, { |
| 5062 | .eraseblocks = { {256 * 1024, 1} }, |
| 5063 | .block_erase = erase_chip_block_jedec, |
| 5064 | }, |
| 5065 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5066 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5067 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5068 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5069 | }, |
| 5070 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5071 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5072 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5073 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5074 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5075 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5076 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5077 | .total_size = 256, |
| 5078 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5079 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5080 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5081 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5082 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5083 | .block_erasers = |
| 5084 | { |
| 5085 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5086 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5087 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5088 | {32 * 1024, 1}, |
| 5089 | {8 * 1024, 2}, |
| 5090 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5091 | }, |
| 5092 | .block_erase = erase_sector_jedec, |
| 5093 | }, { |
| 5094 | .eraseblocks = { {256 * 1024, 1} }, |
| 5095 | .block_erase = erase_chip_block_jedec, |
| 5096 | }, |
| 5097 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5098 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5099 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5100 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5101 | }, |
| 5102 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5103 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5104 | .vendor = "Eon", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5105 | .name = "EN29LV040(A)", |
| 5106 | .bustype = BUS_PARALLEL, |
| 5107 | .manufacture_id = EON_ID, |
| 5108 | .model_id = EON_EN29LV040, |
| 5109 | .total_size = 512, |
| 5110 | .page_size = 4 * 1024, |
| 5111 | .tested = TEST_OK_PREW, |
| 5112 | .probe = probe_jedec, |
| 5113 | .probe_timing = TIMING_ZERO, |
| 5114 | .block_erasers = |
| 5115 | { |
| 5116 | { |
| 5117 | .eraseblocks = { {64 * 1024, 8} }, |
| 5118 | .block_erase = erase_sector_jedec, |
| 5119 | }, |
| 5120 | { |
| 5121 | .eraseblocks = { {512 * 1024, 1} }, |
| 5122 | .block_erase = erase_chip_block_jedec, |
| 5123 | }, |
| 5124 | }, |
| 5125 | .write = write_jedec_1, |
| 5126 | .read = read_memmapped, |
| 5127 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
| 5128 | }, |
| 5129 | |
| 5130 | { |
| 5131 | .vendor = "Eon", |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5132 | .name = "EN29LV640B", |
| 5133 | .bustype = BUS_PARALLEL, |
| 5134 | .manufacture_id = EON_ID, |
| 5135 | .model_id = EON_EN29LV640B, |
| 5136 | .total_size = 8192, |
| 5137 | .page_size = 8192, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5138 | .feature_bits = FEATURE_ADDR_SHIFTED, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5139 | .tested = TEST_OK_PREW, |
| 5140 | .probe = probe_en29lv640b, |
| 5141 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5142 | .block_erasers = |
| 5143 | { |
| 5144 | { |
| 5145 | .eraseblocks = { |
| 5146 | {8 * 1024, 8}, |
| 5147 | {64 * 1024, 127}, |
| 5148 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5149 | .block_erase = erase_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5150 | }, { |
| 5151 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5152 | .block_erase = erase_chip_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5153 | }, |
| 5154 | }, |
| 5155 | .write = write_en29lv640b, |
| 5156 | .read = read_memmapped, |
| 5157 | .voltage = {2700, 3600}, |
| 5158 | }, |
| 5159 | |
| 5160 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5161 | .vendor = "Eon", |
| 5162 | .name = "EN29GL064(A)B", |
| 5163 | .bustype = BUS_PARALLEL, |
| 5164 | .manufacture_id = EON_ID, |
| 5165 | .model_id = EON_EN29GL064B, |
| 5166 | .total_size = 8192, |
| 5167 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5168 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5169 | .tested = TEST_UNTESTED, |
| 5170 | .probe = probe_jedec_29gl, |
| 5171 | .probe_timing = TIMING_ZERO, |
| 5172 | .block_erasers = |
| 5173 | { |
| 5174 | { |
| 5175 | .eraseblocks = { |
| 5176 | {8 * 1024, 8}, |
| 5177 | {64 * 1024, 127}, |
| 5178 | }, |
| 5179 | .block_erase = erase_sector_jedec, |
| 5180 | }, { |
| 5181 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5182 | .block_erase = erase_chip_block_jedec, |
| 5183 | }, |
| 5184 | }, |
| 5185 | .write = write_jedec_1, |
| 5186 | .read = read_memmapped, |
| 5187 | .voltage = {2700, 3600}, |
| 5188 | }, |
| 5189 | |
| 5190 | { |
| 5191 | .vendor = "Eon", |
| 5192 | .name = "EN29GL064(A)T", |
| 5193 | .bustype = BUS_PARALLEL, |
| 5194 | .manufacture_id = EON_ID, |
| 5195 | .model_id = EON_EN29GL064T, |
| 5196 | .total_size = 8192, |
| 5197 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5198 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5199 | .tested = TEST_UNTESTED, |
| 5200 | .probe = probe_jedec_29gl, |
| 5201 | .probe_timing = TIMING_ZERO, |
| 5202 | .block_erasers = |
| 5203 | { |
| 5204 | { |
| 5205 | .eraseblocks = { |
| 5206 | {64 * 1024, 127}, |
| 5207 | {8 * 1024, 8}, |
| 5208 | }, |
| 5209 | .block_erase = erase_sector_jedec, |
| 5210 | }, { |
| 5211 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5212 | .block_erase = erase_chip_block_jedec, |
| 5213 | }, |
| 5214 | }, |
| 5215 | .write = write_jedec_1, |
| 5216 | .read = read_memmapped, |
| 5217 | .voltage = {2700, 3600}, |
| 5218 | }, |
| 5219 | |
| 5220 | { |
| 5221 | .vendor = "Eon", |
| 5222 | .name = "EN29GL064H/L", |
| 5223 | .bustype = BUS_PARALLEL, |
| 5224 | .manufacture_id = EON_ID, |
| 5225 | .model_id = EON_EN29GL064HL, |
| 5226 | .total_size = 8192, |
| 5227 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5228 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5229 | .tested = TEST_UNTESTED, |
| 5230 | .probe = probe_jedec_29gl, |
| 5231 | .probe_timing = TIMING_ZERO, |
| 5232 | .block_erasers = |
| 5233 | { |
| 5234 | { |
| 5235 | .eraseblocks = { {64 * 1024, 128} }, |
| 5236 | .block_erase = erase_sector_jedec, |
| 5237 | }, { |
| 5238 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5239 | .block_erase = erase_chip_block_jedec, |
| 5240 | }, |
| 5241 | }, |
| 5242 | .write = write_jedec_1, |
| 5243 | .read = read_memmapped, |
| 5244 | .voltage = {2700, 3600}, |
| 5245 | }, |
| 5246 | |
| 5247 | { |
| 5248 | .vendor = "Eon", |
| 5249 | .name = "EN29GL128", |
| 5250 | .bustype = BUS_PARALLEL, |
| 5251 | .manufacture_id = EON_ID, |
| 5252 | .model_id = EON_EN29GL128HL, |
| 5253 | .total_size = 16384, |
| 5254 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5255 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5256 | .tested = TEST_UNTESTED, |
| 5257 | .probe = probe_jedec_29gl, |
| 5258 | .probe_timing = TIMING_ZERO, |
| 5259 | .block_erasers = |
| 5260 | { |
| 5261 | { |
| 5262 | .eraseblocks = { {128 * 1024, 128} }, |
| 5263 | .block_erase = erase_sector_jedec, |
| 5264 | }, { |
| 5265 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5266 | .block_erase = erase_chip_block_jedec, |
| 5267 | }, |
| 5268 | }, |
| 5269 | .write = write_jedec_1, |
| 5270 | .read = read_memmapped, |
| 5271 | .voltage = {2700, 3600}, |
| 5272 | }, |
| 5273 | |
| 5274 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5275 | .vendor = "Fujitsu", |
| 5276 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5277 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5278 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5279 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5280 | .total_size = 512, |
| 5281 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5282 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5283 | .tested = TEST_UNTESTED, |
| 5284 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5285 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5286 | .block_erasers = |
| 5287 | { |
| 5288 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5289 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5290 | {16 * 1024, 1}, |
| 5291 | {8 * 1024, 2}, |
| 5292 | {32 * 1024, 1}, |
| 5293 | {64 * 1024, 7}, |
| 5294 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5295 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5296 | }, { |
| 5297 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5298 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5299 | }, |
| 5300 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5301 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5302 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5303 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5304 | }, |
| 5305 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5306 | { |
| 5307 | .vendor = "Fujitsu", |
| 5308 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5309 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5310 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5311 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5312 | .total_size = 512, |
| 5313 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5314 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5315 | .tested = TEST_UNTESTED, |
| 5316 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5317 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5318 | .block_erasers = |
| 5319 | { |
| 5320 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5321 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5322 | {64 * 1024, 7}, |
| 5323 | {32 * 1024, 1}, |
| 5324 | {8 * 1024, 2}, |
| 5325 | {16 * 1024, 1}, |
| 5326 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5327 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5328 | }, { |
| 5329 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5330 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5331 | }, |
| 5332 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5333 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5334 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5335 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5336 | }, |
| 5337 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5338 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5339 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5340 | .vendor = "Fujitsu", |
| 5341 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5342 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5343 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5344 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5345 | .total_size = 512, |
| 5346 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5347 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5348 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5349 | .probe = probe_jedec, |
| 5350 | .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] | 5351 | .block_erasers = |
| 5352 | { |
| 5353 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5354 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5355 | {16 * 1024, 1}, |
| 5356 | {8 * 1024, 2}, |
| 5357 | {32 * 1024, 1}, |
| 5358 | {64 * 1024, 7}, |
| 5359 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5360 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5361 | }, { |
| 5362 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5363 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5364 | }, |
| 5365 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5366 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5367 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5368 | .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] | 5369 | }, |
| 5370 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5371 | { |
| 5372 | .vendor = "Fujitsu", |
| 5373 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5374 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5375 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5376 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5377 | .total_size = 512, |
| 5378 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5379 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5380 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5381 | .probe = probe_jedec, |
| 5382 | .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] | 5383 | .block_erasers = |
| 5384 | { |
| 5385 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5386 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5387 | {64 * 1024, 7}, |
| 5388 | {32 * 1024, 1}, |
| 5389 | {8 * 1024, 2}, |
| 5390 | {16 * 1024, 1}, |
| 5391 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5392 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5393 | }, { |
| 5394 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5395 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5396 | }, |
| 5397 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5398 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5399 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5400 | .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] | 5401 | }, |
| 5402 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5403 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5404 | .vendor = "Fujitsu", |
| 5405 | .name = "MBM29LV160BE", |
| 5406 | .bustype = BUS_PARALLEL, |
| 5407 | .manufacture_id = FUJITSU_ID, |
| 5408 | .model_id = FUJITSU_MBM29LV160BE, |
| 5409 | .total_size = 2 * 1024, |
| 5410 | .page_size = 0, |
| 5411 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5412 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5413 | .probe = probe_jedec, |
| 5414 | .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] | 5415 | .block_erasers = |
| 5416 | { |
| 5417 | { |
| 5418 | .eraseblocks = { |
| 5419 | {16 * 1024, 1}, |
| 5420 | {8 * 1024, 2}, |
| 5421 | {32 * 1024, 1}, |
| 5422 | {64 * 1024, 31}, |
| 5423 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5424 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5425 | }, { |
| 5426 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5427 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5428 | }, |
| 5429 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5430 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5431 | .read = read_memmapped, |
| 5432 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5433 | }, |
| 5434 | |
| 5435 | { |
| 5436 | .vendor = "Fujitsu", |
| 5437 | .name = "MBM29LV160TE", |
| 5438 | .bustype = BUS_PARALLEL, |
| 5439 | .manufacture_id = FUJITSU_ID, |
| 5440 | .model_id = FUJITSU_MBM29LV160TE, |
| 5441 | .total_size = 2 * 1024, |
| 5442 | .page_size = 0, |
| 5443 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5444 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5445 | .probe = probe_jedec, |
| 5446 | .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] | 5447 | .block_erasers = |
| 5448 | { |
| 5449 | { |
| 5450 | .eraseblocks = { |
| 5451 | {64 * 1024, 31}, |
| 5452 | {32 * 1024, 1}, |
| 5453 | {8 * 1024, 2}, |
| 5454 | {16 * 1024, 1}, |
| 5455 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5456 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5457 | }, { |
| 5458 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5459 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5460 | }, |
| 5461 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5462 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5463 | .read = read_memmapped, |
| 5464 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5465 | }, |
| 5466 | |
| 5467 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5468 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5469 | .name = "GD25LQ40", |
| 5470 | .bustype = BUS_SPI, |
| 5471 | .manufacture_id = GIGADEVICE_ID, |
| 5472 | .model_id = GIGADEVICE_GD25LQ40, |
| 5473 | .total_size = 512, |
| 5474 | .page_size = 256, |
| 5475 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5476 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5477 | .tested = TEST_UNTESTED, |
| 5478 | .probe = probe_spi_rdid, |
| 5479 | .probe_timing = TIMING_ZERO, |
| 5480 | .block_erasers = |
| 5481 | { |
| 5482 | { |
| 5483 | .eraseblocks = { {4 * 1024, 128} }, |
| 5484 | .block_erase = spi_block_erase_20, |
| 5485 | }, { |
| 5486 | .eraseblocks = { {32 * 1024, 16} }, |
| 5487 | .block_erase = spi_block_erase_52, |
| 5488 | }, { |
| 5489 | .eraseblocks = { {64 * 1024, 8} }, |
| 5490 | .block_erase = spi_block_erase_d8, |
| 5491 | }, { |
| 5492 | .eraseblocks = { {512 * 1024, 1} }, |
| 5493 | .block_erase = spi_block_erase_60, |
| 5494 | }, { |
| 5495 | .eraseblocks = { {512 * 1024, 1} }, |
| 5496 | .block_erase = spi_block_erase_c7, |
| 5497 | } |
| 5498 | }, |
| 5499 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5500 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5501 | .write = spi_chip_write_256, |
| 5502 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5503 | .voltage = {1695, 1950}, |
| 5504 | }, |
| 5505 | |
| 5506 | { |
| 5507 | .vendor = "GigaDevice", |
| 5508 | .name = "GD25LQ80", |
| 5509 | .bustype = BUS_SPI, |
| 5510 | .manufacture_id = GIGADEVICE_ID, |
| 5511 | .model_id = GIGADEVICE_GD25LQ80, |
| 5512 | .total_size = 1024, |
| 5513 | .page_size = 256, |
| 5514 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5515 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5516 | .tested = TEST_UNTESTED, |
| 5517 | .probe = probe_spi_rdid, |
| 5518 | .probe_timing = TIMING_ZERO, |
| 5519 | .block_erasers = |
| 5520 | { |
| 5521 | { |
| 5522 | .eraseblocks = { {4 * 1024, 256} }, |
| 5523 | .block_erase = spi_block_erase_20, |
| 5524 | }, { |
| 5525 | .eraseblocks = { {32 * 1024, 32} }, |
| 5526 | .block_erase = spi_block_erase_52, |
| 5527 | }, { |
| 5528 | .eraseblocks = { {64 * 1024, 16} }, |
| 5529 | .block_erase = spi_block_erase_d8, |
| 5530 | }, { |
| 5531 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 5532 | .block_erase = spi_block_erase_60, |
| 5533 | }, { |
| 5534 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 5535 | .block_erase = spi_block_erase_c7, |
| 5536 | } |
| 5537 | }, |
| 5538 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5539 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5540 | .write = spi_chip_write_256, |
| 5541 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5542 | .voltage = {1695, 1950}, |
| 5543 | }, |
| 5544 | |
| 5545 | { |
| 5546 | .vendor = "GigaDevice", |
| 5547 | .name = "GD25LQ16", |
| 5548 | .bustype = BUS_SPI, |
| 5549 | .manufacture_id = GIGADEVICE_ID, |
| 5550 | .model_id = GIGADEVICE_GD25LQ16, |
| 5551 | .total_size = 2048, |
| 5552 | .page_size = 256, |
| 5553 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5554 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5555 | .tested = TEST_UNTESTED, |
| 5556 | .probe = probe_spi_rdid, |
| 5557 | .probe_timing = TIMING_ZERO, |
| 5558 | .block_erasers = |
| 5559 | { |
| 5560 | { |
| 5561 | .eraseblocks = { {4 * 1024, 512} }, |
| 5562 | .block_erase = spi_block_erase_20, |
| 5563 | }, { |
| 5564 | .eraseblocks = { {32 * 1024, 64} }, |
| 5565 | .block_erase = spi_block_erase_52, |
| 5566 | }, { |
| 5567 | .eraseblocks = { {64 * 1024, 32} }, |
| 5568 | .block_erase = spi_block_erase_d8, |
| 5569 | }, { |
| 5570 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5571 | .block_erase = spi_block_erase_60, |
| 5572 | }, { |
| 5573 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5574 | .block_erase = spi_block_erase_c7, |
| 5575 | } |
| 5576 | }, |
| 5577 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5578 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5579 | .write = spi_chip_write_256, |
| 5580 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5581 | .voltage = {1695, 1950}, |
| 5582 | }, |
| 5583 | |
| 5584 | { |
| 5585 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5586 | .name = "GD25LQ32", |
| 5587 | .bustype = BUS_SPI, |
| 5588 | .manufacture_id = GIGADEVICE_ID, |
| 5589 | .model_id = GIGADEVICE_GD25LQ32, |
| 5590 | .total_size = 4096, |
| 5591 | .page_size = 256, |
| 5592 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5593 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5594 | .tested = TEST_OK_PREW, |
| 5595 | .probe = probe_spi_rdid, |
| 5596 | .probe_timing = TIMING_ZERO, |
| 5597 | .block_erasers = |
| 5598 | { |
| 5599 | { |
| 5600 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5601 | .block_erase = spi_block_erase_20, |
| 5602 | }, { |
| 5603 | .eraseblocks = { {32 * 1024, 128} }, |
| 5604 | .block_erase = spi_block_erase_52, |
| 5605 | }, { |
| 5606 | .eraseblocks = { {64 * 1024, 64} }, |
| 5607 | .block_erase = spi_block_erase_d8, |
| 5608 | }, { |
| 5609 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5610 | .block_erase = spi_block_erase_60, |
| 5611 | }, { |
| 5612 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5613 | .block_erase = spi_block_erase_c7, |
| 5614 | } |
| 5615 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5616 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5617 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5618 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5619 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5620 | .voltage = {1695, 1950}, |
| 5621 | }, |
| 5622 | |
| 5623 | { |
| 5624 | .vendor = "GigaDevice", |
| 5625 | .name = "GD25LQ64(B)", |
| 5626 | .bustype = BUS_SPI, |
| 5627 | .manufacture_id = GIGADEVICE_ID, |
| 5628 | .model_id = GIGADEVICE_GD25LQ64, |
| 5629 | .total_size = 8192, |
| 5630 | .page_size = 256, |
| 5631 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5632 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5633 | .tested = TEST_UNTESTED, |
| 5634 | .probe = probe_spi_rdid, |
| 5635 | .probe_timing = TIMING_ZERO, |
| 5636 | .block_erasers = |
| 5637 | { |
| 5638 | { |
| 5639 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5640 | .block_erase = spi_block_erase_20, |
| 5641 | }, { |
| 5642 | .eraseblocks = { {32 * 1024, 256} }, |
| 5643 | .block_erase = spi_block_erase_52, |
| 5644 | }, { |
| 5645 | .eraseblocks = { {64 * 1024, 128} }, |
| 5646 | .block_erase = spi_block_erase_d8, |
| 5647 | }, { |
| 5648 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5649 | .block_erase = spi_block_erase_60, |
| 5650 | }, { |
| 5651 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5652 | .block_erase = spi_block_erase_c7, |
| 5653 | } |
| 5654 | }, |
| 5655 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5656 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5657 | .write = spi_chip_write_256, |
| 5658 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5659 | .voltage = {1695, 1950}, |
| 5660 | }, |
| 5661 | |
| 5662 | { |
| 5663 | .vendor = "GigaDevice", |
| 5664 | .name = "GD25LQ128", |
| 5665 | .bustype = BUS_SPI, |
| 5666 | .manufacture_id = GIGADEVICE_ID, |
| 5667 | .model_id = GIGADEVICE_GD25LQ128, |
| 5668 | .total_size = 16384, |
| 5669 | .page_size = 256, |
| 5670 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5671 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5672 | .tested = TEST_UNTESTED, |
| 5673 | .probe = probe_spi_rdid, |
| 5674 | .probe_timing = TIMING_ZERO, |
| 5675 | .block_erasers = |
| 5676 | { |
| 5677 | { |
| 5678 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5679 | .block_erase = spi_block_erase_20, |
| 5680 | }, { |
| 5681 | .eraseblocks = { {32 * 1024, 512} }, |
| 5682 | .block_erase = spi_block_erase_52, |
| 5683 | }, { |
| 5684 | .eraseblocks = { {64 * 1024, 256} }, |
| 5685 | .block_erase = spi_block_erase_d8, |
| 5686 | }, { |
| 5687 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5688 | .block_erase = spi_block_erase_60, |
| 5689 | }, { |
| 5690 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5691 | .block_erase = spi_block_erase_c7, |
| 5692 | } |
| 5693 | }, |
| 5694 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5695 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5696 | .write = spi_chip_write_256, |
| 5697 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5698 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5699 | }, |
| 5700 | |
| 5701 | { |
| 5702 | .vendor = "GigaDevice", |
| 5703 | .name = "GD25Q512", |
| 5704 | .bustype = BUS_SPI, |
| 5705 | .manufacture_id = GIGADEVICE_ID, |
| 5706 | .model_id = GIGADEVICE_GD25Q512, |
| 5707 | .total_size = 64, |
| 5708 | .page_size = 256, |
| 5709 | .feature_bits = FEATURE_WRSR_WREN, |
| 5710 | .tested = TEST_UNTESTED, |
| 5711 | .probe = probe_spi_rdid, |
| 5712 | .probe_timing = TIMING_ZERO, |
| 5713 | .block_erasers = { |
| 5714 | { |
| 5715 | .eraseblocks = { {4 * 1024, 16} }, |
| 5716 | .block_erase = spi_block_erase_20, |
| 5717 | }, { |
| 5718 | .eraseblocks = { {32 * 1024, 2} }, |
| 5719 | .block_erase = spi_block_erase_52, |
| 5720 | }, { |
| 5721 | .eraseblocks = { {64 * 1024, 1} }, |
| 5722 | .block_erase = spi_block_erase_60, |
| 5723 | }, { |
| 5724 | .eraseblocks = { {64 * 1024, 1} }, |
| 5725 | .block_erase = spi_block_erase_c7, |
| 5726 | } |
| 5727 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5728 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5729 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5730 | .write = spi_chip_write_256, |
| 5731 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5732 | .voltage = {2700, 3600}, |
| 5733 | }, |
| 5734 | |
| 5735 | { |
| 5736 | .vendor = "GigaDevice", |
| 5737 | .name = "GD25Q10", |
| 5738 | .bustype = BUS_SPI, |
| 5739 | .manufacture_id = GIGADEVICE_ID, |
| 5740 | .model_id = GIGADEVICE_GD25Q10, |
| 5741 | .total_size = 128, |
| 5742 | .page_size = 256, |
| 5743 | .feature_bits = FEATURE_WRSR_WREN, |
| 5744 | .tested = TEST_UNTESTED, |
| 5745 | .probe = probe_spi_rdid, |
| 5746 | .probe_timing = TIMING_ZERO, |
| 5747 | .block_erasers = { |
| 5748 | { |
| 5749 | .eraseblocks = { {4 * 1024, 32} }, |
| 5750 | .block_erase = spi_block_erase_20, |
| 5751 | }, { |
| 5752 | .eraseblocks = { {32 * 1024, 4} }, |
| 5753 | .block_erase = spi_block_erase_52, |
| 5754 | }, { |
| 5755 | .eraseblocks = { {64 * 1024, 2} }, |
| 5756 | .block_erase = spi_block_erase_d8, |
| 5757 | }, { |
| 5758 | .eraseblocks = { {128 * 1024, 1} }, |
| 5759 | .block_erase = spi_block_erase_60, |
| 5760 | }, { |
| 5761 | .eraseblocks = { {128 * 1024, 1} }, |
| 5762 | .block_erase = spi_block_erase_c7, |
| 5763 | } |
| 5764 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5765 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5766 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5767 | .write = spi_chip_write_256, |
| 5768 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5769 | .voltage = {2700, 3600}, |
| 5770 | }, |
| 5771 | |
| 5772 | { |
| 5773 | .vendor = "GigaDevice", |
| 5774 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5775 | .bustype = BUS_SPI, |
| 5776 | .manufacture_id = GIGADEVICE_ID, |
| 5777 | .model_id = GIGADEVICE_GD25Q20, |
| 5778 | .total_size = 256, |
| 5779 | .page_size = 256, |
| 5780 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5781 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5782 | .probe = probe_spi_rdid, |
| 5783 | .probe_timing = TIMING_ZERO, |
| 5784 | .block_erasers = |
| 5785 | { |
| 5786 | { |
| 5787 | .eraseblocks = { {4 * 1024, 64} }, |
| 5788 | .block_erase = spi_block_erase_20, |
| 5789 | }, { |
| 5790 | .eraseblocks = { {32 * 1024, 8} }, |
| 5791 | .block_erase = spi_block_erase_52, |
| 5792 | }, { |
| 5793 | .eraseblocks = { {64 * 1024, 4} }, |
| 5794 | .block_erase = spi_block_erase_d8, |
| 5795 | }, { |
| 5796 | .eraseblocks = { {256 * 1024, 1} }, |
| 5797 | .block_erase = spi_block_erase_60, |
| 5798 | }, { |
| 5799 | .eraseblocks = { {256 * 1024, 1} }, |
| 5800 | .block_erase = spi_block_erase_c7, |
| 5801 | } |
| 5802 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5803 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5804 | .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] | 5805 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5806 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5807 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5808 | }, |
| 5809 | |
| 5810 | { |
| 5811 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5812 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5813 | .bustype = BUS_SPI, |
| 5814 | .manufacture_id = GIGADEVICE_ID, |
| 5815 | .model_id = GIGADEVICE_GD25Q40, |
| 5816 | .total_size = 512, |
| 5817 | .page_size = 256, |
| 5818 | .feature_bits = FEATURE_WRSR_WREN, |
| 5819 | .tested = TEST_UNTESTED, |
| 5820 | .probe = probe_spi_rdid, |
| 5821 | .probe_timing = TIMING_ZERO, |
| 5822 | .block_erasers = |
| 5823 | { |
| 5824 | { |
| 5825 | .eraseblocks = { {4 * 1024, 128} }, |
| 5826 | .block_erase = spi_block_erase_20, |
| 5827 | }, { |
| 5828 | .eraseblocks = { {32 * 1024, 16} }, |
| 5829 | .block_erase = spi_block_erase_52, |
| 5830 | }, { |
| 5831 | .eraseblocks = { {64 * 1024, 8} }, |
| 5832 | .block_erase = spi_block_erase_d8, |
| 5833 | }, { |
| 5834 | .eraseblocks = { {512 * 1024, 1} }, |
| 5835 | .block_erase = spi_block_erase_60, |
| 5836 | }, { |
| 5837 | .eraseblocks = { {512 * 1024, 1} }, |
| 5838 | .block_erase = spi_block_erase_c7, |
| 5839 | } |
| 5840 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5841 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5842 | .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] | 5843 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5844 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5845 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5846 | }, |
| 5847 | |
| 5848 | { |
| 5849 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5850 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5851 | .bustype = BUS_SPI, |
| 5852 | .manufacture_id = GIGADEVICE_ID, |
| 5853 | .model_id = GIGADEVICE_GD25Q80, |
| 5854 | .total_size = 1024, |
| 5855 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5856 | /* 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] | 5857 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5858 | .tested = TEST_OK_PREW, |
| 5859 | .probe = probe_spi_rdid, |
| 5860 | .probe_timing = TIMING_ZERO, |
| 5861 | .block_erasers = |
| 5862 | { |
| 5863 | { |
| 5864 | .eraseblocks = { {4 * 1024, 256} }, |
| 5865 | .block_erase = spi_block_erase_20, |
| 5866 | }, { |
| 5867 | .eraseblocks = { {32 * 1024, 32} }, |
| 5868 | .block_erase = spi_block_erase_52, |
| 5869 | }, { |
| 5870 | .eraseblocks = { {64 * 1024, 16} }, |
| 5871 | .block_erase = spi_block_erase_d8, |
| 5872 | }, { |
| 5873 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5874 | .block_erase = spi_block_erase_60, |
| 5875 | }, { |
| 5876 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5877 | .block_erase = spi_block_erase_c7, |
| 5878 | } |
| 5879 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5880 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5881 | .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] | 5882 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5883 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5884 | .voltage = {2700, 3600}, |
| 5885 | }, |
| 5886 | |
| 5887 | { |
| 5888 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5889 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5890 | .bustype = BUS_SPI, |
| 5891 | .manufacture_id = GIGADEVICE_ID, |
| 5892 | .model_id = GIGADEVICE_GD25Q16, |
| 5893 | .total_size = 2048, |
| 5894 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5895 | /* 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] | 5896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 5897 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5898 | .probe = probe_spi_rdid, |
| 5899 | .probe_timing = TIMING_ZERO, |
| 5900 | .block_erasers = |
| 5901 | { |
| 5902 | { |
| 5903 | .eraseblocks = { {4 * 1024, 512} }, |
| 5904 | .block_erase = spi_block_erase_20, |
| 5905 | }, { |
| 5906 | .eraseblocks = { {32 * 1024, 64} }, |
| 5907 | .block_erase = spi_block_erase_52, |
| 5908 | }, { |
| 5909 | .eraseblocks = { {64 * 1024, 32} }, |
| 5910 | .block_erase = spi_block_erase_d8, |
| 5911 | }, { |
| 5912 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5913 | .block_erase = spi_block_erase_60, |
| 5914 | }, { |
| 5915 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5916 | .block_erase = spi_block_erase_c7, |
| 5917 | } |
| 5918 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5919 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5920 | .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] | 5921 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5922 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5923 | .voltage = {2700, 3600}, |
| 5924 | }, |
| 5925 | |
| 5926 | { |
| 5927 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5928 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5929 | .bustype = BUS_SPI, |
| 5930 | .manufacture_id = GIGADEVICE_ID, |
| 5931 | .model_id = GIGADEVICE_GD25Q32, |
| 5932 | .total_size = 4096, |
| 5933 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5934 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 5936 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5937 | .probe = probe_spi_rdid, |
| 5938 | .probe_timing = TIMING_ZERO, |
| 5939 | .block_erasers = |
| 5940 | { |
| 5941 | { |
| 5942 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5943 | .block_erase = spi_block_erase_20, |
| 5944 | }, { |
| 5945 | .eraseblocks = { {32 * 1024, 128} }, |
| 5946 | .block_erase = spi_block_erase_52, |
| 5947 | }, { |
| 5948 | .eraseblocks = { {64 * 1024, 64} }, |
| 5949 | .block_erase = spi_block_erase_d8, |
| 5950 | }, { |
| 5951 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5952 | .block_erase = spi_block_erase_60, |
| 5953 | }, { |
| 5954 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5955 | .block_erase = spi_block_erase_c7, |
| 5956 | } |
| 5957 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5958 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5959 | .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] | 5960 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5961 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5962 | .voltage = {2700, 3600}, |
| 5963 | }, |
| 5964 | |
| 5965 | { |
| 5966 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5967 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5968 | .bustype = BUS_SPI, |
| 5969 | .manufacture_id = GIGADEVICE_ID, |
| 5970 | .model_id = GIGADEVICE_GD25Q64, |
| 5971 | .total_size = 8192, |
| 5972 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5973 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5975 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5976 | .probe = probe_spi_rdid, |
| 5977 | .probe_timing = TIMING_ZERO, |
| 5978 | .block_erasers = |
| 5979 | { |
| 5980 | { |
| 5981 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5982 | .block_erase = spi_block_erase_20, |
| 5983 | }, { |
| 5984 | .eraseblocks = { {32 * 1024, 256} }, |
| 5985 | .block_erase = spi_block_erase_52, |
| 5986 | }, { |
| 5987 | .eraseblocks = { {64 * 1024, 128} }, |
| 5988 | .block_erase = spi_block_erase_d8, |
| 5989 | }, { |
| 5990 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5991 | .block_erase = spi_block_erase_60, |
| 5992 | }, { |
| 5993 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5994 | .block_erase = spi_block_erase_c7, |
| 5995 | } |
| 5996 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5997 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5998 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5999 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6000 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6001 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6002 | }, |
| 6003 | |
| 6004 | { |
| 6005 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6006 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6007 | .bustype = BUS_SPI, |
| 6008 | .manufacture_id = GIGADEVICE_ID, |
| 6009 | .model_id = GIGADEVICE_GD25Q128, |
| 6010 | .total_size = 16384, |
| 6011 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6012 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6013 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6014 | .tested = TEST_UNTESTED, |
| 6015 | .probe = probe_spi_rdid, |
| 6016 | .probe_timing = TIMING_ZERO, |
| 6017 | .block_erasers = |
| 6018 | { |
| 6019 | { |
| 6020 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6021 | .block_erase = spi_block_erase_20, |
| 6022 | }, { |
| 6023 | .eraseblocks = { {32 * 1024, 512} }, |
| 6024 | .block_erase = spi_block_erase_52, |
| 6025 | }, { |
| 6026 | .eraseblocks = { {64 * 1024, 256} }, |
| 6027 | .block_erase = spi_block_erase_d8, |
| 6028 | }, { |
| 6029 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6030 | .block_erase = spi_block_erase_60, |
| 6031 | }, { |
| 6032 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6033 | .block_erase = spi_block_erase_c7, |
| 6034 | } |
| 6035 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6036 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6037 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6038 | .write = spi_chip_write_256, |
| 6039 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6040 | .voltage = {2700, 3600}, |
| 6041 | }, |
| 6042 | |
| 6043 | { |
| 6044 | .vendor = "GigaDevice", |
| 6045 | .name = "GD25T80", |
| 6046 | .bustype = BUS_SPI, |
| 6047 | .manufacture_id = GIGADEVICE_ID, |
| 6048 | .model_id = GIGADEVICE_GD25T80, |
| 6049 | .total_size = 1024, |
| 6050 | .page_size = 256, |
| 6051 | /* OTP: 256B total; enter 0x3A */ |
| 6052 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6053 | .tested = TEST_UNTESTED, |
| 6054 | .probe = probe_spi_rdid, |
| 6055 | .probe_timing = TIMING_ZERO, |
| 6056 | .block_erasers = { |
| 6057 | { |
| 6058 | .eraseblocks = { {4 * 1024, 256} }, |
| 6059 | .block_erase = spi_block_erase_20, |
| 6060 | }, { |
| 6061 | .eraseblocks = { {64 * 1024, 16} }, |
| 6062 | .block_erase = spi_block_erase_52, |
| 6063 | }, { |
| 6064 | .eraseblocks = { {64 * 1024, 16} }, |
| 6065 | .block_erase = spi_block_erase_d8, |
| 6066 | }, { |
| 6067 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6068 | .block_erase = spi_block_erase_60, |
| 6069 | }, { |
| 6070 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6071 | .block_erase = spi_block_erase_c7, |
| 6072 | } |
| 6073 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6074 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6075 | .unlock = spi_disable_blockprotect, |
| 6076 | .write = spi_chip_write_256, |
| 6077 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6078 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6079 | }, |
| 6080 | |
| 6081 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6082 | .vendor = "Hyundai", |
| 6083 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6084 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6085 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6086 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6087 | .total_size = 256, |
| 6088 | .page_size = 256 * 1024, |
| 6089 | .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] | 6090 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6091 | .probe = probe_jedec, |
| 6092 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6093 | .block_erasers = |
| 6094 | { |
| 6095 | { |
| 6096 | .eraseblocks = { |
| 6097 | {64 * 1024, 3}, |
| 6098 | {32 * 1024, 1}, |
| 6099 | {8 * 1024, 2}, |
| 6100 | {16 * 1024, 1}, |
| 6101 | }, |
| 6102 | .block_erase = erase_sector_jedec, |
| 6103 | }, { |
| 6104 | .eraseblocks = { {256 * 1024, 1} }, |
| 6105 | .block_erase = erase_chip_block_jedec, |
| 6106 | }, |
| 6107 | }, |
| 6108 | .write = write_jedec_1, |
| 6109 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6110 | .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] | 6111 | }, |
| 6112 | |
| 6113 | { |
| 6114 | .vendor = "Hyundai", |
| 6115 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6116 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6117 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6118 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6119 | .total_size = 256, |
| 6120 | .page_size = 256 * 1024, |
| 6121 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 6122 | .tested = TEST_UNTESTED, |
| 6123 | .probe = probe_jedec, |
| 6124 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6125 | .block_erasers = |
| 6126 | { |
| 6127 | { |
| 6128 | .eraseblocks = { |
| 6129 | {16 * 1024, 1}, |
| 6130 | {8 * 1024, 2}, |
| 6131 | {32 * 1024, 1}, |
| 6132 | {64 * 1024, 3}, |
| 6133 | }, |
| 6134 | .block_erase = erase_sector_jedec, |
| 6135 | }, { |
| 6136 | .eraseblocks = { {256 * 1024, 1} }, |
| 6137 | .block_erase = erase_chip_block_jedec, |
| 6138 | }, |
| 6139 | }, |
| 6140 | .write = write_jedec_1, |
| 6141 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6142 | .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] | 6143 | }, |
| 6144 | |
| 6145 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6146 | .vendor = "Hyundai", |
| 6147 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6148 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6149 | .manufacture_id = HYUNDAI_ID, |
| 6150 | .model_id = HYUNDAI_HY29F040A, |
| 6151 | .total_size = 512, |
| 6152 | .page_size = 64 * 1024, |
| 6153 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6154 | .tested = TEST_UNTESTED, |
| 6155 | .probe = probe_jedec, |
| 6156 | .probe_timing = TIMING_ZERO, |
| 6157 | .block_erasers = |
| 6158 | { |
| 6159 | { |
| 6160 | .eraseblocks = { {64 * 1024, 8} }, |
| 6161 | .block_erase = erase_sector_jedec, |
| 6162 | }, { |
| 6163 | .eraseblocks = { {512 * 1024, 1} }, |
| 6164 | .block_erase = erase_chip_block_jedec, |
| 6165 | }, |
| 6166 | }, |
| 6167 | .write = write_jedec_1, |
| 6168 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6169 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6170 | }, |
| 6171 | |
| 6172 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6173 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6174 | .name = "25F160S33B8", |
| 6175 | .bustype = BUS_SPI, |
| 6176 | .manufacture_id = INTEL_ID, |
| 6177 | .model_id = INTEL_25F160S33B8, |
| 6178 | .total_size = 2048, |
| 6179 | .page_size = 256, |
| 6180 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6181 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6182 | .tested = TEST_UNTESTED, |
| 6183 | .probe = probe_spi_rdid, |
| 6184 | .probe_timing = TIMING_ZERO, |
| 6185 | .block_erasers = |
| 6186 | { |
| 6187 | { |
| 6188 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6189 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6190 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6191 | .eraseblocks = { |
| 6192 | {8 * 1024, 8}, |
| 6193 | {64 * 1024, 31} // inaccessible |
| 6194 | }, |
| 6195 | .block_erase = spi_block_erase_40, |
| 6196 | }, { */ |
| 6197 | .eraseblocks = { {64 * 1024, 32} }, |
| 6198 | .block_erase = spi_block_erase_d8, |
| 6199 | }, { |
| 6200 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6201 | .block_erase = spi_block_erase_c7, |
| 6202 | } |
| 6203 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6204 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6205 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6206 | .write = spi_chip_write_256, |
| 6207 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6208 | .voltage = {2700, 3600}, |
| 6209 | }, |
| 6210 | |
| 6211 | { |
| 6212 | .vendor = "Intel", |
| 6213 | .name = "25F160S33T8", |
| 6214 | .bustype = BUS_SPI, |
| 6215 | .manufacture_id = INTEL_ID, |
| 6216 | .model_id = INTEL_25F160S33T8, |
| 6217 | .total_size = 2048, |
| 6218 | .page_size = 256, |
| 6219 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6220 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6221 | .tested = TEST_UNTESTED, |
| 6222 | .probe = probe_spi_rdid, |
| 6223 | .probe_timing = TIMING_ZERO, |
| 6224 | .block_erasers = |
| 6225 | { |
| 6226 | { |
| 6227 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6228 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6229 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6230 | .eraseblocks = { |
| 6231 | {64 * 1024, 31}, // inaccessible |
| 6232 | {8 * 1024, 8} |
| 6233 | }, |
| 6234 | .block_erase = spi_block_erase_40, |
| 6235 | }, { */ |
| 6236 | .eraseblocks = { {64 * 1024, 32} }, |
| 6237 | .block_erase = spi_block_erase_d8, |
| 6238 | }, { |
| 6239 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6240 | .block_erase = spi_block_erase_c7, |
| 6241 | } |
| 6242 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6243 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6244 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6245 | .write = spi_chip_write_256, |
| 6246 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6247 | .voltage = {2700, 3600}, |
| 6248 | }, |
| 6249 | |
| 6250 | { |
| 6251 | .vendor = "Intel", |
| 6252 | .name = "25F320S33B8", |
| 6253 | .bustype = BUS_SPI, |
| 6254 | .manufacture_id = INTEL_ID, |
| 6255 | .model_id = INTEL_25F320S33B8, |
| 6256 | .total_size = 4096, |
| 6257 | .page_size = 256, |
| 6258 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6259 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6260 | .tested = TEST_UNTESTED, |
| 6261 | .probe = probe_spi_rdid, |
| 6262 | .probe_timing = TIMING_ZERO, |
| 6263 | .block_erasers = |
| 6264 | { |
| 6265 | { |
| 6266 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6267 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6268 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6269 | .eraseblocks = { |
| 6270 | {8 * 1024, 8}, |
| 6271 | {64 * 1024, 63} // inaccessible |
| 6272 | }, |
| 6273 | .block_erase = spi_block_erase_40, |
| 6274 | }, { */ |
| 6275 | .eraseblocks = { {64 * 1024, 64} }, |
| 6276 | .block_erase = spi_block_erase_d8, |
| 6277 | }, { |
| 6278 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6279 | .block_erase = spi_block_erase_c7, |
| 6280 | } |
| 6281 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6282 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6283 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6284 | .write = spi_chip_write_256, |
| 6285 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6286 | .voltage = {2700, 3600}, |
| 6287 | }, |
| 6288 | |
| 6289 | { |
| 6290 | .vendor = "Intel", |
| 6291 | .name = "25F320S33T8", |
| 6292 | .bustype = BUS_SPI, |
| 6293 | .manufacture_id = INTEL_ID, |
| 6294 | .model_id = INTEL_25F320S33T8, |
| 6295 | .total_size = 4096, |
| 6296 | .page_size = 256, |
| 6297 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6298 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6299 | .tested = TEST_UNTESTED, |
| 6300 | .probe = probe_spi_rdid, |
| 6301 | .probe_timing = TIMING_ZERO, |
| 6302 | .block_erasers = |
| 6303 | { |
| 6304 | { |
| 6305 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6306 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6307 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6308 | .eraseblocks = { |
| 6309 | {64 * 1024, 63}, // inaccessible |
| 6310 | {8 * 1024, 8} |
| 6311 | }, |
| 6312 | .block_erase = spi_block_erase_40, |
| 6313 | }, { */ |
| 6314 | .eraseblocks = { {64 * 1024, 64} }, |
| 6315 | .block_erase = spi_block_erase_d8, |
| 6316 | }, { |
| 6317 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6318 | .block_erase = spi_block_erase_c7, |
| 6319 | } |
| 6320 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6321 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6322 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6323 | .write = spi_chip_write_256, |
| 6324 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6325 | .voltage = {2700, 3600}, |
| 6326 | }, |
| 6327 | |
| 6328 | { |
| 6329 | .vendor = "Intel", |
| 6330 | .name = "25F640S33B8", |
| 6331 | .bustype = BUS_SPI, |
| 6332 | .manufacture_id = INTEL_ID, |
| 6333 | .model_id = INTEL_25F640S33B8, |
| 6334 | .total_size = 8192, |
| 6335 | .page_size = 256, |
| 6336 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6337 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6338 | .tested = TEST_UNTESTED, |
| 6339 | .probe = probe_spi_rdid, |
| 6340 | .probe_timing = TIMING_ZERO, |
| 6341 | .block_erasers = |
| 6342 | { |
| 6343 | { |
| 6344 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6345 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6346 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6347 | .eraseblocks = { |
| 6348 | {8 * 1024, 8}, |
| 6349 | {64 * 1024, 127} // inaccessible |
| 6350 | }, |
| 6351 | .block_erase = spi_block_erase_40, |
| 6352 | }, { */ |
| 6353 | .eraseblocks = { {64 * 1024, 128} }, |
| 6354 | .block_erase = spi_block_erase_d8, |
| 6355 | }, { |
| 6356 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6357 | .block_erase = spi_block_erase_c7, |
| 6358 | } |
| 6359 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6360 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6361 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6362 | .write = spi_chip_write_256, |
| 6363 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6364 | .voltage = {2700, 3600}, |
| 6365 | }, |
| 6366 | |
| 6367 | { |
| 6368 | .vendor = "Intel", |
| 6369 | .name = "25F640S33T8", |
| 6370 | .bustype = BUS_SPI, |
| 6371 | .manufacture_id = INTEL_ID, |
| 6372 | .model_id = INTEL_25F640S33T8, |
| 6373 | .total_size = 8192, |
| 6374 | .page_size = 256, |
| 6375 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6376 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6377 | .tested = TEST_UNTESTED, |
| 6378 | .probe = probe_spi_rdid, |
| 6379 | .probe_timing = TIMING_ZERO, |
| 6380 | .block_erasers = |
| 6381 | { |
| 6382 | { |
| 6383 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6384 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6385 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6386 | .eraseblocks = { |
| 6387 | {64 * 1024, 127}, // inaccessible |
| 6388 | {8 * 1024, 8} |
| 6389 | }, |
| 6390 | .block_erase = spi_block_erase_40, |
| 6391 | }, { */ |
| 6392 | .eraseblocks = { {64 * 1024, 128} }, |
| 6393 | .block_erase = spi_block_erase_d8, |
| 6394 | }, { |
| 6395 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6396 | .block_erase = spi_block_erase_c7, |
| 6397 | } |
| 6398 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6399 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6400 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6401 | .write = spi_chip_write_256, |
| 6402 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6403 | .voltage = {2700, 3600}, |
| 6404 | }, |
| 6405 | |
| 6406 | { |
| 6407 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6408 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6409 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6410 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6411 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6412 | .total_size = 128, |
| 6413 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6414 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6415 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6416 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6417 | .block_erasers = |
| 6418 | { |
| 6419 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6420 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6421 | {8 * 1024, 1}, |
| 6422 | {4 * 1024, 2}, |
| 6423 | {112 * 1024, 1}, |
| 6424 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6425 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6426 | }, |
| 6427 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6428 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6429 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6430 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6431 | }, |
| 6432 | |
| 6433 | { |
| 6434 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6435 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6436 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6437 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6438 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6439 | .total_size = 128, |
| 6440 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6441 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6442 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6443 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6444 | .block_erasers = |
| 6445 | { |
| 6446 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6447 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6448 | {112 * 1024, 1}, |
| 6449 | {4 * 1024, 2}, |
| 6450 | {8 * 1024, 1}, |
| 6451 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6452 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6453 | }, |
| 6454 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6455 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6456 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6457 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6458 | }, |
| 6459 | |
| 6460 | { |
| 6461 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6462 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6463 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6464 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6465 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6466 | .total_size = 256, |
| 6467 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6468 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6469 | .probe = probe_82802ab, |
| 6470 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6471 | .block_erasers = |
| 6472 | { |
| 6473 | { |
| 6474 | .eraseblocks = { |
| 6475 | {128 * 1024, 1}, |
| 6476 | {96 * 1024, 1}, |
| 6477 | {8 * 1024, 2}, |
| 6478 | {16 * 1024, 1}, |
| 6479 | }, |
| 6480 | .block_erase = erase_block_82802ab, |
| 6481 | }, |
| 6482 | }, |
| 6483 | .write = write_82802ab, |
| 6484 | .read = read_memmapped, |
| 6485 | }, |
| 6486 | |
| 6487 | { |
| 6488 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6489 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6490 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6491 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6492 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6493 | .total_size = 512, |
| 6494 | .page_size = 256, |
| 6495 | .tested = TEST_UNTESTED, |
| 6496 | .probe = probe_82802ab, |
| 6497 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6498 | .block_erasers = |
| 6499 | { |
| 6500 | { |
| 6501 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6502 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6503 | }, |
| 6504 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6505 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6506 | .write = write_82802ab, |
| 6507 | .read = read_memmapped, |
| 6508 | }, |
| 6509 | |
| 6510 | { |
| 6511 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6512 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6513 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6514 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6515 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6516 | .total_size = 512, |
| 6517 | .page_size = 128 * 1024, /* maximal block size */ |
| 6518 | .tested = TEST_UNTESTED, |
| 6519 | .probe = probe_82802ab, |
| 6520 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6521 | .block_erasers = |
| 6522 | { |
| 6523 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6524 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6525 | {16 * 1024, 1}, |
| 6526 | {8 * 1024, 2}, |
| 6527 | {96 * 1024, 1}, |
| 6528 | {128 * 1024, 3}, |
| 6529 | }, |
| 6530 | .block_erase = erase_block_82802ab, |
| 6531 | }, |
| 6532 | }, |
| 6533 | .write = write_82802ab, |
| 6534 | .read = read_memmapped, |
| 6535 | }, |
| 6536 | |
| 6537 | { |
| 6538 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6539 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6540 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6541 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6542 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6543 | .total_size = 512, |
| 6544 | .page_size = 128 * 1024, /* maximal block size */ |
| 6545 | .tested = TEST_UNTESTED, |
| 6546 | .probe = probe_82802ab, |
| 6547 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6548 | .block_erasers = |
| 6549 | { |
| 6550 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6551 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6552 | {128 * 1024, 3}, |
| 6553 | {96 * 1024, 1}, |
| 6554 | {8 * 1024, 2}, |
| 6555 | {16 * 1024, 1}, |
| 6556 | }, |
| 6557 | .block_erase = erase_block_82802ab, |
| 6558 | }, |
| 6559 | }, |
| 6560 | .write = write_82802ab, |
| 6561 | .read = read_memmapped, |
| 6562 | }, |
| 6563 | |
| 6564 | { |
| 6565 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6566 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6567 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6568 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6569 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6570 | .total_size = 512, |
| 6571 | .page_size = 128 * 1024, /* maximal block size */ |
| 6572 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 6573 | .tested = TEST_UNTESTED, |
| 6574 | .probe = probe_82802ab, |
| 6575 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6576 | .block_erasers = |
| 6577 | { |
| 6578 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6579 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6580 | {16 * 1024, 1}, |
| 6581 | {8 * 1024, 2}, |
| 6582 | {96 * 1024, 1}, |
| 6583 | {128 * 1024, 3}, |
| 6584 | }, |
| 6585 | .block_erase = erase_block_82802ab, |
| 6586 | }, |
| 6587 | }, |
| 6588 | .write = write_82802ab, |
| 6589 | .read = read_memmapped, |
| 6590 | }, |
| 6591 | |
| 6592 | { |
| 6593 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6594 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6595 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6596 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6597 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6598 | .total_size = 512, |
| 6599 | .page_size = 128 * 1024, /* maximal block size */ |
| 6600 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 6601 | .tested = TEST_UNTESTED, |
| 6602 | .probe = probe_82802ab, |
| 6603 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6604 | .block_erasers = |
| 6605 | { |
| 6606 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6607 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6608 | {128 * 1024, 3}, |
| 6609 | {96 * 1024, 1}, |
| 6610 | {8 * 1024, 2}, |
| 6611 | {16 * 1024, 1}, |
| 6612 | }, |
| 6613 | .block_erase = erase_block_82802ab, |
| 6614 | }, |
| 6615 | }, |
| 6616 | .write = write_82802ab, |
| 6617 | .read = read_memmapped, |
| 6618 | }, |
| 6619 | |
| 6620 | { |
| 6621 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6622 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6623 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6624 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6625 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6626 | .total_size = 512, |
| 6627 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6628 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 6629 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6630 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6631 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6632 | .block_erasers = |
| 6633 | { |
| 6634 | { |
| 6635 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6636 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6637 | }, |
| 6638 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 6639 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6640 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6641 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6642 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6643 | }, |
| 6644 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6645 | { |
| 6646 | .vendor = "Intel", |
| 6647 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6648 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6649 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6650 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6651 | .total_size = 1024, |
| 6652 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6653 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6654 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6655 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6656 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6657 | .block_erasers = |
| 6658 | { |
| 6659 | { |
| 6660 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6661 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6662 | }, |
| 6663 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 6664 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6665 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6666 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6667 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6668 | }, |
| 6669 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6670 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 6671 | .vendor = "ISSI", |
| 6672 | .name = "IS29GL064B", |
| 6673 | .bustype = BUS_PARALLEL, |
| 6674 | .manufacture_id = ISSI_ID, |
| 6675 | .model_id = ISSI_PMC_IS29GL064B, |
| 6676 | .total_size = 8192, |
| 6677 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 6678 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6679 | .tested = TEST_UNTESTED, |
| 6680 | .probe = probe_jedec_29gl, |
| 6681 | .probe_timing = TIMING_ZERO, |
| 6682 | .block_erasers = |
| 6683 | { |
| 6684 | { |
| 6685 | .eraseblocks = { |
| 6686 | {8 * 1024, 8}, |
| 6687 | {64 * 1024, 127}, |
| 6688 | }, |
| 6689 | .block_erase = erase_sector_jedec, |
| 6690 | }, { |
| 6691 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6692 | .block_erase = erase_chip_block_jedec, |
| 6693 | }, |
| 6694 | }, |
| 6695 | .write = write_jedec_1, |
| 6696 | .read = read_memmapped, |
| 6697 | .voltage = {2700, 3600}, |
| 6698 | }, |
| 6699 | |
| 6700 | { |
| 6701 | .vendor = "ISSI", |
| 6702 | .name = "IS29GL064T", |
| 6703 | .bustype = BUS_PARALLEL, |
| 6704 | .manufacture_id = ISSI_ID, |
| 6705 | .model_id = ISSI_PMC_IS29GL064T, |
| 6706 | .total_size = 8192, |
| 6707 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 6708 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6709 | .tested = TEST_UNTESTED, |
| 6710 | .probe = probe_jedec_29gl, |
| 6711 | .probe_timing = TIMING_ZERO, |
| 6712 | .block_erasers = |
| 6713 | { |
| 6714 | { |
| 6715 | .eraseblocks = { |
| 6716 | {64 * 1024, 127}, |
| 6717 | {8 * 1024, 8}, |
| 6718 | }, |
| 6719 | .block_erase = erase_sector_jedec, |
| 6720 | }, { |
| 6721 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6722 | .block_erase = erase_chip_block_jedec, |
| 6723 | }, |
| 6724 | }, |
| 6725 | .write = write_jedec_1, |
| 6726 | .read = read_memmapped, |
| 6727 | .voltage = {2700, 3600}, |
| 6728 | }, |
| 6729 | |
| 6730 | { |
| 6731 | .vendor = "ISSI", |
| 6732 | .name = "IS29GL064H/L", |
| 6733 | .bustype = BUS_PARALLEL, |
| 6734 | .manufacture_id = ISSI_ID, |
| 6735 | .model_id = ISSI_PMC_IS29GL064HL, |
| 6736 | .total_size = 8192, |
| 6737 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 6738 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6739 | .tested = TEST_UNTESTED, |
| 6740 | .probe = probe_jedec_29gl, |
| 6741 | .probe_timing = TIMING_ZERO, |
| 6742 | .block_erasers = |
| 6743 | { |
| 6744 | { |
| 6745 | .eraseblocks = { {64 * 1024, 128} }, |
| 6746 | .block_erase = erase_sector_jedec, |
| 6747 | }, { |
| 6748 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6749 | .block_erase = erase_chip_block_jedec, |
| 6750 | }, |
| 6751 | }, |
| 6752 | .write = write_jedec_1, |
| 6753 | .read = read_memmapped, |
| 6754 | .voltage = {2700, 3600}, |
| 6755 | }, |
| 6756 | |
| 6757 | { |
| 6758 | .vendor = "ISSI", |
| 6759 | .name = "IS29GL128H/L", |
| 6760 | .bustype = BUS_PARALLEL, |
| 6761 | .manufacture_id = ISSI_ID, |
| 6762 | .model_id = ISSI_PMC_IS29GL128HL, |
| 6763 | .total_size = 16384, |
| 6764 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 6765 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6766 | .tested = TEST_UNTESTED, |
| 6767 | .probe = probe_jedec_29gl, |
| 6768 | .probe_timing = TIMING_ZERO, |
| 6769 | .block_erasers = |
| 6770 | { |
| 6771 | { |
| 6772 | .eraseblocks = { {128 * 1024, 128} }, |
| 6773 | .block_erase = erase_sector_jedec, |
| 6774 | }, { |
| 6775 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6776 | .block_erase = erase_chip_block_jedec, |
| 6777 | }, |
| 6778 | }, |
| 6779 | .write = write_jedec_1, |
| 6780 | .read = read_memmapped, |
| 6781 | .voltage = {2700, 3600}, |
| 6782 | }, |
| 6783 | |
| 6784 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6785 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 6786 | .name = "MX23L1654", |
| 6787 | .bustype = BUS_SPI, |
| 6788 | .manufacture_id = MACRONIX_ID, |
| 6789 | .model_id = MACRONIX_MX23L1654, |
| 6790 | .total_size = 2048, |
| 6791 | .page_size = 256, |
| 6792 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 6793 | .probe = probe_spi_rdid, |
| 6794 | .probe_timing = TIMING_ZERO, |
| 6795 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 6796 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6797 | .voltage = {3000, 3600}, |
| 6798 | }, |
| 6799 | |
| 6800 | { |
| 6801 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 6802 | .name = "MX23L3254", |
| 6803 | .bustype = BUS_SPI, |
| 6804 | .manufacture_id = MACRONIX_ID, |
| 6805 | .model_id = MACRONIX_MX23L3254, |
| 6806 | .total_size = 4096, |
| 6807 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 6808 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 6809 | .probe = probe_spi_rdid, |
| 6810 | .probe_timing = TIMING_ZERO, |
| 6811 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 6812 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6813 | .voltage = {3000, 3600}, |
| 6814 | }, |
| 6815 | |
| 6816 | { |
| 6817 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 6818 | .name = "MX23L6454", |
| 6819 | .bustype = BUS_SPI, |
| 6820 | .manufacture_id = MACRONIX_ID, |
| 6821 | .model_id = MACRONIX_MX23L6454, |
| 6822 | .total_size = 8192, |
| 6823 | .page_size = 256, |
| 6824 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 6825 | .probe = probe_spi_rdid, |
| 6826 | .probe_timing = TIMING_ZERO, |
| 6827 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 6828 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6829 | .voltage = {3000, 3600}, |
| 6830 | }, |
| 6831 | |
| 6832 | { |
| 6833 | .vendor = "Macronix", |
| 6834 | .name = "MX23L12854", |
| 6835 | .bustype = BUS_SPI, |
| 6836 | .manufacture_id = MACRONIX_ID, |
| 6837 | .model_id = MACRONIX_MX23L12854, |
| 6838 | .total_size = 16384, |
| 6839 | .page_size = 256, |
| 6840 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 6841 | .probe = probe_spi_rdid, |
| 6842 | .probe_timing = TIMING_ZERO, |
| 6843 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 6844 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6845 | .voltage = {3000, 3600}, |
| 6846 | }, |
| 6847 | |
| 6848 | { |
| 6849 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6850 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6851 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6852 | .manufacture_id = MACRONIX_ID, |
| 6853 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6854 | .total_size = 64, |
| 6855 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6856 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6857 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6858 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6859 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6860 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6861 | .block_erasers = |
| 6862 | { |
| 6863 | { |
| 6864 | .eraseblocks = { {4 * 1024, 16} }, |
| 6865 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6866 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6867 | .eraseblocks = { {64 * 1024, 1} }, |
| 6868 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6869 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6870 | .eraseblocks = { {64 * 1024, 1} }, |
| 6871 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6872 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6873 | .eraseblocks = { {64 * 1024, 1} }, |
| 6874 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6875 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6876 | .eraseblocks = { {64 * 1024, 1} }, |
| 6877 | .block_erase = spi_block_erase_c7, |
| 6878 | }, |
| 6879 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6880 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6881 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6882 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6883 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 6884 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6885 | }, |
| 6886 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6887 | { |
| 6888 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6889 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6890 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6891 | .manufacture_id = MACRONIX_ID, |
| 6892 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6893 | .total_size = 128, |
| 6894 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6895 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6896 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 6897 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6898 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6899 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6900 | .block_erasers = |
| 6901 | { |
| 6902 | { |
| 6903 | .eraseblocks = { {4 * 1024, 32} }, |
| 6904 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6905 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6906 | .eraseblocks = { {64 * 1024, 2} }, |
| 6907 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6908 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6909 | .eraseblocks = { {128 * 1024, 1} }, |
| 6910 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6911 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6912 | .eraseblocks = { {128 * 1024, 1} }, |
| 6913 | .block_erase = spi_block_erase_c7, |
| 6914 | }, |
| 6915 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6916 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6917 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6918 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6919 | .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] | 6920 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6921 | }, |
| 6922 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6923 | { |
| 6924 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 6925 | .name = "MX25L2005(C)/MX25L2006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6926 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6927 | .manufacture_id = MACRONIX_ID, |
| 6928 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6929 | .total_size = 256, |
| 6930 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6931 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6932 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6933 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6934 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6935 | .block_erasers = |
| 6936 | { |
| 6937 | { |
| 6938 | .eraseblocks = { {4 * 1024, 64} }, |
| 6939 | .block_erase = spi_block_erase_20, |
| 6940 | }, { |
| 6941 | .eraseblocks = { {64 * 1024, 4} }, |
| 6942 | .block_erase = spi_block_erase_52, |
| 6943 | }, { |
| 6944 | .eraseblocks = { {64 * 1024, 4} }, |
| 6945 | .block_erase = spi_block_erase_d8, |
| 6946 | }, { |
| 6947 | .eraseblocks = { {256 * 1024, 1} }, |
| 6948 | .block_erase = spi_block_erase_60, |
| 6949 | }, { |
| 6950 | .eraseblocks = { {256 * 1024, 1} }, |
| 6951 | .block_erase = spi_block_erase_c7, |
| 6952 | }, |
| 6953 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6954 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6955 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6956 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6957 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6958 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6959 | }, |
| 6960 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6961 | { |
| 6962 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 6963 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6964 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6965 | .manufacture_id = MACRONIX_ID, |
| 6966 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6967 | .total_size = 512, |
| 6968 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6969 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 6970 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6971 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6972 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6973 | .block_erasers = |
| 6974 | { |
| 6975 | { |
| 6976 | .eraseblocks = { {4 * 1024, 128} }, |
| 6977 | .block_erase = spi_block_erase_20, |
| 6978 | }, { |
| 6979 | .eraseblocks = { {64 * 1024, 8} }, |
| 6980 | .block_erase = spi_block_erase_52, |
| 6981 | }, { |
| 6982 | .eraseblocks = { {64 * 1024, 8} }, |
| 6983 | .block_erase = spi_block_erase_d8, |
| 6984 | }, { |
| 6985 | .eraseblocks = { {512 * 1024, 1} }, |
| 6986 | .block_erase = spi_block_erase_60, |
| 6987 | }, { |
| 6988 | .eraseblocks = { {512 * 1024, 1} }, |
| 6989 | .block_erase = spi_block_erase_c7, |
| 6990 | }, |
| 6991 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6992 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6993 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6994 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6995 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6996 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6997 | }, |
| 6998 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6999 | { |
| 7000 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7001 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7002 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7003 | .manufacture_id = MACRONIX_ID, |
| 7004 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7005 | .total_size = 1024, |
| 7006 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7007 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 7008 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7009 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 7010 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7011 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7012 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7013 | .block_erasers = |
| 7014 | { |
| 7015 | { |
| 7016 | .eraseblocks = { {4 * 1024, 256} }, |
| 7017 | .block_erase = spi_block_erase_20, |
| 7018 | }, { |
| 7019 | .eraseblocks = { {64 * 1024, 16} }, |
| 7020 | .block_erase = spi_block_erase_52, |
| 7021 | }, { |
| 7022 | .eraseblocks = { {64 * 1024, 16} }, |
| 7023 | .block_erase = spi_block_erase_d8, |
| 7024 | }, { |
| 7025 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7026 | .block_erase = spi_block_erase_60, |
| 7027 | }, { |
| 7028 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7029 | .block_erase = spi_block_erase_c7, |
| 7030 | }, |
| 7031 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7032 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7033 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7034 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7035 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7036 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7037 | }, |
| 7038 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7039 | { |
| 7040 | .vendor = "Macronix", |
| 7041 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7042 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7043 | .manufacture_id = MACRONIX_ID, |
| 7044 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7045 | .total_size = 2048, |
| 7046 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7047 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 7048 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7049 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7050 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7051 | .block_erasers = |
| 7052 | { |
| 7053 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7054 | .eraseblocks = { {64 * 1024, 32} }, |
| 7055 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7056 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7057 | .eraseblocks = { {64 * 1024, 32} }, |
| 7058 | .block_erase = spi_block_erase_d8, |
| 7059 | }, { |
| 7060 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7061 | .block_erase = spi_block_erase_60, |
| 7062 | }, { |
| 7063 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7064 | .block_erase = spi_block_erase_c7, |
| 7065 | }, |
| 7066 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7067 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7068 | .unlock = spi_disable_blockprotect, |
| 7069 | .write = spi_chip_write_256, |
| 7070 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7071 | .voltage = {2700, 3600}, |
| 7072 | }, |
| 7073 | |
| 7074 | { |
| 7075 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7076 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7077 | .bustype = BUS_SPI, |
| 7078 | .manufacture_id = MACRONIX_ID, |
| 7079 | .model_id = MACRONIX_MX25L1605, |
| 7080 | .total_size = 2048, |
| 7081 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7082 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7083 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7084 | .tested = TEST_OK_PREW, |
| 7085 | .probe = probe_spi_rdid, |
| 7086 | .probe_timing = TIMING_ZERO, |
| 7087 | .block_erasers = |
| 7088 | { |
| 7089 | { |
| 7090 | .eraseblocks = { {4 * 1024, 512} }, |
| 7091 | .block_erase = spi_block_erase_20, |
| 7092 | }, { |
| 7093 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7094 | .block_erase = spi_block_erase_52, |
| 7095 | }, { |
| 7096 | .eraseblocks = { {64 * 1024, 32} }, |
| 7097 | .block_erase = spi_block_erase_d8, |
| 7098 | }, { |
| 7099 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7100 | .block_erase = spi_block_erase_60, |
| 7101 | }, { |
| 7102 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7103 | .block_erase = spi_block_erase_c7, |
| 7104 | }, |
| 7105 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7106 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7107 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7108 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7109 | .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] | 7110 | .voltage = {2700, 3600}, |
| 7111 | }, |
| 7112 | |
| 7113 | { |
| 7114 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7115 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7116 | .bustype = BUS_SPI, |
| 7117 | .manufacture_id = MACRONIX_ID, |
| 7118 | .model_id = MACRONIX_MX25L1605, |
| 7119 | .total_size = 2048, |
| 7120 | .page_size = 256, |
| 7121 | .feature_bits = FEATURE_WRSR_WREN, |
| 7122 | .tested = TEST_OK_PREW, |
| 7123 | .probe = probe_spi_rdid, |
| 7124 | .probe_timing = TIMING_ZERO, |
| 7125 | .block_erasers = |
| 7126 | { |
| 7127 | { |
| 7128 | .eraseblocks = { {4 * 1024, 512} }, |
| 7129 | .block_erase = spi_block_erase_20, |
| 7130 | }, { |
| 7131 | .eraseblocks = { {64 * 1024, 32} }, |
| 7132 | .block_erase = spi_block_erase_d8, |
| 7133 | }, { |
| 7134 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7135 | .block_erase = spi_block_erase_60, |
| 7136 | }, { |
| 7137 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7138 | .block_erase = spi_block_erase_c7, |
| 7139 | }, |
| 7140 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7141 | .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] | 7142 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7143 | .write = spi_chip_write_256, |
| 7144 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7145 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7146 | }, |
| 7147 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7148 | { |
| 7149 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7150 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7151 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7152 | .manufacture_id = MACRONIX_ID, |
| 7153 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7154 | .total_size = 2048, |
| 7155 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7156 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7157 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7158 | .tested = TEST_UNTESTED, |
| 7159 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7160 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7161 | .block_erasers = |
| 7162 | { |
| 7163 | { |
| 7164 | .eraseblocks = { {4 * 1024, 512} }, |
| 7165 | .block_erase = spi_block_erase_20, |
| 7166 | }, { |
| 7167 | .eraseblocks = { {64 * 1024, 32} }, |
| 7168 | .block_erase = spi_block_erase_d8, |
| 7169 | }, { |
| 7170 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7171 | .block_erase = spi_block_erase_60, |
| 7172 | }, { |
| 7173 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7174 | .block_erase = spi_block_erase_c7, |
| 7175 | } |
| 7176 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7177 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7178 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7179 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7180 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7181 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7182 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 7183 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 7184 | { |
| 7185 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7186 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7187 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7188 | .manufacture_id = MACRONIX_ID, |
| 7189 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7190 | .total_size = 2048, |
| 7191 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7192 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7193 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7194 | .tested = TEST_UNTESTED, |
| 7195 | .probe = probe_spi_rdid, |
| 7196 | .probe_timing = TIMING_ZERO, |
| 7197 | .block_erasers = |
| 7198 | { |
| 7199 | { |
| 7200 | .eraseblocks = { {4 * 1024, 512} }, |
| 7201 | .block_erase = spi_block_erase_20, |
| 7202 | }, { |
| 7203 | .eraseblocks = { {64 * 1024, 32} }, |
| 7204 | .block_erase = spi_block_erase_d8, |
| 7205 | }, { |
| 7206 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7207 | .block_erase = spi_block_erase_60, |
| 7208 | }, { |
| 7209 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7210 | .block_erase = spi_block_erase_c7, |
| 7211 | } |
| 7212 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7213 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7214 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7215 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7216 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7217 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7218 | }, |
| 7219 | |
| 7220 | { |
| 7221 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7222 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7223 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7224 | .manufacture_id = MACRONIX_ID, |
| 7225 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7226 | .total_size = 4096, |
| 7227 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7228 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 7229 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7230 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7231 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7232 | .block_erasers = |
| 7233 | { |
| 7234 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7235 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7236 | .block_erase = spi_block_erase_20, |
| 7237 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7238 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7239 | .block_erase = spi_block_erase_d8, |
| 7240 | }, { |
| 7241 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7242 | .block_erase = spi_block_erase_60, |
| 7243 | }, { |
| 7244 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7245 | .block_erase = spi_block_erase_c7, |
| 7246 | }, |
| 7247 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7248 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7249 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7250 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7251 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7252 | .voltage = {2700, 3600}, |
| 7253 | }, |
| 7254 | |
| 7255 | { |
| 7256 | .vendor = "Macronix", |
| 7257 | .name = "MX25L3205D/MX25L3208D", |
| 7258 | .bustype = BUS_SPI, |
| 7259 | .manufacture_id = MACRONIX_ID, |
| 7260 | .model_id = MACRONIX_MX25L3205, |
| 7261 | .total_size = 4096, |
| 7262 | .page_size = 256, |
| 7263 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7264 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7265 | .tested = TEST_OK_PREW, |
| 7266 | .probe = probe_spi_rdid, |
| 7267 | .probe_timing = TIMING_ZERO, |
| 7268 | .block_erasers = |
| 7269 | { |
| 7270 | { |
| 7271 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7272 | .block_erase = spi_block_erase_20, |
| 7273 | }, { |
| 7274 | .eraseblocks = { {64 * 1024, 64} }, |
| 7275 | .block_erase = spi_block_erase_d8, |
| 7276 | }, { |
| 7277 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7278 | .block_erase = spi_block_erase_60, |
| 7279 | }, { |
| 7280 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7281 | .block_erase = spi_block_erase_c7, |
| 7282 | }, |
| 7283 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7284 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7285 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7286 | .write = spi_chip_write_256, |
| 7287 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7288 | .voltage = {2700, 3600}, |
| 7289 | }, |
| 7290 | |
| 7291 | { |
| 7292 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7293 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7294 | .bustype = BUS_SPI, |
| 7295 | .manufacture_id = MACRONIX_ID, |
| 7296 | .model_id = MACRONIX_MX25L3205, |
| 7297 | .total_size = 4096, |
| 7298 | .page_size = 256, |
| 7299 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7300 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7301 | .tested = TEST_OK_PREW, |
| 7302 | .probe = probe_spi_rdid, |
| 7303 | .probe_timing = TIMING_ZERO, |
| 7304 | .block_erasers = |
| 7305 | { |
| 7306 | { |
| 7307 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7308 | .block_erase = spi_block_erase_20, |
| 7309 | }, { |
| 7310 | .eraseblocks = { {64 * 1024, 64} }, |
| 7311 | .block_erase = spi_block_erase_d8, |
| 7312 | }, { |
| 7313 | .eraseblocks = { {64 * 1024, 64} }, |
| 7314 | .block_erase = spi_block_erase_52, |
| 7315 | }, { |
| 7316 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7317 | .block_erase = spi_block_erase_60, |
| 7318 | }, { |
| 7319 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7320 | .block_erase = spi_block_erase_c7, |
| 7321 | }, |
| 7322 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7323 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7324 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7325 | .write = spi_chip_write_256, |
| 7326 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7327 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7328 | }, |
| 7329 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7330 | { |
| 7331 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7332 | .name = "MX25L3273E", |
| 7333 | .bustype = BUS_SPI, |
| 7334 | .manufacture_id = MACRONIX_ID, |
| 7335 | .model_id = MACRONIX_MX25L3205, |
| 7336 | .total_size = 4096, |
| 7337 | .page_size = 256, |
| 7338 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7339 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7340 | .tested = TEST_UNTESTED, |
| 7341 | .probe = probe_spi_rdid, |
| 7342 | .probe_timing = TIMING_ZERO, |
| 7343 | .block_erasers = |
| 7344 | { |
| 7345 | { |
| 7346 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7347 | .block_erase = spi_block_erase_20, |
| 7348 | }, { |
| 7349 | .eraseblocks = { {32 * 1024, 128} }, |
| 7350 | .block_erase = spi_block_erase_52, |
| 7351 | }, { |
| 7352 | .eraseblocks = { {64 * 1024, 64} }, |
| 7353 | .block_erase = spi_block_erase_d8, |
| 7354 | }, { |
| 7355 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7356 | .block_erase = spi_block_erase_60, |
| 7357 | }, { |
| 7358 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7359 | .block_erase = spi_block_erase_c7, |
| 7360 | }, |
| 7361 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7362 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7363 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7364 | .write = spi_chip_write_256, |
| 7365 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7366 | .voltage = {2700, 3600}, |
| 7367 | }, |
| 7368 | |
| 7369 | { |
| 7370 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7371 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7372 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7373 | .manufacture_id = MACRONIX_ID, |
| 7374 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7375 | .total_size = 4096, |
| 7376 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7377 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 7378 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7379 | .tested = TEST_UNTESTED, |
| 7380 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7381 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7382 | .block_erasers = |
| 7383 | { |
| 7384 | { |
| 7385 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7386 | .block_erase = spi_block_erase_20, |
| 7387 | }, { |
| 7388 | .eraseblocks = { {64 * 1024, 64} }, |
| 7389 | .block_erase = spi_block_erase_d8, |
| 7390 | }, { |
| 7391 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7392 | .block_erase = spi_block_erase_60, |
| 7393 | }, { |
| 7394 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7395 | .block_erase = spi_block_erase_c7, |
| 7396 | } |
| 7397 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7398 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7399 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7400 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7401 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7402 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7403 | }, |
| 7404 | |
| 7405 | { |
| 7406 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7407 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7408 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7409 | .manufacture_id = MACRONIX_ID, |
| 7410 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7411 | .total_size = 8192, |
| 7412 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7413 | /* Has an additional 512B EEPROM sector */ |
| 7414 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 7415 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7416 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7417 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7418 | .block_erasers = |
| 7419 | { |
| 7420 | { |
| 7421 | .eraseblocks = { {64 * 1024, 128} }, |
| 7422 | .block_erase = spi_block_erase_20, |
| 7423 | }, { |
| 7424 | .eraseblocks = { {64 * 1024, 128} }, |
| 7425 | .block_erase = spi_block_erase_d8, |
| 7426 | }, { |
| 7427 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7428 | .block_erase = spi_block_erase_60, |
| 7429 | }, { |
| 7430 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7431 | .block_erase = spi_block_erase_c7, |
| 7432 | } |
| 7433 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7434 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7435 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7436 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7437 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7438 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7439 | }, |
| 7440 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7441 | { |
| 7442 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7443 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7444 | .bustype = BUS_SPI, |
| 7445 | .manufacture_id = MACRONIX_ID, |
| 7446 | .model_id = MACRONIX_MX25L6405, |
| 7447 | .total_size = 8192, |
| 7448 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7449 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7450 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7451 | .tested = TEST_OK_PREW, |
| 7452 | .probe = probe_spi_rdid, |
| 7453 | .probe_timing = TIMING_ZERO, |
| 7454 | .block_erasers = |
| 7455 | { |
| 7456 | { |
| 7457 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7458 | .block_erase = spi_block_erase_20, |
| 7459 | }, { |
| 7460 | .eraseblocks = { {64 * 1024, 128} }, |
| 7461 | .block_erase = spi_block_erase_d8, |
| 7462 | }, { |
| 7463 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7464 | .block_erase = spi_block_erase_60, |
| 7465 | }, { |
| 7466 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7467 | .block_erase = spi_block_erase_c7, |
| 7468 | } |
| 7469 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7470 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7471 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7472 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7473 | .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] | 7474 | .voltage = {2700, 3600}, |
| 7475 | }, |
| 7476 | |
| 7477 | { |
| 7478 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7479 | .name = "MX25L6406E/MX25L6408E", |
| 7480 | .bustype = BUS_SPI, |
| 7481 | .manufacture_id = MACRONIX_ID, |
| 7482 | .model_id = MACRONIX_MX25L6405, |
| 7483 | .total_size = 8192, |
| 7484 | .page_size = 256, |
| 7485 | /* MX25L6406E supports SFDP */ |
| 7486 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 7487 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7488 | .tested = TEST_OK_PREW, |
| 7489 | .probe = probe_spi_rdid, |
| 7490 | .probe_timing = TIMING_ZERO, |
| 7491 | .block_erasers = |
| 7492 | { |
| 7493 | { |
| 7494 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7495 | .block_erase = spi_block_erase_20, |
| 7496 | }, { |
| 7497 | .eraseblocks = { {64 * 1024, 128} }, |
| 7498 | .block_erase = spi_block_erase_52, |
| 7499 | }, { |
| 7500 | .eraseblocks = { {64 * 1024, 128} }, |
| 7501 | .block_erase = spi_block_erase_d8, |
| 7502 | }, { |
| 7503 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7504 | .block_erase = spi_block_erase_60, |
| 7505 | }, { |
| 7506 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7507 | .block_erase = spi_block_erase_c7, |
| 7508 | } |
| 7509 | }, |
| 7510 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 7511 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 7512 | .write = spi_chip_write_256, |
| 7513 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 7514 | .voltage = {2700, 3600}, |
| 7515 | }, |
| 7516 | |
| 7517 | { |
| 7518 | .vendor = "Macronix", |
| 7519 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7520 | .bustype = BUS_SPI, |
| 7521 | .manufacture_id = MACRONIX_ID, |
| 7522 | .model_id = MACRONIX_MX25L6405, |
| 7523 | .total_size = 8192, |
| 7524 | .page_size = 256, |
| 7525 | /* supports SFDP */ |
| 7526 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7527 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7528 | .tested = TEST_OK_PREW, |
| 7529 | .probe = probe_spi_rdid, |
| 7530 | .probe_timing = TIMING_ZERO, |
| 7531 | .block_erasers = |
| 7532 | { |
| 7533 | { |
| 7534 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7535 | .block_erase = spi_block_erase_20, |
| 7536 | }, { |
| 7537 | .eraseblocks = { {32 * 1024, 256} }, |
| 7538 | .block_erase = spi_block_erase_52, |
| 7539 | }, { |
| 7540 | .eraseblocks = { {64 * 1024, 128} }, |
| 7541 | .block_erase = spi_block_erase_d8, |
| 7542 | }, { |
| 7543 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7544 | .block_erase = spi_block_erase_60, |
| 7545 | }, { |
| 7546 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7547 | .block_erase = spi_block_erase_c7, |
| 7548 | } |
| 7549 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7550 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7551 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7552 | .write = spi_chip_write_256, |
| 7553 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7554 | .voltage = {2700, 3600}, |
| 7555 | }, |
| 7556 | |
| 7557 | { |
| 7558 | .vendor = "Macronix", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7559 | .name = "MX25L12805D", |
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, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7562 | .model_id = MACRONIX_MX25L12805D, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 7563 | .total_size = 16384, |
| 7564 | .page_size = 256, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7565 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7566 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7567 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +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, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7570 | .block_erasers = |
| 7571 | { |
| 7572 | { |
| 7573 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7574 | .block_erase = spi_block_erase_20, |
| 7575 | }, { |
| 7576 | .eraseblocks = { {64 * 1024, 256} }, |
| 7577 | .block_erase = spi_block_erase_d8, |
| 7578 | }, { |
| 7579 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7580 | .block_erase = spi_block_erase_60, |
| 7581 | }, { |
| 7582 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7583 | .block_erase = spi_block_erase_c7, |
| 7584 | } |
| 7585 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7586 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7587 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7588 | .write = spi_chip_write_256, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7589 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7590 | .voltage = {2700, 3600}, |
| 7591 | }, |
| 7592 | |
| 7593 | { |
| 7594 | .vendor = "Macronix", |
| 7595 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
| 7596 | .bustype = BUS_SPI, |
| 7597 | .manufacture_id = MACRONIX_ID, |
| 7598 | .model_id = MACRONIX_MX25L12805D, |
| 7599 | .total_size = 16384, |
| 7600 | .page_size = 256, |
| 7601 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7602 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7603 | .tested = TEST_OK_PREW, |
| 7604 | .probe = probe_spi_rdid, |
| 7605 | .probe_timing = TIMING_ZERO, |
| 7606 | .block_erasers = |
| 7607 | { |
| 7608 | { |
| 7609 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7610 | .block_erase = spi_block_erase_20, |
| 7611 | }, { |
| 7612 | .eraseblocks = { {32 * 1024, 512} }, |
| 7613 | .block_erase = spi_block_erase_52, |
| 7614 | }, { |
| 7615 | .eraseblocks = { {64 * 1024, 256} }, |
| 7616 | .block_erase = spi_block_erase_d8, |
| 7617 | }, { |
| 7618 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7619 | .block_erase = spi_block_erase_60, |
| 7620 | }, { |
| 7621 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7622 | .block_erase = spi_block_erase_c7, |
| 7623 | } |
| 7624 | }, |
| 7625 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 7626 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 7627 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 7628 | .write = spi_chip_write_256, |
| 7629 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7630 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 7631 | }, |
| 7632 | |
| 7633 | { |
| 7634 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7635 | .name = "MX25U1635E", |
| 7636 | .bustype = BUS_SPI, |
| 7637 | .manufacture_id = MACRONIX_ID, |
| 7638 | .model_id = MACRONIX_MX25U1635E, |
| 7639 | .total_size = 2048, |
| 7640 | .page_size = 256, |
| 7641 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7642 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 7643 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7644 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7645 | .probe = probe_spi_rdid, |
| 7646 | .probe_timing = TIMING_ZERO, |
| 7647 | .block_erasers = |
| 7648 | { |
| 7649 | { |
| 7650 | .eraseblocks = { {4 * 1024, 512} }, |
| 7651 | .block_erase = spi_block_erase_20, |
| 7652 | }, { |
| 7653 | .eraseblocks = { {32 * 1024, 64} }, |
| 7654 | .block_erase = spi_block_erase_52, |
| 7655 | }, { |
| 7656 | .eraseblocks = { {64 * 1024, 32} }, |
| 7657 | .block_erase = spi_block_erase_d8, |
| 7658 | }, { |
| 7659 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7660 | .block_erase = spi_block_erase_60, |
| 7661 | }, { |
| 7662 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7663 | .block_erase = spi_block_erase_c7, |
| 7664 | } |
| 7665 | }, |
| 7666 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7667 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7668 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7669 | .write = spi_chip_write_256, |
| 7670 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7671 | .voltage = {1650, 2000}, |
| 7672 | }, |
| 7673 | |
| 7674 | { |
| 7675 | .vendor = "Macronix", |
| 7676 | .name = "MX25U3235E/F", |
| 7677 | .bustype = BUS_SPI, |
| 7678 | .manufacture_id = MACRONIX_ID, |
| 7679 | .model_id = MACRONIX_MX25U3235E, |
| 7680 | .total_size = 4096, |
| 7681 | .page_size = 256, |
| 7682 | /* F model supports SFDP */ |
| 7683 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7684 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 7685 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7686 | .tested = TEST_OK_PREW, |
| 7687 | .probe = probe_spi_rdid, |
| 7688 | .probe_timing = TIMING_ZERO, |
| 7689 | .block_erasers = |
| 7690 | { |
| 7691 | { |
| 7692 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7693 | .block_erase = spi_block_erase_20, |
| 7694 | }, { |
| 7695 | .eraseblocks = { {32 * 1024, 128} }, |
| 7696 | .block_erase = spi_block_erase_52, |
| 7697 | }, { |
| 7698 | .eraseblocks = { {64 * 1024, 64} }, |
| 7699 | .block_erase = spi_block_erase_d8, |
| 7700 | }, { |
| 7701 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7702 | .block_erase = spi_block_erase_60, |
| 7703 | }, { |
| 7704 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7705 | .block_erase = spi_block_erase_c7, |
| 7706 | } |
| 7707 | }, |
| 7708 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7709 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7710 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7711 | .write = spi_chip_write_256, |
| 7712 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7713 | .voltage = {1650, 2000}, |
| 7714 | }, |
| 7715 | |
| 7716 | { |
| 7717 | .vendor = "Macronix", |
| 7718 | .name = "MX25U6435E/F", |
| 7719 | .bustype = BUS_SPI, |
| 7720 | .manufacture_id = MACRONIX_ID, |
| 7721 | .model_id = MACRONIX_MX25U6435E, |
| 7722 | .total_size = 8192, |
| 7723 | .page_size = 256, |
| 7724 | /* F model supports SFDP */ |
| 7725 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7726 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 7727 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7728 | .tested = TEST_UNTESTED, |
| 7729 | .probe = probe_spi_rdid, |
| 7730 | .probe_timing = TIMING_ZERO, |
| 7731 | .block_erasers = |
| 7732 | { |
| 7733 | { |
| 7734 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7735 | .block_erase = spi_block_erase_20, |
| 7736 | }, { |
| 7737 | .eraseblocks = { {32 * 1024, 256} }, |
| 7738 | .block_erase = spi_block_erase_52, |
| 7739 | }, { |
| 7740 | .eraseblocks = { {64 * 1024, 128} }, |
| 7741 | .block_erase = spi_block_erase_d8, |
| 7742 | }, { |
| 7743 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7744 | .block_erase = spi_block_erase_60, |
| 7745 | }, { |
| 7746 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7747 | .block_erase = spi_block_erase_c7, |
| 7748 | } |
| 7749 | }, |
| 7750 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7751 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 7752 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7753 | .write = spi_chip_write_256, |
| 7754 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7755 | .voltage = {1650, 2000}, |
| 7756 | }, |
| 7757 | |
| 7758 | { |
| 7759 | .vendor = "Macronix", |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 7760 | .name = "MX25U12835F", |
| 7761 | .bustype = BUS_SPI, |
| 7762 | .manufacture_id = MACRONIX_ID, |
| 7763 | .model_id = MACRONIX_MX25U12835E, |
| 7764 | .total_size = 16384, |
| 7765 | .page_size = 256, |
| 7766 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7767 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7768 | .tested = TEST_UNTESTED, |
| 7769 | .probe = probe_spi_rdid, |
| 7770 | .probe_timing = TIMING_ZERO, |
| 7771 | .block_erasers = |
| 7772 | { |
| 7773 | { |
| 7774 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7775 | .block_erase = spi_block_erase_20, |
| 7776 | }, { |
| 7777 | .eraseblocks = { {32 * 1024, 512} }, |
| 7778 | .block_erase = spi_block_erase_52, |
| 7779 | }, { |
| 7780 | .eraseblocks = { {64 * 1024, 256} }, |
| 7781 | .block_erase = spi_block_erase_d8, |
| 7782 | }, { |
| 7783 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7784 | .block_erase = spi_block_erase_60, |
| 7785 | }, { |
| 7786 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7787 | .block_erase = spi_block_erase_c7, |
| 7788 | } |
| 7789 | }, |
| 7790 | /* TODO: security register */ |
| 7791 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 7792 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 7793 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7794 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7795 | .voltage = {1650, 2000}, |
| 7796 | }, |
| 7797 | |
| 7798 | { |
Stefan Tauner | a4617f7 | 2015-01-10 15:59:54 +0000 | [diff] [blame] | 7799 | .vendor = "Macronix", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 7800 | .name = "MX25L6495F", |
| 7801 | .bustype = BUS_SPI, |
| 7802 | .manufacture_id = MACRONIX_ID, |
| 7803 | .model_id = MACRONIX_MX25L6495F, |
| 7804 | .total_size = 8192, |
| 7805 | .page_size = 256, |
| 7806 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 7807 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7808 | .tested = TEST_OK_PREW, |
| 7809 | .probe = probe_spi_rdid, |
| 7810 | .probe_timing = TIMING_ZERO, |
| 7811 | .block_erasers = |
| 7812 | { |
| 7813 | { |
| 7814 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7815 | .block_erase = spi_block_erase_20, |
| 7816 | }, { |
| 7817 | .eraseblocks = { {64 * 1024, 128} }, |
| 7818 | .block_erase = spi_block_erase_d8, |
| 7819 | }, { |
| 7820 | .eraseblocks = { {32 * 1024, 256} }, |
| 7821 | .block_erase = spi_block_erase_52, |
| 7822 | }, { |
| 7823 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7824 | .block_erase = spi_block_erase_60, |
| 7825 | }, { |
| 7826 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7827 | .block_erase = spi_block_erase_c7, |
| 7828 | } |
| 7829 | }, |
| 7830 | .unlock = spi_disable_blockprotect, |
| 7831 | .write = spi_chip_write_256, |
| 7832 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7833 | .voltage = {2700, 3600}, |
| 7834 | }, |
| 7835 | |
| 7836 | { |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 7837 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7838 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7839 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7840 | .manufacture_id = MACRONIX_ID, |
| 7841 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7842 | .total_size = 128, |
| 7843 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7844 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7845 | .tested = TEST_UNTESTED, |
| 7846 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7847 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7848 | .block_erasers = |
| 7849 | { |
| 7850 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7851 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7852 | {8 * 1024, 1}, |
| 7853 | {4 * 1024, 2}, |
| 7854 | {8 * 1024, 2}, |
| 7855 | {32 * 1024, 1}, |
| 7856 | {64 * 1024, 1}, |
| 7857 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7858 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7859 | }, { |
| 7860 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7861 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7862 | } |
| 7863 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7864 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7865 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7866 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7867 | }, |
| 7868 | |
| 7869 | { |
| 7870 | .vendor = "Macronix", |
| 7871 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7872 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7873 | .manufacture_id = MACRONIX_ID, |
| 7874 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7875 | .total_size = 128, |
| 7876 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7877 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 7878 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7879 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7880 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7881 | .block_erasers = |
| 7882 | { |
| 7883 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7884 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7885 | {64 * 1024, 1}, |
| 7886 | {32 * 1024, 1}, |
| 7887 | {8 * 1024, 2}, |
| 7888 | {4 * 1024, 2}, |
| 7889 | {8 * 1024, 1}, |
| 7890 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7891 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7892 | }, { |
| 7893 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7894 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7895 | } |
| 7896 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7897 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7898 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7899 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7900 | }, |
| 7901 | |
| 7902 | { |
| 7903 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7904 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7905 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7906 | .manufacture_id = MACRONIX_ID, |
| 7907 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7908 | .total_size = 256, |
| 7909 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7910 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7911 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7912 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7913 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7914 | .block_erasers = |
| 7915 | { |
| 7916 | { |
| 7917 | .eraseblocks = { |
| 7918 | {16 * 1024, 1}, |
| 7919 | {8 * 1024, 2}, |
| 7920 | {32 * 1024, 1}, |
| 7921 | {64 * 1024, 3}, |
| 7922 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7923 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7924 | }, { |
| 7925 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7926 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7927 | }, |
| 7928 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7929 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7930 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7931 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7932 | }, |
| 7933 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7934 | { |
| 7935 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7936 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7937 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7938 | .manufacture_id = MACRONIX_ID, |
| 7939 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7940 | .total_size = 256, |
| 7941 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7942 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 7943 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7944 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7945 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7946 | .block_erasers = |
| 7947 | { |
| 7948 | { |
| 7949 | .eraseblocks = { |
| 7950 | {64 * 1024, 3}, |
| 7951 | {32 * 1024, 1}, |
| 7952 | {8 * 1024, 2}, |
| 7953 | {16 * 1024, 1}, |
| 7954 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7955 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7956 | }, { |
| 7957 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7958 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7959 | }, |
| 7960 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7961 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7962 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7963 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7964 | }, |
| 7965 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7966 | { |
| 7967 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 7968 | .name = "MX29F022(N)B", |
| 7969 | .bustype = BUS_PARALLEL, |
| 7970 | .manufacture_id = MACRONIX_ID, |
| 7971 | .model_id = MACRONIX_MX29F022B, |
| 7972 | .total_size = 256, |
| 7973 | .page_size = 0, /* unused */ |
| 7974 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7975 | .tested = TEST_UNTESTED, |
| 7976 | .probe = probe_jedec, |
| 7977 | .probe_timing = TIMING_ZERO, |
| 7978 | .block_erasers = |
| 7979 | { |
| 7980 | { |
| 7981 | .eraseblocks = { |
| 7982 | {16 * 1024, 1}, |
| 7983 | {8 * 1024, 2}, |
| 7984 | {32 * 1024, 1}, |
| 7985 | {64 * 1024, 3}, |
| 7986 | }, |
| 7987 | .block_erase = erase_sector_jedec, |
| 7988 | }, { |
| 7989 | .eraseblocks = { {256 * 1024, 1} }, |
| 7990 | .block_erase = erase_chip_block_jedec, |
| 7991 | } |
| 7992 | }, |
| 7993 | .write = write_jedec_1, |
| 7994 | .read = read_memmapped, |
| 7995 | .voltage = {4500, 5500}, |
| 7996 | }, |
| 7997 | |
| 7998 | { |
| 7999 | .vendor = "Macronix", |
| 8000 | .name = "MX29F022(N)T", |
| 8001 | .bustype = BUS_PARALLEL, |
| 8002 | .manufacture_id = MACRONIX_ID, |
| 8003 | .model_id = MACRONIX_MX29F022T, |
| 8004 | .total_size = 256, |
| 8005 | .page_size = 0, /* unused */ |
| 8006 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8007 | .tested = TEST_OK_PREW, |
| 8008 | .probe = probe_jedec, |
| 8009 | .probe_timing = TIMING_ZERO, |
| 8010 | .block_erasers = |
| 8011 | { |
| 8012 | { |
| 8013 | .eraseblocks = { |
| 8014 | {64 * 1024, 3}, |
| 8015 | {32 * 1024, 1}, |
| 8016 | {8 * 1024, 2}, |
| 8017 | {16 * 1024, 1}, |
| 8018 | }, |
| 8019 | .block_erase = erase_sector_jedec, |
| 8020 | }, { |
| 8021 | .eraseblocks = { {256 * 1024, 1} }, |
| 8022 | .block_erase = erase_chip_block_jedec, |
| 8023 | } |
| 8024 | }, |
| 8025 | .write = write_jedec_1, |
| 8026 | .read = read_memmapped, |
| 8027 | .voltage = {4500, 5500}, |
| 8028 | }, |
| 8029 | |
| 8030 | { |
| 8031 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8032 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8033 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8034 | .manufacture_id = MACRONIX_ID, |
| 8035 | .model_id = MACRONIX_MX29F040, |
| 8036 | .total_size = 512, |
| 8037 | .page_size = 64 * 1024, |
| 8038 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8039 | .tested = TEST_UNTESTED, |
| 8040 | .probe = probe_jedec, |
| 8041 | .probe_timing = TIMING_ZERO, |
| 8042 | .block_erasers = |
| 8043 | { |
| 8044 | { |
| 8045 | .eraseblocks = { {64 * 1024, 8} }, |
| 8046 | .block_erase = erase_sector_jedec, |
| 8047 | }, { |
| 8048 | .eraseblocks = { {512 * 1024, 1} }, |
| 8049 | .block_erase = erase_chip_block_jedec, |
| 8050 | }, |
| 8051 | }, |
| 8052 | .write = write_jedec_1, |
| 8053 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8054 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 8055 | }, |
| 8056 | |
| 8057 | { |
| 8058 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8059 | .name = "MX29GL320EB", |
| 8060 | .bustype = BUS_PARALLEL, |
| 8061 | .manufacture_id = MACRONIX_ID, |
| 8062 | .model_id = MACRONIX_MX29GL320EB, |
| 8063 | .total_size = 4096, |
| 8064 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8065 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8066 | .tested = TEST_UNTESTED, |
| 8067 | .probe = probe_jedec_29gl, |
| 8068 | .probe_timing = TIMING_ZERO, |
| 8069 | .block_erasers = |
| 8070 | { |
| 8071 | { |
| 8072 | .eraseblocks = { |
| 8073 | {8 * 1024, 8}, |
| 8074 | {64 * 1024, 63}, |
| 8075 | }, |
| 8076 | .block_erase = erase_sector_jedec, |
| 8077 | }, { |
| 8078 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8079 | .block_erase = erase_chip_block_jedec, |
| 8080 | }, |
| 8081 | }, |
| 8082 | .write = write_jedec_1, |
| 8083 | .read = read_memmapped, |
| 8084 | .voltage = {2700, 3600}, |
| 8085 | }, |
| 8086 | |
| 8087 | { |
| 8088 | .vendor = "Macronix", |
| 8089 | .name = "MX29GL320ET", |
| 8090 | .bustype = BUS_PARALLEL, |
| 8091 | .manufacture_id = MACRONIX_ID, |
| 8092 | .model_id = MACRONIX_MX29GL320ET, |
| 8093 | .total_size = 4096, |
| 8094 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8095 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8096 | .tested = TEST_UNTESTED, |
| 8097 | .probe = probe_jedec_29gl, |
| 8098 | .probe_timing = TIMING_ZERO, |
| 8099 | .block_erasers = |
| 8100 | { |
| 8101 | { |
| 8102 | .eraseblocks = { |
| 8103 | {64 * 1024, 63}, |
| 8104 | {8 * 1024, 8}, |
| 8105 | }, |
| 8106 | .block_erase = erase_sector_jedec, |
| 8107 | }, { |
| 8108 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8109 | .block_erase = erase_chip_block_jedec, |
| 8110 | }, |
| 8111 | }, |
| 8112 | .write = write_jedec_1, |
| 8113 | .read = read_memmapped, |
| 8114 | .voltage = {2700, 3600}, |
| 8115 | }, |
| 8116 | |
| 8117 | { |
| 8118 | .vendor = "Macronix", |
| 8119 | .name = "MX29GL320EH/L", |
| 8120 | .bustype = BUS_PARALLEL, |
| 8121 | .manufacture_id = MACRONIX_ID, |
| 8122 | .model_id = MACRONIX_MX29GL320EHL, |
| 8123 | .total_size = 4096, |
| 8124 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8125 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8126 | .tested = TEST_UNTESTED, |
| 8127 | .probe = probe_jedec_29gl, |
| 8128 | .probe_timing = TIMING_ZERO, |
| 8129 | .block_erasers = |
| 8130 | { |
| 8131 | { |
| 8132 | .eraseblocks = { {64 * 1024, 64} }, |
| 8133 | .block_erase = erase_sector_jedec, |
| 8134 | }, { |
| 8135 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8136 | .block_erase = erase_chip_block_jedec, |
| 8137 | }, |
| 8138 | }, |
| 8139 | .write = write_jedec_1, |
| 8140 | .read = read_memmapped, |
| 8141 | .voltage = {2700, 3600}, |
| 8142 | }, |
| 8143 | |
| 8144 | { |
| 8145 | .vendor = "Macronix", |
| 8146 | .name = "MX29GL640EB", |
| 8147 | .bustype = BUS_PARALLEL, |
| 8148 | .manufacture_id = MACRONIX_ID, |
| 8149 | .model_id = MACRONIX_MX29GL640EB, |
| 8150 | .total_size = 8192, |
| 8151 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8152 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8153 | .tested = TEST_UNTESTED, |
| 8154 | .probe = probe_jedec_29gl, |
| 8155 | .probe_timing = TIMING_ZERO, |
| 8156 | .block_erasers = |
| 8157 | { |
| 8158 | { |
| 8159 | .eraseblocks = { |
| 8160 | {8 * 1024, 8}, |
| 8161 | {64 * 1024, 127}, |
| 8162 | }, |
| 8163 | .block_erase = erase_sector_jedec, |
| 8164 | }, { |
| 8165 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8166 | .block_erase = erase_chip_block_jedec, |
| 8167 | }, |
| 8168 | }, |
| 8169 | .write = write_jedec_1, |
| 8170 | .read = read_memmapped, |
| 8171 | .voltage = {2700, 3600}, |
| 8172 | }, |
| 8173 | |
| 8174 | { |
| 8175 | .vendor = "Macronix", |
| 8176 | .name = "MX29GL640ET", |
| 8177 | .bustype = BUS_PARALLEL, |
| 8178 | .manufacture_id = MACRONIX_ID, |
| 8179 | .model_id = MACRONIX_MX29GL640ET, |
| 8180 | .total_size = 8192, |
| 8181 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8182 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8183 | .tested = TEST_UNTESTED, |
| 8184 | .probe = probe_jedec_29gl, |
| 8185 | .probe_timing = TIMING_ZERO, |
| 8186 | .block_erasers = |
| 8187 | { |
| 8188 | { |
| 8189 | .eraseblocks = { |
| 8190 | {64 * 1024, 127}, |
| 8191 | {8 * 1024, 8}, |
| 8192 | }, |
| 8193 | .block_erase = erase_sector_jedec, |
| 8194 | }, { |
| 8195 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8196 | .block_erase = erase_chip_block_jedec, |
| 8197 | }, |
| 8198 | }, |
| 8199 | .write = write_jedec_1, |
| 8200 | .read = read_memmapped, |
| 8201 | .voltage = {2700, 3600}, |
| 8202 | }, |
| 8203 | |
| 8204 | { |
| 8205 | .vendor = "Macronix", |
| 8206 | .name = "MX29GL640EH/L", |
| 8207 | .bustype = BUS_PARALLEL, |
| 8208 | .manufacture_id = MACRONIX_ID, |
| 8209 | .model_id = MACRONIX_MX29GL640EHL, |
| 8210 | .total_size = 8192, |
| 8211 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8212 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8213 | .tested = TEST_UNTESTED, |
| 8214 | .probe = probe_jedec_29gl, |
| 8215 | .probe_timing = TIMING_ZERO, |
| 8216 | .block_erasers = |
| 8217 | { |
| 8218 | { |
| 8219 | .eraseblocks = { {64 * 1024, 128} }, |
| 8220 | .block_erase = erase_sector_jedec, |
| 8221 | }, { |
| 8222 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8223 | .block_erase = erase_chip_block_jedec, |
| 8224 | }, |
| 8225 | }, |
| 8226 | .write = write_jedec_1, |
| 8227 | .read = read_memmapped, |
| 8228 | .voltage = {2700, 3600}, |
| 8229 | }, |
| 8230 | |
| 8231 | { |
| 8232 | .vendor = "Macronix", |
| 8233 | .name = "MX29GL128F", |
| 8234 | .bustype = BUS_PARALLEL, |
| 8235 | .manufacture_id = MACRONIX_ID, |
| 8236 | .model_id = MACRONIX_MX29GL128F, |
| 8237 | .total_size = 16384, |
| 8238 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8239 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8240 | .tested = TEST_UNTESTED, |
| 8241 | .probe = probe_jedec_29gl, |
| 8242 | .probe_timing = TIMING_ZERO, |
| 8243 | .block_erasers = |
| 8244 | { |
| 8245 | { |
| 8246 | .eraseblocks = { {128 * 1024, 128} }, |
| 8247 | .block_erase = erase_sector_jedec, |
| 8248 | }, { |
| 8249 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8250 | .block_erase = erase_chip_block_jedec, |
| 8251 | }, |
| 8252 | }, |
| 8253 | .write = write_jedec_1, |
| 8254 | .read = read_memmapped, |
| 8255 | .voltage = {2700, 3600}, |
| 8256 | }, |
| 8257 | |
| 8258 | { |
| 8259 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 8260 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8261 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8262 | .manufacture_id = MACRONIX_ID, |
| 8263 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8264 | .total_size = 512, |
| 8265 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8266 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8267 | .tested = TEST_UNTESTED, |
| 8268 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8269 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8270 | .block_erasers = |
| 8271 | { |
| 8272 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 8273 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8274 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8275 | }, { |
| 8276 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8277 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8278 | }, |
| 8279 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8280 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8281 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8282 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 8283 | }, |
| 8284 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8285 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8286 | .vendor = "Micron/Numonyx/ST", |
| 8287 | .name = "M25P05-A", |
| 8288 | .bustype = BUS_SPI, |
| 8289 | .manufacture_id = ST_ID, |
| 8290 | .model_id = ST_M25P05A, |
| 8291 | .total_size = 64, |
| 8292 | .page_size = 256, |
| 8293 | .feature_bits = FEATURE_WRSR_WREN, |
| 8294 | .tested = TEST_OK_PREW, |
| 8295 | .probe = probe_spi_rdid, |
| 8296 | .probe_timing = TIMING_ZERO, |
| 8297 | .block_erasers = |
| 8298 | { |
| 8299 | { |
| 8300 | .eraseblocks = { {32 * 1024, 2} }, |
| 8301 | .block_erase = spi_block_erase_d8, |
| 8302 | }, { |
| 8303 | .eraseblocks = { {64 * 1024, 1} }, |
| 8304 | .block_erase = spi_block_erase_c7, |
| 8305 | } |
| 8306 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8307 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8308 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8309 | .write = spi_chip_write_256, |
| 8310 | .read = spi_chip_read, |
| 8311 | .voltage = {2700, 3600}, |
| 8312 | }, |
| 8313 | |
| 8314 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 8315 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 8316 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 8317 | * only is successful if RDID does not work. |
| 8318 | */ |
| 8319 | { |
| 8320 | .vendor = "Micron/Numonyx/ST", |
| 8321 | .name = "M25P05", |
| 8322 | .bustype = BUS_SPI, |
| 8323 | .manufacture_id = 0, /* Not used. */ |
| 8324 | .model_id = ST_M25P05_RES, |
| 8325 | .total_size = 64, |
| 8326 | .page_size = 256, |
| 8327 | .feature_bits = FEATURE_WRSR_WREN, |
| 8328 | .tested = TEST_UNTESTED, |
| 8329 | .probe = probe_spi_res1, |
| 8330 | .probe_timing = TIMING_ZERO, |
| 8331 | .block_erasers = |
| 8332 | { |
| 8333 | { |
| 8334 | .eraseblocks = { {32 * 1024, 2} }, |
| 8335 | .block_erase = spi_block_erase_d8, |
| 8336 | }, { |
| 8337 | .eraseblocks = { {64 * 1024, 1} }, |
| 8338 | .block_erase = spi_block_erase_c7, |
| 8339 | } |
| 8340 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8341 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8342 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8343 | .write = spi_chip_write_1, /* 128 */ |
| 8344 | .read = spi_chip_read, |
| 8345 | .voltage = {2700, 3600}, |
| 8346 | }, |
| 8347 | |
| 8348 | { |
| 8349 | .vendor = "Micron/Numonyx/ST", |
| 8350 | .name = "M25P10-A", |
| 8351 | .bustype = BUS_SPI, |
| 8352 | .manufacture_id = ST_ID, |
| 8353 | .model_id = ST_M25P10A, |
| 8354 | .total_size = 128, |
| 8355 | .page_size = 256, |
| 8356 | .feature_bits = FEATURE_WRSR_WREN, |
| 8357 | .tested = TEST_OK_PRE, |
| 8358 | .probe = probe_spi_rdid, |
| 8359 | .probe_timing = TIMING_ZERO, |
| 8360 | .block_erasers = |
| 8361 | { |
| 8362 | { |
| 8363 | .eraseblocks = { {32 * 1024, 4} }, |
| 8364 | .block_erase = spi_block_erase_d8, |
| 8365 | }, { |
| 8366 | .eraseblocks = { {128 * 1024, 1} }, |
| 8367 | .block_erase = spi_block_erase_c7, |
| 8368 | } |
| 8369 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8370 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8371 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8372 | .write = spi_chip_write_256, |
| 8373 | .read = spi_chip_read, |
| 8374 | .voltage = {2700, 3600}, |
| 8375 | }, |
| 8376 | |
| 8377 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 8378 | { |
| 8379 | .vendor = "Micron/Numonyx/ST", |
| 8380 | .name = "M25P10", |
| 8381 | .bustype = BUS_SPI, |
| 8382 | .manufacture_id = 0, /* Not used. */ |
| 8383 | .model_id = ST_M25P10_RES, |
| 8384 | .total_size = 128, |
| 8385 | .page_size = 256, |
| 8386 | .feature_bits = FEATURE_WRSR_WREN, |
| 8387 | .tested = TEST_UNTESTED, |
| 8388 | .probe = probe_spi_res1, |
| 8389 | .probe_timing = TIMING_ZERO, |
| 8390 | .block_erasers = |
| 8391 | { |
| 8392 | { |
| 8393 | .eraseblocks = { {32 * 1024, 4} }, |
| 8394 | .block_erase = spi_block_erase_d8, |
| 8395 | }, { |
| 8396 | .eraseblocks = { {128 * 1024, 1} }, |
| 8397 | .block_erase = spi_block_erase_c7, |
| 8398 | } |
| 8399 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8400 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8401 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8402 | .write = spi_chip_write_1, /* 128 */ |
| 8403 | .read = spi_chip_read, |
| 8404 | .voltage = {2700, 3600}, |
| 8405 | }, |
| 8406 | |
| 8407 | { |
| 8408 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 8409 | .name = "M25P20", |
| 8410 | .bustype = BUS_SPI, |
| 8411 | .manufacture_id = ST_ID, |
| 8412 | .model_id = ST_M25P20, |
| 8413 | .total_size = 256, |
| 8414 | .page_size = 256, |
| 8415 | .feature_bits = FEATURE_WRSR_WREN, |
| 8416 | .tested = TEST_UNTESTED, |
| 8417 | .probe = probe_spi_rdid, |
| 8418 | .probe_timing = TIMING_ZERO, |
| 8419 | .block_erasers = |
| 8420 | { |
| 8421 | { |
| 8422 | .eraseblocks = { {64 * 1024, 4} }, |
| 8423 | .block_erase = spi_block_erase_d8, |
| 8424 | }, { |
| 8425 | .eraseblocks = { {256 * 1024, 1} }, |
| 8426 | .block_erase = spi_block_erase_c7, |
| 8427 | } |
| 8428 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8429 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8430 | .unlock = spi_disable_blockprotect, |
| 8431 | .write = spi_chip_write_256, |
| 8432 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8433 | .voltage = {2700, 3600}, |
| 8434 | }, |
| 8435 | |
| 8436 | { |
| 8437 | .vendor = "Micron/Numonyx/ST", |
| 8438 | .name = "M25P20-old", |
| 8439 | .bustype = BUS_SPI, |
| 8440 | .manufacture_id = 0, /* Not used. */ |
| 8441 | .model_id = ST_M25P20_RES, |
| 8442 | .total_size = 256, |
| 8443 | .page_size = 256, |
| 8444 | .feature_bits = FEATURE_WRSR_WREN, |
| 8445 | .tested = TEST_OK_PREW, |
| 8446 | .probe = probe_spi_res1, |
| 8447 | .probe_timing = TIMING_ZERO, |
| 8448 | .block_erasers = |
| 8449 | { |
| 8450 | { |
| 8451 | .eraseblocks = { {64 * 1024, 4} }, |
| 8452 | .block_erase = spi_block_erase_d8, |
| 8453 | }, { |
| 8454 | .eraseblocks = { {256 * 1024, 1} }, |
| 8455 | .block_erase = spi_block_erase_c7, |
| 8456 | } |
| 8457 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8458 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8459 | .unlock = spi_disable_blockprotect, |
| 8460 | .write = spi_chip_write_256, |
| 8461 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8462 | .voltage = {2700, 3600}, |
| 8463 | }, |
| 8464 | |
| 8465 | { |
| 8466 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 8467 | .name = "M25P40", |
| 8468 | .bustype = BUS_SPI, |
| 8469 | .manufacture_id = ST_ID, |
| 8470 | .model_id = ST_M25P40, |
| 8471 | .total_size = 512, |
| 8472 | .page_size = 256, |
| 8473 | .feature_bits = FEATURE_WRSR_WREN, |
| 8474 | .tested = TEST_OK_PREW, |
| 8475 | .probe = probe_spi_rdid, |
| 8476 | .probe_timing = TIMING_ZERO, |
| 8477 | .block_erasers = |
| 8478 | { |
| 8479 | { |
| 8480 | .eraseblocks = { {64 * 1024, 8} }, |
| 8481 | .block_erase = spi_block_erase_d8, |
| 8482 | }, { |
| 8483 | .eraseblocks = { {512 * 1024, 1} }, |
| 8484 | .block_erase = spi_block_erase_c7, |
| 8485 | } |
| 8486 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8487 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8488 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8489 | .write = spi_chip_write_256, |
| 8490 | .read = spi_chip_read, |
| 8491 | .voltage = {2700, 3600}, |
| 8492 | }, |
| 8493 | |
| 8494 | { |
| 8495 | .vendor = "Micron/Numonyx/ST", |
| 8496 | .name = "M25P40-old", |
| 8497 | .bustype = BUS_SPI, |
| 8498 | .manufacture_id = 0, /* Not used. */ |
| 8499 | .model_id = ST_M25P40_RES, |
| 8500 | .total_size = 512, |
| 8501 | .page_size = 256, |
| 8502 | .feature_bits = FEATURE_WRSR_WREN, |
| 8503 | .tested = TEST_UNTESTED, |
| 8504 | .probe = probe_spi_res1, |
| 8505 | .probe_timing = TIMING_ZERO, |
| 8506 | .block_erasers = |
| 8507 | { |
| 8508 | { |
| 8509 | .eraseblocks = { {64 * 1024, 8} }, |
| 8510 | .block_erase = spi_block_erase_d8, |
| 8511 | }, { |
| 8512 | .eraseblocks = { {512 * 1024, 1} }, |
| 8513 | .block_erase = spi_block_erase_c7, |
| 8514 | } |
| 8515 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8516 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8517 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8518 | .write = spi_chip_write_256, |
| 8519 | .read = spi_chip_read, |
| 8520 | }, |
| 8521 | |
| 8522 | { |
| 8523 | .vendor = "Micron/Numonyx/ST", |
| 8524 | .name = "M25P80", |
| 8525 | .bustype = BUS_SPI, |
| 8526 | .manufacture_id = ST_ID, |
| 8527 | .model_id = ST_M25P80, |
| 8528 | .total_size = 1024, |
| 8529 | .page_size = 256, |
| 8530 | .feature_bits = FEATURE_WRSR_WREN, |
| 8531 | .tested = TEST_OK_PREW, |
| 8532 | .probe = probe_spi_rdid, |
| 8533 | .probe_timing = TIMING_ZERO, |
| 8534 | .block_erasers = |
| 8535 | { |
| 8536 | { |
| 8537 | .eraseblocks = { {64 * 1024, 16} }, |
| 8538 | .block_erase = spi_block_erase_d8, |
| 8539 | }, { |
| 8540 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8541 | .block_erase = spi_block_erase_c7, |
| 8542 | } |
| 8543 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8544 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8545 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8546 | .write = spi_chip_write_256, |
| 8547 | .read = spi_chip_read, |
| 8548 | .voltage = {2700, 3600}, |
| 8549 | }, |
| 8550 | |
| 8551 | { |
| 8552 | .vendor = "Micron/Numonyx/ST", |
| 8553 | .name = "M25P16", |
| 8554 | .bustype = BUS_SPI, |
| 8555 | .manufacture_id = ST_ID, |
| 8556 | .model_id = ST_M25P16, |
| 8557 | .total_size = 2048, |
| 8558 | .page_size = 256, |
| 8559 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8560 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8561 | .probe = probe_spi_rdid, |
| 8562 | .probe_timing = TIMING_ZERO, |
| 8563 | .block_erasers = |
| 8564 | { |
| 8565 | { |
| 8566 | .eraseblocks = { {64 * 1024, 32} }, |
| 8567 | .block_erase = spi_block_erase_d8, |
| 8568 | }, { |
| 8569 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8570 | .block_erase = spi_block_erase_c7, |
| 8571 | } |
| 8572 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8573 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8574 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8575 | .write = spi_chip_write_256, |
| 8576 | .read = spi_chip_read, |
| 8577 | .voltage = {2700, 3600}, |
| 8578 | }, |
| 8579 | |
| 8580 | { |
| 8581 | .vendor = "Micron/Numonyx/ST", |
| 8582 | .name = "M25P32", |
| 8583 | .bustype = BUS_SPI, |
| 8584 | .manufacture_id = ST_ID, |
| 8585 | .model_id = ST_M25P32, |
| 8586 | .total_size = 4096, |
| 8587 | .page_size = 256, |
| 8588 | .feature_bits = FEATURE_WRSR_WREN, |
| 8589 | .tested = TEST_OK_PREW, |
| 8590 | .probe = probe_spi_rdid, |
| 8591 | .probe_timing = TIMING_ZERO, |
| 8592 | .block_erasers = |
| 8593 | { |
| 8594 | { |
| 8595 | .eraseblocks = { {64 * 1024, 64} }, |
| 8596 | .block_erase = spi_block_erase_d8, |
| 8597 | }, { |
| 8598 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8599 | .block_erase = spi_block_erase_c7, |
| 8600 | } |
| 8601 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8602 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8603 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8604 | .write = spi_chip_write_256, |
| 8605 | .read = spi_chip_read, |
| 8606 | .voltage = {2700, 3600}, |
| 8607 | }, |
| 8608 | |
| 8609 | { |
| 8610 | .vendor = "Micron/Numonyx/ST", |
| 8611 | .name = "M25P64", |
| 8612 | .bustype = BUS_SPI, |
| 8613 | .manufacture_id = ST_ID, |
| 8614 | .model_id = ST_M25P64, |
| 8615 | .total_size = 8192, |
| 8616 | .page_size = 256, |
| 8617 | .feature_bits = FEATURE_WRSR_WREN, |
| 8618 | .tested = TEST_OK_PREW, |
| 8619 | .probe = probe_spi_rdid, |
| 8620 | .probe_timing = TIMING_ZERO, |
| 8621 | .block_erasers = |
| 8622 | { |
| 8623 | { |
| 8624 | .eraseblocks = { {64 * 1024, 128} }, |
| 8625 | .block_erase = spi_block_erase_d8, |
| 8626 | }, { |
| 8627 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8628 | .block_erase = spi_block_erase_c7, |
| 8629 | } |
| 8630 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8631 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8632 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8633 | .write = spi_chip_write_256, |
| 8634 | .read = spi_chip_read, |
| 8635 | .voltage = {2700, 3600}, |
| 8636 | }, |
| 8637 | |
| 8638 | { |
| 8639 | .vendor = "Micron/Numonyx/ST", |
| 8640 | .name = "M25P128", |
| 8641 | .bustype = BUS_SPI, |
| 8642 | .manufacture_id = ST_ID, |
| 8643 | .model_id = ST_M25P128, |
| 8644 | .total_size = 16384, |
| 8645 | .page_size = 256, |
| 8646 | .feature_bits = FEATURE_WRSR_WREN, |
| 8647 | .tested = TEST_OK_PREW, |
| 8648 | .probe = probe_spi_rdid, |
| 8649 | .probe_timing = TIMING_ZERO, |
| 8650 | .block_erasers = |
| 8651 | { |
| 8652 | { |
| 8653 | .eraseblocks = { {256 * 1024, 64} }, |
| 8654 | .block_erase = spi_block_erase_d8, |
| 8655 | }, { |
| 8656 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8657 | .block_erase = spi_block_erase_c7, |
| 8658 | } |
| 8659 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8660 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8661 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8662 | .write = spi_chip_write_256, |
| 8663 | .read = spi_chip_read, |
| 8664 | .voltage = {2700, 3600}, |
| 8665 | }, |
| 8666 | |
| 8667 | { |
| 8668 | .vendor = "Micron/Numonyx/ST", |
| 8669 | .name = "M25PE10", |
| 8670 | .bustype = BUS_SPI, |
| 8671 | .manufacture_id = ST_ID, |
| 8672 | .model_id = ST_M25PE10, |
| 8673 | .total_size = 128, |
| 8674 | .page_size = 256, |
| 8675 | .feature_bits = FEATURE_WRSR_WREN, |
| 8676 | .tested = TEST_UNTESTED, |
| 8677 | .probe = probe_spi_rdid, |
| 8678 | .probe_timing = TIMING_ZERO, |
| 8679 | .block_erasers = |
| 8680 | { |
| 8681 | { |
| 8682 | .eraseblocks = { {4 * 1024, 32} }, |
| 8683 | .block_erase = spi_block_erase_20, |
| 8684 | }, { |
| 8685 | .eraseblocks = { {64 * 1024, 2} }, |
| 8686 | .block_erase = spi_block_erase_d8, |
| 8687 | }, { |
| 8688 | .eraseblocks = { {128 * 1024, 1} }, |
| 8689 | .block_erase = spi_block_erase_c7, |
| 8690 | } |
| 8691 | }, |
| 8692 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8693 | .unlock = spi_disable_blockprotect, |
| 8694 | .write = spi_chip_write_256, |
| 8695 | .read = spi_chip_read, |
| 8696 | .voltage = {2700, 3600}, |
| 8697 | }, |
| 8698 | |
| 8699 | { |
| 8700 | .vendor = "Micron/Numonyx/ST", |
| 8701 | .name = "M25PE20", |
| 8702 | .bustype = BUS_SPI, |
| 8703 | .manufacture_id = ST_ID, |
| 8704 | .model_id = ST_M25PE20, |
| 8705 | .total_size = 256, |
| 8706 | .page_size = 256, |
| 8707 | .feature_bits = FEATURE_WRSR_WREN, |
| 8708 | .tested = TEST_UNTESTED, |
| 8709 | .probe = probe_spi_rdid, |
| 8710 | .probe_timing = TIMING_ZERO, |
| 8711 | .block_erasers = |
| 8712 | { |
| 8713 | { |
| 8714 | .eraseblocks = { {4 * 1024, 64} }, |
| 8715 | .block_erase = spi_block_erase_20, |
| 8716 | }, { |
| 8717 | .eraseblocks = { {64 * 1024, 4} }, |
| 8718 | .block_erase = spi_block_erase_d8, |
| 8719 | }, { |
| 8720 | .eraseblocks = { {256 * 1024, 1} }, |
| 8721 | .block_erase = spi_block_erase_c7, |
| 8722 | } |
| 8723 | }, |
| 8724 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8725 | .unlock = spi_disable_blockprotect, |
| 8726 | .write = spi_chip_write_256, |
| 8727 | .read = spi_chip_read, |
| 8728 | .voltage = {2700, 3600}, |
| 8729 | }, |
| 8730 | |
| 8731 | { |
| 8732 | .vendor = "Micron/Numonyx/ST", |
| 8733 | .name = "M25PE40", |
| 8734 | .bustype = BUS_SPI, |
| 8735 | .manufacture_id = ST_ID, |
| 8736 | .model_id = ST_M25PE40, |
| 8737 | .total_size = 512, |
| 8738 | .page_size = 256, |
| 8739 | .feature_bits = FEATURE_WRSR_WREN, |
| 8740 | .tested = TEST_UNTESTED, |
| 8741 | .probe = probe_spi_rdid, |
| 8742 | .probe_timing = TIMING_ZERO, |
| 8743 | .block_erasers = |
| 8744 | { |
| 8745 | { |
| 8746 | .eraseblocks = { {4 * 1024, 128} }, |
| 8747 | .block_erase = spi_block_erase_20, |
| 8748 | }, { |
| 8749 | .eraseblocks = { {64 * 1024, 8} }, |
| 8750 | .block_erase = spi_block_erase_d8, |
| 8751 | }, { |
| 8752 | .eraseblocks = { {512 * 1024, 1} }, |
| 8753 | .block_erase = spi_block_erase_c7, |
| 8754 | } |
| 8755 | }, |
| 8756 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8757 | .unlock = spi_disable_blockprotect, |
| 8758 | .write = spi_chip_write_256, |
| 8759 | .read = spi_chip_read, |
| 8760 | .voltage = {2700, 3600}, |
| 8761 | }, |
| 8762 | |
| 8763 | { |
| 8764 | .vendor = "Micron/Numonyx/ST", |
| 8765 | .name = "M25PE80", |
| 8766 | .bustype = BUS_SPI, |
| 8767 | .manufacture_id = ST_ID, |
| 8768 | .model_id = ST_M25PE80, |
| 8769 | .total_size = 1024, |
| 8770 | .page_size = 256, |
| 8771 | .feature_bits = FEATURE_WRSR_WREN, |
| 8772 | .tested = TEST_OK_PREW, |
| 8773 | .probe = probe_spi_rdid, |
| 8774 | .probe_timing = TIMING_ZERO, |
| 8775 | .block_erasers = |
| 8776 | { |
| 8777 | { |
| 8778 | .eraseblocks = { {4 * 1024, 256} }, |
| 8779 | .block_erase = spi_block_erase_20, |
| 8780 | }, { |
| 8781 | .eraseblocks = { {64 * 1024, 16} }, |
| 8782 | .block_erase = spi_block_erase_d8, |
| 8783 | }, { |
| 8784 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8785 | .block_erase = spi_block_erase_c7, |
| 8786 | } |
| 8787 | }, |
| 8788 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8789 | .unlock = spi_disable_blockprotect, |
| 8790 | .write = spi_chip_write_256, |
| 8791 | .read = spi_chip_read, |
| 8792 | .voltage = {2700, 3600}, |
| 8793 | }, |
| 8794 | |
| 8795 | { |
| 8796 | .vendor = "Micron/Numonyx/ST", |
| 8797 | .name = "M25PE16", |
| 8798 | .bustype = BUS_SPI, |
| 8799 | .manufacture_id = ST_ID, |
| 8800 | .model_id = ST_M25PE16, |
| 8801 | .total_size = 2048, |
| 8802 | .page_size = 256, |
| 8803 | .feature_bits = FEATURE_WRSR_WREN, |
| 8804 | .tested = TEST_UNTESTED, |
| 8805 | .probe = probe_spi_rdid, |
| 8806 | .probe_timing = TIMING_ZERO, |
| 8807 | .block_erasers = |
| 8808 | { |
| 8809 | { |
| 8810 | .eraseblocks = { {4 * 1024, 512} }, |
| 8811 | .block_erase = spi_block_erase_20, |
| 8812 | }, { |
| 8813 | .eraseblocks = { {64 * 1024, 32} }, |
| 8814 | .block_erase = spi_block_erase_d8, |
| 8815 | }, { |
| 8816 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8817 | .block_erase = spi_block_erase_c7, |
| 8818 | } |
| 8819 | }, |
| 8820 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8821 | .unlock = spi_disable_blockprotect, |
| 8822 | .write = spi_chip_write_256, |
| 8823 | .read = spi_chip_read, |
| 8824 | .voltage = {2700, 3600}, |
| 8825 | }, |
| 8826 | |
| 8827 | { |
| 8828 | .vendor = "Micron/Numonyx/ST", |
| 8829 | .name = "M25PX80", |
| 8830 | .bustype = BUS_SPI, |
| 8831 | .manufacture_id = ST_ID, |
| 8832 | .model_id = ST_M25PX80, |
| 8833 | .total_size = 1024, |
| 8834 | .page_size = 256, |
| 8835 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8836 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8837 | .tested = TEST_OK_PREW, |
| 8838 | .probe = probe_spi_rdid, |
| 8839 | .probe_timing = TIMING_ZERO, |
| 8840 | .block_erasers = { |
| 8841 | { |
| 8842 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 8843 | .block_erase = spi_block_erase_20, |
| 8844 | }, { |
| 8845 | .eraseblocks = { {64 * 1024, 16} }, |
| 8846 | .block_erase = spi_block_erase_d8, |
| 8847 | }, { |
| 8848 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8849 | .block_erase = spi_block_erase_c7, |
| 8850 | } |
| 8851 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8852 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8853 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 8854 | .write = spi_chip_write_256, |
| 8855 | .read = spi_chip_read, |
| 8856 | .voltage = {2700, 3600}, |
| 8857 | }, |
| 8858 | |
| 8859 | { |
| 8860 | .vendor = "Micron/Numonyx/ST", |
| 8861 | .name = "M25PX16", |
| 8862 | .bustype = BUS_SPI, |
| 8863 | .manufacture_id = ST_ID, |
| 8864 | .model_id = ST_M25PX16, |
| 8865 | .total_size = 2048, |
| 8866 | .page_size = 256, |
| 8867 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 8868 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8869 | .tested = TEST_OK_PREW, |
| 8870 | .probe = probe_spi_rdid, |
| 8871 | .probe_timing = TIMING_ZERO, |
| 8872 | .block_erasers = |
| 8873 | { |
| 8874 | { |
| 8875 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 8876 | .block_erase = spi_block_erase_20, |
| 8877 | }, { |
| 8878 | .eraseblocks = { {64 * 1024, 32} }, |
| 8879 | .block_erase = spi_block_erase_d8, |
| 8880 | }, { |
| 8881 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8882 | .block_erase = spi_block_erase_c7, |
| 8883 | } |
| 8884 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8885 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8886 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 8887 | .write = spi_chip_write_256, |
| 8888 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8889 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8890 | }, |
| 8891 | |
| 8892 | { |
| 8893 | .vendor = "Micron/Numonyx/ST", |
| 8894 | .name = "M25PX32", |
| 8895 | .bustype = BUS_SPI, |
| 8896 | .manufacture_id = ST_ID, |
| 8897 | .model_id = ST_M25PX32, |
| 8898 | .total_size = 4096, |
| 8899 | .page_size = 256, |
| 8900 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 8901 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8902 | .tested = TEST_OK_PRE, |
| 8903 | .probe = probe_spi_rdid, |
| 8904 | .probe_timing = TIMING_ZERO, |
| 8905 | .block_erasers = |
| 8906 | { |
| 8907 | { |
| 8908 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 8909 | .block_erase = spi_block_erase_20, |
| 8910 | }, { |
| 8911 | .eraseblocks = { {64 * 1024, 64} }, |
| 8912 | .block_erase = spi_block_erase_d8, |
| 8913 | }, { |
| 8914 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8915 | .block_erase = spi_block_erase_c7, |
| 8916 | } |
| 8917 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8918 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8919 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 8920 | .write = spi_chip_write_256, |
| 8921 | .read = spi_chip_read, |
| 8922 | .voltage = {2700, 3600}, |
| 8923 | }, |
| 8924 | |
| 8925 | { |
| 8926 | .vendor = "Micron/Numonyx/ST", |
| 8927 | .name = "M25PX64", |
| 8928 | .bustype = BUS_SPI, |
| 8929 | .manufacture_id = ST_ID, |
| 8930 | .model_id = ST_M25PX64, |
| 8931 | .total_size = 8192, |
| 8932 | .page_size = 256, |
| 8933 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 8934 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8935 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8936 | .probe = probe_spi_rdid, |
| 8937 | .probe_timing = TIMING_ZERO, |
| 8938 | .block_erasers = |
| 8939 | { |
| 8940 | { |
| 8941 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 8942 | .block_erase = spi_block_erase_20, |
| 8943 | }, { |
| 8944 | .eraseblocks = { {64 * 1024, 128} }, |
| 8945 | .block_erase = spi_block_erase_d8, |
| 8946 | }, { |
| 8947 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8948 | .block_erase = spi_block_erase_c7, |
| 8949 | } |
| 8950 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8951 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8952 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 8953 | .write = spi_chip_write_256, |
| 8954 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8955 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8956 | }, |
| 8957 | |
| 8958 | { |
| 8959 | .vendor = "Micron/Numonyx/ST", |
| 8960 | .name = "M45PE10", |
| 8961 | .bustype = BUS_SPI, |
| 8962 | .manufacture_id = ST_ID, |
| 8963 | .model_id = ST_M45PE10, |
| 8964 | .total_size = 128, |
| 8965 | .page_size = 256, |
| 8966 | .tested = TEST_UNTESTED, |
| 8967 | .probe = probe_spi_rdid, |
| 8968 | .probe_timing = TIMING_ZERO, |
| 8969 | .block_erasers = { |
| 8970 | { |
| 8971 | .eraseblocks = { {256, 512} }, |
| 8972 | .block_erase = spi_block_erase_db, |
| 8973 | }, { |
| 8974 | .eraseblocks = { {64 * 1024, 2} }, |
| 8975 | .block_erase = spi_block_erase_d8, |
| 8976 | } |
| 8977 | }, |
| 8978 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8979 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 8980 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 8981 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8982 | .voltage = {2700, 3600}, |
| 8983 | }, |
| 8984 | |
| 8985 | { |
| 8986 | .vendor = "Micron/Numonyx/ST", |
| 8987 | .name = "M45PE20", |
| 8988 | .bustype = BUS_SPI, |
| 8989 | .manufacture_id = ST_ID, |
| 8990 | .model_id = ST_M45PE20, |
| 8991 | .total_size = 256, |
| 8992 | .page_size = 256, |
| 8993 | .tested = TEST_UNTESTED, |
| 8994 | .probe = probe_spi_rdid, |
| 8995 | .probe_timing = TIMING_ZERO, |
| 8996 | .block_erasers = { |
| 8997 | { |
| 8998 | .eraseblocks = { {256, 1024} }, |
| 8999 | .block_erase = spi_block_erase_db, |
| 9000 | }, { |
| 9001 | .eraseblocks = { {64 * 1024, 4} }, |
| 9002 | .block_erase = spi_block_erase_d8, |
| 9003 | } |
| 9004 | }, |
| 9005 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9006 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9007 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9008 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9009 | .voltage = {2700, 3600}, |
| 9010 | }, |
| 9011 | |
| 9012 | { |
| 9013 | .vendor = "Micron/Numonyx/ST", |
| 9014 | .name = "M45PE40", |
| 9015 | .bustype = BUS_SPI, |
| 9016 | .manufacture_id = ST_ID, |
| 9017 | .model_id = ST_M45PE40, |
| 9018 | .total_size = 512, |
| 9019 | .page_size = 256, |
| 9020 | .tested = TEST_UNTESTED, |
| 9021 | .probe = probe_spi_rdid, |
| 9022 | .probe_timing = TIMING_ZERO, |
| 9023 | .block_erasers = { |
| 9024 | { |
| 9025 | .eraseblocks = { {256, 2048} }, |
| 9026 | .block_erase = spi_block_erase_db, |
| 9027 | }, { |
| 9028 | .eraseblocks = { {64 * 1024, 8} }, |
| 9029 | .block_erase = spi_block_erase_d8, |
| 9030 | } |
| 9031 | }, |
| 9032 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9033 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9034 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9035 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9036 | .voltage = {2700, 3600}, |
| 9037 | }, |
| 9038 | |
| 9039 | { |
| 9040 | .vendor = "Micron/Numonyx/ST", |
| 9041 | .name = "M45PE80", |
| 9042 | .bustype = BUS_SPI, |
| 9043 | .manufacture_id = ST_ID, |
| 9044 | .model_id = ST_M45PE80, |
| 9045 | .total_size = 1024, |
| 9046 | .page_size = 256, |
| 9047 | .tested = TEST_UNTESTED, |
| 9048 | .probe = probe_spi_rdid, |
| 9049 | .probe_timing = TIMING_ZERO, |
| 9050 | .block_erasers = { |
| 9051 | { |
| 9052 | .eraseblocks = { {256, 4096} }, |
| 9053 | .block_erase = spi_block_erase_db, |
| 9054 | }, { |
| 9055 | .eraseblocks = { {64 * 1024, 16} }, |
| 9056 | .block_erase = spi_block_erase_d8, |
| 9057 | } |
| 9058 | }, |
| 9059 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9060 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9061 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9062 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9063 | .voltage = {2700, 3600}, |
| 9064 | }, |
| 9065 | |
| 9066 | { |
| 9067 | .vendor = "Micron/Numonyx/ST", |
| 9068 | .name = "M45PE16", |
| 9069 | .bustype = BUS_SPI, |
| 9070 | .manufacture_id = ST_ID, |
| 9071 | .model_id = ST_M45PE16, |
| 9072 | .total_size = 2048, |
| 9073 | .page_size = 256, |
| 9074 | .tested = TEST_UNTESTED, |
| 9075 | .probe = probe_spi_rdid, |
| 9076 | .probe_timing = TIMING_ZERO, |
| 9077 | .block_erasers = { |
| 9078 | { |
| 9079 | .eraseblocks = { {256, 8192} }, |
| 9080 | .block_erase = spi_block_erase_db, |
| 9081 | }, { |
| 9082 | .eraseblocks = { {64 * 1024, 32} }, |
| 9083 | .block_erase = spi_block_erase_d8, |
| 9084 | } |
| 9085 | }, |
| 9086 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9087 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9088 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 9089 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9090 | .voltage = {2700, 3600}, |
| 9091 | }, |
| 9092 | |
| 9093 | { |
| 9094 | .vendor = "Micron/Numonyx/ST", |
| 9095 | .name = "N25Q016", |
| 9096 | .bustype = BUS_SPI, |
| 9097 | .manufacture_id = ST_ID, |
| 9098 | .model_id = ST_N25Q016__1E, |
| 9099 | .total_size = 2048, |
| 9100 | .page_size = 256, |
| 9101 | /* supports SFDP */ |
| 9102 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9103 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9104 | .tested = TEST_UNTESTED, |
| 9105 | .probe = probe_spi_rdid, |
| 9106 | .probe_timing = TIMING_ZERO, |
| 9107 | .block_erasers = |
| 9108 | { |
| 9109 | { |
| 9110 | .eraseblocks = { {4 * 1024, 512} }, |
| 9111 | .block_erase = spi_block_erase_20, |
| 9112 | }, { |
| 9113 | .eraseblocks = { {32 * 1024, 64} }, |
| 9114 | .block_erase = spi_block_erase_52, |
| 9115 | }, { |
| 9116 | .eraseblocks = { {64 * 1024, 32} }, |
| 9117 | .block_erase = spi_block_erase_d8, |
| 9118 | }, { |
| 9119 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9120 | .block_erase = spi_block_erase_c7, |
| 9121 | } |
| 9122 | }, |
| 9123 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9124 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9125 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9126 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9127 | .voltage = {1700, 2000}, |
| 9128 | }, |
| 9129 | |
| 9130 | { |
| 9131 | .vendor = "Micron/Numonyx/ST", |
| 9132 | .name = "N25Q032..1E", |
| 9133 | .bustype = BUS_SPI, |
| 9134 | .manufacture_id = ST_ID, |
| 9135 | .model_id = ST_N25Q032__1E, |
| 9136 | .total_size = 4096, |
| 9137 | .page_size = 256, |
| 9138 | /* supports SFDP */ |
| 9139 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9140 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9141 | .tested = TEST_UNTESTED, |
| 9142 | .probe = probe_spi_rdid, |
| 9143 | .probe_timing = TIMING_ZERO, |
| 9144 | .block_erasers = |
| 9145 | { |
| 9146 | { |
| 9147 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9148 | .block_erase = spi_block_erase_20, |
| 9149 | }, { |
| 9150 | .eraseblocks = { {64 * 1024, 64} }, |
| 9151 | .block_erase = spi_block_erase_d8, |
| 9152 | }, { |
| 9153 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9154 | .block_erase = spi_block_erase_c7, |
| 9155 | } |
| 9156 | }, |
| 9157 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9158 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9159 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9160 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9161 | .voltage = {1700, 2000}, |
| 9162 | }, |
| 9163 | |
| 9164 | { |
| 9165 | .vendor = "Micron/Numonyx/ST", |
| 9166 | .name = "N25Q032..3E", |
| 9167 | .bustype = BUS_SPI, |
| 9168 | .manufacture_id = ST_ID, |
| 9169 | .model_id = ST_N25Q032__3E, |
| 9170 | .total_size = 4096, |
| 9171 | .page_size = 256, |
| 9172 | /* supports SFDP */ |
| 9173 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9174 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9175 | .tested = TEST_OK_PREW, |
| 9176 | .probe = probe_spi_rdid, |
| 9177 | .probe_timing = TIMING_ZERO, |
| 9178 | .block_erasers = |
| 9179 | { |
| 9180 | { |
| 9181 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9182 | .block_erase = spi_block_erase_20, |
| 9183 | }, { |
| 9184 | .eraseblocks = { {64 * 1024, 64} }, |
| 9185 | .block_erase = spi_block_erase_d8, |
| 9186 | }, { |
| 9187 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9188 | .block_erase = spi_block_erase_c7, |
| 9189 | } |
| 9190 | }, |
| 9191 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9192 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9193 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9194 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9195 | .voltage = {2700, 3600}, |
| 9196 | }, |
| 9197 | |
| 9198 | { |
| 9199 | .vendor = "Micron/Numonyx/ST", |
| 9200 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 9201 | .bustype = BUS_SPI, |
| 9202 | .manufacture_id = ST_ID, |
| 9203 | .model_id = ST_N25Q064__1E, |
| 9204 | .total_size = 8192, |
| 9205 | .page_size = 256, |
| 9206 | /* supports SFDP */ |
| 9207 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9208 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9209 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9210 | .probe = probe_spi_rdid, |
| 9211 | .probe_timing = TIMING_ZERO, |
| 9212 | .block_erasers = |
| 9213 | { |
| 9214 | { |
| 9215 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 9216 | .block_erase = spi_block_erase_20, |
| 9217 | }, { |
| 9218 | .eraseblocks = { {64 * 1024, 128} }, |
| 9219 | .block_erase = spi_block_erase_d8, |
| 9220 | }, { |
| 9221 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9222 | .block_erase = spi_block_erase_c7, |
| 9223 | } |
| 9224 | }, |
| 9225 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9226 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9227 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9228 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9229 | .voltage = {1700, 2000}, |
| 9230 | }, |
| 9231 | |
| 9232 | { |
| 9233 | .vendor = "Micron/Numonyx/ST", |
| 9234 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9235 | .bustype = BUS_SPI, |
| 9236 | .manufacture_id = ST_ID, |
| 9237 | .model_id = ST_N25Q064__3E, |
| 9238 | .total_size = 8192, |
| 9239 | .page_size = 256, |
| 9240 | /* supports SFDP */ |
| 9241 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9242 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9243 | .tested = TEST_OK_PREW, |
| 9244 | .probe = probe_spi_rdid, |
| 9245 | .probe_timing = TIMING_ZERO, |
| 9246 | .block_erasers = |
| 9247 | { |
| 9248 | { |
| 9249 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 9250 | .block_erase = spi_block_erase_20, |
| 9251 | }, { |
| 9252 | .eraseblocks = { {64 * 1024, 128} }, |
| 9253 | .block_erase = spi_block_erase_d8, |
| 9254 | }, { |
| 9255 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9256 | .block_erase = spi_block_erase_c7, |
| 9257 | } |
| 9258 | }, |
| 9259 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9260 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9261 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9262 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9263 | .voltage = {2700, 3600}, |
| 9264 | }, |
| 9265 | |
| 9266 | { |
| 9267 | .vendor = "Micron/Numonyx/ST", |
| 9268 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 9269 | .bustype = BUS_SPI, |
| 9270 | .manufacture_id = ST_ID, |
| 9271 | .model_id = ST_N25Q128__1E, |
| 9272 | .total_size = 16384, |
| 9273 | .page_size = 256, |
| 9274 | /* supports SFDP */ |
| 9275 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9276 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9277 | .tested = TEST_UNTESTED, |
| 9278 | .probe = probe_spi_rdid, |
| 9279 | .probe_timing = TIMING_ZERO, |
| 9280 | .block_erasers = { |
| 9281 | { |
| 9282 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 9283 | .block_erase = spi_block_erase_20, |
| 9284 | }, { |
| 9285 | .eraseblocks = { {64 * 1024, 256} }, |
| 9286 | .block_erase = spi_block_erase_d8, |
| 9287 | }, { |
| 9288 | .eraseblocks = { {16384 * 1024, 1} }, |
| 9289 | .block_erase = spi_block_erase_c7, |
| 9290 | } |
| 9291 | }, |
| 9292 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9293 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9294 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9295 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9296 | .voltage = {1700, 2000}, |
| 9297 | }, |
| 9298 | |
| 9299 | { |
| 9300 | .vendor = "Micron/Numonyx/ST", |
| 9301 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9302 | .bustype = BUS_SPI, |
| 9303 | .manufacture_id = ST_ID, |
| 9304 | .model_id = ST_N25Q128__3E, |
| 9305 | .total_size = 16384, |
| 9306 | .page_size = 256, |
| 9307 | /* supports SFDP */ |
| 9308 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9309 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9310 | .tested = TEST_OK_PREW, |
| 9311 | .probe = probe_spi_rdid, |
| 9312 | .probe_timing = TIMING_ZERO, |
| 9313 | .block_erasers = { |
| 9314 | { |
| 9315 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 9316 | .block_erase = spi_block_erase_20, |
| 9317 | }, { |
| 9318 | .eraseblocks = { {64 * 1024, 256} }, |
| 9319 | .block_erase = spi_block_erase_d8, |
| 9320 | }, { |
| 9321 | .eraseblocks = { {16384 * 1024, 1} }, |
| 9322 | .block_erase = spi_block_erase_c7, |
| 9323 | } |
| 9324 | }, |
| 9325 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9326 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9327 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9328 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9329 | .voltage = {2700, 3600}, |
| 9330 | }, |
| 9331 | |
| 9332 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9333 | .vendor = "MoselVitelic", |
| 9334 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9335 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9336 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9337 | .model_id = MVC_V29C51000B, |
| 9338 | .total_size = 64, |
| 9339 | .page_size = 512, |
| 9340 | .feature_bits = FEATURE_EITHER_RESET, |
| 9341 | .tested = TEST_UNTESTED, |
| 9342 | .probe = probe_jedec, |
| 9343 | .probe_timing = TIMING_ZERO, |
| 9344 | .block_erasers = |
| 9345 | { |
| 9346 | { |
| 9347 | .eraseblocks = { {512, 128} }, |
| 9348 | .block_erase = erase_sector_jedec, |
| 9349 | }, { |
| 9350 | .eraseblocks = { {64 * 1024, 1} }, |
| 9351 | .block_erase = erase_chip_block_jedec, |
| 9352 | }, |
| 9353 | }, |
| 9354 | .write = write_jedec_1, |
| 9355 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9356 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9357 | }, |
| 9358 | |
| 9359 | { |
| 9360 | .vendor = "MoselVitelic", |
| 9361 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9362 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9363 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9364 | .model_id = MVC_V29C51000T, |
| 9365 | .total_size = 64, |
| 9366 | .page_size = 512, |
| 9367 | .feature_bits = FEATURE_EITHER_RESET, |
| 9368 | .tested = TEST_UNTESTED, |
| 9369 | .probe = probe_jedec, |
| 9370 | .probe_timing = TIMING_ZERO, |
| 9371 | .block_erasers = |
| 9372 | { |
| 9373 | { |
| 9374 | .eraseblocks = { {512, 128} }, |
| 9375 | .block_erase = erase_sector_jedec, |
| 9376 | }, { |
| 9377 | .eraseblocks = { {64 * 1024, 1} }, |
| 9378 | .block_erase = erase_chip_block_jedec, |
| 9379 | }, |
| 9380 | }, |
| 9381 | .write = write_jedec_1, |
| 9382 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9383 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9384 | }, |
| 9385 | |
| 9386 | { |
| 9387 | .vendor = "MoselVitelic", |
| 9388 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9389 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9390 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9391 | .model_id = MVC_V29C51400B, |
| 9392 | .total_size = 512, |
| 9393 | .page_size = 1024, |
| 9394 | .feature_bits = FEATURE_EITHER_RESET, |
| 9395 | .tested = TEST_UNTESTED, |
| 9396 | .probe = probe_jedec, |
| 9397 | .probe_timing = TIMING_ZERO, |
| 9398 | .block_erasers = |
| 9399 | { |
| 9400 | { |
| 9401 | .eraseblocks = { {1024, 512} }, |
| 9402 | .block_erase = erase_sector_jedec, |
| 9403 | }, { |
| 9404 | .eraseblocks = { {512 * 1024, 1} }, |
| 9405 | .block_erase = erase_chip_block_jedec, |
| 9406 | }, |
| 9407 | }, |
| 9408 | .write = write_jedec_1, |
| 9409 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9410 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9411 | }, |
| 9412 | |
| 9413 | { |
| 9414 | .vendor = "MoselVitelic", |
| 9415 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9416 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9417 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9418 | .model_id = MVC_V29C51400T, |
| 9419 | .total_size = 512, |
| 9420 | .page_size = 1024, |
| 9421 | .feature_bits = FEATURE_EITHER_RESET, |
| 9422 | .tested = TEST_UNTESTED, |
| 9423 | .probe = probe_jedec, |
| 9424 | .probe_timing = TIMING_ZERO, |
| 9425 | .block_erasers = |
| 9426 | { |
| 9427 | { |
| 9428 | .eraseblocks = { {1024, 512} }, |
| 9429 | .block_erase = erase_sector_jedec, |
| 9430 | }, { |
| 9431 | .eraseblocks = { {512 * 1024, 1} }, |
| 9432 | .block_erase = erase_chip_block_jedec, |
| 9433 | }, |
| 9434 | }, |
| 9435 | .write = write_jedec_1, |
| 9436 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9437 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9438 | }, |
| 9439 | |
| 9440 | { |
| 9441 | .vendor = "MoselVitelic", |
| 9442 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9443 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9444 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9445 | .model_id = MVC_V29LC51000, |
| 9446 | .total_size = 64, |
| 9447 | .page_size = 512, |
| 9448 | .feature_bits = FEATURE_EITHER_RESET, |
| 9449 | .tested = TEST_UNTESTED, |
| 9450 | .probe = probe_jedec, |
| 9451 | .probe_timing = TIMING_ZERO, |
| 9452 | .block_erasers = |
| 9453 | { |
| 9454 | { |
| 9455 | .eraseblocks = { {512, 128} }, |
| 9456 | .block_erase = erase_sector_jedec, |
| 9457 | }, { |
| 9458 | .eraseblocks = { {64 * 1024, 1} }, |
| 9459 | .block_erase = erase_chip_block_jedec, |
| 9460 | }, |
| 9461 | }, |
| 9462 | .write = write_jedec_1, |
| 9463 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9464 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9465 | }, |
| 9466 | |
| 9467 | { |
| 9468 | .vendor = "MoselVitelic", |
| 9469 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9470 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9471 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9472 | .model_id = MVC_V29LC51001, |
| 9473 | .total_size = 128, |
| 9474 | .page_size = 512, |
| 9475 | .feature_bits = FEATURE_EITHER_RESET, |
| 9476 | .tested = TEST_UNTESTED, |
| 9477 | .probe = probe_jedec, |
| 9478 | .probe_timing = TIMING_ZERO, |
| 9479 | .block_erasers = |
| 9480 | { |
| 9481 | { |
| 9482 | .eraseblocks = { {512, 256} }, |
| 9483 | .block_erase = erase_sector_jedec, |
| 9484 | }, { |
| 9485 | .eraseblocks = { {128 * 1024, 1} }, |
| 9486 | .block_erase = erase_chip_block_jedec, |
| 9487 | }, |
| 9488 | }, |
| 9489 | .write = write_jedec_1, |
| 9490 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9491 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9492 | }, |
| 9493 | |
| 9494 | { |
| 9495 | .vendor = "MoselVitelic", |
| 9496 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9497 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9498 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9499 | .model_id = MVC_V29LC51002, |
| 9500 | .total_size = 256, |
| 9501 | .page_size = 512, |
| 9502 | .feature_bits = FEATURE_EITHER_RESET, |
| 9503 | .tested = TEST_UNTESTED, |
| 9504 | .probe = probe_jedec, |
| 9505 | .probe_timing = TIMING_ZERO, |
| 9506 | .block_erasers = |
| 9507 | { |
| 9508 | { |
| 9509 | .eraseblocks = { {512, 512} }, |
| 9510 | .block_erase = erase_sector_jedec, |
| 9511 | }, { |
| 9512 | .eraseblocks = { {256 * 1024, 1} }, |
| 9513 | .block_erase = erase_chip_block_jedec, |
| 9514 | }, |
| 9515 | }, |
| 9516 | .write = write_jedec_1, |
| 9517 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9518 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9519 | }, |
| 9520 | |
| 9521 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9522 | .vendor = "Nantronics", |
| 9523 | .name = "N25S10", |
| 9524 | .bustype = BUS_SPI, |
| 9525 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9526 | .model_id = NANTRONICS_N25S10, |
| 9527 | .total_size = 128, |
| 9528 | .page_size = 256, |
| 9529 | .feature_bits = FEATURE_WRSR_WREN, |
| 9530 | .tested = TEST_UNTESTED, |
| 9531 | .probe = probe_spi_rdid, |
| 9532 | .probe_timing = TIMING_ZERO, |
| 9533 | .block_erasers = |
| 9534 | { |
| 9535 | { |
| 9536 | .eraseblocks = { {4 * 1024, 32} }, |
| 9537 | .block_erase = spi_block_erase_20, |
| 9538 | }, { |
| 9539 | .eraseblocks = { {4 * 1024, 32} }, |
| 9540 | .block_erase = spi_block_erase_d7, |
| 9541 | }, { |
| 9542 | .eraseblocks = { {32 * 1024, 4} }, |
| 9543 | .block_erase = spi_block_erase_52, |
| 9544 | }, { |
| 9545 | .eraseblocks = { {64 * 1024, 2} }, |
| 9546 | .block_erase = spi_block_erase_d8, |
| 9547 | }, { |
| 9548 | .eraseblocks = { {128 * 1024, 1} }, |
| 9549 | .block_erase = spi_block_erase_60, |
| 9550 | }, { |
| 9551 | .eraseblocks = { {128 * 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, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9556 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9557 | .write = spi_chip_write_256, |
| 9558 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9559 | .voltage = {2700, 3600}, |
| 9560 | }, |
| 9561 | |
| 9562 | { |
| 9563 | .vendor = "Nantronics", |
| 9564 | .name = "N25S20", |
| 9565 | .bustype = BUS_SPI, |
| 9566 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9567 | .model_id = NANTRONICS_N25S20, |
| 9568 | .total_size = 256, |
| 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, 64} }, |
| 9578 | .block_erase = spi_block_erase_20, |
| 9579 | }, { |
| 9580 | .eraseblocks = { {4 * 1024, 64} }, |
| 9581 | .block_erase = spi_block_erase_d7, |
| 9582 | }, { |
| 9583 | .eraseblocks = { {32 * 1024, 8} }, |
| 9584 | .block_erase = spi_block_erase_52, |
| 9585 | }, { |
| 9586 | .eraseblocks = { {64 * 1024, 4} }, |
| 9587 | .block_erase = spi_block_erase_d8, |
| 9588 | }, { |
| 9589 | .eraseblocks = { {256 * 1024, 1} }, |
| 9590 | .block_erase = spi_block_erase_60, |
| 9591 | }, { |
| 9592 | .eraseblocks = { {256 * 1024, 1} }, |
| 9593 | .block_erase = spi_block_erase_c7, |
| 9594 | } |
| 9595 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9596 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9597 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9598 | .write = spi_chip_write_256, |
| 9599 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9600 | .voltage = {2700, 3600}, |
| 9601 | }, |
| 9602 | |
| 9603 | { |
| 9604 | .vendor = "Nantronics", |
| 9605 | .name = "N25S40", |
| 9606 | .bustype = BUS_SPI, |
| 9607 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9608 | .model_id = NANTRONICS_N25S40, |
| 9609 | .total_size = 512, |
| 9610 | .page_size = 256, |
| 9611 | .feature_bits = FEATURE_WRSR_WREN, |
| 9612 | .tested = TEST_UNTESTED, |
| 9613 | .probe = probe_spi_rdid, |
| 9614 | .probe_timing = TIMING_ZERO, |
| 9615 | .block_erasers = |
| 9616 | { |
| 9617 | { |
| 9618 | .eraseblocks = { {4 * 1024, 128} }, |
| 9619 | .block_erase = spi_block_erase_20, |
| 9620 | }, { |
| 9621 | .eraseblocks = { {4 * 1024, 128} }, |
| 9622 | .block_erase = spi_block_erase_d7, |
| 9623 | }, { |
| 9624 | .eraseblocks = { {32 * 1024, 16} }, |
| 9625 | .block_erase = spi_block_erase_52, |
| 9626 | }, { |
| 9627 | .eraseblocks = { {64 * 1024, 8} }, |
| 9628 | .block_erase = spi_block_erase_d8, |
| 9629 | }, { |
| 9630 | .eraseblocks = { {512 * 1024, 1} }, |
| 9631 | .block_erase = spi_block_erase_60, |
| 9632 | }, { |
| 9633 | .eraseblocks = { {512 * 1024, 1} }, |
| 9634 | .block_erase = spi_block_erase_c7, |
| 9635 | } |
| 9636 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9637 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9638 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9639 | .write = spi_chip_write_256, |
| 9640 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9641 | .voltage = {2700, 3600}, |
| 9642 | }, |
| 9643 | |
| 9644 | { |
| 9645 | .vendor = "Nantronics", |
| 9646 | .name = "N25S80", |
| 9647 | .bustype = BUS_SPI, |
| 9648 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9649 | .model_id = NANTRONICS_N25S80, |
| 9650 | .total_size = 1024, |
| 9651 | .page_size = 256, |
| 9652 | .feature_bits = FEATURE_WRSR_WREN, |
| 9653 | .tested = TEST_UNTESTED, |
| 9654 | .probe = probe_spi_rdid, |
| 9655 | .probe_timing = TIMING_ZERO, |
| 9656 | .block_erasers = |
| 9657 | { |
| 9658 | { |
| 9659 | .eraseblocks = { {4 * 1024, 256} }, |
| 9660 | .block_erase = spi_block_erase_20, |
| 9661 | }, { |
| 9662 | .eraseblocks = { {32 * 1024, 32} }, |
| 9663 | .block_erase = spi_block_erase_52, |
| 9664 | }, { |
| 9665 | .eraseblocks = { {64 * 1024, 16} }, |
| 9666 | .block_erase = spi_block_erase_d8, |
| 9667 | }, { |
| 9668 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9669 | .block_erase = spi_block_erase_60, |
| 9670 | }, { |
| 9671 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9672 | .block_erase = spi_block_erase_c7, |
| 9673 | } |
| 9674 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9675 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9676 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9677 | .write = spi_chip_write_256, |
| 9678 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9679 | .voltage = {2700, 3600}, |
| 9680 | }, |
| 9681 | |
| 9682 | { |
| 9683 | .vendor = "Nantronics", |
| 9684 | .name = "N25S16", |
| 9685 | .bustype = BUS_SPI, |
| 9686 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9687 | .model_id = NANTRONICS_N25S16, |
| 9688 | .total_size = 2048, |
| 9689 | .page_size = 256, |
| 9690 | .feature_bits = FEATURE_WRSR_WREN, |
| 9691 | .tested = TEST_UNTESTED, |
| 9692 | .probe = probe_spi_rdid, |
| 9693 | .probe_timing = TIMING_ZERO, |
| 9694 | .block_erasers = |
| 9695 | { |
| 9696 | { |
| 9697 | .eraseblocks = { {4 * 1024, 512} }, |
| 9698 | .block_erase = spi_block_erase_20, |
| 9699 | }, { |
| 9700 | .eraseblocks = { {64 * 1024, 32} }, |
| 9701 | .block_erase = spi_block_erase_d8, |
| 9702 | }, { |
| 9703 | .eraseblocks = { {2048 * 1024, 1} }, |
| 9704 | .block_erase = spi_block_erase_60, |
| 9705 | }, { |
| 9706 | .eraseblocks = { {2048 * 1024, 1} }, |
| 9707 | .block_erase = spi_block_erase_c7, |
| 9708 | } |
| 9709 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9710 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9711 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9712 | .write = spi_chip_write_256, |
| 9713 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9714 | .voltage = {2700, 3600}, |
| 9715 | }, |
| 9716 | |
| 9717 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9718 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9719 | .name = "Pm25LD256C", |
| 9720 | .bustype = BUS_SPI, |
| 9721 | .manufacture_id = PMC_ID, |
| 9722 | .model_id = PMC_PM25LD256C, |
| 9723 | .total_size = 32, |
| 9724 | .page_size = 256, |
| 9725 | .feature_bits = FEATURE_WRSR_WREN, |
| 9726 | .tested = TEST_UNTESTED, |
| 9727 | .probe = probe_spi_rdid, |
| 9728 | .probe_timing = TIMING_ZERO, |
| 9729 | .block_erasers = |
| 9730 | { |
| 9731 | { |
| 9732 | .eraseblocks = { {4 * 1024, 8} }, |
| 9733 | .block_erase = spi_block_erase_20, |
| 9734 | }, { |
| 9735 | .eraseblocks = { {4 * 1024, 8} }, |
| 9736 | .block_erase = spi_block_erase_d7, |
| 9737 | }, { |
| 9738 | .eraseblocks = { {32 * 1024, 1} }, |
| 9739 | .block_erase = spi_block_erase_d8, |
| 9740 | }, { |
| 9741 | .eraseblocks = { {32 * 1024, 1} }, |
| 9742 | .block_erase = spi_block_erase_60, |
| 9743 | }, { |
| 9744 | .eraseblocks = { {32 * 1024, 1} }, |
| 9745 | .block_erase = spi_block_erase_c7, |
| 9746 | } |
| 9747 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9748 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9749 | .unlock = spi_disable_blockprotect, |
| 9750 | .write = spi_chip_write_256, |
| 9751 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9752 | .voltage = {2700, 3600}, |
| 9753 | }, |
| 9754 | { |
| 9755 | .vendor = "PMC", |
| 9756 | .name = "Pm25LD512(C)", |
| 9757 | .bustype = BUS_SPI, |
| 9758 | .manufacture_id = PMC_ID, |
| 9759 | .model_id = PMC_PM25LD512, |
| 9760 | .total_size = 64, |
| 9761 | .page_size = 256, |
| 9762 | .feature_bits = FEATURE_WRSR_WREN, |
| 9763 | .tested = TEST_OK_PREW, |
| 9764 | .probe = probe_spi_rdid, |
| 9765 | .probe_timing = TIMING_ZERO, |
| 9766 | .block_erasers = |
| 9767 | { |
| 9768 | { |
| 9769 | .eraseblocks = { {4 * 1024, 16} }, |
| 9770 | .block_erase = spi_block_erase_20, |
| 9771 | }, { |
| 9772 | .eraseblocks = { {4 * 1024, 16} }, |
| 9773 | .block_erase = spi_block_erase_d7, |
| 9774 | }, { |
| 9775 | .eraseblocks = { {32 * 1024, 2} }, |
| 9776 | .block_erase = spi_block_erase_d8, |
| 9777 | }, { |
| 9778 | .eraseblocks = { {64 * 1024, 1} }, |
| 9779 | .block_erase = spi_block_erase_60, |
| 9780 | }, { |
| 9781 | .eraseblocks = { {64 * 1024, 1} }, |
| 9782 | .block_erase = spi_block_erase_c7, |
| 9783 | } |
| 9784 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9785 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9786 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 9787 | .write = spi_chip_write_256, |
| 9788 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9789 | .voltage = {2300, 3600}, |
| 9790 | }, |
| 9791 | |
| 9792 | { |
| 9793 | .vendor = "PMC", |
| 9794 | .name = "Pm25LD010(C)", |
| 9795 | .bustype = BUS_SPI, |
| 9796 | .manufacture_id = PMC_ID, |
| 9797 | .model_id = PMC_PM25LD010, |
| 9798 | .total_size = 128, |
| 9799 | .page_size = 256, |
| 9800 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9801 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9802 | .probe = probe_spi_rdid, |
| 9803 | .probe_timing = TIMING_ZERO, |
| 9804 | .block_erasers = |
| 9805 | { |
| 9806 | { |
| 9807 | .eraseblocks = { {4 * 1024, 32} }, |
| 9808 | .block_erase = spi_block_erase_20, |
| 9809 | }, { |
| 9810 | .eraseblocks = { {4 * 1024, 32} }, |
| 9811 | .block_erase = spi_block_erase_d7, |
| 9812 | }, { |
| 9813 | .eraseblocks = { {32 * 1024, 4} }, |
| 9814 | .block_erase = spi_block_erase_d8, |
| 9815 | }, { |
| 9816 | .eraseblocks = { {128 * 1024, 1} }, |
| 9817 | .block_erase = spi_block_erase_60, |
| 9818 | }, { |
| 9819 | .eraseblocks = { {128 * 1024, 1} }, |
| 9820 | .block_erase = spi_block_erase_c7, |
| 9821 | } |
| 9822 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9823 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9824 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 9825 | .write = spi_chip_write_256, |
| 9826 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9827 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 9828 | }, |
| 9829 | |
| 9830 | { |
| 9831 | .vendor = "PMC", |
| 9832 | .name = "Pm25LD020(C)", |
| 9833 | .bustype = BUS_SPI, |
| 9834 | .manufacture_id = PMC_ID, |
| 9835 | .model_id = PMC_PM25LD020, |
| 9836 | .total_size = 256, |
| 9837 | .page_size = 256, |
| 9838 | .feature_bits = FEATURE_WRSR_WREN, |
| 9839 | .tested = TEST_UNTESTED, |
| 9840 | .probe = probe_spi_rdid, |
| 9841 | .probe_timing = TIMING_ZERO, |
| 9842 | .block_erasers = |
| 9843 | { |
| 9844 | { |
| 9845 | .eraseblocks = { {4 * 1024, 64} }, |
| 9846 | .block_erase = spi_block_erase_20, |
| 9847 | }, { |
| 9848 | .eraseblocks = { {4 * 1024, 64} }, |
| 9849 | .block_erase = spi_block_erase_d7, |
| 9850 | }, { |
| 9851 | .eraseblocks = { {64 * 1024, 4} }, |
| 9852 | .block_erase = spi_block_erase_d8, |
| 9853 | }, { |
| 9854 | .eraseblocks = { {256 * 1024, 1} }, |
| 9855 | .block_erase = spi_block_erase_60, |
| 9856 | }, { |
| 9857 | .eraseblocks = { {256 * 1024, 1} }, |
| 9858 | .block_erase = spi_block_erase_c7, |
| 9859 | } |
| 9860 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9861 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9862 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 9863 | .write = spi_chip_write_256, |
| 9864 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9865 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 9866 | }, |
| 9867 | |
| 9868 | { |
| 9869 | .vendor = "PMC", |
| 9870 | .name = "Pm25LD040(C)", |
| 9871 | .bustype = BUS_SPI, |
| 9872 | .manufacture_id = PMC_ID, |
| 9873 | .model_id = PMC_PM25LV040, |
| 9874 | .total_size = 512, |
| 9875 | .page_size = 256, |
| 9876 | .feature_bits = FEATURE_WRSR_WREN, |
| 9877 | .tested = TEST_UNTESTED, |
| 9878 | .probe = probe_spi_rdid, |
| 9879 | .probe_timing = TIMING_ZERO, |
| 9880 | .block_erasers = |
| 9881 | { |
| 9882 | { |
| 9883 | .eraseblocks = { {4 * 1024, 128} }, |
| 9884 | .block_erase = spi_block_erase_20, |
| 9885 | }, { |
| 9886 | .eraseblocks = { {4 * 1024, 128} }, |
| 9887 | .block_erase = spi_block_erase_d7, |
| 9888 | }, { |
| 9889 | .eraseblocks = { {64 * 1024, 8} }, |
| 9890 | .block_erase = spi_block_erase_d8, |
| 9891 | }, { |
| 9892 | .eraseblocks = { {512 * 1024, 1} }, |
| 9893 | .block_erase = spi_block_erase_60, |
| 9894 | }, { |
| 9895 | .eraseblocks = { {512 * 1024, 1} }, |
| 9896 | .block_erase = spi_block_erase_c7, |
| 9897 | } |
| 9898 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9899 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9900 | .unlock = spi_disable_blockprotect, |
| 9901 | .write = spi_chip_write_256, |
| 9902 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9903 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 9904 | }, |
| 9905 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 9906 | { |
| 9907 | .vendor = "PMC", |
| 9908 | .name = "Pm25LQ020", |
| 9909 | .bustype = BUS_SPI, |
| 9910 | .manufacture_id = PMC_ID, |
| 9911 | .model_id = PMC_PM25LQ020, |
| 9912 | .total_size = 256, |
| 9913 | .page_size = 256, |
| 9914 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 9915 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9916 | .tested = TEST_UNTESTED, |
| 9917 | .probe = probe_spi_rdid, |
| 9918 | .probe_timing = TIMING_ZERO, |
| 9919 | .block_erasers = |
| 9920 | { |
| 9921 | { |
| 9922 | .eraseblocks = { {4 * 1024, 64} }, |
| 9923 | .block_erase = spi_block_erase_20, |
| 9924 | }, { |
| 9925 | .eraseblocks = { {4 * 1024, 64} }, |
| 9926 | .block_erase = spi_block_erase_d7, |
| 9927 | }, { |
| 9928 | .eraseblocks = { {64 * 1024, 4} }, |
| 9929 | .block_erase = spi_block_erase_d8, |
| 9930 | }, { |
| 9931 | .eraseblocks = { {256 * 1024, 1} }, |
| 9932 | .block_erase = spi_block_erase_60, |
| 9933 | }, { |
| 9934 | .eraseblocks = { {256 * 1024, 1} }, |
| 9935 | .block_erase = spi_block_erase_c7, |
| 9936 | } |
| 9937 | }, |
| 9938 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9939 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9940 | .write = spi_chip_write_256, |
| 9941 | .read = spi_chip_read, |
| 9942 | .voltage = {2300, 3600}, |
| 9943 | }, |
| 9944 | |
| 9945 | { |
| 9946 | .vendor = "PMC", |
| 9947 | .name = "Pm25LQ040", |
| 9948 | .bustype = BUS_SPI, |
| 9949 | .manufacture_id = PMC_ID, |
| 9950 | .model_id = PMC_PM25LQ040, |
| 9951 | .total_size = 512, |
| 9952 | .page_size = 256, |
| 9953 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 9954 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9955 | .tested = TEST_UNTESTED, |
| 9956 | .probe = probe_spi_rdid, |
| 9957 | .probe_timing = TIMING_ZERO, |
| 9958 | .block_erasers = |
| 9959 | { |
| 9960 | { |
| 9961 | .eraseblocks = { {4 * 1024, 128} }, |
| 9962 | .block_erase = spi_block_erase_20, |
| 9963 | }, { |
| 9964 | .eraseblocks = { {4 * 1024, 128} }, |
| 9965 | .block_erase = spi_block_erase_d7, |
| 9966 | }, { |
| 9967 | .eraseblocks = { {64 * 1024, 8} }, |
| 9968 | .block_erase = spi_block_erase_d8, |
| 9969 | }, { |
| 9970 | .eraseblocks = { {512 * 1024, 1} }, |
| 9971 | .block_erase = spi_block_erase_60, |
| 9972 | }, { |
| 9973 | .eraseblocks = { {512 * 1024, 1} }, |
| 9974 | .block_erase = spi_block_erase_c7, |
| 9975 | } |
| 9976 | }, |
| 9977 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9978 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9979 | .write = spi_chip_write_256, |
| 9980 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9981 | .voltage = {2300, 3600}, |
| 9982 | }, |
| 9983 | |
| 9984 | { |
| 9985 | .vendor = "PMC", |
| 9986 | .name = "Pm25LQ080", |
| 9987 | .bustype = BUS_SPI, |
| 9988 | .manufacture_id = PMC_ID, |
| 9989 | .model_id = PMC_PM25LQ080, |
| 9990 | .total_size = 1024, |
| 9991 | .page_size = 256, |
| 9992 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 9993 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9994 | .tested = TEST_UNTESTED, |
| 9995 | .probe = probe_spi_rdid, |
| 9996 | .probe_timing = TIMING_ZERO, |
| 9997 | .block_erasers = |
| 9998 | { |
| 9999 | { |
| 10000 | .eraseblocks = { {4 * 1024, 256} }, |
| 10001 | .block_erase = spi_block_erase_20, |
| 10002 | }, { |
| 10003 | .eraseblocks = { {4 * 1024, 256} }, |
| 10004 | .block_erase = spi_block_erase_d7, |
| 10005 | }, { |
| 10006 | .eraseblocks = { {64 * 1024, 16} }, |
| 10007 | .block_erase = spi_block_erase_d8, |
| 10008 | }, { |
| 10009 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10010 | .block_erase = spi_block_erase_60, |
| 10011 | }, { |
| 10012 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10013 | .block_erase = spi_block_erase_c7, |
| 10014 | } |
| 10015 | }, |
| 10016 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10017 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10018 | .write = spi_chip_write_256, |
| 10019 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10020 | .voltage = {2300, 3600}, |
| 10021 | }, |
| 10022 | |
| 10023 | { |
| 10024 | .vendor = "PMC", |
| 10025 | .name = "Pm25LQ016", |
| 10026 | .bustype = BUS_SPI, |
| 10027 | .manufacture_id = PMC_ID, |
| 10028 | .model_id = PMC_PM25LQ016, |
| 10029 | .total_size = 2048, |
| 10030 | .page_size = 256, |
| 10031 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 10032 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10033 | .tested = TEST_UNTESTED, |
| 10034 | .probe = probe_spi_rdid, |
| 10035 | .probe_timing = TIMING_ZERO, |
| 10036 | .block_erasers = |
| 10037 | { |
| 10038 | { |
| 10039 | .eraseblocks = { {4 * 1024, 512} }, |
| 10040 | .block_erase = spi_block_erase_20, |
| 10041 | }, { |
| 10042 | .eraseblocks = { {4 * 1024, 512} }, |
| 10043 | .block_erase = spi_block_erase_d7, |
| 10044 | }, { |
| 10045 | .eraseblocks = { {64 * 1024, 32} }, |
| 10046 | .block_erase = spi_block_erase_d8, |
| 10047 | }, { |
| 10048 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10049 | .block_erase = spi_block_erase_60, |
| 10050 | }, { |
| 10051 | .eraseblocks = { {2048 * 1024, 1} }, |
| 10052 | .block_erase = spi_block_erase_c7, |
| 10053 | } |
| 10054 | }, |
| 10055 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10056 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10057 | .write = spi_chip_write_256, |
| 10058 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10059 | .voltage = {2300, 3600}, |
| 10060 | }, |
| 10061 | |
| 10062 | { |
| 10063 | .vendor = "PMC", |
| 10064 | .name = "Pm25LQ032C", |
| 10065 | .bustype = BUS_SPI, |
| 10066 | .manufacture_id = PMC_ID, |
| 10067 | .model_id = PMC_PM25LQ032C, |
| 10068 | .total_size = 4096, |
| 10069 | .page_size = 256, |
| 10070 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 10071 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10072 | .tested = TEST_OK_PR, |
| 10073 | .probe = probe_spi_rdid, |
| 10074 | .probe_timing = TIMING_ZERO, |
| 10075 | .block_erasers = |
| 10076 | { |
| 10077 | { |
| 10078 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10079 | .block_erase = spi_block_erase_20, |
| 10080 | }, { |
| 10081 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10082 | .block_erase = spi_block_erase_d7, |
| 10083 | }, { |
| 10084 | .eraseblocks = { {64 * 1024, 64} }, |
| 10085 | .block_erase = spi_block_erase_d8, |
| 10086 | }, { |
| 10087 | .eraseblocks = { {4096 * 1024, 1} }, |
| 10088 | .block_erase = spi_block_erase_60, |
| 10089 | }, { |
| 10090 | .eraseblocks = { {4096 * 1024, 1} }, |
| 10091 | .block_erase = spi_block_erase_c7, |
| 10092 | } |
| 10093 | }, |
| 10094 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10095 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10096 | .write = spi_chip_write_256, |
| 10097 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10098 | .voltage = {2700, 3600}, |
| 10099 | }, |
| 10100 | |
| 10101 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 10102 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10103 | .name = "Pm25LV512(A)", |
| 10104 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10105 | .manufacture_id = PMC_ID_NOPREFIX, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10106 | .model_id = PMC_PM25LV512, |
| 10107 | .total_size = 64, |
| 10108 | .page_size = 256, |
| 10109 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10110 | .tested = TEST_OK_PREW, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10111 | .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] | 10112 | .probe_timing = TIMING_ZERO, |
| 10113 | .block_erasers = |
| 10114 | { |
| 10115 | { |
| 10116 | .eraseblocks = { {4 * 1024, 16} }, |
| 10117 | .block_erase = spi_block_erase_d7, |
| 10118 | }, { |
| 10119 | .eraseblocks = { {32 * 1024, 2} }, |
| 10120 | .block_erase = spi_block_erase_d8, |
| 10121 | }, { |
| 10122 | .eraseblocks = { {64 * 1024, 1} }, |
| 10123 | .block_erase = spi_block_erase_c7, |
| 10124 | } |
| 10125 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10126 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10127 | .unlock = spi_disable_blockprotect, |
| 10128 | .write = spi_chip_write_256, |
| 10129 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10130 | .voltage = {2700, 3600}, |
| 10131 | }, |
| 10132 | |
| 10133 | { |
| 10134 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10135 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10136 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10137 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10138 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10139 | .total_size = 128, |
| 10140 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10141 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 10142 | .tested = TEST_OK_PREW, |
| 10143 | .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] | 10144 | .probe_timing = TIMING_ZERO, |
| 10145 | .block_erasers = |
| 10146 | { |
| 10147 | { |
| 10148 | .eraseblocks = { {4 * 1024, 32} }, |
| 10149 | .block_erase = spi_block_erase_d7, |
| 10150 | }, { |
| 10151 | .eraseblocks = { {32 * 1024, 4} }, |
| 10152 | .block_erase = spi_block_erase_d8, |
| 10153 | }, { |
| 10154 | .eraseblocks = { {128 * 1024, 1} }, |
| 10155 | .block_erase = spi_block_erase_c7, |
| 10156 | } |
| 10157 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10158 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10159 | .unlock = spi_disable_blockprotect, |
| 10160 | .write = spi_chip_write_256, |
| 10161 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10162 | .voltage = {2700, 3600}, |
| 10163 | }, |
| 10164 | |
| 10165 | { |
| 10166 | .vendor = "PMC", |
| 10167 | .name = "Pm25LV010A", |
| 10168 | .bustype = BUS_SPI, |
| 10169 | .manufacture_id = PMC_ID, |
| 10170 | .model_id = PMC_PM25LV010, |
| 10171 | .total_size = 128, |
| 10172 | .page_size = 256, |
| 10173 | .feature_bits = FEATURE_WRSR_WREN, |
| 10174 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10175 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10176 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10177 | .block_erasers = |
| 10178 | { |
| 10179 | { |
| 10180 | .eraseblocks = { {4 * 1024, 32} }, |
| 10181 | .block_erase = spi_block_erase_d7, |
| 10182 | }, { |
| 10183 | .eraseblocks = { {32 * 1024, 4} }, |
| 10184 | .block_erase = spi_block_erase_d8, |
| 10185 | }, { |
| 10186 | .eraseblocks = { {128 * 1024, 1} }, |
| 10187 | .block_erase = spi_block_erase_c7, |
| 10188 | } |
| 10189 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10190 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10191 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10192 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10193 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10194 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10195 | }, |
| 10196 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10197 | { |
| 10198 | .vendor = "PMC", |
| 10199 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10200 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10201 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10202 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10203 | .total_size = 256, |
| 10204 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10205 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10206 | .tested = TEST_UNTESTED, |
| 10207 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10208 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10209 | .block_erasers = |
| 10210 | { |
| 10211 | { |
| 10212 | .eraseblocks = { {4 * 1024, 64} }, |
| 10213 | .block_erase = spi_block_erase_d7, |
| 10214 | }, { |
| 10215 | .eraseblocks = { {64 * 1024, 4} }, |
| 10216 | .block_erase = spi_block_erase_d8, |
| 10217 | }, { |
| 10218 | .eraseblocks = { {256 * 1024, 1} }, |
| 10219 | .block_erase = spi_block_erase_c7, |
| 10220 | } |
| 10221 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10222 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10223 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10224 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10225 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10226 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10227 | }, |
| 10228 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10229 | { |
| 10230 | .vendor = "PMC", |
| 10231 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10232 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10233 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10234 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10235 | .total_size = 512, |
| 10236 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10237 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 10238 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10239 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10240 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10241 | .block_erasers = |
| 10242 | { |
| 10243 | { |
| 10244 | .eraseblocks = { {4 * 1024, 128} }, |
| 10245 | .block_erase = spi_block_erase_d7, |
| 10246 | }, { |
| 10247 | .eraseblocks = { {64 * 1024, 8} }, |
| 10248 | .block_erase = spi_block_erase_d8, |
| 10249 | }, { |
| 10250 | .eraseblocks = { {512 * 1024, 1} }, |
| 10251 | .block_erase = spi_block_erase_c7, |
| 10252 | } |
| 10253 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10254 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10255 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10256 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10257 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10258 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10259 | }, |
| 10260 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10261 | { |
| 10262 | .vendor = "PMC", |
| 10263 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10264 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10265 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10266 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10267 | .total_size = 1024, |
| 10268 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10269 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10270 | .tested = TEST_UNTESTED, |
| 10271 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10272 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10273 | .block_erasers = |
| 10274 | { |
| 10275 | { |
| 10276 | .eraseblocks = { {4 * 1024, 256} }, |
| 10277 | .block_erase = spi_block_erase_d7, |
| 10278 | }, { |
| 10279 | .eraseblocks = { {4 * 1024, 256} }, |
| 10280 | .block_erase = spi_block_erase_20, |
| 10281 | }, { |
| 10282 | .eraseblocks = { {64 * 1024, 16} }, |
| 10283 | .block_erase = spi_block_erase_d8, |
| 10284 | }, { |
| 10285 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10286 | .block_erase = spi_block_erase_60, |
| 10287 | }, { |
| 10288 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10289 | .block_erase = spi_block_erase_c7, |
| 10290 | } |
| 10291 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10292 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10293 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10294 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10295 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10296 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10297 | }, |
| 10298 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10299 | { |
| 10300 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10301 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10302 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10303 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10304 | .model_id = PMC_PM25LV016B, |
| 10305 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10306 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10307 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10308 | .tested = TEST_UNTESTED, |
| 10309 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10310 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10311 | .block_erasers = |
| 10312 | { |
| 10313 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10314 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10315 | .block_erase = spi_block_erase_d7, |
| 10316 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10317 | .eraseblocks = { {4 * 1024, 512} }, |
| 10318 | .block_erase = spi_block_erase_20, |
| 10319 | }, { |
| 10320 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10321 | .block_erase = spi_block_erase_d8, |
| 10322 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10323 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10324 | .block_erase = spi_block_erase_60, |
| 10325 | }, { |
| 10326 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10327 | .block_erase = spi_block_erase_c7, |
| 10328 | } |
| 10329 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10330 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10331 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10332 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 10333 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10334 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10335 | }, |
| 10336 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10337 | { |
| 10338 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10339 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10340 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10341 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10342 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10343 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10344 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10345 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 10346 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10347 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 10348 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10349 | .block_erasers = |
| 10350 | { |
| 10351 | { |
| 10352 | .eraseblocks = { |
| 10353 | {128 * 1024, 1}, |
| 10354 | {96 * 1024, 1}, |
| 10355 | {8 * 1024, 2}, |
| 10356 | {16 * 1024, 1}, |
| 10357 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10358 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10359 | }, { |
| 10360 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10361 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10362 | }, |
| 10363 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10364 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10365 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10366 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10367 | }, |
| 10368 | |
| 10369 | { |
| 10370 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10371 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10372 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10373 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10374 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10375 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10376 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10377 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10378 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10379 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10380 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10381 | .block_erasers = |
| 10382 | { |
| 10383 | { |
| 10384 | .eraseblocks = { |
| 10385 | {16 * 1024, 1}, |
| 10386 | {8 * 1024, 2}, |
| 10387 | {96 * 1024, 1}, |
| 10388 | {128 * 1024, 1}, |
| 10389 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10390 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10391 | }, { |
| 10392 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10393 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10394 | }, |
| 10395 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10396 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10397 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10398 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 10399 | }, |
| 10400 | |
| 10401 | { |
| 10402 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 10403 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10404 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 10405 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10406 | .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] | 10407 | .total_size = 128, |
| 10408 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10409 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10410 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 10411 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10412 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10413 | .block_erasers = |
| 10414 | { |
| 10415 | { |
| 10416 | .eraseblocks = { {4 * 1024, 32} }, |
| 10417 | .block_erase = erase_sector_jedec, |
| 10418 | }, { |
| 10419 | .eraseblocks = { {64 * 1024, 2} }, |
| 10420 | .block_erase = erase_block_jedec, |
| 10421 | }, { |
| 10422 | .eraseblocks = { {128 * 1024, 1} }, |
| 10423 | .block_erase = erase_chip_block_jedec, |
| 10424 | } |
| 10425 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10426 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 10427 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10428 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 10429 | }, |
| 10430 | |
| 10431 | { |
| 10432 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10433 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10434 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10435 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10436 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10437 | .total_size = 256, |
| 10438 | .page_size = 4096, |
| 10439 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 10440 | .tested = TEST_UNTESTED, |
| 10441 | .probe = probe_jedec, |
| 10442 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10443 | .block_erasers = |
| 10444 | { |
| 10445 | { |
| 10446 | .eraseblocks = { {4 * 1024, 64} }, |
| 10447 | .block_erase = erase_sector_jedec, |
| 10448 | }, { |
| 10449 | .eraseblocks = { {64 * 1024, 4} }, |
| 10450 | .block_erase = erase_block_jedec, |
| 10451 | }, { |
| 10452 | .eraseblocks = { {256 * 1024, 1} }, |
| 10453 | .block_erase = erase_chip_block_jedec, |
| 10454 | } |
| 10455 | }, |
| 10456 | .write = write_jedec_1, |
| 10457 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10458 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10459 | }, |
| 10460 | |
| 10461 | { |
| 10462 | .vendor = "PMC", |
| 10463 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10464 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10465 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10466 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10467 | .total_size = 512, |
| 10468 | .page_size = 4096, |
| 10469 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10470 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10471 | .probe = probe_jedec, |
| 10472 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10473 | .block_erasers = |
| 10474 | { |
| 10475 | { |
| 10476 | .eraseblocks = { {4 * 1024, 128} }, |
| 10477 | .block_erase = erase_sector_jedec, |
| 10478 | }, { |
| 10479 | .eraseblocks = { {64 * 1024, 8} }, |
| 10480 | .block_erase = erase_block_jedec, |
| 10481 | }, { |
| 10482 | .eraseblocks = { {512 * 1024, 1} }, |
| 10483 | .block_erase = erase_chip_block_jedec, |
| 10484 | } |
| 10485 | }, |
| 10486 | .write = write_jedec_1, |
| 10487 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10488 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10489 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 10490 | |
| 10491 | { |
| 10492 | .vendor = "PMC", |
| 10493 | .name = "Pm39LV512", |
| 10494 | .bustype = BUS_PARALLEL, |
| 10495 | .manufacture_id = PMC_ID_NOPREFIX, |
| 10496 | .model_id = PMC_PM39LV512, |
| 10497 | .total_size = 64, |
| 10498 | .page_size = 4096, |
| 10499 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 10500 | .tested = TEST_OK_PREW, |
| 10501 | .probe = probe_jedec, |
| 10502 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10503 | .block_erasers = |
| 10504 | { |
| 10505 | { |
| 10506 | .eraseblocks = { {4 * 1024, 16} }, |
| 10507 | .block_erase = erase_sector_jedec, |
| 10508 | }, { |
| 10509 | .eraseblocks = { {64 * 1024, 1} }, |
| 10510 | .block_erase = erase_block_jedec, |
| 10511 | }, { |
| 10512 | .eraseblocks = { {64 * 1024, 1} }, |
| 10513 | .block_erase = erase_chip_block_jedec, |
| 10514 | } |
| 10515 | }, |
| 10516 | .write = write_jedec_1, |
| 10517 | .read = read_memmapped, |
| 10518 | .voltage = {2700, 3600}, |
| 10519 | }, |
| 10520 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10521 | { |
| 10522 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10523 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10524 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10525 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10526 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10527 | .total_size = 256, |
| 10528 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10529 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10530 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 10531 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10532 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10533 | .block_erasers = |
| 10534 | { |
| 10535 | { |
| 10536 | .eraseblocks = { {4 * 1024, 64} }, |
| 10537 | .block_erase = erase_sector_jedec, |
| 10538 | }, { |
| 10539 | .eraseblocks = { {16 * 1024, 16} }, |
| 10540 | .block_erase = erase_block_jedec, |
| 10541 | }, { |
| 10542 | .eraseblocks = { {256 * 1024, 1} }, |
| 10543 | .block_erase = erase_chip_block_jedec, |
| 10544 | } |
| 10545 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10546 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 10547 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10548 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10549 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10550 | }, |
| 10551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10552 | { |
| 10553 | .vendor = "PMC", |
| 10554 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10555 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10556 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10557 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10558 | .total_size = 512, |
| 10559 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10560 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 10561 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 10562 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 10563 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10564 | .block_erasers = |
| 10565 | { |
| 10566 | { |
| 10567 | .eraseblocks = { {4 * 1024, 128} }, |
| 10568 | .block_erase = erase_sector_jedec, |
| 10569 | }, { |
| 10570 | .eraseblocks = { {64 * 1024, 8} }, |
| 10571 | .block_erase = erase_block_jedec, |
| 10572 | }, { |
| 10573 | .eraseblocks = { {512 * 1024, 1} }, |
| 10574 | .block_erase = erase_chip_block_jedec, |
| 10575 | } |
| 10576 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10577 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 10578 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10579 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10580 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10581 | }, |
| 10582 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10583 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10584 | .vendor = "Sanyo", |
Stefan Tauner | a60d408 | 2014-06-04 16:17:03 +0000 | [diff] [blame] | 10585 | .name = "LE25FW106", |
| 10586 | .bustype = BUS_SPI, |
| 10587 | .manufacture_id = SANYO_ID, |
| 10588 | .model_id = SANYO_LE25FW106, |
| 10589 | .total_size = 128, |
| 10590 | .page_size = 256, |
| 10591 | .feature_bits = FEATURE_WRSR_WREN, |
| 10592 | .tested = TEST_OK_PREW, |
| 10593 | .probe = probe_spi_res2, |
| 10594 | .probe_timing = TIMING_ZERO, |
| 10595 | .block_erasers = { |
| 10596 | { |
| 10597 | .eraseblocks = { {2 * 1024, 64} }, |
| 10598 | .block_erase = spi_block_erase_d7, |
| 10599 | }, { |
| 10600 | .eraseblocks = { {32 * 1024, 4} }, |
| 10601 | .block_erase = spi_block_erase_d8, |
| 10602 | }, { |
| 10603 | .eraseblocks = { {128 * 1024, 1} }, |
| 10604 | .block_erase = spi_block_erase_c7, |
| 10605 | } |
| 10606 | }, |
| 10607 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 10608 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 10609 | .write = spi_chip_write_256, |
| 10610 | .read = spi_chip_read, |
| 10611 | .voltage = {2700, 3600}, |
| 10612 | }, |
| 10613 | |
| 10614 | { |
| 10615 | .vendor = "Sanyo", |
Stefan Tauner | 33491b8 | 2014-05-18 21:36:04 +0000 | [diff] [blame] | 10616 | .name = "LE25FW406A", |
| 10617 | .bustype = BUS_SPI, |
| 10618 | .manufacture_id = SANYO_ID, |
| 10619 | .model_id = SANYO_LE25FW406A, |
| 10620 | .total_size = 512, |
| 10621 | .page_size = 256, |
| 10622 | .feature_bits = FEATURE_WRSR_WREN, |
| 10623 | .tested = TEST_OK_PREW, |
| 10624 | .probe = probe_spi_res2, |
| 10625 | .probe_timing = TIMING_ZERO, |
| 10626 | .block_erasers = { |
| 10627 | { |
| 10628 | .eraseblocks = { {4 * 1024, 128} }, |
| 10629 | .block_erase = spi_block_erase_d7, |
| 10630 | }, { |
| 10631 | .eraseblocks = { {64 * 1024, 8} }, |
| 10632 | .block_erase = spi_block_erase_d8, |
| 10633 | }, { |
| 10634 | .eraseblocks = { {512 * 1024, 1} }, |
| 10635 | .block_erase = spi_block_erase_c7, |
| 10636 | } |
| 10637 | }, |
| 10638 | .printlock = spi_prettyprint_status_register_plain, |
| 10639 | .unlock = spi_disable_blockprotect, |
| 10640 | .write = spi_chip_write_256, |
| 10641 | .read = spi_chip_read, |
| 10642 | .voltage = {2700, 3600}, |
| 10643 | }, |
| 10644 | |
| 10645 | { |
| 10646 | .vendor = "Sanyo", |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 10647 | .name = "LE25FU406B", |
| 10648 | .bustype = BUS_SPI, |
| 10649 | .manufacture_id = SANYO_ID, |
| 10650 | .model_id = SANYO_LE25FU406B, |
| 10651 | .total_size = 512, |
| 10652 | .page_size = 256, |
| 10653 | .feature_bits = FEATURE_WRSR_WREN, |
| 10654 | .tested = TEST_OK_PREW, |
| 10655 | .probe = probe_spi_res2, |
| 10656 | .probe_timing = TIMING_ZERO, |
| 10657 | .block_erasers = { |
| 10658 | { |
| 10659 | .eraseblocks = { {4 * 1024, 128} }, |
| 10660 | .block_erase = spi_block_erase_d7, |
| 10661 | }, { |
| 10662 | .eraseblocks = { {64 * 1024, 8} }, |
| 10663 | .block_erase = spi_block_erase_d8, |
| 10664 | }, { |
| 10665 | .eraseblocks = { {512 * 1024, 1} }, |
| 10666 | .block_erase = spi_block_erase_c7, |
| 10667 | } |
| 10668 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10669 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 10670 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 10671 | .write = spi_chip_write_256, |
| 10672 | .read = spi_chip_read, |
| 10673 | .voltage = {2300, 3600}, |
| 10674 | }, |
| 10675 | |
| 10676 | { |
| 10677 | .vendor = "Sanyo", |
Stefan Tauner | 2f055df | 2015-12-25 22:13:15 +0000 | [diff] [blame] | 10678 | .name = "LE25FU406C/LE25U40CMC", |
| 10679 | .bustype = BUS_SPI, |
| 10680 | .manufacture_id = SANYO_ID, |
| 10681 | .model_id = SANYO_LE25FU406C, |
| 10682 | .total_size = 512, |
| 10683 | .page_size = 256, |
| 10684 | .feature_bits = FEATURE_WRSR_WREN, |
| 10685 | .tested = TEST_OK_PR, |
| 10686 | .probe = probe_spi_rdid, |
| 10687 | .probe_timing = TIMING_ZERO, |
| 10688 | .block_erasers = { |
| 10689 | { |
| 10690 | .eraseblocks = { {4 * 1024, 128} }, |
| 10691 | .block_erase = spi_block_erase_20, |
| 10692 | }, { |
| 10693 | .eraseblocks = { {4 * 1024, 128} }, |
| 10694 | .block_erase = spi_block_erase_d7, |
| 10695 | }, { |
| 10696 | .eraseblocks = { {64 * 1024, 8} }, |
| 10697 | .block_erase = spi_block_erase_d8, |
| 10698 | }, { |
| 10699 | .eraseblocks = { {512 * 1024, 1} }, |
| 10700 | .block_erase = spi_block_erase_60, |
| 10701 | }, { |
| 10702 | .eraseblocks = { {512 * 1024, 1} }, |
| 10703 | .block_erase = spi_block_erase_c7, |
| 10704 | } |
| 10705 | }, |
| 10706 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 10707 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 10708 | .write = spi_chip_write_256, |
| 10709 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 10710 | .voltage = {2300, 3600}, |
| 10711 | }, |
| 10712 | |
| 10713 | { |
| 10714 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10715 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10716 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10717 | .manufacture_id = SANYO_ID, |
| 10718 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10719 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10720 | .page_size = 256, |
| 10721 | .tested = TEST_UNTESTED, |
| 10722 | .probe = probe_spi_rdid, |
| 10723 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10724 | .block_erasers = |
| 10725 | { |
| 10726 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10727 | .eraseblocks = { {256, 1024} }, |
| 10728 | .block_erase = spi_block_erase_db, |
| 10729 | }, { |
| 10730 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10731 | .block_erase = spi_block_erase_d8, |
| 10732 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10733 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10734 | .block_erase = spi_block_erase_c7, |
| 10735 | } |
| 10736 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10737 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10738 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10739 | .write = spi_chip_write_256, |
| 10740 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10741 | .voltage = {2700, 3600}, |
| 10742 | }, |
| 10743 | |
| 10744 | { |
| 10745 | .vendor = "Sanyo", |
| 10746 | .name = "LE25FW403A", |
| 10747 | .bustype = BUS_SPI, |
| 10748 | .manufacture_id = SANYO_ID, |
| 10749 | .model_id = SANYO_LE25FW403A, |
| 10750 | .total_size = 512, |
| 10751 | .page_size = 256, |
| 10752 | .tested = TEST_UNTESTED, |
| 10753 | .probe = probe_spi_rdid, |
| 10754 | .probe_timing = TIMING_ZERO, |
| 10755 | .block_erasers = { |
| 10756 | { |
| 10757 | .eraseblocks = { {256, 2 * 1024} }, |
| 10758 | .block_erase = spi_block_erase_db, |
| 10759 | }, { |
| 10760 | .eraseblocks = { {64 * 1024, 8} }, |
| 10761 | .block_erase = spi_block_erase_d8, |
| 10762 | }, { |
| 10763 | .eraseblocks = { {512 * 1024, 1} }, |
| 10764 | .block_erase = spi_block_erase_c7, |
| 10765 | } |
| 10766 | }, |
| 10767 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10768 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10769 | .write = spi_chip_write_256, |
| 10770 | .read = spi_chip_read, |
| 10771 | .voltage = {2700, 3600}, |
| 10772 | }, |
| 10773 | |
| 10774 | { |
| 10775 | .vendor = "Sanyo", |
| 10776 | .name = "LE25FW418A", |
| 10777 | .bustype = BUS_SPI, |
| 10778 | .manufacture_id = SANYO_ID, |
| 10779 | .model_id = SANYO_LE25FW418A, |
| 10780 | .total_size = 512, |
| 10781 | .page_size = 256, |
| 10782 | .feature_bits = FEATURE_WRSR_WREN, |
| 10783 | .tested = TEST_UNTESTED, |
| 10784 | .probe = probe_spi_res2, |
| 10785 | .probe_timing = TIMING_ZERO, |
| 10786 | .block_erasers = { |
| 10787 | { |
| 10788 | .eraseblocks = { {4 * 1024, 128} }, |
| 10789 | .block_erase = spi_block_erase_d7, |
| 10790 | }, { |
| 10791 | .eraseblocks = { {64 * 1024, 8} }, |
| 10792 | .block_erase = spi_block_erase_d8, |
| 10793 | }, { |
| 10794 | .eraseblocks = { {512 * 1024, 1} }, |
| 10795 | .block_erase = spi_block_erase_c7, |
| 10796 | } |
| 10797 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10798 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10799 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 10800 | .write = spi_chip_write_256, |
| 10801 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 10802 | .voltage = {2700, 3600}, |
| 10803 | }, |
| 10804 | |
| 10805 | { |
| 10806 | .vendor = "Sanyo", |
| 10807 | .name = "LE25FW806", |
| 10808 | .bustype = BUS_SPI, |
| 10809 | .manufacture_id = SANYO_ID, |
| 10810 | .model_id = SANYO_LE25FW806, |
| 10811 | .total_size = 1024, |
| 10812 | .page_size = 256, |
| 10813 | .feature_bits = FEATURE_WRSR_WREN, |
| 10814 | .tested = TEST_UNTESTED, |
| 10815 | .probe = probe_spi_res2, |
| 10816 | .probe_timing = TIMING_ZERO, |
| 10817 | .block_erasers = { |
| 10818 | { |
| 10819 | .eraseblocks = { {4 * 1024, 256} }, |
| 10820 | .block_erase = spi_block_erase_20, |
| 10821 | }, { |
| 10822 | .eraseblocks = { {4 * 1024, 256} }, |
| 10823 | .block_erase = spi_block_erase_d7, |
| 10824 | }, { |
| 10825 | .eraseblocks = { {64 * 1024, 16} }, |
| 10826 | .block_erase = spi_block_erase_d8, |
| 10827 | }, { |
| 10828 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10829 | .block_erase = spi_block_erase_c7, |
| 10830 | } |
| 10831 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10832 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10833 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 10834 | .write = spi_chip_write_256, |
| 10835 | .read = spi_chip_read, |
| 10836 | .voltage = {2700, 3600}, |
| 10837 | }, |
| 10838 | |
| 10839 | { |
| 10840 | .vendor = "Sanyo", |
| 10841 | .name = "LE25FW808", |
| 10842 | .bustype = BUS_SPI, |
| 10843 | .manufacture_id = SANYO_ID, |
| 10844 | .model_id = SANYO_LE25FW808, |
| 10845 | .total_size = 1024, |
| 10846 | .page_size = 256, |
| 10847 | .feature_bits = FEATURE_WRSR_WREN, |
| 10848 | .tested = TEST_UNTESTED, |
| 10849 | .probe = probe_spi_res2, |
| 10850 | .probe_timing = TIMING_ZERO, |
| 10851 | .block_erasers = { |
| 10852 | { |
| 10853 | .eraseblocks = { {8 * 1024, 128} }, |
| 10854 | .block_erase = spi_block_erase_d7, |
| 10855 | }, { |
| 10856 | .eraseblocks = { {64 * 1024, 16} }, |
| 10857 | .block_erase = spi_block_erase_d8, |
| 10858 | }, { |
| 10859 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10860 | .block_erase = spi_block_erase_c7, |
| 10861 | } |
| 10862 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10863 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10864 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 10865 | .write = spi_chip_write_256, |
| 10866 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 10867 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10868 | }, |
| 10869 | |
| 10870 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10871 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 10872 | .name = "LH28F008BJT-BTLZ1", |
| 10873 | .bustype = BUS_PARALLEL, |
| 10874 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 10875 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 10876 | .total_size = 1024, |
| 10877 | .page_size = 64 * 1024, |
| 10878 | .tested = TEST_OK_PREW, |
| 10879 | .probe = probe_82802ab, |
| 10880 | .probe_timing = TIMING_ZERO, |
| 10881 | .block_erasers = |
| 10882 | { |
| 10883 | { |
| 10884 | .eraseblocks = { |
| 10885 | {8 * 1024, 8}, |
| 10886 | {64 * 1024, 15} |
| 10887 | }, |
| 10888 | .block_erase = erase_block_82802ab, |
| 10889 | }, { |
| 10890 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10891 | .block_erase = erase_sector_49lfxxxc, |
| 10892 | } |
| 10893 | }, |
| 10894 | .unlock = unlock_lh28f008bjt, |
| 10895 | .write = write_82802ab, |
| 10896 | .read = read_memmapped, |
| 10897 | .voltage = {2700, 3600}, |
| 10898 | }, |
| 10899 | |
| 10900 | { |
| 10901 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10902 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10903 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10904 | .manufacture_id = SHARP_ID, |
| 10905 | .model_id = SHARP_LHF00L04, |
| 10906 | .total_size = 1024, |
| 10907 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10908 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10909 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10910 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 10911 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 10912 | .block_erasers = |
| 10913 | { |
| 10914 | { |
| 10915 | .eraseblocks = { |
| 10916 | {64 * 1024, 15}, |
| 10917 | {8 * 1024, 8} |
| 10918 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10919 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 10920 | }, { |
| 10921 | .eraseblocks = { |
| 10922 | {1024 * 1024, 1} |
| 10923 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10924 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 10925 | }, |
| 10926 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10927 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10928 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10929 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10930 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10931 | }, |
| 10932 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10933 | { |
| 10934 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10935 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10936 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10937 | .manufacture_id = SPANSION_ID, |
| 10938 | .model_id = SPANSION_S25FL004A, |
| 10939 | .total_size = 512, |
| 10940 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10941 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10942 | .tested = TEST_UNTESTED, |
| 10943 | .probe = probe_spi_rdid, |
| 10944 | .probe_timing = TIMING_ZERO, |
| 10945 | .block_erasers = |
| 10946 | { |
| 10947 | { |
| 10948 | .eraseblocks = { {64 * 1024, 8} }, |
| 10949 | .block_erase = spi_block_erase_d8, |
| 10950 | }, { |
| 10951 | .eraseblocks = { {512 * 1024, 1} }, |
| 10952 | .block_erase = spi_block_erase_c7, |
| 10953 | } |
| 10954 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10955 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10956 | .unlock = spi_disable_blockprotect, |
| 10957 | .write = spi_chip_write_256, |
| 10958 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10959 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10960 | }, |
| 10961 | |
| 10962 | { |
| 10963 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10964 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10965 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10966 | .manufacture_id = SPANSION_ID, |
| 10967 | .model_id = SPANSION_S25FL008A, |
| 10968 | .total_size = 1024, |
| 10969 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10970 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10971 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10972 | .probe = probe_spi_rdid, |
| 10973 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10974 | .block_erasers = |
| 10975 | { |
| 10976 | { |
| 10977 | .eraseblocks = { {64 * 1024, 16} }, |
| 10978 | .block_erase = spi_block_erase_d8, |
| 10979 | }, { |
| 10980 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10981 | .block_erase = spi_block_erase_c7, |
| 10982 | } |
| 10983 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10984 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10985 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10986 | .write = spi_chip_write_256, |
| 10987 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10988 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10989 | }, |
| 10990 | |
| 10991 | { |
| 10992 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10993 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10994 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10995 | .manufacture_id = SPANSION_ID, |
| 10996 | .model_id = SPANSION_S25FL016A, |
| 10997 | .total_size = 2048, |
| 10998 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10999 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11000 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11001 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11002 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 11003 | .block_erasers = |
| 11004 | { |
| 11005 | { |
| 11006 | .eraseblocks = { {64 * 1024, 32} }, |
| 11007 | .block_erase = spi_block_erase_d8, |
| 11008 | }, { |
| 11009 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11010 | .block_erase = spi_block_erase_c7, |
| 11011 | } |
| 11012 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11013 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11014 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11015 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11016 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11017 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11018 | }, |
| 11019 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11020 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11021 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11022 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11023 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11024 | .manufacture_id = SPANSION_ID, |
| 11025 | .model_id = SPANSION_S25FL032A, |
| 11026 | .total_size = 4096, |
| 11027 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11028 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11029 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11030 | .probe = probe_spi_rdid, |
| 11031 | .probe_timing = TIMING_ZERO, |
| 11032 | .block_erasers = |
| 11033 | { |
| 11034 | { |
| 11035 | .eraseblocks = { {64 * 1024, 64} }, |
| 11036 | .block_erase = spi_block_erase_d8, |
| 11037 | }, { |
| 11038 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11039 | .block_erase = spi_block_erase_c7, |
| 11040 | } |
| 11041 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11042 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11043 | .unlock = spi_disable_blockprotect, |
| 11044 | .write = spi_chip_write_256, |
| 11045 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11046 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11047 | }, |
| 11048 | |
| 11049 | { |
| 11050 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11051 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11052 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11053 | .manufacture_id = SPANSION_ID, |
| 11054 | .model_id = SPANSION_S25FL064A, |
| 11055 | .total_size = 8192, |
| 11056 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11057 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11058 | .tested = TEST_OK_PREW, |
| 11059 | .probe = probe_spi_rdid, |
| 11060 | .probe_timing = TIMING_ZERO, |
| 11061 | .block_erasers = |
| 11062 | { |
| 11063 | { |
| 11064 | .eraseblocks = { {64 * 1024, 128} }, |
| 11065 | .block_erase = spi_block_erase_d8, |
| 11066 | }, { |
| 11067 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11068 | .block_erase = spi_block_erase_c7, |
| 11069 | } |
| 11070 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11071 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11072 | .unlock = spi_disable_blockprotect, |
| 11073 | .write = spi_chip_write_256, |
| 11074 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11075 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 11076 | }, |
| 11077 | |
| 11078 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11079 | .vendor = "Spansion", |
| 11080 | .name = "S25FL204K", |
| 11081 | .bustype = BUS_SPI, |
| 11082 | .manufacture_id = SPANSION_ID, |
| 11083 | .model_id = SPANSION_S25FL204, |
| 11084 | .total_size = 512, |
| 11085 | .page_size = 256, |
| 11086 | .feature_bits = FEATURE_WRSR_WREN, |
| 11087 | .tested = TEST_UNTESTED, |
| 11088 | .probe = probe_spi_rdid, |
| 11089 | .probe_timing = TIMING_ZERO, |
| 11090 | .block_erasers = { |
| 11091 | { |
| 11092 | .eraseblocks = { {4 * 1024, 128} }, |
| 11093 | .block_erase = spi_block_erase_20, |
| 11094 | }, { |
| 11095 | .eraseblocks = { {64 * 1024, 8} }, |
| 11096 | .block_erase = spi_block_erase_d8, |
| 11097 | }, { |
| 11098 | .eraseblocks = { { 512 * 1024, 1} }, |
| 11099 | .block_erase = spi_block_erase_60, |
| 11100 | }, { |
| 11101 | .eraseblocks = { { 512 * 1024, 1} }, |
| 11102 | .block_erase = spi_block_erase_c7, |
| 11103 | } |
| 11104 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11105 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11106 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11107 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11108 | .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] | 11109 | .voltage = {2700, 3600}, |
| 11110 | }, |
| 11111 | |
| 11112 | { |
| 11113 | .vendor = "Spansion", |
| 11114 | .name = "S25FL208K", |
| 11115 | .bustype = BUS_SPI, |
| 11116 | .manufacture_id = SPANSION_ID, |
| 11117 | .model_id = SPANSION_S25FL208, |
| 11118 | .total_size = 1024, |
| 11119 | .page_size = 256, |
| 11120 | .feature_bits = FEATURE_WRSR_WREN, |
| 11121 | .tested = TEST_UNTESTED, |
| 11122 | .probe = probe_spi_rdid, |
| 11123 | .probe_timing = TIMING_ZERO, |
| 11124 | .block_erasers = { |
| 11125 | { |
| 11126 | .eraseblocks = { {4 * 1024, 256} }, |
| 11127 | .block_erase = spi_block_erase_20, |
| 11128 | }, { |
| 11129 | .eraseblocks = { {64 * 1024, 16} }, |
| 11130 | .block_erase = spi_block_erase_d8, |
| 11131 | }, { |
| 11132 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 11133 | .block_erase = spi_block_erase_60, |
| 11134 | }, { |
| 11135 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 11136 | .block_erase = spi_block_erase_c7, |
| 11137 | } |
| 11138 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11139 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11140 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11141 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11142 | .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] | 11143 | .voltage = {2700, 3600}, |
| 11144 | }, |
| 11145 | |
| 11146 | { |
| 11147 | .vendor = "Spansion", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11148 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11149 | .bustype = BUS_SPI, |
| 11150 | .manufacture_id = SPANSION_ID, |
| 11151 | .model_id = SPANSION_S25FL216, |
| 11152 | .total_size = 2048, |
| 11153 | .page_size = 256, |
| 11154 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 11155 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11156 | .tested = TEST_UNTESTED, |
| 11157 | .probe = probe_spi_rdid, |
| 11158 | .probe_timing = TIMING_ZERO, |
| 11159 | .block_erasers = { |
| 11160 | { |
| 11161 | .eraseblocks = { {4 * 1024, 512} }, |
| 11162 | .block_erase = spi_block_erase_20, |
| 11163 | }, { |
| 11164 | .eraseblocks = { {64 * 1024, 32} }, |
| 11165 | .block_erase = spi_block_erase_d8, |
| 11166 | }, { |
| 11167 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 11168 | .block_erase = spi_block_erase_60, |
| 11169 | }, { |
| 11170 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 11171 | .block_erase = spi_block_erase_c7, |
| 11172 | } |
| 11173 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11174 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11175 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 11176 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11177 | .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] | 11178 | .voltage = {2700, 3600}, |
| 11179 | }, |
| 11180 | |
| 11181 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 11182 | .vendor = "Spansion", |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11183 | .name = "S25FL132K", |
| 11184 | .bustype = BUS_SPI, |
| 11185 | .manufacture_id = SPANSION_ID, |
| 11186 | .model_id = SPANSION_S25FL132K, |
| 11187 | .total_size = 4096, |
| 11188 | .page_size = 256, |
| 11189 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 11190 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11191 | .tested = TEST_UNTESTED, |
| 11192 | .probe = probe_spi_rdid, |
| 11193 | .probe_timing = TIMING_ZERO, |
| 11194 | .block_erasers = { |
| 11195 | { |
| 11196 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11197 | .block_erase = spi_block_erase_20, |
| 11198 | }, { |
| 11199 | .eraseblocks = { {64 * 1024, 64} }, |
| 11200 | .block_erase = spi_block_erase_d8, |
| 11201 | }, { |
| 11202 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 11203 | .block_erase = spi_block_erase_60, |
| 11204 | }, { |
| 11205 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 11206 | .block_erase = spi_block_erase_c7, |
| 11207 | } |
| 11208 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11209 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11210 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11211 | .write = spi_chip_write_256, |
| 11212 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11213 | .voltage = {2700, 3600}, |
| 11214 | }, |
| 11215 | |
| 11216 | { |
| 11217 | .vendor = "Spansion", |
| 11218 | .name = "S25FL164K", |
| 11219 | .bustype = BUS_SPI, |
| 11220 | .manufacture_id = SPANSION_ID, |
| 11221 | .model_id = SPANSION_S25FL164K, |
| 11222 | .total_size = 8192, |
| 11223 | .page_size = 256, |
| 11224 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 11225 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11226 | .tested = TEST_OK_PREW, |
| 11227 | .probe = probe_spi_rdid, |
| 11228 | .probe_timing = TIMING_ZERO, |
| 11229 | .block_erasers = { |
| 11230 | { |
| 11231 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11232 | .block_erase = spi_block_erase_20, |
| 11233 | }, { |
| 11234 | .eraseblocks = { {64 * 1024, 128} }, |
| 11235 | .block_erase = spi_block_erase_d8, |
| 11236 | }, { |
| 11237 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 11238 | .block_erase = spi_block_erase_60, |
| 11239 | }, { |
| 11240 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 11241 | .block_erase = spi_block_erase_c7, |
| 11242 | } |
| 11243 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11244 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 11245 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11246 | .write = spi_chip_write_256, |
| 11247 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11248 | .voltage = {2700, 3600}, |
| 11249 | }, |
| 11250 | |
| 11251 | { |
| 11252 | .vendor = "Spansion", |
Jernej Å krabec | e814a9b | 2014-12-12 00:32:03 +0000 | [diff] [blame] | 11253 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 11254 | .bustype = BUS_SPI, |
| 11255 | .manufacture_id = SPANSION_ID, |
| 11256 | .model_id = SPANSION_S25FL128, |
| 11257 | .total_size = 16384, |
| 11258 | .page_size = 256, |
| 11259 | /* supports 4B addressing */ |
| 11260 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 11261 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11262 | .tested = TEST_OK_PREW, |
| 11263 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 11264 | .probe = probe_spi_rdid, |
| 11265 | .probe_timing = TIMING_ZERO, |
| 11266 | .block_erasers = { |
| 11267 | { |
| 11268 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 11269 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 11270 | * space. Trying to access an address outside these 4kB blocks does have no |
| 11271 | * effect on the memory contents, e.g. |
| 11272 | .eraseblocks = { |
| 11273 | {4 * 1024, 32}, |
| 11274 | {64 * 1024, 254} // inaccessible |
| 11275 | }, |
| 11276 | .block_erase = spi_block_erase_20, |
| 11277 | }, { */ |
| 11278 | .eraseblocks = { { 64 * 1024, 256} }, |
| 11279 | .block_erase = spi_block_erase_d8, |
| 11280 | }, { |
| 11281 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11282 | .block_erase = spi_block_erase_60, |
| 11283 | }, { |
| 11284 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11285 | .block_erase = spi_block_erase_c7, |
| 11286 | } |
| 11287 | }, |
| 11288 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11289 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11290 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11291 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11292 | .voltage = {2700, 3600}, |
| 11293 | }, |
| 11294 | |
| 11295 | { |
| 11296 | .vendor = "Spansion", |
| 11297 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 11298 | .bustype = BUS_SPI, |
| 11299 | .manufacture_id = SPANSION_ID, |
| 11300 | .model_id = SPANSION_S25FL128, |
| 11301 | .total_size = 16384, |
| 11302 | .page_size = 512, |
| 11303 | /* supports 4B addressing */ |
| 11304 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 11305 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11306 | .tested = TEST_UNTESTED, |
| 11307 | .probe = probe_spi_rdid, |
| 11308 | .probe_timing = TIMING_ZERO, |
| 11309 | .block_erasers = { |
| 11310 | { |
| 11311 | .eraseblocks = { {256 * 1024, 64} }, |
| 11312 | .block_erase = spi_block_erase_d8, |
| 11313 | }, { |
| 11314 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11315 | .block_erase = spi_block_erase_60, |
| 11316 | }, { |
| 11317 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11318 | .block_erase = spi_block_erase_c7, |
| 11319 | } |
| 11320 | }, |
| 11321 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11322 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 11323 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11324 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11325 | .voltage = {2700, 3600}, |
| 11326 | }, |
| 11327 | |
| 11328 | { |
| 11329 | .vendor = "Spansion", |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 11330 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 11331 | .bustype = BUS_SPI, |
| 11332 | .manufacture_id = SPANSION_ID, |
| 11333 | .model_id = SPANSION_S25FL128, |
| 11334 | .total_size = 16384, |
| 11335 | .page_size = 256, |
| 11336 | .feature_bits = FEATURE_WRSR_WREN, |
| 11337 | .tested = TEST_UNTESTED, |
| 11338 | .probe = probe_spi_rdid, |
| 11339 | .probe_timing = TIMING_ZERO, |
| 11340 | .block_erasers = { |
| 11341 | { |
| 11342 | .eraseblocks = { {64 * 1024, 256} }, |
| 11343 | .block_erase = spi_block_erase_20, |
| 11344 | }, { |
| 11345 | .eraseblocks = { {64 * 1024, 256} }, |
| 11346 | .block_erase = spi_block_erase_d8, |
| 11347 | }, { |
| 11348 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11349 | .block_erase = spi_block_erase_60, |
| 11350 | }, { |
| 11351 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11352 | .block_erase = spi_block_erase_c7, |
| 11353 | } |
| 11354 | }, |
| 11355 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 11356 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11357 | .write = spi_chip_write_256, |
| 11358 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11359 | .voltage = {2700, 3600}, |
| 11360 | }, |
| 11361 | |
| 11362 | { |
| 11363 | .vendor = "Spansion", |
| 11364 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 11365 | .bustype = BUS_SPI, |
| 11366 | .manufacture_id = SPANSION_ID, |
| 11367 | .model_id = SPANSION_S25FL128, |
| 11368 | .total_size = 16384, |
| 11369 | .page_size = 256, |
| 11370 | .feature_bits = FEATURE_WRSR_WREN, |
| 11371 | .tested = TEST_UNTESTED, |
| 11372 | .probe = probe_spi_rdid, |
| 11373 | .probe_timing = TIMING_ZERO, |
| 11374 | .block_erasers = { |
| 11375 | { |
| 11376 | .eraseblocks = { {256 * 1024, 64} }, |
| 11377 | .block_erase = spi_block_erase_d8, |
| 11378 | }, { |
| 11379 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11380 | .block_erase = spi_block_erase_c7, |
| 11381 | } |
| 11382 | }, |
| 11383 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11384 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11385 | .write = spi_chip_write_256, |
| 11386 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11387 | .voltage = {2700, 3600}, |
| 11388 | }, |
| 11389 | |
| 11390 | { |
| 11391 | .vendor = "Spansion", |
| 11392 | .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] | 11393 | .bustype = BUS_SPI, |
| 11394 | .manufacture_id = SPANSION_ID, |
| 11395 | .model_id = SPANSION_S25FL128, |
| 11396 | .total_size = 16384, |
| 11397 | .page_size = 256, |
| 11398 | /* supports 4B addressing */ |
| 11399 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 11400 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11401 | .tested = TEST_UNTESTED, |
| 11402 | .probe = probe_spi_rdid, |
| 11403 | .probe_timing = TIMING_ZERO, |
| 11404 | .block_erasers = { |
| 11405 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 11406 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 11407 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 11408 | * have no effect on the memory contents, but sets a flag in the SR. |
| 11409 | .eraseblocks = { |
| 11410 | {4 * 1024, 32}, |
| 11411 | {64 * 1024, 254} // inaccessible |
| 11412 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 11413 | .block_erase = spi_block_erase_20, |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 11414 | }, { */ |
| 11415 | .eraseblocks = { { 64 * 1024, 256} }, |
| 11416 | .block_erase = spi_block_erase_d8, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 11417 | }, { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 11418 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11419 | .block_erase = spi_block_erase_60, |
| 11420 | }, { |
| 11421 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11422 | .block_erase = spi_block_erase_c7, |
| 11423 | } |
| 11424 | }, |
| 11425 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 11426 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 11427 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11428 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11429 | .voltage = {2700, 3600}, |
| 11430 | }, |
| 11431 | |
| 11432 | { |
| 11433 | .vendor = "Spansion", |
| 11434 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 11435 | .bustype = BUS_SPI, |
| 11436 | .manufacture_id = SPANSION_ID, |
| 11437 | .model_id = SPANSION_S25FL128, |
| 11438 | .total_size = 16384, |
| 11439 | .page_size = 512, |
| 11440 | /* supports 4B addressing */ |
| 11441 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 11442 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11443 | .tested = TEST_UNTESTED, |
| 11444 | .probe = probe_spi_rdid, |
| 11445 | .probe_timing = TIMING_ZERO, |
| 11446 | .block_erasers = { |
| 11447 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 11448 | .eraseblocks = { {256 * 1024, 64} }, |
| 11449 | .block_erase = spi_block_erase_d8, |
| 11450 | }, { |
| 11451 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11452 | .block_erase = spi_block_erase_60, |
| 11453 | }, { |
| 11454 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11455 | .block_erase = spi_block_erase_c7, |
| 11456 | } |
| 11457 | }, |
| 11458 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 11459 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 11460 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11461 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11462 | .voltage = {2700, 3600}, |
| 11463 | }, |
| 11464 | |
| 11465 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 11466 | .vendor = "Spansion", |
| 11467 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 11468 | .bustype = BUS_SPI, |
| 11469 | .manufacture_id = SPANSION_ID, |
| 11470 | .model_id = SPANSION_S25FL128, |
| 11471 | .total_size = 16384, |
| 11472 | .page_size = 256, |
| 11473 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 11474 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11475 | .tested = TEST_OK_PREW, |
| 11476 | .probe = probe_spi_rdid, |
| 11477 | .probe_timing = TIMING_ZERO, |
| 11478 | .block_erasers = { |
| 11479 | { |
| 11480 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 11481 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 11482 | * effect on the memory contents, but sets a flag in the SR. |
| 11483 | .eraseblocks = { |
| 11484 | {4 * 1024, 32}, |
| 11485 | {64 * 1024, 254} // inaccessible |
| 11486 | }, |
| 11487 | .block_erase = spi_block_erase_20, |
| 11488 | }, { */ |
| 11489 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 11490 | .eraseblocks = { |
| 11491 | {8 * 1024, 16}, |
| 11492 | {64 * 1024, 254} // inaccessible |
| 11493 | }, |
| 11494 | .block_erase = spi_block_erase_40, |
| 11495 | }, { */ |
| 11496 | .eraseblocks = { { 64 * 1024, 256} }, |
| 11497 | .block_erase = spi_block_erase_d8, |
| 11498 | }, { |
| 11499 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11500 | .block_erase = spi_block_erase_60, |
| 11501 | }, { |
| 11502 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11503 | .block_erase = spi_block_erase_c7, |
| 11504 | } |
| 11505 | }, |
| 11506 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 11507 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11508 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11509 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11510 | .voltage = {2700, 3600}, |
| 11511 | }, |
| 11512 | |
| 11513 | { |
| 11514 | .vendor = "Spansion", |
| 11515 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 11516 | .bustype = BUS_SPI, |
| 11517 | .manufacture_id = SPANSION_ID, |
| 11518 | .model_id = SPANSION_S25FL128, |
| 11519 | .total_size = 16384, |
| 11520 | .page_size = 512, |
| 11521 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 11522 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11523 | .tested = TEST_UNTESTED, |
| 11524 | .probe = probe_spi_rdid, |
| 11525 | .probe_timing = TIMING_ZERO, |
| 11526 | .block_erasers = { |
| 11527 | { |
| 11528 | .eraseblocks = { {256 * 1024, 64} }, |
| 11529 | .block_erase = spi_block_erase_d8, |
| 11530 | }, { |
| 11531 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11532 | .block_erase = spi_block_erase_60, |
| 11533 | }, { |
| 11534 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11535 | .block_erase = spi_block_erase_c7, |
| 11536 | } |
| 11537 | }, |
| 11538 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 11539 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11540 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11541 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11542 | .voltage = {2700, 3600}, |
| 11543 | }, |
| 11544 | |
| 11545 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11546 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 11547 | .name = "SST25LF020A", |
| 11548 | .bustype = BUS_SPI, |
| 11549 | .manufacture_id = SST_ID, |
| 11550 | .model_id = SST_SST25VF020_REMS, |
| 11551 | .total_size = 256, |
| 11552 | .page_size = 256, |
| 11553 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11554 | .tested = TEST_OK_PREW, |
| 11555 | .probe = probe_spi_rems, |
| 11556 | .probe_timing = TIMING_ZERO, |
| 11557 | .block_erasers = |
| 11558 | { |
| 11559 | { |
| 11560 | .eraseblocks = { {4 * 1024, 64} }, |
| 11561 | .block_erase = spi_block_erase_20, |
| 11562 | }, { |
| 11563 | .eraseblocks = { {32 * 1024, 8} }, |
| 11564 | .block_erase = spi_block_erase_52, |
| 11565 | }, { |
| 11566 | .eraseblocks = { {256 * 1024, 1} }, |
| 11567 | .block_erase = spi_block_erase_60, |
| 11568 | }, |
| 11569 | }, |
| 11570 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 11571 | .unlock = spi_disable_blockprotect, |
| 11572 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11573 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11574 | .voltage = {2700, 3600}, |
| 11575 | }, |
| 11576 | |
| 11577 | { |
| 11578 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11579 | .name = "SST25LF040A", |
| 11580 | .bustype = BUS_SPI, |
| 11581 | .manufacture_id = SST_ID, |
| 11582 | .model_id = SST_SST25VF040_REMS, |
| 11583 | .total_size = 512, |
| 11584 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11585 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 11586 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11587 | .probe = probe_spi_res2, |
| 11588 | .probe_timing = TIMING_ZERO, |
| 11589 | .block_erasers = |
| 11590 | { |
| 11591 | { |
| 11592 | .eraseblocks = { {4 * 1024, 128} }, |
| 11593 | .block_erase = spi_block_erase_20, |
| 11594 | }, { |
| 11595 | .eraseblocks = { {32 * 1024, 16} }, |
| 11596 | .block_erase = spi_block_erase_52, |
| 11597 | }, { |
| 11598 | .eraseblocks = { {512 * 1024, 1} }, |
| 11599 | .block_erase = spi_block_erase_60, |
| 11600 | }, |
| 11601 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11602 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11603 | .unlock = spi_disable_blockprotect, |
| 11604 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11605 | .read = spi_chip_read, |
| 11606 | .voltage = {3000, 3600}, |
| 11607 | }, |
| 11608 | |
| 11609 | { |
| 11610 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11611 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11612 | .bustype = BUS_SPI, |
| 11613 | .manufacture_id = SST_ID, |
| 11614 | .model_id = SST_SST25VF080_REMS, |
| 11615 | .total_size = 1024, |
| 11616 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11617 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11618 | .tested = TEST_UNTESTED, |
| 11619 | .probe = probe_spi_res2, |
| 11620 | .probe_timing = TIMING_ZERO, |
| 11621 | .block_erasers = |
| 11622 | { |
| 11623 | { |
| 11624 | .eraseblocks = { {4 * 1024, 256} }, |
| 11625 | .block_erase = spi_block_erase_20, |
| 11626 | }, { |
| 11627 | .eraseblocks = { {32 * 1024, 32} }, |
| 11628 | .block_erase = spi_block_erase_52, |
| 11629 | }, { |
| 11630 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11631 | .block_erase = spi_block_erase_60, |
| 11632 | }, |
| 11633 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11634 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11635 | .unlock = spi_disable_blockprotect, |
| 11636 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11637 | .read = spi_chip_read, |
| 11638 | .voltage = {3000, 3600}, |
| 11639 | }, |
| 11640 | |
| 11641 | { |
| 11642 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11643 | .name = "SST25VF512(A)", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11644 | .bustype = BUS_SPI, |
| 11645 | .manufacture_id = SST_ID, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11646 | .model_id = SST_SST25VF512_REMS, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11647 | .total_size = 64, |
| 11648 | .page_size = 256, |
| 11649 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11650 | .tested = TEST_OK_PREW, |
| 11651 | .probe = probe_spi_rems, |
| 11652 | .probe_timing = TIMING_ZERO, |
| 11653 | .block_erasers = |
| 11654 | { |
| 11655 | { |
| 11656 | .eraseblocks = { {4 * 1024, 16} }, |
| 11657 | .block_erase = spi_block_erase_20, |
| 11658 | }, { |
| 11659 | .eraseblocks = { {32 * 1024, 2} }, |
| 11660 | .block_erase = spi_block_erase_52, |
| 11661 | }, { |
| 11662 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11663 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11664 | }, { |
| 11665 | .eraseblocks = { {64 * 1024, 1} }, |
| 11666 | .block_erase = spi_block_erase_60, |
| 11667 | }, { |
| 11668 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11669 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11670 | }, |
| 11671 | }, |
| 11672 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 11673 | .unlock = spi_disable_blockprotect, |
| 11674 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11675 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11676 | .voltage = {2700, 3600}, |
| 11677 | }, |
| 11678 | |
| 11679 | { |
| 11680 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11681 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11682 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11683 | .manufacture_id = SST_ID, |
| 11684 | .model_id = SST_SST25VF010_REMS, |
| 11685 | .total_size = 128, |
| 11686 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11687 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11688 | .tested = TEST_OK_PREW, |
| 11689 | .probe = probe_spi_rems, |
| 11690 | .probe_timing = TIMING_ZERO, |
| 11691 | .block_erasers = |
| 11692 | { |
| 11693 | { |
| 11694 | .eraseblocks = { {4 * 1024, 32} }, |
| 11695 | .block_erase = spi_block_erase_20, |
| 11696 | }, { |
| 11697 | .eraseblocks = { {32 * 1024, 4} }, |
| 11698 | .block_erase = spi_block_erase_52, |
| 11699 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11700 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11701 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11702 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11703 | .eraseblocks = { {128 * 1024, 1} }, |
| 11704 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11705 | }, { |
| 11706 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11707 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11708 | }, |
| 11709 | }, |
| 11710 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 11711 | .unlock = spi_disable_blockprotect, |
| 11712 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11713 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11714 | .voltage = {2700, 3600}, |
| 11715 | }, |
| 11716 | |
| 11717 | { |
| 11718 | .vendor = "SST", |
| 11719 | .name = "SST25VF020", |
| 11720 | .bustype = BUS_SPI, |
| 11721 | .manufacture_id = SST_ID, |
| 11722 | .model_id = SST_SST25VF020_REMS, |
| 11723 | .total_size = 256, |
| 11724 | .page_size = 256, |
| 11725 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11726 | .tested = TEST_UNTESTED, |
| 11727 | .probe = probe_spi_rems, |
| 11728 | .probe_timing = TIMING_ZERO, |
| 11729 | .block_erasers = |
| 11730 | { |
| 11731 | { |
| 11732 | .eraseblocks = { {4 * 1024, 64} }, |
| 11733 | .block_erase = spi_block_erase_20, |
| 11734 | }, { |
| 11735 | .eraseblocks = { {32 * 1024, 8} }, |
| 11736 | .block_erase = spi_block_erase_52, |
| 11737 | }, { |
| 11738 | .eraseblocks = { {256 * 1024, 1} }, |
| 11739 | .block_erase = spi_block_erase_60, |
| 11740 | }, |
| 11741 | }, |
| 11742 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 11743 | .unlock = spi_disable_blockprotect, |
| 11744 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11745 | .read = spi_chip_read, /* only */ |
| 11746 | .voltage = {2700, 3600}, |
| 11747 | }, |
| 11748 | |
| 11749 | { |
| 11750 | .vendor = "SST", |
| 11751 | .name = "SST25VF020B", |
| 11752 | .bustype = BUS_SPI, |
| 11753 | .manufacture_id = SST_ID, |
| 11754 | .model_id = SST_SST25VF020B, |
| 11755 | .total_size = 256, |
| 11756 | .page_size = 256, |
| 11757 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11758 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11759 | .probe = probe_spi_rdid, |
| 11760 | .probe_timing = TIMING_ZERO, |
| 11761 | .block_erasers = |
| 11762 | { |
| 11763 | { |
| 11764 | .eraseblocks = { {4 * 1024, 64} }, |
| 11765 | .block_erase = spi_block_erase_20, |
| 11766 | }, { |
| 11767 | .eraseblocks = { {32 * 1024, 8} }, |
| 11768 | .block_erase = spi_block_erase_52, |
| 11769 | }, { |
| 11770 | .eraseblocks = { {64 * 1024, 4} }, |
| 11771 | .block_erase = spi_block_erase_d8, |
| 11772 | }, { |
| 11773 | .eraseblocks = { {256 * 1024, 1} }, |
| 11774 | .block_erase = spi_block_erase_60, |
| 11775 | }, { |
| 11776 | .eraseblocks = { {256 * 1024, 1} }, |
| 11777 | .block_erase = spi_block_erase_c7, |
| 11778 | }, |
| 11779 | }, |
| 11780 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 11781 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 11782 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 11783 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11784 | .voltage = {2700, 3600}, |
| 11785 | }, |
| 11786 | |
| 11787 | { |
| 11788 | .vendor = "SST", |
| 11789 | .name = "SST25VF040", |
| 11790 | .bustype = BUS_SPI, |
| 11791 | .manufacture_id = SST_ID, |
| 11792 | .model_id = SST_SST25VF040_REMS, |
| 11793 | .total_size = 512, |
| 11794 | .page_size = 256, |
| 11795 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11796 | .tested = TEST_OK_PR, |
| 11797 | .probe = probe_spi_rems, |
| 11798 | .probe_timing = TIMING_ZERO, |
| 11799 | .block_erasers = |
| 11800 | { |
| 11801 | { |
| 11802 | .eraseblocks = { {4 * 1024, 128} }, |
| 11803 | .block_erase = spi_block_erase_20, |
| 11804 | }, { |
| 11805 | .eraseblocks = { {32 * 1024, 16} }, |
| 11806 | .block_erase = spi_block_erase_52, |
| 11807 | }, { |
| 11808 | .eraseblocks = { {512 * 1024, 1} }, |
| 11809 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11810 | }, |
| 11811 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11812 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11813 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11814 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11815 | .read = spi_chip_read, |
| 11816 | .voltage = {2700, 3600}, |
| 11817 | }, |
| 11818 | |
| 11819 | { |
| 11820 | .vendor = "SST", |
| 11821 | .name = "SST25VF040B", |
| 11822 | .bustype = BUS_SPI, |
| 11823 | .manufacture_id = SST_ID, |
| 11824 | .model_id = SST_SST25VF040B, |
| 11825 | .total_size = 512, |
| 11826 | .page_size = 256, |
| 11827 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11828 | .tested = TEST_OK_PREW, |
| 11829 | .probe = probe_spi_rdid, |
| 11830 | .probe_timing = TIMING_ZERO, |
| 11831 | .block_erasers = |
| 11832 | { |
| 11833 | { |
| 11834 | .eraseblocks = { {4 * 1024, 128} }, |
| 11835 | .block_erase = spi_block_erase_20, |
| 11836 | }, { |
| 11837 | .eraseblocks = { {32 * 1024, 16} }, |
| 11838 | .block_erase = spi_block_erase_52, |
| 11839 | }, { |
| 11840 | .eraseblocks = { {64 * 1024, 8} }, |
| 11841 | .block_erase = spi_block_erase_d8, |
| 11842 | }, { |
| 11843 | .eraseblocks = { {512 * 1024, 1} }, |
| 11844 | .block_erase = spi_block_erase_60, |
| 11845 | }, { |
| 11846 | .eraseblocks = { {512 * 1024, 1} }, |
| 11847 | .block_erase = spi_block_erase_c7, |
| 11848 | }, |
| 11849 | }, |
| 11850 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 11851 | .unlock = spi_disable_blockprotect, |
| 11852 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 11853 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11854 | .voltage = {2700, 3600}, |
| 11855 | }, |
| 11856 | |
| 11857 | { |
| 11858 | .vendor = "SST", |
| 11859 | .name = "SST25VF040B.REMS", |
| 11860 | .bustype = BUS_SPI, |
| 11861 | .manufacture_id = SST_ID, |
| 11862 | .model_id = SST_SST25VF040B_REMS, |
| 11863 | .total_size = 512, |
| 11864 | .page_size = 256, |
| 11865 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11866 | .tested = TEST_OK_PREW, |
| 11867 | .probe = probe_spi_rems, |
| 11868 | .probe_timing = TIMING_ZERO, |
| 11869 | .block_erasers = |
| 11870 | { |
| 11871 | { |
| 11872 | .eraseblocks = { {4 * 1024, 128} }, |
| 11873 | .block_erase = spi_block_erase_20, |
| 11874 | }, { |
| 11875 | .eraseblocks = { {32 * 1024, 16} }, |
| 11876 | .block_erase = spi_block_erase_52, |
| 11877 | }, { |
| 11878 | .eraseblocks = { {64 * 1024, 8} }, |
| 11879 | .block_erase = spi_block_erase_d8, |
| 11880 | }, { |
| 11881 | .eraseblocks = { {512 * 1024, 1} }, |
| 11882 | .block_erase = spi_block_erase_60, |
| 11883 | }, { |
| 11884 | .eraseblocks = { {512 * 1024, 1} }, |
| 11885 | .block_erase = spi_block_erase_c7, |
| 11886 | }, |
| 11887 | }, |
| 11888 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 11889 | .unlock = spi_disable_blockprotect, |
| 11890 | .write = spi_aai_write, |
| 11891 | .read = spi_chip_read, |
| 11892 | .voltage = {2700, 3600}, |
| 11893 | }, |
| 11894 | |
| 11895 | { |
| 11896 | .vendor = "SST", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 11897 | .name = "SST25WF020A", |
| 11898 | .bustype = BUS_SPI, |
| 11899 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 11900 | .model_id = SST_SST25WF020A, |
| 11901 | .total_size = 256, |
| 11902 | .page_size = 256, |
| 11903 | .feature_bits = FEATURE_WRSR_WREN, |
| 11904 | .tested = TEST_UNTESTED, |
| 11905 | .probe = probe_spi_rdid, |
| 11906 | .probe_timing = TIMING_ZERO, |
| 11907 | .block_erasers = |
| 11908 | { |
| 11909 | { |
| 11910 | .eraseblocks = { {4 * 1024, 64} }, |
| 11911 | .block_erase = spi_block_erase_20, |
| 11912 | }, { |
| 11913 | .eraseblocks = { {64 * 1024, 4} }, |
| 11914 | .block_erase = spi_block_erase_d8, |
| 11915 | }, { |
| 11916 | .eraseblocks = { {256 * 1024, 1} }, |
| 11917 | .block_erase = spi_block_erase_60, |
| 11918 | }, { |
| 11919 | .eraseblocks = { {256 * 1024, 1} }, |
| 11920 | .block_erase = spi_block_erase_c7, |
| 11921 | }, |
| 11922 | }, |
| 11923 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 11924 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11925 | .write = spi_chip_write_256, |
| 11926 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11927 | .voltage = {1650, 1950}, |
| 11928 | }, |
| 11929 | |
| 11930 | { |
| 11931 | .vendor = "SST", |
| 11932 | .name = "SST25WF040B", |
| 11933 | .bustype = BUS_SPI, |
| 11934 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 11935 | .model_id = SST_SST25WF040B, |
| 11936 | .total_size = 512, |
| 11937 | .page_size = 256, |
| 11938 | .feature_bits = FEATURE_WRSR_WREN, |
| 11939 | .tested = TEST_UNTESTED, |
| 11940 | .probe = probe_spi_rdid, |
| 11941 | .probe_timing = TIMING_ZERO, |
| 11942 | .block_erasers = |
| 11943 | { |
| 11944 | { |
| 11945 | .eraseblocks = { {4 * 1024, 128} }, |
| 11946 | .block_erase = spi_block_erase_20, |
| 11947 | }, { |
| 11948 | .eraseblocks = { {64 * 1024, 8} }, |
| 11949 | .block_erase = spi_block_erase_d8, |
| 11950 | }, { |
| 11951 | .eraseblocks = { {512 * 1024, 1} }, |
| 11952 | .block_erase = spi_block_erase_60, |
| 11953 | }, { |
| 11954 | .eraseblocks = { {512 * 1024, 1} }, |
| 11955 | .block_erase = spi_block_erase_c7, |
| 11956 | }, |
| 11957 | }, |
| 11958 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 11959 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11960 | .write = spi_chip_write_256, |
| 11961 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 11962 | .voltage = {1650, 1950}, |
| 11963 | }, |
| 11964 | |
| 11965 | { |
| 11966 | .vendor = "SST", |
| 11967 | .name = "SST25WF080B", |
| 11968 | .bustype = BUS_SPI, |
| 11969 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 11970 | .model_id = SST_SST25WF080B, |
| 11971 | .total_size = 1024, |
| 11972 | .page_size = 256, |
| 11973 | .feature_bits = FEATURE_WRSR_WREN, |
| 11974 | .tested = TEST_OK_PREW, |
| 11975 | .probe = probe_spi_rdid, |
| 11976 | .probe_timing = TIMING_ZERO, |
| 11977 | .block_erasers = |
| 11978 | { |
| 11979 | { |
| 11980 | .eraseblocks = { {4 * 1024, 256} }, |
| 11981 | .block_erase = spi_block_erase_20, |
| 11982 | }, { |
| 11983 | .eraseblocks = { {64 * 1024, 16} }, |
| 11984 | .block_erase = spi_block_erase_d8, |
| 11985 | }, { |
| 11986 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11987 | .block_erase = spi_block_erase_60, |
| 11988 | }, { |
| 11989 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11990 | .block_erase = spi_block_erase_c7, |
| 11991 | }, |
| 11992 | }, |
| 11993 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 11994 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11995 | .write = spi_chip_write_256, |
| 11996 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 11997 | .voltage = {1650, 1950}, |
| 11998 | }, |
| 11999 | |
| 12000 | { |
| 12001 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12002 | .name = "SST25VF080B", |
| 12003 | .bustype = BUS_SPI, |
| 12004 | .manufacture_id = SST_ID, |
| 12005 | .model_id = SST_SST25VF080B, |
| 12006 | .total_size = 1024, |
| 12007 | .page_size = 256, |
| 12008 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12009 | .tested = TEST_OK_PREW, |
| 12010 | .probe = probe_spi_rdid, |
| 12011 | .probe_timing = TIMING_ZERO, |
| 12012 | .block_erasers = |
| 12013 | { |
| 12014 | { |
| 12015 | .eraseblocks = { {4 * 1024, 256} }, |
| 12016 | .block_erase = spi_block_erase_20, |
| 12017 | }, { |
| 12018 | .eraseblocks = { {32 * 1024, 32} }, |
| 12019 | .block_erase = spi_block_erase_52, |
| 12020 | }, { |
| 12021 | .eraseblocks = { {64 * 1024, 16} }, |
| 12022 | .block_erase = spi_block_erase_d8, |
| 12023 | }, { |
| 12024 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12025 | .block_erase = spi_block_erase_60, |
| 12026 | }, { |
| 12027 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12028 | .block_erase = spi_block_erase_c7, |
| 12029 | }, |
| 12030 | }, |
| 12031 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12032 | .unlock = spi_disable_blockprotect, |
| 12033 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12034 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12035 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12036 | }, |
| 12037 | |
| 12038 | { |
| 12039 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12040 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12041 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12042 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12043 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12044 | .total_size = 2048, |
| 12045 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12046 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12047 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12048 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12049 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12050 | .block_erasers = |
| 12051 | { |
| 12052 | { |
| 12053 | .eraseblocks = { {4 * 1024, 512} }, |
| 12054 | .block_erase = spi_block_erase_20, |
| 12055 | }, { |
| 12056 | .eraseblocks = { {32 * 1024, 64} }, |
| 12057 | .block_erase = spi_block_erase_52, |
| 12058 | }, { |
| 12059 | .eraseblocks = { {64 * 1024, 32} }, |
| 12060 | .block_erase = spi_block_erase_d8, |
| 12061 | }, { |
| 12062 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12063 | .block_erase = spi_block_erase_60, |
| 12064 | }, { |
| 12065 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12066 | .block_erase = spi_block_erase_c7, |
| 12067 | }, |
| 12068 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12069 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12070 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 12071 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12072 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12073 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12074 | }, |
| 12075 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12076 | { |
| 12077 | .vendor = "SST", |
| 12078 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12079 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12080 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12081 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12082 | .total_size = 4096, |
| 12083 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12084 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 12085 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12086 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12087 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12088 | .block_erasers = |
| 12089 | { |
| 12090 | { |
| 12091 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12092 | .block_erase = spi_block_erase_20, |
| 12093 | }, { |
| 12094 | .eraseblocks = { {32 * 1024, 128} }, |
| 12095 | .block_erase = spi_block_erase_52, |
| 12096 | }, { |
| 12097 | .eraseblocks = { {64 * 1024, 64} }, |
| 12098 | .block_erase = spi_block_erase_d8, |
| 12099 | }, { |
| 12100 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12101 | .block_erase = spi_block_erase_60, |
| 12102 | }, { |
| 12103 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12104 | .block_erase = spi_block_erase_c7, |
| 12105 | }, |
| 12106 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12107 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12108 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 12109 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12110 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12111 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 12112 | }, |
| 12113 | |
| 12114 | { |
| 12115 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12116 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12117 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12118 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12119 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12120 | .total_size = 8192, |
| 12121 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12122 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12123 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12124 | .probe = probe_spi_rdid, |
| 12125 | .probe_timing = TIMING_ZERO, |
| 12126 | .block_erasers = |
| 12127 | { |
| 12128 | { |
| 12129 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12130 | .block_erase = spi_block_erase_20, |
| 12131 | }, { |
| 12132 | .eraseblocks = { {32 * 1024, 256} }, |
| 12133 | .block_erase = spi_block_erase_52, |
| 12134 | }, { |
| 12135 | .eraseblocks = { {64 * 1024, 128} }, |
| 12136 | .block_erase = spi_block_erase_d8, |
| 12137 | }, { |
| 12138 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12139 | .block_erase = spi_block_erase_60, |
| 12140 | }, { |
| 12141 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12142 | .block_erase = spi_block_erase_c7, |
| 12143 | }, |
| 12144 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12145 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12146 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 12147 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12148 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12149 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 12150 | }, |
| 12151 | |
| 12152 | { |
| 12153 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12154 | .name = "SST25WF512", |
| 12155 | .bustype = BUS_SPI, |
| 12156 | .manufacture_id = SST_ID, |
| 12157 | .model_id = SST_SST25WF512, |
| 12158 | .total_size = 64, |
| 12159 | .page_size = 256, |
| 12160 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12161 | .tested = TEST_UNTESTED, |
| 12162 | .probe = probe_spi_rdid, |
| 12163 | .probe_timing = TIMING_ZERO, |
| 12164 | .block_erasers = |
| 12165 | { |
| 12166 | { |
| 12167 | .eraseblocks = { {4 * 1024, 16} }, |
| 12168 | .block_erase = spi_block_erase_20, |
| 12169 | }, { |
| 12170 | .eraseblocks = { {32 * 1024, 2} }, |
| 12171 | .block_erase = spi_block_erase_52, |
| 12172 | }, { |
| 12173 | .eraseblocks = { {1024 * 64, 1} }, |
| 12174 | .block_erase = spi_block_erase_60, |
| 12175 | }, { |
| 12176 | .eraseblocks = { {1024 * 64, 1} }, |
| 12177 | .block_erase = spi_block_erase_c7, |
| 12178 | }, |
| 12179 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12180 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12181 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12182 | .write = spi_aai_write, |
| 12183 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12184 | .voltage = {1650, 1950}, |
| 12185 | }, |
| 12186 | |
| 12187 | { |
| 12188 | .vendor = "SST", |
| 12189 | .name = "SST25WF010", |
| 12190 | .bustype = BUS_SPI, |
| 12191 | .manufacture_id = SST_ID, |
| 12192 | .model_id = SST_SST25WF010, |
| 12193 | .total_size = 128, |
| 12194 | .page_size = 256, |
| 12195 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12196 | .tested = TEST_UNTESTED, |
| 12197 | .probe = probe_spi_rdid, |
| 12198 | .probe_timing = TIMING_ZERO, |
| 12199 | .block_erasers = |
| 12200 | { |
| 12201 | { |
| 12202 | .eraseblocks = { {4 * 1024, 32} }, |
| 12203 | .block_erase = spi_block_erase_20, |
| 12204 | }, { |
| 12205 | .eraseblocks = { {32 * 1024, 4} }, |
| 12206 | .block_erase = spi_block_erase_52, |
| 12207 | }, { |
| 12208 | .eraseblocks = { {1024 * 128, 1} }, |
| 12209 | .block_erase = spi_block_erase_60, |
| 12210 | }, { |
| 12211 | .eraseblocks = { {1024 * 128, 1} }, |
| 12212 | .block_erase = spi_block_erase_c7, |
| 12213 | }, |
| 12214 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12215 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12216 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12217 | .write = spi_aai_write, |
| 12218 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12219 | .voltage = {1650, 1950}, |
| 12220 | }, |
| 12221 | |
| 12222 | { |
| 12223 | .vendor = "SST", |
| 12224 | .name = "SST25WF020", |
| 12225 | .bustype = BUS_SPI, |
| 12226 | .manufacture_id = SST_ID, |
| 12227 | .model_id = SST_SST25WF020, |
| 12228 | .total_size = 256, |
| 12229 | .page_size = 256, |
| 12230 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12231 | .tested = TEST_UNTESTED, |
| 12232 | .probe = probe_spi_rdid, |
| 12233 | .probe_timing = TIMING_ZERO, |
| 12234 | .block_erasers = |
| 12235 | { |
| 12236 | { |
| 12237 | .eraseblocks = { {4 * 1024, 64} }, |
| 12238 | .block_erase = spi_block_erase_20, |
| 12239 | }, { |
| 12240 | .eraseblocks = { {32 * 1024, 8} }, |
| 12241 | .block_erase = spi_block_erase_52, |
| 12242 | }, { |
| 12243 | .eraseblocks = { {64 * 1024, 4} }, |
| 12244 | .block_erase = spi_block_erase_d8, |
| 12245 | }, { |
| 12246 | .eraseblocks = { {1024 * 256, 1} }, |
| 12247 | .block_erase = spi_block_erase_60, |
| 12248 | }, { |
| 12249 | .eraseblocks = { {1024 * 256, 1} }, |
| 12250 | .block_erase = spi_block_erase_c7, |
| 12251 | }, |
| 12252 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12253 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12254 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12255 | .write = spi_aai_write, |
| 12256 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12257 | .voltage = {1650, 1950}, |
| 12258 | }, |
| 12259 | |
| 12260 | { |
| 12261 | .vendor = "SST", |
| 12262 | .name = "SST25WF040", |
| 12263 | .bustype = BUS_SPI, |
| 12264 | .manufacture_id = SST_ID, |
| 12265 | .model_id = SST_SST25WF040, |
| 12266 | .total_size = 512, |
| 12267 | .page_size = 256, |
| 12268 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12269 | .tested = TEST_UNTESTED, |
| 12270 | .probe = probe_spi_rdid, |
| 12271 | .probe_timing = TIMING_ZERO, |
| 12272 | .block_erasers = |
| 12273 | { |
| 12274 | { |
| 12275 | .eraseblocks = { {4 * 1024, 128} }, |
| 12276 | .block_erase = spi_block_erase_20, |
| 12277 | }, { |
| 12278 | .eraseblocks = { {32 * 1024, 16} }, |
| 12279 | .block_erase = spi_block_erase_52, |
| 12280 | }, { |
| 12281 | .eraseblocks = { {64 * 1024, 8} }, |
| 12282 | .block_erase = spi_block_erase_d8, |
| 12283 | }, { |
| 12284 | .eraseblocks = { {1024 * 512, 1} }, |
| 12285 | .block_erase = spi_block_erase_60, |
| 12286 | }, { |
| 12287 | .eraseblocks = { {1024 * 512, 1} }, |
| 12288 | .block_erase = spi_block_erase_c7, |
| 12289 | }, |
| 12290 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 12291 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 12292 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 12293 | .write = spi_aai_write, |
| 12294 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12295 | .voltage = {1650, 1950}, |
| 12296 | }, |
| 12297 | |
| 12298 | { |
| 12299 | .vendor = "SST", |
| 12300 | .name = "SST25WF080", |
| 12301 | .bustype = BUS_SPI, |
| 12302 | .manufacture_id = SST_ID, |
| 12303 | .model_id = SST_SST25WF080, |
| 12304 | .total_size = 1024, |
| 12305 | .page_size = 256, |
| 12306 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12307 | .tested = TEST_OK_PREW, |
| 12308 | .probe = probe_spi_rdid, |
| 12309 | .probe_timing = TIMING_ZERO, |
| 12310 | .block_erasers = |
| 12311 | { |
| 12312 | { |
| 12313 | .eraseblocks = { {4 * 1024, 256} }, |
| 12314 | .block_erase = spi_block_erase_20, |
| 12315 | }, { |
| 12316 | .eraseblocks = { {32 * 1024, 32} }, |
| 12317 | .block_erase = spi_block_erase_52, |
| 12318 | }, { |
| 12319 | .eraseblocks = { {64 * 1024, 16} }, |
| 12320 | .block_erase = spi_block_erase_d8, |
| 12321 | }, { |
| 12322 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12323 | .block_erase = spi_block_erase_60, |
| 12324 | }, { |
| 12325 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12326 | .block_erase = spi_block_erase_c7, |
| 12327 | }, |
| 12328 | }, |
| 12329 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 12330 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 12331 | .write = spi_aai_write, |
| 12332 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12333 | .voltage = {1650, 1950}, |
| 12334 | }, |
| 12335 | |
| 12336 | { |
| 12337 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12338 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12339 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12340 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12341 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12342 | .total_size = 512, |
| 12343 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12344 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12345 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12346 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12347 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12348 | .block_erasers = |
| 12349 | { |
| 12350 | { |
| 12351 | .eraseblocks = { {128, 4096} }, |
| 12352 | .block_erase = erase_sector_28sf040, |
| 12353 | }, { |
| 12354 | .eraseblocks = { {512 * 1024, 1} }, |
| 12355 | .block_erase = erase_chip_28sf040, |
| 12356 | } |
| 12357 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12358 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12359 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12360 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12361 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12362 | }, |
| 12363 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12364 | { |
| 12365 | .vendor = "SST", |
| 12366 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12367 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12368 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12369 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12370 | .total_size = 128, |
| 12371 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12372 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 12373 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12374 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12375 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12376 | .block_erasers = |
| 12377 | { |
| 12378 | { |
| 12379 | .eraseblocks = { {128 * 1024, 1} }, |
| 12380 | .block_erase = erase_chip_block_jedec, |
| 12381 | } |
| 12382 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12383 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12384 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12385 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12386 | }, |
| 12387 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12388 | { |
| 12389 | .vendor = "SST", |
| 12390 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12391 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12392 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12393 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12394 | .total_size = 128, |
| 12395 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12396 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12397 | .tested = TEST_UNTESTED, |
| 12398 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12399 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12400 | .block_erasers = |
| 12401 | { |
| 12402 | { |
| 12403 | .eraseblocks = { {128 * 1024, 1} }, |
| 12404 | .block_erase = erase_chip_block_jedec, |
| 12405 | } |
| 12406 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12407 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12408 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12409 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12410 | }, |
| 12411 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12412 | { |
| 12413 | .vendor = "SST", |
| 12414 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12415 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12416 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12417 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12418 | .total_size = 256, |
| 12419 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12420 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 12421 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12422 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12423 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12424 | .block_erasers = |
| 12425 | { |
| 12426 | { |
| 12427 | .eraseblocks = { {256 * 1024, 1} }, |
| 12428 | .block_erase = erase_chip_block_jedec, |
| 12429 | } |
| 12430 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12431 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12432 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12433 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12434 | }, |
| 12435 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12436 | { |
| 12437 | .vendor = "SST", |
| 12438 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12439 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12440 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12441 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12442 | .total_size = 256, |
| 12443 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12444 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 12445 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12446 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12447 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12448 | .block_erasers = |
| 12449 | { |
| 12450 | { |
| 12451 | .eraseblocks = { {256 * 1024, 1} }, |
| 12452 | .block_erase = erase_chip_block_jedec, |
| 12453 | } |
| 12454 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12455 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12456 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12457 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12458 | }, |
| 12459 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12460 | { |
| 12461 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 12462 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12463 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 12464 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12465 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 12466 | .total_size = 64, |
| 12467 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12468 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 12469 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 12470 | .probe = probe_jedec, |
| 12471 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 12472 | .block_erasers = |
| 12473 | { |
| 12474 | { |
| 12475 | .eraseblocks = { {4 * 1024, 16} }, |
| 12476 | .block_erase = erase_sector_jedec, |
| 12477 | }, { |
| 12478 | .eraseblocks = { {64 * 1024, 1} }, |
| 12479 | .block_erase = erase_chip_block_jedec, |
| 12480 | } |
| 12481 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12482 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 12483 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12484 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 12485 | }, |
| 12486 | |
| 12487 | { |
| 12488 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12489 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12490 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12491 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12492 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12493 | .total_size = 128, |
| 12494 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12495 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12496 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12497 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 12498 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12499 | .block_erasers = |
| 12500 | { |
| 12501 | { |
| 12502 | .eraseblocks = { {4 * 1024, 32} }, |
| 12503 | .block_erase = erase_sector_jedec, |
| 12504 | }, { |
| 12505 | .eraseblocks = { {128 * 1024, 1} }, |
| 12506 | .block_erase = erase_chip_block_jedec, |
| 12507 | } |
| 12508 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12509 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12510 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12511 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12512 | }, |
| 12513 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12514 | { |
| 12515 | .vendor = "SST", |
| 12516 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12517 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12518 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12519 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12520 | .total_size = 256, |
| 12521 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12522 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 12523 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12524 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12525 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12526 | .block_erasers = |
| 12527 | { |
| 12528 | { |
| 12529 | .eraseblocks = { {4 * 1024, 64} }, |
| 12530 | .block_erase = erase_sector_jedec, |
| 12531 | }, { |
| 12532 | .eraseblocks = { {256 * 1024, 1} }, |
| 12533 | .block_erase = erase_chip_block_jedec, |
| 12534 | } |
| 12535 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12536 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12537 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12538 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12539 | }, |
| 12540 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12541 | { |
| 12542 | .vendor = "SST", |
| 12543 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12544 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12545 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12546 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12547 | .total_size = 512, |
| 12548 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12549 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 12550 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12551 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12552 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12553 | .block_erasers = |
| 12554 | { |
| 12555 | { |
| 12556 | .eraseblocks = { {4 * 1024, 128} }, |
| 12557 | .block_erase = erase_sector_jedec, |
| 12558 | }, { |
| 12559 | .eraseblocks = { {512 * 1024, 1} }, |
| 12560 | .block_erase = erase_chip_block_jedec, |
| 12561 | } |
| 12562 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12563 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12564 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12565 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12566 | }, |
| 12567 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12568 | { |
| 12569 | .vendor = "SST", |
| 12570 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12571 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12572 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12573 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12574 | .total_size = 64, |
| 12575 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12576 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 12577 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12578 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12579 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12580 | .block_erasers = |
| 12581 | { |
| 12582 | { |
| 12583 | .eraseblocks = { {4 * 1024, 16} }, |
| 12584 | .block_erase = erase_sector_jedec, |
| 12585 | }, { |
| 12586 | .eraseblocks = { {64 * 1024, 1} }, |
| 12587 | .block_erase = erase_chip_block_jedec, |
| 12588 | } |
| 12589 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12590 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12591 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12592 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12593 | }, |
| 12594 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12595 | { |
| 12596 | .vendor = "SST", |
| 12597 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12598 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12599 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12600 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12601 | .total_size = 128, |
| 12602 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12603 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 12604 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12605 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12606 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12607 | .block_erasers = |
| 12608 | { |
| 12609 | { |
| 12610 | .eraseblocks = { {4 * 1024, 32} }, |
| 12611 | .block_erase = erase_sector_jedec, |
| 12612 | }, { |
| 12613 | .eraseblocks = { {128 * 1024, 1} }, |
| 12614 | .block_erase = erase_chip_block_jedec, |
| 12615 | } |
| 12616 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12617 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12618 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12619 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12620 | }, |
| 12621 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12622 | { |
| 12623 | .vendor = "SST", |
| 12624 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12625 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12626 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12627 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12628 | .total_size = 256, |
| 12629 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12630 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 12631 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12632 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12633 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12634 | .block_erasers = |
| 12635 | { |
| 12636 | { |
| 12637 | .eraseblocks = { {4 * 1024, 64} }, |
| 12638 | .block_erase = erase_sector_jedec, |
| 12639 | }, { |
| 12640 | .eraseblocks = { {256 * 1024, 1} }, |
| 12641 | .block_erase = erase_chip_block_jedec, |
| 12642 | } |
| 12643 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12644 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12645 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12646 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12647 | }, |
| 12648 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12649 | { |
| 12650 | .vendor = "SST", |
| 12651 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12652 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12653 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12654 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12655 | .total_size = 512, |
| 12656 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12657 | .feature_bits = FEATURE_EITHER_RESET, |
| 12658 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12659 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12660 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12661 | .block_erasers = |
| 12662 | { |
| 12663 | { |
| 12664 | .eraseblocks = { {4 * 1024, 128} }, |
| 12665 | .block_erase = erase_sector_jedec, |
| 12666 | }, { |
| 12667 | .eraseblocks = { {512 * 1024, 1} }, |
| 12668 | .block_erase = erase_chip_block_jedec, |
| 12669 | } |
| 12670 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12671 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12672 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12673 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 12674 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12675 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12676 | { |
| 12677 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 12678 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12679 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 12680 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12681 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 12682 | .total_size = 1024, |
| 12683 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12684 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 12685 | .tested = TEST_UNTESTED, |
| 12686 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12687 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12688 | .block_erasers = |
| 12689 | { |
| 12690 | { |
| 12691 | .eraseblocks = { {4 * 1024, 256} }, |
| 12692 | .block_erase = erase_sector_jedec, |
| 12693 | }, { |
| 12694 | .eraseblocks = { {64 * 1024, 16} }, |
| 12695 | .block_erase = erase_block_jedec, |
| 12696 | }, { |
| 12697 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12698 | .block_erase = erase_chip_block_jedec, |
| 12699 | } |
| 12700 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12701 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12702 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12703 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 12704 | }, |
| 12705 | |
| 12706 | { |
| 12707 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12708 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12709 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12710 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12711 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12712 | .total_size = 256, |
| 12713 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12714 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 12715 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12716 | .probe = probe_jedec, |
| 12717 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12718 | .block_erasers = |
| 12719 | { |
| 12720 | { |
| 12721 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12722 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12723 | }, { |
| 12724 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12725 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12726 | }, { |
| 12727 | .eraseblocks = { {256 * 1024, 1} }, |
| 12728 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 12729 | } |
| 12730 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12731 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12732 | .unlock = unlock_sst_fwhub, |
| 12733 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12734 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12735 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12736 | }, |
| 12737 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12738 | { |
| 12739 | .vendor = "SST", |
| 12740 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12741 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12742 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12743 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12744 | .total_size = 384, |
| 12745 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12746 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12747 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12748 | .probe = probe_jedec, |
| 12749 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12750 | .block_erasers = |
| 12751 | { |
| 12752 | { |
| 12753 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12754 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12755 | }, { |
| 12756 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12757 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12758 | }, { |
| 12759 | .eraseblocks = { {384 * 1024, 1} }, |
| 12760 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 12761 | } |
| 12762 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12763 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12764 | .unlock = unlock_sst_fwhub, |
| 12765 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12766 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12767 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12768 | }, |
| 12769 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12770 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 12771 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 12772 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 12773 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12774 | .vendor = "SST", |
| 12775 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12776 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12777 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12778 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12779 | .total_size = 512, |
| 12780 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12781 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 12782 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12783 | .probe = probe_jedec, |
| 12784 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 12785 | .block_erasers = |
| 12786 | { |
| 12787 | { |
| 12788 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12789 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 12790 | }, { |
| 12791 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12792 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 12793 | }, { |
| 12794 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12795 | .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] | 12796 | }, |
| 12797 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12798 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12799 | .unlock = unlock_sst_fwhub, |
| 12800 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12801 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12802 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12803 | }, |
| 12804 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12805 | { |
| 12806 | .vendor = "SST", |
| 12807 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12808 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12809 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12810 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12811 | .total_size = 512, |
| 12812 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12813 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12814 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12815 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12816 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12817 | .block_erasers = |
| 12818 | { |
| 12819 | { |
| 12820 | .eraseblocks = { {4 * 1024, 128} }, |
| 12821 | .block_erase = erase_sector_49lfxxxc, |
| 12822 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12823 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12824 | {64 * 1024, 7}, |
| 12825 | {32 * 1024, 1}, |
| 12826 | {8 * 1024, 2}, |
| 12827 | {16 * 1024, 1}, |
| 12828 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 12829 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12830 | } |
| 12831 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12832 | .printlock = printlock_regspace2_block_eraser_1, |
| 12833 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12834 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12835 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12836 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12837 | }, |
| 12838 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12839 | { |
| 12840 | .vendor = "SST", |
| 12841 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12842 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12843 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12844 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12845 | .total_size = 1024, |
| 12846 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12847 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12848 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12849 | .probe = probe_jedec, |
| 12850 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12851 | .block_erasers = |
| 12852 | { |
| 12853 | { |
| 12854 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12855 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12856 | }, { |
| 12857 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12858 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12859 | }, { |
| 12860 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12861 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 12862 | } |
| 12863 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12864 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12865 | .unlock = unlock_sst_fwhub, |
| 12866 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12867 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12868 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12869 | }, |
| 12870 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12871 | { |
| 12872 | .vendor = "SST", |
| 12873 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12874 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12875 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12876 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12877 | .total_size = 1024, |
| 12878 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12879 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12880 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12881 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12882 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12883 | .block_erasers = |
| 12884 | { |
| 12885 | { |
| 12886 | .eraseblocks = { {4 * 1024, 256} }, |
| 12887 | .block_erase = erase_sector_49lfxxxc, |
| 12888 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12889 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12890 | {64 * 1024, 15}, |
| 12891 | {32 * 1024, 1}, |
| 12892 | {8 * 1024, 2}, |
| 12893 | {16 * 1024, 1}, |
| 12894 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 12895 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12896 | } |
| 12897 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12898 | .printlock = printlock_regspace2_block_eraser_1, |
| 12899 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12900 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12901 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12902 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12903 | }, |
| 12904 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12905 | { |
| 12906 | .vendor = "SST", |
| 12907 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12908 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12909 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12910 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12911 | .total_size = 2048, |
| 12912 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12913 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12914 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12915 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12916 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12917 | .block_erasers = |
| 12918 | { |
| 12919 | { |
| 12920 | .eraseblocks = { {4 * 1024, 512} }, |
| 12921 | .block_erase = erase_sector_49lfxxxc, |
| 12922 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12923 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12924 | {64 * 1024, 31}, |
| 12925 | {32 * 1024, 1}, |
| 12926 | {8 * 1024, 2}, |
| 12927 | {16 * 1024, 1}, |
| 12928 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 12929 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12930 | } |
| 12931 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12932 | .printlock = printlock_regspace2_block_eraser_1, |
| 12933 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12934 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12935 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12936 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12937 | }, |
| 12938 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12939 | { |
| 12940 | .vendor = "SST", |
| 12941 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12942 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12943 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12944 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12945 | .total_size = 256, |
| 12946 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12947 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12948 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12949 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12950 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12951 | .block_erasers = |
| 12952 | { |
| 12953 | { |
| 12954 | .eraseblocks = { {4 * 1024, 64} }, |
| 12955 | .block_erase = erase_sector_jedec, |
| 12956 | }, { |
| 12957 | .eraseblocks = { {16 * 1024, 16} }, |
| 12958 | .block_erase = erase_block_jedec, |
| 12959 | }, { |
| 12960 | .eraseblocks = { {256 * 1024, 1} }, |
| 12961 | .block_erase = NULL, |
| 12962 | } |
| 12963 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12964 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12965 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12966 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 12967 | }, |
| 12968 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12969 | { |
| 12970 | .vendor = "SST", |
| 12971 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12972 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12973 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12974 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12975 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 12976 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12977 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 12978 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12979 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12980 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12981 | .block_erasers = |
| 12982 | { |
| 12983 | { |
| 12984 | .eraseblocks = { {4 * 1024, 64} }, |
| 12985 | .block_erase = erase_sector_jedec, |
| 12986 | }, { |
| 12987 | .eraseblocks = { {16 * 1024, 16} }, |
| 12988 | .block_erase = erase_block_jedec, |
| 12989 | }, { |
| 12990 | .eraseblocks = { {256 * 1024, 1} }, |
| 12991 | .block_erase = NULL, |
| 12992 | } |
| 12993 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12994 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12995 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12996 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12997 | }, |
| 12998 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12999 | { |
| 13000 | .vendor = "SST", |
| 13001 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13002 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13003 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13004 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13005 | .total_size = 512, |
| 13006 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13007 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13008 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13009 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13010 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13011 | .block_erasers = |
| 13012 | { |
| 13013 | { |
| 13014 | .eraseblocks = { {4 * 1024, 128} }, |
| 13015 | .block_erase = erase_sector_jedec, |
| 13016 | }, { |
| 13017 | .eraseblocks = { {64 * 1024, 8} }, |
| 13018 | .block_erase = erase_block_jedec, |
| 13019 | }, { |
| 13020 | .eraseblocks = { {512 * 1024, 1} }, |
| 13021 | .block_erase = NULL, |
| 13022 | } |
| 13023 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13024 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13025 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13026 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13027 | }, |
| 13028 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13029 | { |
| 13030 | .vendor = "SST", |
| 13031 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13032 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13033 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13034 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13035 | .total_size = 512, |
| 13036 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 13037 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13038 | .tested = TEST_OK_PR, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13039 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13040 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13041 | .block_erasers = |
| 13042 | { |
| 13043 | { |
| 13044 | .eraseblocks = { {4 * 1024, 128} }, |
| 13045 | .block_erase = erase_sector_jedec, |
| 13046 | }, { |
| 13047 | .eraseblocks = { {64 * 1024, 8} }, |
| 13048 | .block_erase = erase_block_jedec, |
| 13049 | }, { |
| 13050 | .eraseblocks = { {512 * 1024, 1} }, |
| 13051 | .block_erase = NULL, |
| 13052 | } |
| 13053 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13054 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13055 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13056 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13057 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13058 | }, |
| 13059 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13060 | { |
| 13061 | .vendor = "SST", |
| 13062 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13063 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13064 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13065 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13066 | .total_size = 1024, |
| 13067 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13068 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 13069 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13070 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13071 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13072 | .block_erasers = |
| 13073 | { |
| 13074 | { |
| 13075 | .eraseblocks = { {4 * 1024, 256} }, |
| 13076 | .block_erase = erase_sector_jedec, |
| 13077 | }, { |
| 13078 | .eraseblocks = { {64 * 1024, 16} }, |
| 13079 | .block_erase = erase_block_jedec, |
| 13080 | }, { |
| 13081 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13082 | .block_erase = NULL, |
| 13083 | } |
| 13084 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13085 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13086 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13087 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13088 | }, |
| 13089 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13090 | { |
| 13091 | .vendor = "SST", |
| 13092 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13093 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13094 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13095 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13096 | .total_size = 2048, |
| 13097 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13098 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13099 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13100 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13101 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13102 | .block_erasers = |
| 13103 | { |
| 13104 | { |
| 13105 | .eraseblocks = { {4 * 1024, 512} }, |
| 13106 | .block_erase = erase_sector_49lfxxxc, |
| 13107 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13108 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13109 | {64 * 1024, 31}, |
| 13110 | {32 * 1024, 1}, |
| 13111 | {8 * 1024, 2}, |
| 13112 | {16 * 1024, 1}, |
| 13113 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13114 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13115 | } |
| 13116 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13117 | .printlock = printlock_regspace2_block_eraser_1, |
| 13118 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13119 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13120 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13121 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13122 | }, |
| 13123 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13124 | { |
| 13125 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13126 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13127 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13128 | .manufacture_id = ST_ID, |
| 13129 | .model_id = ST_M29F002B, |
| 13130 | .total_size = 256, |
| 13131 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13132 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13133 | .tested = TEST_UNTESTED, |
| 13134 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13135 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13136 | .block_erasers = |
| 13137 | { |
| 13138 | { |
| 13139 | .eraseblocks = { |
| 13140 | {16 * 1024, 1}, |
| 13141 | {8 * 1024, 2}, |
| 13142 | {32 * 1024, 1}, |
| 13143 | {64 * 1024, 3}, |
| 13144 | }, |
| 13145 | .block_erase = erase_sector_jedec, |
| 13146 | }, { |
| 13147 | .eraseblocks = { {256 * 1024, 1} }, |
| 13148 | .block_erase = erase_chip_block_jedec, |
| 13149 | } |
| 13150 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13151 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13152 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13153 | .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] | 13154 | }, |
| 13155 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13156 | { |
| 13157 | .vendor = "ST", |
| 13158 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13159 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13160 | .manufacture_id = ST_ID, |
| 13161 | .model_id = ST_M29F002T, |
| 13162 | .total_size = 256, |
| 13163 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13164 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13165 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13166 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13167 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13168 | .block_erasers = |
| 13169 | { |
| 13170 | { |
| 13171 | .eraseblocks = { |
| 13172 | {64 * 1024, 3}, |
| 13173 | {32 * 1024, 1}, |
| 13174 | {8 * 1024, 2}, |
| 13175 | {16 * 1024, 1}, |
| 13176 | }, |
| 13177 | .block_erase = erase_sector_jedec, |
| 13178 | }, { |
| 13179 | .eraseblocks = { {256 * 1024, 1} }, |
| 13180 | .block_erase = erase_chip_block_jedec, |
| 13181 | } |
| 13182 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13183 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13184 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13185 | .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] | 13186 | }, |
| 13187 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13188 | { |
| 13189 | .vendor = "ST", |
| 13190 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13191 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13192 | .manufacture_id = ST_ID, |
| 13193 | .model_id = ST_M29F040B, |
| 13194 | .total_size = 512, |
| 13195 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13196 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13197 | .tested = TEST_UNTESTED, |
| 13198 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 13199 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13200 | .block_erasers = |
| 13201 | { |
| 13202 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13203 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13204 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13205 | }, { |
| 13206 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13207 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13208 | } |
| 13209 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13210 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13211 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13212 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13213 | }, |
| 13214 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13215 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13216 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13217 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13218 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13219 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13220 | .manufacture_id = ST_ID, |
| 13221 | .model_id = ST_M29F400BB, |
| 13222 | .total_size = 512, |
| 13223 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13224 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13225 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13226 | .probe = probe_jedec, |
| 13227 | .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] | 13228 | .block_erasers = |
| 13229 | { |
| 13230 | { |
| 13231 | .eraseblocks = { |
| 13232 | {16 * 1024, 1}, |
| 13233 | {8 * 1024, 2}, |
| 13234 | {32 * 1024, 1}, |
| 13235 | {64 * 1024, 7}, |
| 13236 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13237 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13238 | }, { |
| 13239 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13240 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13241 | } |
| 13242 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13243 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13244 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13245 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 13246 | }, |
| 13247 | { |
| 13248 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 13249 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13250 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13251 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13252 | .manufacture_id = ST_ID, |
| 13253 | .model_id = ST_M29F400BT, |
| 13254 | .total_size = 512, |
| 13255 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13256 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13257 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13258 | .probe = probe_jedec, |
| 13259 | .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] | 13260 | .block_erasers = |
| 13261 | { |
| 13262 | { |
| 13263 | .eraseblocks = { |
| 13264 | {64 * 1024, 7}, |
| 13265 | {32 * 1024, 1}, |
| 13266 | {8 * 1024, 2}, |
| 13267 | {16 * 1024, 1}, |
| 13268 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13269 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13270 | }, { |
| 13271 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13272 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13273 | } |
| 13274 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 13275 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13276 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13277 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13278 | }, |
| 13279 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13280 | { |
| 13281 | .vendor = "ST", |
| 13282 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13283 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13284 | .manufacture_id = ST_ID, |
| 13285 | .model_id = ST_M29W010B, |
| 13286 | .total_size = 128, |
| 13287 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13288 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13289 | .tested = TEST_UNTESTED, |
| 13290 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13291 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13292 | .block_erasers = |
| 13293 | { |
| 13294 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13295 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13296 | .block_erase = erase_sector_jedec, |
| 13297 | }, { |
| 13298 | .eraseblocks = { {128 * 1024, 1} }, |
| 13299 | .block_erase = erase_chip_block_jedec, |
| 13300 | } |
| 13301 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13302 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13303 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13304 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13305 | }, |
| 13306 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13307 | { |
| 13308 | .vendor = "ST", |
| 13309 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13310 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13311 | .manufacture_id = ST_ID, |
| 13312 | .model_id = ST_M29W040B, |
| 13313 | .total_size = 512, |
| 13314 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13315 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13316 | .tested = TEST_UNTESTED, |
| 13317 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13318 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13319 | .block_erasers = |
| 13320 | { |
| 13321 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13322 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13323 | .block_erase = erase_sector_jedec, |
| 13324 | }, { |
| 13325 | .eraseblocks = { {512 * 1024, 1} }, |
| 13326 | .block_erase = erase_chip_block_jedec, |
| 13327 | } |
| 13328 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13329 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13330 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13331 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13332 | }, |
| 13333 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13334 | { |
| 13335 | .vendor = "ST", |
| 13336 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13337 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13338 | .manufacture_id = ST_ID, |
| 13339 | .model_id = ST_M29W512B, |
| 13340 | .total_size = 64, |
| 13341 | .page_size = 64 * 1024, |
| 13342 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13343 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13344 | .probe = probe_jedec, |
| 13345 | .probe_timing = TIMING_ZERO, |
| 13346 | .block_erasers = |
| 13347 | { |
| 13348 | { |
| 13349 | .eraseblocks = { {64 * 1024, 1} }, |
| 13350 | .block_erase = erase_chip_block_jedec, |
| 13351 | } |
| 13352 | }, |
| 13353 | .write = write_jedec_1, |
| 13354 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13355 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13356 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 13357 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13358 | { |
| 13359 | .vendor = "ST", |
| 13360 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13361 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13362 | .manufacture_id = ST_ID, |
| 13363 | .model_id = ST_M50FLW040A, |
| 13364 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13365 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13366 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13367 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13368 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 13369 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13370 | .block_erasers = |
| 13371 | { |
| 13372 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13373 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13374 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13375 | {64 * 1024, 5}, /* block */ |
| 13376 | {4 * 1024, 16}, /* sector */ |
| 13377 | {4 * 1024, 16}, /* sector */ |
| 13378 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 13379 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13380 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13381 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13382 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13383 | } |
| 13384 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13385 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13386 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13387 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13388 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13389 | }, |
| 13390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13391 | { |
| 13392 | .vendor = "ST", |
| 13393 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13394 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13395 | .manufacture_id = ST_ID, |
| 13396 | .model_id = ST_M50FLW040B, |
| 13397 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13398 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13399 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13400 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13401 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 13402 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13403 | .block_erasers = |
| 13404 | { |
| 13405 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13406 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13407 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13408 | {4 * 1024, 16}, /* sector */ |
| 13409 | {64 * 1024, 5}, /* block */ |
| 13410 | {4 * 1024, 16}, /* sector */ |
| 13411 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 13412 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13413 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13414 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13415 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13416 | } |
| 13417 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13418 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13419 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13420 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13421 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13422 | }, |
| 13423 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13424 | { |
| 13425 | .vendor = "ST", |
| 13426 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13427 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13428 | .manufacture_id = ST_ID, |
| 13429 | .model_id = ST_M50FLW080A, |
| 13430 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13431 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13432 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13433 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13434 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 13435 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13436 | .block_erasers = |
| 13437 | { |
| 13438 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13439 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13440 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13441 | {64 * 1024, 13}, /* block */ |
| 13442 | {4 * 1024, 16}, /* sector */ |
| 13443 | {4 * 1024, 16}, /* sector */ |
| 13444 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 13445 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13446 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13447 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13448 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13449 | } |
| 13450 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13451 | .printlock = printlock_regspace2_block_eraser_0, |
| 13452 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13453 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13454 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13455 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13456 | }, |
| 13457 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13458 | { |
| 13459 | .vendor = "ST", |
| 13460 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13461 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13462 | .manufacture_id = ST_ID, |
| 13463 | .model_id = ST_M50FLW080B, |
| 13464 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13465 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13466 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13467 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13468 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 13469 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13470 | .block_erasers = |
| 13471 | { |
| 13472 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13473 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13474 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13475 | {4 * 1024, 16}, /* sector */ |
| 13476 | {64 * 1024, 13}, /* block */ |
| 13477 | {4 * 1024, 16}, /* sector */ |
| 13478 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 13479 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 13480 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13481 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13482 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13483 | } |
| 13484 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13485 | .printlock = printlock_regspace2_block_eraser_0, |
| 13486 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13487 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13488 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13489 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13490 | }, |
| 13491 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13492 | { |
| 13493 | .vendor = "ST", |
| 13494 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13495 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13496 | .manufacture_id = ST_ID, |
| 13497 | .model_id = ST_M50FW002, |
| 13498 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13499 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13500 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13501 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13502 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13503 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13504 | .block_erasers = |
| 13505 | { |
| 13506 | { |
| 13507 | .eraseblocks = { |
| 13508 | {64 * 1024, 3}, |
| 13509 | {32 * 1024, 1}, |
| 13510 | {8 * 1024, 2}, |
| 13511 | {16 * 1024, 1}, |
| 13512 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13513 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13514 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13515 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13516 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13517 | } |
| 13518 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13519 | .printlock = printlock_regspace2_block_eraser_0, |
| 13520 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13521 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13522 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13523 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13524 | }, |
| 13525 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13526 | { |
| 13527 | .vendor = "ST", |
| 13528 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13529 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13530 | .manufacture_id = ST_ID, |
| 13531 | .model_id = ST_M50FW016, |
| 13532 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13533 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13534 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13535 | .tested = TEST_UNTESTED, |
| 13536 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13537 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13538 | .block_erasers = |
| 13539 | { |
| 13540 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13541 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13542 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13543 | } |
| 13544 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13545 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13546 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13547 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13548 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13549 | }, |
| 13550 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13551 | { |
| 13552 | .vendor = "ST", |
| 13553 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13554 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13555 | .manufacture_id = ST_ID, |
| 13556 | .model_id = ST_M50FW040, |
| 13557 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13558 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13559 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13560 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13561 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13562 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13563 | .block_erasers = |
| 13564 | { |
| 13565 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13566 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13567 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13568 | } |
| 13569 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13570 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13571 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13572 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13573 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13574 | }, |
| 13575 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13576 | { |
| 13577 | .vendor = "ST", |
| 13578 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13579 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13580 | .manufacture_id = ST_ID, |
| 13581 | .model_id = ST_M50FW080, |
| 13582 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13583 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13584 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13585 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13586 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13587 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13588 | .block_erasers = |
| 13589 | { |
| 13590 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13591 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13592 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13593 | } |
| 13594 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13595 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13596 | .write = write_82802ab, |
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 = {3000, 3600}, /* Also has 12V fast program & erase */ |
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 = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 13603 | .name = "M50LPW080", |
| 13604 | .bustype = BUS_LPC, /* A/A Mux */ |
| 13605 | .manufacture_id = ST_ID, |
| 13606 | .model_id = ST_M50LPW080, |
| 13607 | .total_size = 1024, |
| 13608 | .page_size = 0, |
| 13609 | .feature_bits = FEATURE_REGISTERMAP, |
| 13610 | .tested = TEST_UNTESTED, |
| 13611 | .probe = probe_82802ab, |
| 13612 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13613 | .block_erasers = |
| 13614 | { |
| 13615 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13616 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 13617 | .block_erase = erase_block_82802ab, |
| 13618 | } |
| 13619 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13620 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 13621 | .write = write_82802ab, |
| 13622 | .read = read_memmapped, |
| 13623 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 13624 | }, |
| 13625 | |
| 13626 | { |
| 13627 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13628 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13629 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13630 | .manufacture_id = ST_ID, |
| 13631 | .model_id = ST_M50LPW116, |
| 13632 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13633 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13634 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13635 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13636 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13637 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13638 | .block_erasers = |
| 13639 | { |
| 13640 | { |
| 13641 | .eraseblocks = { |
| 13642 | {4 * 1024, 16}, |
| 13643 | {64 * 1024, 30}, |
| 13644 | {32 * 1024, 1}, |
| 13645 | {8 * 1024, 2}, |
| 13646 | {16 * 1024, 1}, |
| 13647 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13648 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13649 | } |
| 13650 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13651 | .printlock = printlock_regspace2_block_eraser_0, |
| 13652 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13653 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13654 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13655 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13656 | }, |
| 13657 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13658 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13659 | .vendor = "SyncMOS/MoselVitelic", |
| 13660 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13661 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13662 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13663 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13664 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13665 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13666 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13667 | .tested = TEST_UNTESTED, |
| 13668 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13669 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13670 | .block_erasers = |
| 13671 | { |
| 13672 | { |
| 13673 | .eraseblocks = { {512, 256} }, |
| 13674 | .block_erase = erase_sector_jedec, |
| 13675 | }, { |
| 13676 | .eraseblocks = { {128 * 1024, 1} }, |
| 13677 | .block_erase = erase_chip_block_jedec, |
| 13678 | }, |
| 13679 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13680 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13681 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13682 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13683 | }, |
| 13684 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13685 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13686 | .vendor = "SyncMOS/MoselVitelic", |
| 13687 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13688 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13689 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13690 | .model_id = SM_MVC_29C51001T, |
| 13691 | .total_size = 128, |
| 13692 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13693 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13694 | .tested = TEST_UNTESTED, |
| 13695 | .probe = probe_jedec, |
| 13696 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13697 | .block_erasers = |
| 13698 | { |
| 13699 | { |
| 13700 | .eraseblocks = { {512, 256} }, |
| 13701 | .block_erase = erase_sector_jedec, |
| 13702 | }, { |
| 13703 | .eraseblocks = { {128 * 1024, 1} }, |
| 13704 | .block_erase = erase_chip_block_jedec, |
| 13705 | }, |
| 13706 | }, |
| 13707 | .write = write_jedec_1, |
| 13708 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13709 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13710 | }, |
| 13711 | |
| 13712 | { |
| 13713 | .vendor = "SyncMOS/MoselVitelic", |
| 13714 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13715 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13716 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13717 | .model_id = SM_MVC_29C51002B, |
| 13718 | .total_size = 256, |
| 13719 | .page_size = 512, |
| 13720 | .feature_bits = FEATURE_EITHER_RESET, |
| 13721 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13722 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13723 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13724 | .block_erasers = |
| 13725 | { |
| 13726 | { |
| 13727 | .eraseblocks = { {512, 512} }, |
| 13728 | .block_erase = erase_sector_jedec, |
| 13729 | }, { |
| 13730 | .eraseblocks = { {256 * 1024, 1} }, |
| 13731 | .block_erase = erase_chip_block_jedec, |
| 13732 | }, |
| 13733 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13734 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13735 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13736 | }, |
| 13737 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13738 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13739 | .vendor = "SyncMOS/MoselVitelic", |
| 13740 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13741 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13742 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13743 | .model_id = SM_MVC_29C51002T, |
| 13744 | .total_size = 256, |
| 13745 | .page_size = 512, |
| 13746 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13747 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13748 | .probe = probe_jedec, |
| 13749 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13750 | .block_erasers = |
| 13751 | { |
| 13752 | { |
| 13753 | .eraseblocks = { {512, 512} }, |
| 13754 | .block_erase = erase_sector_jedec, |
| 13755 | }, { |
| 13756 | .eraseblocks = { {256 * 1024, 1} }, |
| 13757 | .block_erase = erase_chip_block_jedec, |
| 13758 | }, |
| 13759 | }, |
| 13760 | .write = write_jedec_1, |
| 13761 | .read = read_memmapped, |
| 13762 | }, |
| 13763 | |
| 13764 | { |
| 13765 | .vendor = "SyncMOS/MoselVitelic", |
| 13766 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13767 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13768 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13769 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13770 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13771 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13772 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13773 | .tested = TEST_UNTESTED, |
| 13774 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13775 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13776 | .block_erasers = |
| 13777 | { |
| 13778 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13779 | .eraseblocks = { {1024, 512} }, |
| 13780 | .block_erase = erase_sector_jedec, |
| 13781 | }, { |
| 13782 | .eraseblocks = { {512 * 1024, 1} }, |
| 13783 | .block_erase = erase_chip_block_jedec, |
| 13784 | }, |
| 13785 | }, |
| 13786 | .write = write_jedec_1, |
| 13787 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13788 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13789 | }, |
| 13790 | |
| 13791 | { |
| 13792 | .vendor = "SyncMOS/MoselVitelic", |
| 13793 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13794 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13795 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13796 | .model_id = SM_MVC_29C51004T, |
| 13797 | .total_size = 512, |
| 13798 | .page_size = 1024, |
| 13799 | .feature_bits = FEATURE_EITHER_RESET, |
| 13800 | .tested = TEST_UNTESTED, |
| 13801 | .probe = probe_jedec, |
| 13802 | .probe_timing = TIMING_ZERO, |
| 13803 | .block_erasers = |
| 13804 | { |
| 13805 | { |
| 13806 | .eraseblocks = { {1024, 512} }, |
| 13807 | .block_erase = erase_sector_jedec, |
| 13808 | }, { |
| 13809 | .eraseblocks = { {512 * 1024, 1} }, |
| 13810 | .block_erase = erase_chip_block_jedec, |
| 13811 | }, |
| 13812 | }, |
| 13813 | .write = write_jedec_1, |
| 13814 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13815 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13816 | }, |
| 13817 | |
| 13818 | { |
| 13819 | .vendor = "SyncMOS/MoselVitelic", |
| 13820 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13821 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13822 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13823 | .model_id = SM_MVC_29C31004B, |
| 13824 | .total_size = 512, |
| 13825 | .page_size = 1024, |
| 13826 | .feature_bits = FEATURE_EITHER_RESET, |
| 13827 | .tested = TEST_UNTESTED, |
| 13828 | .probe = probe_jedec, |
| 13829 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13830 | .block_erasers = |
| 13831 | { |
| 13832 | { |
| 13833 | .eraseblocks = { {1024, 512} }, |
| 13834 | .block_erase = erase_sector_jedec, |
| 13835 | }, { |
| 13836 | .eraseblocks = { {512 * 1024, 1} }, |
| 13837 | .block_erase = erase_chip_block_jedec, |
| 13838 | }, |
| 13839 | }, |
| 13840 | .write = write_jedec_1, |
| 13841 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13842 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13843 | }, |
| 13844 | |
| 13845 | { |
| 13846 | .vendor = "SyncMOS/MoselVitelic", |
| 13847 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13848 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13849 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13850 | .model_id = SM_MVC_29C31004T, |
| 13851 | .total_size = 512, |
| 13852 | .page_size = 1024, |
| 13853 | .feature_bits = FEATURE_EITHER_RESET, |
| 13854 | .tested = TEST_UNTESTED, |
| 13855 | .probe = probe_jedec, |
| 13856 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13857 | .block_erasers = |
| 13858 | { |
| 13859 | { |
| 13860 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13861 | .block_erase = erase_sector_jedec, |
| 13862 | }, { |
| 13863 | .eraseblocks = { {512 * 1024, 1} }, |
| 13864 | .block_erase = erase_chip_block_jedec, |
| 13865 | }, |
| 13866 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13867 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13868 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13869 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13870 | }, |
| 13871 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13872 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 13873 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13874 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13875 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13876 | .manufacture_id = TI_OLD_ID, |
| 13877 | .model_id = TI_TMS29F002RB, |
| 13878 | .total_size = 256, |
| 13879 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13880 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13881 | .tested = TEST_UNTESTED, |
| 13882 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13883 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13884 | .block_erasers = |
| 13885 | { |
| 13886 | { |
| 13887 | .eraseblocks = { |
| 13888 | {16 * 1024, 1}, |
| 13889 | {8 * 1024, 2}, |
| 13890 | {32 * 1024, 1}, |
| 13891 | {64 * 1024, 3}, |
| 13892 | }, |
| 13893 | .block_erase = erase_sector_jedec, |
| 13894 | }, { |
| 13895 | .eraseblocks = { {256 * 1024, 1} }, |
| 13896 | .block_erase = erase_chip_block_jedec, |
| 13897 | }, |
| 13898 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13899 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13900 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13901 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13902 | }, |
| 13903 | |
| 13904 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 13905 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13906 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13907 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13908 | .manufacture_id = TI_OLD_ID, |
| 13909 | .model_id = TI_TMS29F002RT, |
| 13910 | .total_size = 256, |
| 13911 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13912 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13913 | .tested = TEST_UNTESTED, |
| 13914 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13915 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13916 | .block_erasers = |
| 13917 | { |
| 13918 | { |
| 13919 | .eraseblocks = { |
| 13920 | {64 * 1024, 3}, |
| 13921 | {32 * 1024, 1}, |
| 13922 | {8 * 1024, 2}, |
| 13923 | {16 * 1024, 1}, |
| 13924 | }, |
| 13925 | .block_erase = erase_sector_jedec, |
| 13926 | }, { |
| 13927 | .eraseblocks = { {256 * 1024, 1} }, |
| 13928 | .block_erase = erase_chip_block_jedec, |
| 13929 | }, |
| 13930 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13931 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13932 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13933 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13934 | }, |
| 13935 | |
| 13936 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13937 | .vendor = "Winbond", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 13938 | .name = "W25Q40.V", |
| 13939 | .bustype = BUS_SPI, |
| 13940 | .manufacture_id = WINBOND_NEX_ID, |
| 13941 | .model_id = WINBOND_NEX_W25Q40_V, |
| 13942 | .total_size = 512, |
| 13943 | .page_size = 256, |
| 13944 | /* supports SFDP */ |
| 13945 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 13946 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13947 | .tested = TEST_OK_PREW, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 13948 | .probe = probe_spi_rdid, |
| 13949 | .probe_timing = TIMING_ZERO, |
| 13950 | .block_erasers = |
| 13951 | { |
| 13952 | { |
| 13953 | .eraseblocks = { {4 * 1024, 128} }, |
| 13954 | .block_erase = spi_block_erase_20, |
| 13955 | }, { |
| 13956 | .eraseblocks = { {32 * 1024, 16} }, |
| 13957 | .block_erase = spi_block_erase_52, |
| 13958 | }, { |
| 13959 | .eraseblocks = { {64 * 1024, 8} }, |
| 13960 | .block_erase = spi_block_erase_d8, |
| 13961 | }, { |
| 13962 | .eraseblocks = { {512 * 1024, 1} }, |
| 13963 | .block_erase = spi_block_erase_60, |
| 13964 | }, { |
| 13965 | .eraseblocks = { {512 * 1024, 1} }, |
| 13966 | .block_erase = spi_block_erase_c7, |
| 13967 | } |
| 13968 | }, |
| 13969 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13970 | .unlock = spi_disable_blockprotect, |
| 13971 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13972 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13973 | .voltage = {2700, 3600}, |
| 13974 | }, |
| 13975 | |
| 13976 | { |
| 13977 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13978 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13979 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13980 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13981 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13982 | .total_size = 1024, |
| 13983 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13984 | /* supports SFDP */ |
| 13985 | /* 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] | 13986 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 13987 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13988 | .probe = probe_spi_rdid, |
| 13989 | .probe_timing = TIMING_ZERO, |
| 13990 | .block_erasers = |
| 13991 | { |
| 13992 | { |
| 13993 | .eraseblocks = { {4 * 1024, 256} }, |
| 13994 | .block_erase = spi_block_erase_20, |
| 13995 | }, { |
| 13996 | .eraseblocks = { {32 * 1024, 32} }, |
| 13997 | .block_erase = spi_block_erase_52, |
| 13998 | }, { |
| 13999 | .eraseblocks = { {64 * 1024, 16} }, |
| 14000 | .block_erase = spi_block_erase_d8, |
| 14001 | }, { |
| 14002 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14003 | .block_erase = spi_block_erase_60, |
| 14004 | }, { |
| 14005 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14006 | .block_erase = spi_block_erase_c7, |
| 14007 | } |
| 14008 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14009 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14010 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14011 | .write = spi_chip_write_256, |
| 14012 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14013 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14014 | }, |
| 14015 | |
| 14016 | { |
| 14017 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14018 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14019 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14020 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14021 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14022 | .total_size = 2048, |
| 14023 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14024 | /* supports SFDP */ |
| 14025 | /* 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] | 14026 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 14027 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14028 | .probe = probe_spi_rdid, |
| 14029 | .probe_timing = TIMING_ZERO, |
| 14030 | .block_erasers = |
| 14031 | { |
| 14032 | { |
| 14033 | .eraseblocks = { {4 * 1024, 512} }, |
| 14034 | .block_erase = spi_block_erase_20, |
| 14035 | }, { |
| 14036 | .eraseblocks = { {32 * 1024, 64} }, |
| 14037 | .block_erase = spi_block_erase_52, |
| 14038 | }, { |
| 14039 | .eraseblocks = { {64 * 1024, 32} }, |
| 14040 | .block_erase = spi_block_erase_d8, |
| 14041 | }, { |
| 14042 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14043 | .block_erase = spi_block_erase_60, |
| 14044 | }, { |
| 14045 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14046 | .block_erase = spi_block_erase_c7, |
| 14047 | } |
| 14048 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14049 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14050 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14051 | .write = spi_chip_write_256, |
| 14052 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14053 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14054 | }, |
| 14055 | |
| 14056 | { |
| 14057 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14058 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14059 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14060 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14061 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14062 | .total_size = 4096, |
| 14063 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14064 | /* supports SFDP */ |
| 14065 | /* 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] | 14066 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 14067 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14068 | .probe = probe_spi_rdid, |
| 14069 | .probe_timing = TIMING_ZERO, |
| 14070 | .block_erasers = |
| 14071 | { |
| 14072 | { |
| 14073 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14074 | .block_erase = spi_block_erase_20, |
| 14075 | }, { |
| 14076 | .eraseblocks = { {32 * 1024, 128} }, |
| 14077 | .block_erase = spi_block_erase_52, |
| 14078 | }, { |
| 14079 | .eraseblocks = { {64 * 1024, 64} }, |
| 14080 | .block_erase = spi_block_erase_d8, |
| 14081 | }, { |
| 14082 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14083 | .block_erase = spi_block_erase_60, |
| 14084 | }, { |
| 14085 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14086 | .block_erase = spi_block_erase_c7, |
| 14087 | } |
| 14088 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14089 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14090 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14091 | .write = spi_chip_write_256, |
| 14092 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14093 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 14094 | }, |
| 14095 | |
| 14096 | { |
| 14097 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14098 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14099 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14100 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14101 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14102 | .total_size = 8192, |
| 14103 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14104 | /* supports SFDP */ |
| 14105 | /* 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] | 14106 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 14107 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14108 | .probe = probe_spi_rdid, |
| 14109 | .probe_timing = TIMING_ZERO, |
| 14110 | .block_erasers = |
| 14111 | { |
| 14112 | { |
| 14113 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14114 | .block_erase = spi_block_erase_20, |
| 14115 | }, { |
| 14116 | .eraseblocks = { {32 * 1024, 256} }, |
| 14117 | .block_erase = spi_block_erase_52, |
| 14118 | }, { |
| 14119 | .eraseblocks = { {64 * 1024, 128} }, |
| 14120 | .block_erase = spi_block_erase_d8, |
| 14121 | }, { |
| 14122 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14123 | .block_erase = spi_block_erase_60, |
| 14124 | }, { |
| 14125 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14126 | .block_erase = spi_block_erase_c7, |
| 14127 | } |
| 14128 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14129 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14130 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14131 | .write = spi_chip_write_256, |
| 14132 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14133 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 14134 | }, |
| 14135 | |
| 14136 | { |
| 14137 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14138 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14139 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14140 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14141 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14142 | .total_size = 16384, |
| 14143 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14144 | /* supports SFDP */ |
| 14145 | /* 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] | 14146 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14147 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14148 | .probe = probe_spi_rdid, |
| 14149 | .probe_timing = TIMING_ZERO, |
| 14150 | .block_erasers = |
| 14151 | { |
| 14152 | { |
| 14153 | .eraseblocks = { {4 * 1024, 4096} }, |
| 14154 | .block_erase = spi_block_erase_20, |
| 14155 | }, { |
| 14156 | .eraseblocks = { {32 * 1024, 512} }, |
| 14157 | .block_erase = spi_block_erase_52, |
| 14158 | }, { |
| 14159 | .eraseblocks = { {64 * 1024, 256} }, |
| 14160 | .block_erase = spi_block_erase_d8, |
| 14161 | }, { |
| 14162 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 14163 | .block_erase = spi_block_erase_60, |
| 14164 | }, { |
| 14165 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 14166 | .block_erase = spi_block_erase_c7, |
| 14167 | } |
| 14168 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14169 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14170 | .unlock = spi_disable_blockprotect, |
| 14171 | .write = spi_chip_write_256, |
| 14172 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14173 | .voltage = {2700, 3600}, |
| 14174 | }, |
| 14175 | |
| 14176 | { |
| 14177 | .vendor = "Winbond", |
| 14178 | .name = "W25Q20.W", |
| 14179 | .bustype = BUS_SPI, |
| 14180 | .manufacture_id = WINBOND_NEX_ID, |
| 14181 | .model_id = WINBOND_NEX_W25Q20_W, |
| 14182 | .total_size = 256, |
| 14183 | .page_size = 256, |
| 14184 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14185 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14186 | .tested = TEST_UNTESTED, |
| 14187 | .probe = probe_spi_rdid, |
| 14188 | .probe_timing = TIMING_ZERO, |
| 14189 | .block_erasers = |
| 14190 | { |
| 14191 | { |
| 14192 | .eraseblocks = { {4 * 1024, 64} }, |
| 14193 | .block_erase = spi_block_erase_20, |
| 14194 | }, { |
| 14195 | .eraseblocks = { {32 * 1024, 8} }, |
| 14196 | .block_erase = spi_block_erase_52, |
| 14197 | }, { |
| 14198 | .eraseblocks = { {64 * 1024, 4} }, |
| 14199 | .block_erase = spi_block_erase_d8, |
| 14200 | }, { |
| 14201 | .eraseblocks = { {256 * 1024, 1} }, |
| 14202 | .block_erase = spi_block_erase_60, |
| 14203 | }, { |
| 14204 | .eraseblocks = { {256 * 1024, 1} }, |
| 14205 | .block_erase = spi_block_erase_c7, |
| 14206 | } |
| 14207 | }, |
| 14208 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14209 | .unlock = spi_disable_blockprotect, |
| 14210 | .write = spi_chip_write_256, |
| 14211 | .read = spi_chip_read, |
| 14212 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 14213 | }, |
| 14214 | |
| 14215 | { |
| 14216 | .vendor = "Winbond", |
| 14217 | .name = "W25Q40.W", |
| 14218 | .bustype = BUS_SPI, |
| 14219 | .manufacture_id = WINBOND_NEX_ID, |
| 14220 | .model_id = WINBOND_NEX_W25Q40_W, |
| 14221 | .total_size = 512, |
| 14222 | .page_size = 256, |
| 14223 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14224 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14225 | .tested = TEST_UNTESTED, |
| 14226 | .probe = probe_spi_rdid, |
| 14227 | .probe_timing = TIMING_ZERO, |
| 14228 | .block_erasers = |
| 14229 | { |
| 14230 | { |
| 14231 | .eraseblocks = { {4 * 1024, 128} }, |
| 14232 | .block_erase = spi_block_erase_20, |
| 14233 | }, { |
| 14234 | .eraseblocks = { {32 * 1024, 16} }, |
| 14235 | .block_erase = spi_block_erase_52, |
| 14236 | }, { |
| 14237 | .eraseblocks = { {64 * 1024, 8} }, |
| 14238 | .block_erase = spi_block_erase_d8, |
| 14239 | }, { |
| 14240 | .eraseblocks = { {512 * 1024, 1} }, |
| 14241 | .block_erase = spi_block_erase_60, |
| 14242 | }, { |
| 14243 | .eraseblocks = { {512 * 1024, 1} }, |
| 14244 | .block_erase = spi_block_erase_c7, |
| 14245 | } |
| 14246 | }, |
| 14247 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14248 | .unlock = spi_disable_blockprotect, |
| 14249 | .write = spi_chip_write_256, |
| 14250 | .read = spi_chip_read, |
| 14251 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 14252 | }, |
| 14253 | |
| 14254 | { |
| 14255 | .vendor = "Winbond", |
| 14256 | .name = "W25Q80.W", |
| 14257 | .bustype = BUS_SPI, |
| 14258 | .manufacture_id = WINBOND_NEX_ID, |
| 14259 | .model_id = WINBOND_NEX_W25Q80_W, |
| 14260 | .total_size = 1024, |
| 14261 | .page_size = 256, |
| 14262 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14263 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14264 | .tested = TEST_UNTESTED, |
| 14265 | .probe = probe_spi_rdid, |
| 14266 | .probe_timing = TIMING_ZERO, |
| 14267 | .block_erasers = |
| 14268 | { |
| 14269 | { |
| 14270 | .eraseblocks = { {4 * 1024, 256} }, |
| 14271 | .block_erase = spi_block_erase_20, |
| 14272 | }, { |
| 14273 | .eraseblocks = { {32 * 1024, 32} }, |
| 14274 | .block_erase = spi_block_erase_52, |
| 14275 | }, { |
| 14276 | .eraseblocks = { {64 * 1024, 16} }, |
| 14277 | .block_erase = spi_block_erase_d8, |
| 14278 | }, { |
| 14279 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 14280 | .block_erase = spi_block_erase_60, |
| 14281 | }, { |
| 14282 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 14283 | .block_erase = spi_block_erase_c7, |
| 14284 | } |
| 14285 | }, |
| 14286 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14287 | .unlock = spi_disable_blockprotect, |
| 14288 | .write = spi_chip_write_256, |
| 14289 | .read = spi_chip_read, |
| 14290 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 14291 | }, |
| 14292 | |
| 14293 | { |
| 14294 | .vendor = "Winbond", |
| 14295 | .name = "W25Q16.W", |
| 14296 | .bustype = BUS_SPI, |
| 14297 | .manufacture_id = WINBOND_NEX_ID, |
| 14298 | .model_id = WINBOND_NEX_W25Q16_W, |
| 14299 | .total_size = 2048, |
| 14300 | .page_size = 256, |
| 14301 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14302 | /* QPI enable 0x38, disable 0xFF */ |
| 14303 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 14304 | .tested = TEST_UNTESTED, |
| 14305 | .probe = probe_spi_rdid, |
| 14306 | .probe_timing = TIMING_ZERO, |
| 14307 | .block_erasers = |
| 14308 | { |
| 14309 | { |
| 14310 | .eraseblocks = { {4 * 1024, 512} }, |
| 14311 | .block_erase = spi_block_erase_20, |
| 14312 | }, { |
| 14313 | .eraseblocks = { {32 * 1024, 64} }, |
| 14314 | .block_erase = spi_block_erase_52, |
| 14315 | }, { |
| 14316 | .eraseblocks = { {64 * 1024, 32} }, |
| 14317 | .block_erase = spi_block_erase_d8, |
| 14318 | }, { |
| 14319 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14320 | .block_erase = spi_block_erase_60, |
| 14321 | }, { |
| 14322 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14323 | .block_erase = spi_block_erase_c7, |
| 14324 | } |
| 14325 | }, |
| 14326 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14327 | .unlock = spi_disable_blockprotect, |
| 14328 | .write = spi_chip_write_256, |
| 14329 | .read = spi_chip_read, |
| 14330 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 14331 | }, |
| 14332 | |
| 14333 | { |
| 14334 | .vendor = "Winbond", |
| 14335 | .name = "W25Q32.W", |
| 14336 | .bustype = BUS_SPI, |
| 14337 | .manufacture_id = WINBOND_NEX_ID, |
| 14338 | .model_id = WINBOND_NEX_W25Q32_W, |
| 14339 | .total_size = 4096, |
| 14340 | .page_size = 256, |
| 14341 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14342 | /* QPI enable 0x38, disable 0xFF */ |
| 14343 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 14344 | .tested = TEST_OK_PREW, |
| 14345 | .probe = probe_spi_rdid, |
| 14346 | .probe_timing = TIMING_ZERO, |
| 14347 | .block_erasers = |
| 14348 | { |
| 14349 | { |
| 14350 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14351 | .block_erase = spi_block_erase_20, |
| 14352 | }, { |
| 14353 | .eraseblocks = { {32 * 1024, 128} }, |
| 14354 | .block_erase = spi_block_erase_52, |
| 14355 | }, { |
| 14356 | .eraseblocks = { {64 * 1024, 64} }, |
| 14357 | .block_erase = spi_block_erase_d8, |
| 14358 | }, { |
| 14359 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14360 | .block_erase = spi_block_erase_60, |
| 14361 | }, { |
| 14362 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14363 | .block_erase = spi_block_erase_c7, |
| 14364 | } |
| 14365 | }, |
| 14366 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14367 | .unlock = spi_disable_blockprotect, |
| 14368 | .write = spi_chip_write_256, |
| 14369 | .read = spi_chip_read, |
| 14370 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 14371 | }, |
| 14372 | |
| 14373 | { |
| 14374 | .vendor = "Winbond", |
| 14375 | .name = "W25Q64.W", |
| 14376 | .bustype = BUS_SPI, |
| 14377 | .manufacture_id = WINBOND_NEX_ID, |
| 14378 | .model_id = WINBOND_NEX_W25Q64_W, |
| 14379 | .total_size = 8192, |
| 14380 | .page_size = 256, |
| 14381 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 14382 | /* QPI enable 0x38, disable 0xFF */ |
| 14383 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14384 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 14385 | .probe = probe_spi_rdid, |
| 14386 | .probe_timing = TIMING_ZERO, |
| 14387 | .block_erasers = |
| 14388 | { |
| 14389 | { |
| 14390 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14391 | .block_erase = spi_block_erase_20, |
| 14392 | }, { |
| 14393 | .eraseblocks = { {32 * 1024, 256} }, |
| 14394 | .block_erase = spi_block_erase_52, |
| 14395 | }, { |
| 14396 | .eraseblocks = { {64 * 1024, 128} }, |
| 14397 | .block_erase = spi_block_erase_d8, |
| 14398 | }, { |
| 14399 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14400 | .block_erase = spi_block_erase_60, |
| 14401 | }, { |
| 14402 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14403 | .block_erase = spi_block_erase_c7, |
| 14404 | } |
| 14405 | }, |
| 14406 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14407 | .unlock = spi_disable_blockprotect, |
| 14408 | .write = spi_chip_write_256, |
| 14409 | .read = spi_chip_read, |
| 14410 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14411 | }, |
| 14412 | |
| 14413 | { |
| 14414 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14415 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14416 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14417 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14418 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14419 | .total_size = 128, |
| 14420 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 14421 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14422 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14423 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14424 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14425 | .block_erasers = |
| 14426 | { |
| 14427 | { |
| 14428 | .eraseblocks = { {4 * 1024, 32} }, |
| 14429 | .block_erase = spi_block_erase_20, |
| 14430 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14431 | .eraseblocks = { {64 * 1024, 2} }, |
| 14432 | .block_erase = spi_block_erase_d8, |
| 14433 | }, { |
| 14434 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14435 | .block_erase = spi_block_erase_c7, |
| 14436 | } |
| 14437 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14438 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14439 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 14440 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14441 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14442 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14443 | }, |
| 14444 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14445 | { |
| 14446 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14447 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14448 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14449 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14450 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14451 | .total_size = 256, |
| 14452 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 14453 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14454 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14455 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14456 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14457 | .block_erasers = |
| 14458 | { |
| 14459 | { |
| 14460 | .eraseblocks = { {4 * 1024, 64} }, |
| 14461 | .block_erase = spi_block_erase_20, |
| 14462 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14463 | .eraseblocks = { {64 * 1024, 4} }, |
| 14464 | .block_erase = spi_block_erase_d8, |
| 14465 | }, { |
| 14466 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14467 | .block_erase = spi_block_erase_c7, |
| 14468 | } |
| 14469 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14470 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14471 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 14472 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14473 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14474 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14475 | }, |
| 14476 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14477 | { |
| 14478 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14479 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14480 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14481 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14482 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14483 | .total_size = 512, |
| 14484 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 14485 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 14486 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14487 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14488 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14489 | .block_erasers = |
| 14490 | { |
| 14491 | { |
| 14492 | .eraseblocks = { {4 * 1024, 128} }, |
| 14493 | .block_erase = spi_block_erase_20, |
| 14494 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14495 | .eraseblocks = { {64 * 1024, 8} }, |
| 14496 | .block_erase = spi_block_erase_d8, |
| 14497 | }, { |
| 14498 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14499 | .block_erase = spi_block_erase_c7, |
| 14500 | } |
| 14501 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14502 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14503 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 14504 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14505 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14506 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14507 | }, |
| 14508 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14509 | { |
| 14510 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14511 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14512 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14513 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14514 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14515 | .total_size = 1024, |
| 14516 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 14517 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 14518 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14519 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14520 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14521 | .block_erasers = |
| 14522 | { |
| 14523 | { |
| 14524 | .eraseblocks = { {4 * 1024, 256} }, |
| 14525 | .block_erase = spi_block_erase_20, |
| 14526 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14527 | .eraseblocks = { {64 * 1024, 16} }, |
| 14528 | .block_erase = spi_block_erase_d8, |
| 14529 | }, { |
| 14530 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14531 | .block_erase = spi_block_erase_c7, |
| 14532 | } |
| 14533 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14534 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14535 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 14536 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14537 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14538 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14539 | }, |
| 14540 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14541 | { |
| 14542 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14543 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14544 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 14545 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14546 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 14547 | .total_size = 2048, |
| 14548 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 14549 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 14550 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 14551 | .probe = probe_spi_rdid, |
| 14552 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14553 | .block_erasers = |
| 14554 | { |
| 14555 | { |
| 14556 | .eraseblocks = { {4 * 1024, 512} }, |
| 14557 | .block_erase = spi_block_erase_20, |
| 14558 | }, { |
| 14559 | .eraseblocks = { {32 * 1024, 64} }, |
| 14560 | .block_erase = spi_block_erase_52, |
| 14561 | }, { |
| 14562 | .eraseblocks = { {64 * 1024, 32} }, |
| 14563 | .block_erase = spi_block_erase_d8, |
| 14564 | }, { |
| 14565 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14566 | .block_erase = spi_block_erase_60, |
| 14567 | }, { |
| 14568 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14569 | .block_erase = spi_block_erase_c7, |
| 14570 | } |
| 14571 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14572 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14573 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 14574 | .write = spi_chip_write_256, |
| 14575 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14576 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 14577 | }, |
| 14578 | |
| 14579 | { |
| 14580 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14581 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14582 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14583 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14584 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14585 | .total_size = 4096, |
| 14586 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 14587 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14588 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14589 | .probe = probe_spi_rdid, |
| 14590 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14591 | .block_erasers = |
| 14592 | { |
| 14593 | { |
| 14594 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14595 | .block_erase = spi_block_erase_20, |
| 14596 | }, { |
| 14597 | .eraseblocks = { {32 * 1024, 128} }, |
| 14598 | .block_erase = spi_block_erase_52, |
| 14599 | }, { |
| 14600 | .eraseblocks = { {64 * 1024, 64} }, |
| 14601 | .block_erase = spi_block_erase_d8, |
| 14602 | }, { |
| 14603 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14604 | .block_erase = spi_block_erase_60, |
| 14605 | }, { |
| 14606 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14607 | .block_erase = spi_block_erase_c7, |
| 14608 | } |
| 14609 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14610 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14611 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14612 | .write = spi_chip_write_256, |
| 14613 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14614 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14615 | }, |
| 14616 | |
| 14617 | { |
| 14618 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14619 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14620 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14621 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14622 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14623 | .total_size = 8192, |
| 14624 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 14625 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14626 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14627 | .probe = probe_spi_rdid, |
| 14628 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14629 | .block_erasers = |
| 14630 | { |
| 14631 | { |
| 14632 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14633 | .block_erase = spi_block_erase_20, |
| 14634 | }, { |
| 14635 | .eraseblocks = { {32 * 1024, 256} }, |
| 14636 | .block_erase = spi_block_erase_52, |
| 14637 | }, { |
| 14638 | .eraseblocks = { {64 * 1024, 128} }, |
| 14639 | .block_erase = spi_block_erase_d8, |
| 14640 | }, { |
| 14641 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14642 | .block_erase = spi_block_erase_60, |
| 14643 | }, { |
| 14644 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14645 | .block_erase = spi_block_erase_c7, |
| 14646 | } |
| 14647 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14648 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14649 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14650 | .write = spi_chip_write_256, |
| 14651 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14652 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14653 | }, |
| 14654 | |
| 14655 | { |
| 14656 | .vendor = "Winbond", |
Urja Rannikko | 2a1aaba | 2015-06-20 11:53:10 +0000 | [diff] [blame] | 14657 | .name = "W29C512A/W29EE512", |
| 14658 | .bustype = BUS_PARALLEL, |
| 14659 | .manufacture_id = WINBOND_ID, |
| 14660 | .model_id = WINBOND_W29C512A, |
| 14661 | .total_size = 64, |
| 14662 | .page_size = 128, |
| 14663 | .feature_bits = FEATURE_LONG_RESET, |
| 14664 | .tested = TEST_OK_PREW, |
| 14665 | .probe = probe_jedec, |
| 14666 | .probe_timing = 10, |
| 14667 | .block_erasers = |
| 14668 | { |
| 14669 | { |
| 14670 | .eraseblocks = { {64 * 1024, 1} }, |
| 14671 | .block_erase = erase_chip_block_jedec, |
| 14672 | } |
| 14673 | }, |
| 14674 | .write = write_jedec, |
| 14675 | .read = read_memmapped, |
| 14676 | .voltage = {4500, 5500}, |
| 14677 | }, |
| 14678 | |
| 14679 | { |
| 14680 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 14681 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14682 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 14683 | .manufacture_id = WINBOND_ID, |
| 14684 | .model_id = WINBOND_W29C010, |
| 14685 | .total_size = 128, |
| 14686 | .page_size = 128, |
| 14687 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14688 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 14689 | .probe = probe_w29ee011, |
| 14690 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 14691 | .block_erasers = |
| 14692 | { |
| 14693 | { |
| 14694 | .eraseblocks = { {128 * 1024, 1} }, |
| 14695 | .block_erase = erase_chip_block_jedec, |
| 14696 | } |
| 14697 | }, |
| 14698 | .write = write_jedec, |
| 14699 | .read = read_memmapped, |
| 14700 | }, |
| 14701 | |
| 14702 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 14703 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14704 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14705 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14706 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14707 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14708 | .total_size = 128, |
| 14709 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14710 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 14711 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14712 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14713 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14714 | .block_erasers = |
| 14715 | { |
| 14716 | { |
| 14717 | .eraseblocks = { {128 * 1024, 1} }, |
| 14718 | .block_erase = erase_chip_block_jedec, |
| 14719 | } |
| 14720 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14721 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14722 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14723 | }, |
| 14724 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14725 | { |
| 14726 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14727 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14728 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14729 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14730 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14731 | .total_size = 256, |
| 14732 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14733 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14734 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14735 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14736 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14737 | .block_erasers = |
| 14738 | { |
| 14739 | { |
| 14740 | .eraseblocks = { {256 * 1024, 1} }, |
| 14741 | .block_erase = erase_chip_block_jedec, |
| 14742 | } |
| 14743 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14744 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14745 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14746 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14747 | }, |
| 14748 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14749 | { |
| 14750 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14751 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14752 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14753 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14754 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14755 | .total_size = 512, |
| 14756 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14757 | .feature_bits = FEATURE_LONG_RESET, |
| 14758 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14759 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14760 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14761 | .block_erasers = |
| 14762 | { |
| 14763 | { |
| 14764 | .eraseblocks = { {512 * 1024, 1} }, |
| 14765 | .block_erase = erase_chip_block_jedec, |
| 14766 | } |
| 14767 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14768 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14769 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14770 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14771 | }, |
| 14772 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14773 | { |
| 14774 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 14775 | .name = "W29GL032CB", |
| 14776 | .bustype = BUS_PARALLEL, |
| 14777 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14778 | .model_id = WINBOND_W29GL032CB, |
| 14779 | .total_size = 4096, |
| 14780 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14781 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14782 | .tested = TEST_UNTESTED, |
| 14783 | .probe = probe_jedec_29gl, |
| 14784 | .probe_timing = TIMING_ZERO, |
| 14785 | .block_erasers = |
| 14786 | { |
| 14787 | { |
| 14788 | .eraseblocks = { |
| 14789 | {8 * 1024, 8}, |
| 14790 | {64 * 1024, 63}, |
| 14791 | }, |
| 14792 | .block_erase = erase_sector_jedec, |
| 14793 | }, { |
| 14794 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14795 | .block_erase = erase_chip_block_jedec, |
| 14796 | }, |
| 14797 | }, |
| 14798 | .write = write_jedec_1, |
| 14799 | .read = read_memmapped, |
| 14800 | .voltage = {2700, 3600}, |
| 14801 | }, |
| 14802 | |
| 14803 | { |
| 14804 | .vendor = "Winbond", |
| 14805 | .name = "W29GL032CT", |
| 14806 | .bustype = BUS_PARALLEL, |
| 14807 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14808 | .model_id = WINBOND_W29GL032CT, |
| 14809 | .total_size = 4096, |
| 14810 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14811 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14812 | .tested = TEST_UNTESTED, |
| 14813 | .probe = probe_jedec_29gl, |
| 14814 | .probe_timing = TIMING_ZERO, |
| 14815 | .block_erasers = |
| 14816 | { |
| 14817 | { |
| 14818 | .eraseblocks = { |
| 14819 | {64 * 1024, 63}, |
| 14820 | {8 * 1024, 8}, |
| 14821 | }, |
| 14822 | .block_erase = erase_sector_jedec, |
| 14823 | }, { |
| 14824 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14825 | .block_erase = erase_chip_block_jedec, |
| 14826 | }, |
| 14827 | }, |
| 14828 | .write = write_jedec_1, |
| 14829 | .read = read_memmapped, |
| 14830 | .voltage = {2700, 3600}, |
| 14831 | }, |
| 14832 | |
| 14833 | { |
| 14834 | .vendor = "Winbond", |
| 14835 | .name = "W29GL032CH/L", |
| 14836 | .bustype = BUS_PARALLEL, |
| 14837 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14838 | .model_id = WINBOND_W29GL032CHL, |
| 14839 | .total_size = 4096, |
| 14840 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14841 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14842 | .tested = TEST_UNTESTED, |
| 14843 | .probe = probe_jedec_29gl, |
| 14844 | .probe_timing = TIMING_ZERO, |
| 14845 | .block_erasers = |
| 14846 | { |
| 14847 | { |
| 14848 | .eraseblocks = { {64 * 1024, 64} }, |
| 14849 | .block_erase = erase_sector_jedec, |
| 14850 | }, { |
| 14851 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14852 | .block_erase = erase_chip_block_jedec, |
| 14853 | }, |
| 14854 | }, |
| 14855 | .write = write_jedec_1, |
| 14856 | .read = read_memmapped, |
| 14857 | .voltage = {2700, 3600}, |
| 14858 | }, |
| 14859 | |
| 14860 | { |
| 14861 | .vendor = "Winbond", |
| 14862 | .name = "W29GL064CB", |
| 14863 | .bustype = BUS_PARALLEL, |
| 14864 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14865 | .model_id = WINBOND_W29GL064CB, |
| 14866 | .total_size = 8192, |
| 14867 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14868 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14869 | .tested = TEST_UNTESTED, |
| 14870 | .probe = probe_jedec_29gl, |
| 14871 | .probe_timing = TIMING_ZERO, |
| 14872 | .block_erasers = |
| 14873 | { |
| 14874 | { |
| 14875 | .eraseblocks = { |
| 14876 | {8 * 1024, 8}, |
| 14877 | {64 * 1024, 127}, |
| 14878 | }, |
| 14879 | .block_erase = erase_sector_jedec, |
| 14880 | }, { |
| 14881 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14882 | .block_erase = erase_chip_block_jedec, |
| 14883 | }, |
| 14884 | }, |
| 14885 | .write = write_jedec_1, |
| 14886 | .read = read_memmapped, |
| 14887 | .voltage = {2700, 3600}, |
| 14888 | }, |
| 14889 | |
| 14890 | { |
| 14891 | .vendor = "Winbond", |
| 14892 | .name = "W29GL064CT", |
| 14893 | .bustype = BUS_PARALLEL, |
| 14894 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14895 | .model_id = WINBOND_W29GL064CT, |
| 14896 | .total_size = 8192, |
| 14897 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14898 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14899 | .tested = TEST_UNTESTED, |
| 14900 | .probe = probe_jedec_29gl, |
| 14901 | .probe_timing = TIMING_ZERO, |
| 14902 | .block_erasers = |
| 14903 | { |
| 14904 | { |
| 14905 | .eraseblocks = { |
| 14906 | {64 * 1024, 127}, |
| 14907 | {8 * 1024, 8}, |
| 14908 | }, |
| 14909 | .block_erase = erase_sector_jedec, |
| 14910 | }, { |
| 14911 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14912 | .block_erase = erase_chip_block_jedec, |
| 14913 | }, |
| 14914 | }, |
| 14915 | .write = write_jedec_1, |
| 14916 | .read = read_memmapped, |
| 14917 | .voltage = {2700, 3600}, |
| 14918 | }, |
| 14919 | |
| 14920 | { |
| 14921 | .vendor = "Winbond", |
| 14922 | .name = "W29GL064CH/L", |
| 14923 | .bustype = BUS_PARALLEL, |
| 14924 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14925 | .model_id = WINBOND_W29GL064CHL, |
| 14926 | .total_size = 8192, |
| 14927 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14928 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14929 | .tested = TEST_UNTESTED, |
| 14930 | .probe = probe_jedec_29gl, |
| 14931 | .probe_timing = TIMING_ZERO, |
| 14932 | .block_erasers = |
| 14933 | { |
| 14934 | { |
| 14935 | .eraseblocks = { {64 * 1024, 128} }, |
| 14936 | .block_erase = erase_sector_jedec, |
| 14937 | }, { |
| 14938 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14939 | .block_erase = erase_chip_block_jedec, |
| 14940 | }, |
| 14941 | }, |
| 14942 | .write = write_jedec_1, |
| 14943 | .read = read_memmapped, |
| 14944 | .voltage = {2700, 3600}, |
| 14945 | }, |
| 14946 | |
| 14947 | { |
| 14948 | .vendor = "Winbond", |
| 14949 | .name = "W29GL128C", |
| 14950 | .bustype = BUS_PARALLEL, |
| 14951 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14952 | .model_id = WINBOND_W29GL128CHL, |
| 14953 | .total_size = 16384, |
| 14954 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14955 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14956 | .tested = TEST_UNTESTED, |
| 14957 | .probe = probe_jedec_29gl, |
| 14958 | .probe_timing = TIMING_ZERO, |
| 14959 | .block_erasers = |
| 14960 | { |
| 14961 | { |
| 14962 | .eraseblocks = { {128 * 1024, 128} }, |
| 14963 | .block_erase = erase_sector_jedec, |
| 14964 | }, { |
| 14965 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 14966 | .block_erase = erase_chip_block_jedec, |
| 14967 | }, |
| 14968 | }, |
| 14969 | .write = write_jedec_1, |
| 14970 | .read = read_memmapped, |
| 14971 | .voltage = {2700, 3600}, |
| 14972 | }, |
| 14973 | |
| 14974 | { |
| 14975 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 14976 | .name = "W39F010", |
| 14977 | .bustype = BUS_PARALLEL, |
| 14978 | .manufacture_id = WINBOND_ID, |
| 14979 | .model_id = WINBOND_W39F010, |
| 14980 | .total_size = 128, |
| 14981 | .page_size = 4 * 1024, |
| 14982 | .feature_bits = FEATURE_EITHER_RESET, |
| 14983 | .tested = TEST_OK_PREW, |
| 14984 | .probe = probe_jedec, |
| 14985 | .probe_timing = 10, |
| 14986 | .block_erasers = |
| 14987 | { |
| 14988 | { |
| 14989 | .eraseblocks = { {4 * 1024, 32} }, |
| 14990 | .block_erase = erase_block_jedec, |
| 14991 | }, { |
| 14992 | .eraseblocks = { {128 * 1024, 1} }, |
| 14993 | .block_erase = erase_chip_block_jedec, |
| 14994 | } |
| 14995 | }, |
| 14996 | .printlock = printlock_w39f010, |
| 14997 | .write = write_jedec_1, |
| 14998 | .read = read_memmapped, |
| 14999 | .voltage = {4500, 5500}, |
| 15000 | }, |
| 15001 | |
| 15002 | { |
| 15003 | .vendor = "Winbond", |
| 15004 | .name = "W39L010", |
| 15005 | .bustype = BUS_PARALLEL, |
| 15006 | .manufacture_id = WINBOND_ID, |
| 15007 | .model_id = WINBOND_W39L010, |
| 15008 | .total_size = 128, |
| 15009 | .page_size = 4 * 1024, |
| 15010 | .feature_bits = FEATURE_EITHER_RESET, |
| 15011 | .tested = TEST_UNTESTED, |
| 15012 | .probe = probe_jedec, |
| 15013 | .probe_timing = 10, |
| 15014 | .block_erasers = |
| 15015 | { |
| 15016 | { |
| 15017 | .eraseblocks = { {4 * 1024, 32} }, |
| 15018 | .block_erase = erase_block_jedec, |
| 15019 | }, { |
| 15020 | .eraseblocks = { {128 * 1024, 1} }, |
| 15021 | .block_erase = erase_chip_block_jedec, |
| 15022 | } |
| 15023 | }, |
| 15024 | .printlock = printlock_w39l010, |
| 15025 | .write = write_jedec_1, |
| 15026 | .read = read_memmapped, |
| 15027 | .voltage = {3000, 3600}, |
| 15028 | }, |
| 15029 | |
| 15030 | { |
| 15031 | .vendor = "Winbond", |
| 15032 | .name = "W39L020", |
| 15033 | .bustype = BUS_PARALLEL, |
| 15034 | .manufacture_id = WINBOND_ID, |
| 15035 | .model_id = WINBOND_W39L020, |
| 15036 | .total_size = 256, |
| 15037 | .page_size = 4 * 1024, |
| 15038 | .feature_bits = FEATURE_EITHER_RESET, |
| 15039 | .tested = TEST_UNTESTED, |
| 15040 | .probe = probe_jedec, |
| 15041 | .probe_timing = 10, |
| 15042 | .block_erasers = |
| 15043 | { |
| 15044 | { |
| 15045 | .eraseblocks = { {4 * 1024, 64} }, |
| 15046 | .block_erase = erase_block_jedec, |
| 15047 | }, { |
| 15048 | .eraseblocks = { {64 * 1024, 4} }, |
| 15049 | .block_erase = erase_sector_jedec, |
| 15050 | }, { |
| 15051 | .eraseblocks = { {256 * 1024, 1} }, |
| 15052 | .block_erase = erase_chip_block_jedec, |
| 15053 | } |
| 15054 | }, |
| 15055 | .printlock = printlock_w39l020, |
| 15056 | .write = write_jedec_1, |
| 15057 | .read = read_memmapped, |
| 15058 | .voltage = {3000, 3600}, |
| 15059 | }, |
| 15060 | |
| 15061 | { |
| 15062 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15063 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15064 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15065 | .manufacture_id = WINBOND_ID, |
| 15066 | .model_id = WINBOND_W39L040, |
| 15067 | .total_size = 512, |
| 15068 | .page_size = 64 * 1024, |
| 15069 | .feature_bits = FEATURE_EITHER_RESET, |
| 15070 | .tested = TEST_OK_PR, |
| 15071 | .probe = probe_jedec, |
| 15072 | .probe_timing = 10, |
| 15073 | .block_erasers = |
| 15074 | { |
| 15075 | { |
| 15076 | .eraseblocks = { {4 * 1024, 128} }, |
| 15077 | .block_erase = erase_block_jedec, |
| 15078 | }, { |
| 15079 | .eraseblocks = { {64 * 1024, 8} }, |
| 15080 | .block_erase = erase_sector_jedec, |
| 15081 | }, { |
| 15082 | .eraseblocks = { {512 * 1024, 1} }, |
| 15083 | .block_erase = erase_chip_block_jedec, |
| 15084 | } |
| 15085 | }, |
| 15086 | .printlock = printlock_w39l040, |
| 15087 | .write = write_jedec_1, |
| 15088 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15089 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 15090 | }, |
| 15091 | |
| 15092 | { |
| 15093 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15094 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15095 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15096 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15097 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15098 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15099 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15100 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 15101 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15102 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 15103 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15104 | .block_erasers = |
| 15105 | { |
| 15106 | { |
| 15107 | .eraseblocks = { {64 * 1024, 8} }, |
| 15108 | .block_erase = erase_sector_jedec, |
| 15109 | }, { |
| 15110 | .eraseblocks = { {512 * 1024, 1} }, |
| 15111 | .block_erase = erase_chip_block_jedec, |
| 15112 | } |
| 15113 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15114 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15115 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15116 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15117 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15118 | }, |
| 15119 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15120 | { |
| 15121 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15122 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15123 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15124 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15125 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15126 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15127 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15128 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15129 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15130 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15131 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15132 | .block_erasers = |
| 15133 | { |
| 15134 | { |
| 15135 | .eraseblocks = { {64 * 1024, 8} }, |
| 15136 | .block_erase = erase_sector_jedec, |
| 15137 | }, { |
| 15138 | .eraseblocks = { {512 * 1024, 1} }, |
| 15139 | .block_erase = erase_chip_block_jedec, |
| 15140 | } |
| 15141 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15142 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15143 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15144 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15145 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15146 | }, |
| 15147 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15148 | { |
| 15149 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15150 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15151 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15152 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15153 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15154 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15155 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15156 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15157 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15158 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15159 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15160 | .block_erasers = |
| 15161 | { |
| 15162 | { |
| 15163 | .eraseblocks = { {64 * 1024, 8} }, |
| 15164 | .block_erase = erase_sector_jedec, |
| 15165 | }, { |
| 15166 | .eraseblocks = { {512 * 1024, 1} }, |
| 15167 | .block_erase = erase_chip_block_jedec, |
| 15168 | } |
| 15169 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 15170 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15171 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15172 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15173 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15174 | }, |
| 15175 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15176 | { |
| 15177 | .vendor = "Winbond", |
| 15178 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15179 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15180 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15181 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15182 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15183 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 15184 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15185 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15186 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 15187 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15188 | .block_erasers = |
| 15189 | { |
| 15190 | { |
| 15191 | .eraseblocks = { {4 * 1024, 128} }, |
| 15192 | .block_erase = erase_block_jedec, |
| 15193 | }, { |
| 15194 | .eraseblocks = { {64 * 1024, 8} }, |
| 15195 | .block_erase = erase_sector_jedec, |
| 15196 | }, { |
| 15197 | .eraseblocks = { {512 * 1024, 1} }, |
| 15198 | .block_erase = erase_chip_block_jedec, |
| 15199 | } |
| 15200 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15201 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15202 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15203 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15204 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15205 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15206 | }, |
| 15207 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15208 | { |
| 15209 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15210 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15211 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15212 | .manufacture_id = WINBOND_ID, |
| 15213 | .model_id = WINBOND_W39V040B, |
| 15214 | .total_size = 512, |
| 15215 | .page_size = 64 * 1024, |
| 15216 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15217 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15218 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15219 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15220 | .block_erasers = |
| 15221 | { |
| 15222 | { |
| 15223 | .eraseblocks = { {64 * 1024, 8} }, |
| 15224 | .block_erase = erase_sector_jedec, |
| 15225 | }, { |
| 15226 | .eraseblocks = { {512 * 1024, 1} }, |
| 15227 | .block_erase = erase_chip_block_jedec, |
| 15228 | } |
| 15229 | }, |
| 15230 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15231 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15232 | .write = write_jedec_1, |
| 15233 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15234 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15235 | }, |
| 15236 | |
| 15237 | { |
| 15238 | .vendor = "Winbond", |
| 15239 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15240 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15241 | .manufacture_id = WINBOND_ID, |
| 15242 | .model_id = WINBOND_W39V040C, |
| 15243 | .total_size = 512, |
| 15244 | .page_size = 64 * 1024, |
| 15245 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 15246 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15247 | .probe = probe_jedec, |
| 15248 | .probe_timing = 10, |
| 15249 | .block_erasers = |
| 15250 | { |
| 15251 | { |
| 15252 | .eraseblocks = { {64 * 1024, 8} }, |
| 15253 | .block_erase = erase_sector_jedec, |
| 15254 | }, { |
| 15255 | .eraseblocks = { {512 * 1024, 1} }, |
| 15256 | .block_erase = erase_chip_block_jedec, |
| 15257 | } |
| 15258 | }, |
| 15259 | .printlock = printlock_w39v040fc, |
| 15260 | .write = write_jedec_1, |
| 15261 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15262 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15263 | }, |
| 15264 | |
| 15265 | { |
| 15266 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15267 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15268 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15269 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15270 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15271 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15272 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15273 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 15274 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15275 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 15276 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15277 | .block_erasers = |
| 15278 | { |
| 15279 | { |
| 15280 | .eraseblocks = { {64 * 1024, 16} }, |
| 15281 | .block_erase = erase_sector_jedec, |
| 15282 | }, { |
| 15283 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15284 | .block_erase = erase_chip_block_jedec, |
| 15285 | } |
| 15286 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15287 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15288 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15289 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15290 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15291 | }, |
| 15292 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15293 | { |
| 15294 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15295 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15296 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15297 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15298 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15299 | .total_size = 256, |
| 15300 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15301 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 15302 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15303 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15304 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15305 | .block_erasers = |
| 15306 | { |
| 15307 | { |
| 15308 | .eraseblocks = { |
| 15309 | {128 * 1024, 1}, |
| 15310 | {96 * 1024, 1}, |
| 15311 | {8 * 1024, 2}, |
| 15312 | {16 * 1024, 1}, |
| 15313 | }, |
| 15314 | .block_erase = erase_sector_jedec, |
| 15315 | }, { |
| 15316 | .eraseblocks = { {256 * 1024, 1} }, |
| 15317 | .block_erase = erase_chip_block_jedec, |
| 15318 | } |
| 15319 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15320 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15321 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15322 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15323 | }, |
| 15324 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15325 | { |
| 15326 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 15327 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15328 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 15329 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15330 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 15331 | .total_size = 256, |
| 15332 | .page_size = 128, |
| 15333 | .feature_bits = FEATURE_EITHER_RESET, |
| 15334 | .tested = TEST_OK_PROBE, |
| 15335 | .probe = probe_jedec, |
| 15336 | .probe_timing = 10, |
| 15337 | .block_erasers = |
| 15338 | { |
| 15339 | { |
| 15340 | .eraseblocks = { {256 * 1024, 1} }, |
| 15341 | .block_erase = erase_chip_block_jedec, |
| 15342 | } |
| 15343 | }, |
| 15344 | .write = write_jedec_1, |
| 15345 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15346 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 15347 | }, |
| 15348 | |
| 15349 | { |
| 15350 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15351 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15352 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15353 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15354 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15355 | .total_size = 256, |
| 15356 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15357 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15358 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15359 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15360 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15361 | .block_erasers = |
| 15362 | { |
| 15363 | { |
| 15364 | .eraseblocks = { |
| 15365 | {64 * 1024, 3}, |
| 15366 | {32 * 1024, 1}, |
| 15367 | {8 * 1024, 2}, |
| 15368 | {16 * 1024, 1}, |
| 15369 | }, |
| 15370 | .block_erase = erase_sector_jedec, |
| 15371 | }, { |
| 15372 | .eraseblocks = { {256 * 1024, 1} }, |
| 15373 | .block_erase = erase_chip_block_jedec, |
| 15374 | } |
| 15375 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15376 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15377 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15378 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15379 | }, |
| 15380 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15381 | { |
| 15382 | .vendor = "Winbond", |
| 15383 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15384 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15385 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15386 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15387 | .total_size = 256, |
| 15388 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15389 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15390 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15391 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15392 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15393 | .block_erasers = |
| 15394 | { |
| 15395 | { |
| 15396 | .eraseblocks = { |
| 15397 | {64 * 1024, 3}, |
| 15398 | {32 * 1024, 1}, |
| 15399 | {8 * 1024, 2}, |
| 15400 | {16 * 1024, 1}, |
| 15401 | }, |
| 15402 | .block_erase = erase_sector_jedec, |
| 15403 | }, { |
| 15404 | .eraseblocks = { {256 * 1024, 1} }, |
| 15405 | .block_erase = erase_chip_block_jedec, |
| 15406 | } |
| 15407 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15408 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15409 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15410 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15411 | }, |
| 15412 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15413 | { |
| 15414 | .vendor = "Winbond", |
| 15415 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15416 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15417 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15418 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15419 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15420 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15421 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15422 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 15423 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15424 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15425 | .block_erasers = |
| 15426 | { |
| 15427 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15428 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15429 | .block_erase = erase_sector_jedec, |
| 15430 | }, { |
| 15431 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15432 | .block_erase = erase_chip_block_jedec, |
| 15433 | } |
| 15434 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15435 | .printlock = printlock_w39v080fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15436 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15437 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15438 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15439 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15440 | }, |
| 15441 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15442 | { |
| 15443 | .vendor = "Winbond", |
| 15444 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15445 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15446 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 15447 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15448 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 15449 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15450 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15451 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 15452 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15453 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15454 | .block_erasers = |
| 15455 | { |
| 15456 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15457 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 15458 | .block_erase = erase_sector_jedec, |
| 15459 | }, { |
| 15460 | .eraseblocks = { {512 * 1024, 1} }, |
| 15461 | .block_erase = erase_chip_block_jedec, |
| 15462 | } |
| 15463 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 15464 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15465 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15466 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15467 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15468 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 15469 | |
| 15470 | { |
| 15471 | .vendor = "Unknown", |
| 15472 | .name = "SFDP-capable chip", |
| 15473 | .bustype = BUS_SPI, |
| 15474 | .manufacture_id = GENERIC_MANUF_ID, |
| 15475 | .model_id = SFDP_DEVICE_ID, |
| 15476 | /* We present our own "report this" text hence we do not |
| 15477 | * want the default "This flash part has status UNTESTED..." |
| 15478 | * text to be printed. */ |
| 15479 | .tested = TEST_OK_PREW, |
| 15480 | .probe = probe_spi_sfdp, |
| 15481 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 15482 | .read = spi_chip_read, |
| 15483 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 15484 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 15485 | /* Everything below will be set by the probing function. */ |
| 15486 | .write = NULL, |
| 15487 | .total_size = 0, |
| 15488 | .page_size = 0, |
| 15489 | .feature_bits = 0, |
| 15490 | .block_erasers = {}, |
| 15491 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15492 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15493 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 15494 | .vendor = "Programmer", |
| 15495 | .name = "Opaque flash chip", |
| 15496 | .bustype = BUS_PROG, |
| 15497 | .manufacture_id = PROGMANUF_ID, |
| 15498 | .model_id = PROGDEV_ID, |
| 15499 | .total_size = 0, |
| 15500 | .page_size = 256, |
| 15501 | /* probe is assumed to work, rest will be filled in by probe */ |
| 15502 | .tested = TEST_OK_PROBE, |
| 15503 | .probe = probe_opaque, |
| 15504 | /* eraseblock sizes will be set by the probing function */ |
| 15505 | .block_erasers = |
| 15506 | { |
| 15507 | { |
| 15508 | .block_erase = erase_opaque, |
| 15509 | } |
| 15510 | }, |
| 15511 | .write = write_opaque, |
| 15512 | .read = read_opaque, |
| 15513 | }, |
| 15514 | |
| 15515 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 15516 | .vendor = "AMIC", |
| 15517 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15518 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 15519 | .manufacture_id = AMIC_ID, |
| 15520 | .model_id = GENERIC_DEVICE_ID, |
| 15521 | .total_size = 0, |
| 15522 | .page_size = 256, |
| 15523 | .tested = TEST_BAD_PREW, |
| 15524 | .probe = probe_spi_rdid4, |
| 15525 | .probe_timing = TIMING_ZERO, |
| 15526 | .write = NULL, |
| 15527 | .read = NULL, |
| 15528 | }, |
| 15529 | |
| 15530 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15531 | .vendor = "Atmel", |
| 15532 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15533 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15534 | .manufacture_id = ATMEL_ID, |
| 15535 | .model_id = GENERIC_DEVICE_ID, |
| 15536 | .total_size = 0, |
| 15537 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 15538 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15539 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15540 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15541 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15542 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15543 | }, |
| 15544 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15545 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 15546 | .vendor = "Eon", |
| 15547 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15548 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15549 | .manufacture_id = EON_ID_NOPREFIX, |
| 15550 | .model_id = GENERIC_DEVICE_ID, |
| 15551 | .total_size = 0, |
| 15552 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 15553 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15554 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15555 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15556 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15557 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15558 | }, |
| 15559 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15560 | { |
| 15561 | .vendor = "Macronix", |
| 15562 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15563 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15564 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15565 | .model_id = GENERIC_DEVICE_ID, |
| 15566 | .total_size = 0, |
| 15567 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 15568 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15569 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15570 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15571 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15572 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15573 | }, |
| 15574 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15575 | { |
| 15576 | .vendor = "PMC", |
| 15577 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15578 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15579 | .manufacture_id = PMC_ID, |
| 15580 | .model_id = GENERIC_DEVICE_ID, |
| 15581 | .total_size = 0, |
| 15582 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 15583 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15584 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15585 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15586 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15587 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15588 | }, |
| 15589 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15590 | { |
| 15591 | .vendor = "SST", |
| 15592 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15593 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15594 | .manufacture_id = SST_ID, |
| 15595 | .model_id = GENERIC_DEVICE_ID, |
| 15596 | .total_size = 0, |
| 15597 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 15598 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15599 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15600 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15601 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15602 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15603 | }, |
| 15604 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15605 | { |
| 15606 | .vendor = "ST", |
| 15607 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15608 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15609 | .manufacture_id = ST_ID, |
| 15610 | .model_id = GENERIC_DEVICE_ID, |
| 15611 | .total_size = 0, |
| 15612 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 15613 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15614 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 15615 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15616 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15617 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15618 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 15619 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15620 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 15621 | .vendor = "Sanyo", |
| 15622 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15623 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 15624 | .manufacture_id = SANYO_ID, |
| 15625 | .model_id = GENERIC_DEVICE_ID, |
| 15626 | .total_size = 0, |
| 15627 | .page_size = 256, |
| 15628 | .tested = TEST_BAD_PREW, |
| 15629 | .probe = probe_spi_rdid, |
| 15630 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 15631 | .write = NULL, |
| 15632 | .read = NULL, |
| 15633 | }, |
| 15634 | |
| 15635 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15636 | .vendor = "Winbond", |
| 15637 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 15638 | .bustype = BUS_SPI, |
| 15639 | .manufacture_id = WINBOND_NEX_ID, |
| 15640 | .model_id = GENERIC_DEVICE_ID, |
| 15641 | .total_size = 0, |
| 15642 | .page_size = 256, |
| 15643 | .tested = TEST_BAD_PREW, |
| 15644 | .probe = probe_spi_rdid, |
| 15645 | .probe_timing = TIMING_ZERO, |
| 15646 | .write = NULL, |
| 15647 | .read = NULL, |
| 15648 | }, |
| 15649 | |
| 15650 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15651 | .vendor = "Generic", |
| 15652 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15653 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15654 | .manufacture_id = GENERIC_MANUF_ID, |
| 15655 | .model_id = GENERIC_DEVICE_ID, |
| 15656 | .total_size = 0, |
| 15657 | .page_size = 256, |
| 15658 | .tested = TEST_BAD_PREW, |
| 15659 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15660 | .write = NULL, |
| 15661 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 15662 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15663 | { |
| 15664 | .vendor = "Generic", |
| 15665 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15666 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15667 | .manufacture_id = GENERIC_MANUF_ID, |
| 15668 | .model_id = GENERIC_DEVICE_ID, |
| 15669 | .total_size = 0, |
| 15670 | .page_size = 256, |
| 15671 | .tested = TEST_BAD_PREW, |
| 15672 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15673 | .write = NULL, |
| 15674 | }, |
| 15675 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 15676 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 15677 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 15678 | |
| 15679 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |