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!) */ |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1279 | .unlock = spi_disable_blockprotect, |
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, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 1385 | .tested = TEST_OK_PREW, |
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 | }, |
| 1398 | .unlock = unlock_49fl00x, |
| 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, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1452 | .tested = TEST_UNTESTED, |
| 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, |
| 1997 | .tested = TEST_UNTESTED, |
| 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 | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 2176 | .tested = TEST_OK_PR, |
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, |
| 2438 | .tested = TEST_UNTESTED, |
| 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, |
| 2480 | .tested = TEST_UNTESTED, |
| 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, |
| 2775 | .tested = TEST_UNTESTED, |
| 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 */ |
| 3052 | .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */ |
| 3053 | .tested = TEST_UNTESTED, |
| 3054 | .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */ |
| 3055 | .probe_timing = TIMING_FIXME, |
| 3056 | .block_erasers = |
| 3057 | { |
| 3058 | { |
| 3059 | .eraseblocks = { |
| 3060 | {64 * 1024, 3}, |
| 3061 | {32 * 1024, 1}, |
| 3062 | {8 * 1024, 2}, |
| 3063 | {16 * 1024, 1}, |
| 3064 | }, |
| 3065 | .block_erase = erase_block_82802ab, |
| 3066 | }, { |
| 3067 | .eraseblocks = { |
| 3068 | {64 * 1024, 4}, |
| 3069 | }, |
| 3070 | .block_erase = NULL, /* TODO: Implement. */ |
| 3071 | }, |
| 3072 | }, |
| 3073 | .printlock = NULL, /* TODO */ |
| 3074 | .unlock = NULL, /* unlock_82802ab() not correct(?) */ |
| 3075 | .write = write_82802ab, |
| 3076 | .read = read_memmapped, |
| 3077 | .voltage = {3000, 3600}, |
| 3078 | }, |
| 3079 | |
| 3080 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3081 | .vendor = "Catalyst", |
| 3082 | .name = "CAT28F512", |
| 3083 | .bustype = BUS_PARALLEL, |
| 3084 | .manufacture_id = CATALYST_ID, |
| 3085 | .model_id = CATALYST_CAT28F512, |
| 3086 | .total_size = 64, |
| 3087 | .page_size = 0, /* unused */ |
| 3088 | .feature_bits = 0, |
| 3089 | .tested = TEST_OK_PR, |
| 3090 | .probe = probe_jedec, /* FIXME! */ |
| 3091 | .probe_timing = TIMING_ZERO, |
| 3092 | .block_erasers = |
| 3093 | { |
| 3094 | { |
| 3095 | .eraseblocks = { {64 * 1024, 1} }, |
| 3096 | .block_erase = NULL, /* TODO */ |
| 3097 | }, |
| 3098 | }, |
| 3099 | .write = NULL, /* TODO */ |
| 3100 | .read = read_memmapped, |
| 3101 | .voltage = {4500, 5500}, |
| 3102 | }, |
| 3103 | |
| 3104 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3105 | .vendor = "Bright", |
| 3106 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3107 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3108 | .manufacture_id = BRIGHT_ID, |
| 3109 | .model_id = BRIGHT_BM29F040, |
| 3110 | .total_size = 512, |
| 3111 | .page_size = 64 * 1024, |
| 3112 | .feature_bits = FEATURE_EITHER_RESET, |
| 3113 | .tested = TEST_OK_PR, |
| 3114 | .probe = probe_jedec, |
| 3115 | .probe_timing = TIMING_ZERO, |
| 3116 | .block_erasers = |
| 3117 | { |
| 3118 | { |
| 3119 | .eraseblocks = { {64 * 1024, 8} }, |
| 3120 | .block_erase = erase_sector_jedec, |
| 3121 | }, { |
| 3122 | .eraseblocks = { {512 * 1024, 1} }, |
| 3123 | .block_erase = erase_chip_block_jedec, |
| 3124 | }, |
| 3125 | }, |
| 3126 | .write = write_jedec_1, |
| 3127 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3128 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3129 | }, |
| 3130 | |
| 3131 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3132 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3133 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3134 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3135 | .manufacture_id = ESMT_ID, |
| 3136 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3137 | .total_size = 256, |
| 3138 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3139 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3140 | .tested = TEST_UNTESTED, |
| 3141 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3142 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3143 | .block_erasers = |
| 3144 | { |
| 3145 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3146 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3147 | {128 * 1024, 1}, |
| 3148 | {96 * 1024, 1}, |
| 3149 | {8 * 1024, 2}, |
| 3150 | {16 * 1024, 1}, |
| 3151 | }, |
| 3152 | .block_erase = erase_sector_jedec, |
| 3153 | }, { |
| 3154 | .eraseblocks = { {256 * 1024, 1} }, |
| 3155 | .block_erase = erase_chip_block_jedec, |
| 3156 | } |
| 3157 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3158 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3159 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3160 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3161 | }, |
| 3162 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3163 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3164 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3165 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3166 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3167 | .manufacture_id = ESMT_ID, |
| 3168 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3169 | .total_size = 1024, |
| 3170 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3171 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3172 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3173 | .probe = probe_spi_rdid, |
| 3174 | .probe_timing = TIMING_ZERO, |
| 3175 | .block_erasers = |
| 3176 | { |
| 3177 | { |
| 3178 | .eraseblocks = { {4 * 1024, 256} }, |
| 3179 | .block_erase = spi_block_erase_20, |
| 3180 | }, { |
| 3181 | .eraseblocks = { {64 * 1024, 16} }, |
| 3182 | .block_erase = spi_block_erase_d8, |
| 3183 | }, { |
| 3184 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3185 | .block_erase = spi_block_erase_60, |
| 3186 | }, { |
| 3187 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3188 | .block_erase = spi_block_erase_c7, |
| 3189 | } |
| 3190 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3191 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3192 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3193 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3194 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3195 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3196 | }, |
| 3197 | |
| 3198 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3199 | .vendor = "ESMT", |
| 3200 | .name = "F25L32PA", |
| 3201 | .bustype = BUS_SPI, |
| 3202 | .manufacture_id = ESMT_ID, |
| 3203 | .model_id = ESMT_F25L32PA, |
| 3204 | .total_size = 4096, |
| 3205 | .page_size = 256, |
| 3206 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3207 | .tested = TEST_UNTESTED, |
| 3208 | .probe = probe_spi_rdid, |
| 3209 | .probe_timing = TIMING_ZERO, |
| 3210 | .block_erasers = |
| 3211 | { |
| 3212 | { |
| 3213 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3214 | .block_erase = spi_block_erase_20, |
| 3215 | }, { |
| 3216 | .eraseblocks = { {64 * 1024, 64} }, |
| 3217 | .block_erase = spi_block_erase_d8, |
| 3218 | }, { |
| 3219 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3220 | .block_erase = spi_block_erase_60, |
| 3221 | }, { |
| 3222 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3223 | .block_erase = spi_block_erase_c7, |
| 3224 | } |
| 3225 | }, |
| 3226 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3227 | .unlock = spi_disable_blockprotect, |
| 3228 | .write = spi_chip_write_256, |
| 3229 | .read = spi_chip_read, |
| 3230 | .voltage = {2700, 3600}, |
| 3231 | }, |
| 3232 | |
| 3233 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3234 | .vendor = "Eon", |
| 3235 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3236 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3237 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3238 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3239 | .total_size = 64, |
| 3240 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3241 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3242 | .tested = TEST_UNTESTED, |
| 3243 | .probe = probe_spi_rdid, |
| 3244 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3245 | .block_erasers = |
| 3246 | { |
| 3247 | { |
| 3248 | .eraseblocks = { |
| 3249 | {4 * 1024, 2}, |
| 3250 | {8 * 1024, 1}, |
| 3251 | {16 * 1024, 1}, |
| 3252 | {32 * 1024, 1}, |
| 3253 | }, |
| 3254 | .block_erase = spi_block_erase_d8, |
| 3255 | }, { |
| 3256 | .eraseblocks = { {64 * 1024, 1} }, |
| 3257 | .block_erase = spi_block_erase_c7, |
| 3258 | } |
| 3259 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3260 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3261 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3262 | .write = spi_chip_write_256, |
| 3263 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3264 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3265 | }, |
| 3266 | |
| 3267 | { |
| 3268 | .vendor = "Eon", |
| 3269 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3270 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3271 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3272 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3273 | .total_size = 64, |
| 3274 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3275 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3276 | .tested = TEST_UNTESTED, |
| 3277 | .probe = probe_spi_rdid, |
| 3278 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3279 | .block_erasers = |
| 3280 | { |
| 3281 | { |
| 3282 | .eraseblocks = { |
| 3283 | {32 * 1024, 1}, |
| 3284 | {16 * 1024, 1}, |
| 3285 | {8 * 1024, 1}, |
| 3286 | {4 * 1024, 2}, |
| 3287 | }, |
| 3288 | .block_erase = spi_block_erase_d8, |
| 3289 | }, { |
| 3290 | .eraseblocks = { {64 * 1024, 1} }, |
| 3291 | .block_erase = spi_block_erase_c7, |
| 3292 | } |
| 3293 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3294 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3295 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3296 | .write = spi_chip_write_256, |
| 3297 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3298 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3299 | }, |
| 3300 | |
| 3301 | { |
| 3302 | .vendor = "Eon", |
| 3303 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3304 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3305 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3306 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3307 | .total_size = 128, |
| 3308 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3309 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3310 | .tested = TEST_UNTESTED, |
| 3311 | .probe = probe_spi_rdid, |
| 3312 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3313 | .block_erasers = |
| 3314 | { |
| 3315 | { |
| 3316 | .eraseblocks = { |
| 3317 | {4 * 1024, 2}, |
| 3318 | {8 * 1024, 1}, |
| 3319 | {16 * 1024, 1}, |
| 3320 | {32 * 1024, 3}, |
| 3321 | }, |
| 3322 | .block_erase = spi_block_erase_d8, |
| 3323 | }, { |
| 3324 | .eraseblocks = { {128 * 1024, 1} }, |
| 3325 | .block_erase = spi_block_erase_c7, |
| 3326 | } |
| 3327 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3328 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3329 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3330 | .write = spi_chip_write_256, |
| 3331 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3332 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3333 | }, |
| 3334 | |
| 3335 | { |
| 3336 | .vendor = "Eon", |
| 3337 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3338 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3339 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3340 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3341 | .total_size = 128, |
| 3342 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3343 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3344 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3345 | .probe = probe_spi_rdid, |
| 3346 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3347 | .block_erasers = |
| 3348 | { |
| 3349 | { |
| 3350 | .eraseblocks = { |
| 3351 | {32 * 1024, 3}, |
| 3352 | {16 * 1024, 1}, |
| 3353 | {8 * 1024, 1}, |
| 3354 | {4 * 1024, 2}, |
| 3355 | }, |
| 3356 | .block_erase = spi_block_erase_d8, |
| 3357 | }, { |
| 3358 | .eraseblocks = { {128 * 1024, 1} }, |
| 3359 | .block_erase = spi_block_erase_c7, |
| 3360 | } |
| 3361 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3362 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3363 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3364 | .write = spi_chip_write_256, |
| 3365 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3366 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3367 | }, |
| 3368 | |
| 3369 | { |
| 3370 | .vendor = "Eon", |
| 3371 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3372 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3373 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3374 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3375 | .total_size = 256, |
| 3376 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3377 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3378 | .tested = TEST_UNTESTED, |
| 3379 | .probe = probe_spi_rdid, |
| 3380 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3381 | .block_erasers = |
| 3382 | { |
| 3383 | { |
| 3384 | .eraseblocks = { |
| 3385 | {4 * 1024, 2}, |
| 3386 | {8 * 1024, 1}, |
| 3387 | {16 * 1024, 1}, |
| 3388 | {32 * 1024, 1}, |
| 3389 | {64 * 1024, 3} |
| 3390 | }, |
| 3391 | .block_erase = spi_block_erase_d8, |
| 3392 | }, { |
| 3393 | .eraseblocks = { {256 * 1024, 1} }, |
| 3394 | .block_erase = spi_block_erase_c7, |
| 3395 | } |
| 3396 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3397 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3398 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3399 | .write = spi_chip_write_256, |
| 3400 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3401 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3402 | }, |
| 3403 | |
| 3404 | { |
| 3405 | .vendor = "Eon", |
| 3406 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3407 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3408 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3409 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3410 | .total_size = 256, |
| 3411 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3412 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3413 | .tested = TEST_UNTESTED, |
| 3414 | .probe = probe_spi_rdid, |
| 3415 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3416 | .block_erasers = |
| 3417 | { |
| 3418 | { |
| 3419 | .eraseblocks = { |
| 3420 | {64 * 1024, 3}, |
| 3421 | {32 * 1024, 1}, |
| 3422 | {16 * 1024, 1}, |
| 3423 | {8 * 1024, 1}, |
| 3424 | {4 * 1024, 2}, |
| 3425 | }, |
| 3426 | .block_erase = spi_block_erase_d8, |
| 3427 | }, { |
| 3428 | .eraseblocks = { {256 * 1024, 1} }, |
| 3429 | .block_erase = spi_block_erase_c7, |
| 3430 | } |
| 3431 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3432 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3433 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3434 | .write = spi_chip_write_256, |
| 3435 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3436 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3437 | }, |
| 3438 | |
| 3439 | { |
| 3440 | .vendor = "Eon", |
| 3441 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3442 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3443 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3444 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3445 | .total_size = 512, |
| 3446 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3447 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3448 | .tested = TEST_UNTESTED, |
| 3449 | .probe = probe_spi_rdid, |
| 3450 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3451 | .block_erasers = |
| 3452 | { |
| 3453 | { |
| 3454 | .eraseblocks = { |
| 3455 | {4 * 1024, 2}, |
| 3456 | {8 * 1024, 1}, |
| 3457 | {16 * 1024, 1}, |
| 3458 | {32 * 1024, 1}, |
| 3459 | {64 * 1024, 7} |
| 3460 | }, |
| 3461 | .block_erase = spi_block_erase_d8, |
| 3462 | }, { |
| 3463 | .eraseblocks = { {512 * 1024, 1} }, |
| 3464 | .block_erase = spi_block_erase_c7, |
| 3465 | } |
| 3466 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3467 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3468 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3469 | .write = spi_chip_write_256, |
| 3470 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3471 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3472 | }, |
| 3473 | |
| 3474 | { |
| 3475 | .vendor = "Eon", |
| 3476 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3477 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3478 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3479 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3480 | .total_size = 512, |
| 3481 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3482 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3483 | .tested = TEST_UNTESTED, |
| 3484 | .probe = probe_spi_rdid, |
| 3485 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3486 | .block_erasers = |
| 3487 | { |
| 3488 | { |
| 3489 | .eraseblocks = { |
| 3490 | {64 * 1024, 7}, |
| 3491 | {32 * 1024, 1}, |
| 3492 | {16 * 1024, 1}, |
| 3493 | {8 * 1024, 1}, |
| 3494 | {4 * 1024, 2}, |
| 3495 | }, |
| 3496 | .block_erase = spi_block_erase_d8, |
| 3497 | }, { |
| 3498 | .eraseblocks = { {512 * 1024, 1} }, |
| 3499 | .block_erase = spi_block_erase_c7, |
| 3500 | } |
| 3501 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3502 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3503 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3504 | .write = spi_chip_write_256, |
| 3505 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3506 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3507 | }, |
| 3508 | |
| 3509 | { |
| 3510 | .vendor = "Eon", |
| 3511 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3512 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3513 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3514 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3515 | .total_size = 1024, |
| 3516 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3517 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3518 | .tested = TEST_UNTESTED, |
| 3519 | .probe = probe_spi_rdid, |
| 3520 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3521 | .block_erasers = |
| 3522 | { |
| 3523 | { |
| 3524 | .eraseblocks = { |
| 3525 | {4 * 1024, 2}, |
| 3526 | {8 * 1024, 1}, |
| 3527 | {16 * 1024, 1}, |
| 3528 | {32 * 1024, 1}, |
| 3529 | {64 * 1024, 15} |
| 3530 | }, |
| 3531 | .block_erase = spi_block_erase_d8, |
| 3532 | }, { |
| 3533 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3534 | .block_erase = spi_block_erase_c7, |
| 3535 | } |
| 3536 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3537 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3538 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3539 | .write = spi_chip_write_256, |
| 3540 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3541 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3542 | }, |
| 3543 | |
| 3544 | { |
| 3545 | .vendor = "Eon", |
| 3546 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3547 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3548 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3549 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3550 | .total_size = 1024, |
| 3551 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3552 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3553 | .tested = TEST_UNTESTED, |
| 3554 | .probe = probe_spi_rdid, |
| 3555 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3556 | .block_erasers = |
| 3557 | { |
| 3558 | { |
| 3559 | .eraseblocks = { |
| 3560 | {64 * 1024, 15}, |
| 3561 | {32 * 1024, 1}, |
| 3562 | {16 * 1024, 1}, |
| 3563 | {8 * 1024, 1}, |
| 3564 | {4 * 1024, 2}, |
| 3565 | }, |
| 3566 | .block_erase = spi_block_erase_d8, |
| 3567 | }, { |
| 3568 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3569 | .block_erase = spi_block_erase_c7, |
| 3570 | } |
| 3571 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3572 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3573 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3574 | .write = spi_chip_write_256, |
| 3575 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3576 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3577 | }, |
| 3578 | |
| 3579 | { |
| 3580 | .vendor = "Eon", |
| 3581 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3582 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3583 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3584 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3585 | .total_size = 2048, |
| 3586 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3587 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3588 | .tested = TEST_UNTESTED, |
| 3589 | .probe = probe_spi_rdid, |
| 3590 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3591 | .block_erasers = |
| 3592 | { |
| 3593 | { |
| 3594 | .eraseblocks = { |
| 3595 | {4 * 1024, 2}, |
| 3596 | {8 * 1024, 1}, |
| 3597 | {16 * 1024, 1}, |
| 3598 | {32 * 1024, 1}, |
| 3599 | {64 * 1024, 31}, |
| 3600 | }, |
| 3601 | .block_erase = spi_block_erase_d8, |
| 3602 | }, { |
| 3603 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3604 | .block_erase = spi_block_erase_c7, |
| 3605 | } |
| 3606 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3607 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3608 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3609 | .write = spi_chip_write_256, |
| 3610 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3611 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3612 | }, |
| 3613 | |
| 3614 | { |
| 3615 | .vendor = "Eon", |
| 3616 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3617 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3618 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3619 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3620 | .total_size = 2048, |
| 3621 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3622 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3623 | .tested = TEST_UNTESTED, |
| 3624 | .probe = probe_spi_rdid, |
| 3625 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3626 | .block_erasers = |
| 3627 | { |
| 3628 | { |
| 3629 | .eraseblocks = { |
| 3630 | {64 * 1024, 31}, |
| 3631 | {32 * 1024, 1}, |
| 3632 | {16 * 1024, 1}, |
| 3633 | {8 * 1024, 1}, |
| 3634 | {4 * 1024, 2}, |
| 3635 | }, |
| 3636 | .block_erase = spi_block_erase_d8, |
| 3637 | }, { |
| 3638 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3639 | .block_erase = spi_block_erase_c7, |
| 3640 | } |
| 3641 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3642 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3643 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3644 | .write = spi_chip_write_256, |
| 3645 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3646 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3647 | }, |
| 3648 | |
| 3649 | { |
| 3650 | .vendor = "Eon", |
| 3651 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3652 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3653 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3654 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3655 | .total_size = 4096, |
| 3656 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3657 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3658 | .tested = TEST_UNTESTED, |
| 3659 | .probe = probe_spi_rdid, |
| 3660 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3661 | .block_erasers = |
| 3662 | { |
| 3663 | { |
| 3664 | .eraseblocks = { |
| 3665 | {4 * 1024, 2}, |
| 3666 | {8 * 1024, 1}, |
| 3667 | {16 * 1024, 1}, |
| 3668 | {32 * 1024, 1}, |
| 3669 | {64 * 1024, 63}, |
| 3670 | }, |
| 3671 | .block_erase = spi_block_erase_d8, |
| 3672 | }, { |
| 3673 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3674 | .block_erase = spi_block_erase_c7, |
| 3675 | } |
| 3676 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3677 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3678 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3679 | .write = spi_chip_write_256, |
| 3680 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3681 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3682 | }, |
| 3683 | |
| 3684 | { |
| 3685 | .vendor = "Eon", |
| 3686 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3687 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3688 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3689 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3690 | .total_size = 4096, |
| 3691 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3692 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3693 | .tested = TEST_UNTESTED, |
| 3694 | .probe = probe_spi_rdid, |
| 3695 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3696 | .block_erasers = |
| 3697 | { |
| 3698 | { |
| 3699 | .eraseblocks = { |
| 3700 | {64 * 1024, 63}, |
| 3701 | {32 * 1024, 1}, |
| 3702 | {16 * 1024, 1}, |
| 3703 | {8 * 1024, 1}, |
| 3704 | {4 * 1024, 2}, |
| 3705 | }, |
| 3706 | .block_erase = spi_block_erase_d8, |
| 3707 | }, { |
| 3708 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3709 | .block_erase = spi_block_erase_c7, |
| 3710 | } |
| 3711 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3712 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3713 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3714 | .write = spi_chip_write_256, |
| 3715 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3716 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3717 | }, |
| 3718 | |
| 3719 | { |
| 3720 | .vendor = "Eon", |
| 3721 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3722 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3723 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3724 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3725 | .total_size = 8192, |
| 3726 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3727 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3728 | .tested = TEST_UNTESTED, |
| 3729 | .probe = probe_spi_rdid, |
| 3730 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3731 | .block_erasers = |
| 3732 | { |
| 3733 | { |
| 3734 | .eraseblocks = { |
| 3735 | {4 * 1024, 2}, |
| 3736 | {8 * 1024, 1}, |
| 3737 | {16 * 1024, 1}, |
| 3738 | {32 * 1024, 1}, |
| 3739 | {64 * 1024, 127}, |
| 3740 | }, |
| 3741 | .block_erase = spi_block_erase_d8, |
| 3742 | }, { |
| 3743 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3744 | .block_erase = spi_block_erase_c7, |
| 3745 | } |
| 3746 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3747 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3748 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3749 | .write = spi_chip_write_256, |
| 3750 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3751 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3752 | }, |
| 3753 | |
| 3754 | { |
| 3755 | .vendor = "Eon", |
| 3756 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3757 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3758 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3759 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3760 | .total_size = 8192, |
| 3761 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3762 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3763 | .tested = TEST_UNTESTED, |
| 3764 | .probe = probe_spi_rdid, |
| 3765 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3766 | .block_erasers = |
| 3767 | { |
| 3768 | { |
| 3769 | .eraseblocks = { |
| 3770 | {64 * 1024, 127}, |
| 3771 | {32 * 1024, 1}, |
| 3772 | {16 * 1024, 1}, |
| 3773 | {8 * 1024, 1}, |
| 3774 | {4 * 1024, 2}, |
| 3775 | }, |
| 3776 | .block_erase = spi_block_erase_d8, |
| 3777 | }, { |
| 3778 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3779 | .block_erase = spi_block_erase_c7, |
| 3780 | } |
| 3781 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3782 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3783 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3784 | .write = spi_chip_write_256, |
| 3785 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3786 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3787 | }, |
| 3788 | |
| 3789 | { |
| 3790 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3791 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3792 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3793 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3794 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3795 | .total_size = 64, |
| 3796 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3797 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3798 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3799 | .probe = probe_spi_rdid, |
| 3800 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3801 | .block_erasers = |
| 3802 | { |
| 3803 | { |
| 3804 | .eraseblocks = { {4 * 1024, 16} }, |
| 3805 | .block_erase = spi_block_erase_20, |
| 3806 | }, { |
| 3807 | .eraseblocks = { {32 * 1024, 2} }, |
| 3808 | .block_erase = spi_block_erase_d8, |
| 3809 | }, { |
| 3810 | .eraseblocks = { {32 * 1024, 2} }, |
| 3811 | .block_erase = spi_block_erase_52, |
| 3812 | }, { |
| 3813 | .eraseblocks = { {64 * 1024, 1} }, |
| 3814 | .block_erase = spi_block_erase_60, |
| 3815 | }, { |
| 3816 | .eraseblocks = { {64 * 1024, 1} }, |
| 3817 | .block_erase = spi_block_erase_c7, |
| 3818 | } |
| 3819 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3820 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3821 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3822 | .write = spi_chip_write_256, |
| 3823 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3824 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3825 | }, |
| 3826 | |
| 3827 | { |
| 3828 | .vendor = "Eon", |
| 3829 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3830 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3831 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3832 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3833 | .total_size = 128, |
| 3834 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3835 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3836 | .tested = TEST_UNTESTED, |
| 3837 | .probe = probe_spi_rdid, |
| 3838 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3839 | .block_erasers = |
| 3840 | { |
| 3841 | { |
| 3842 | .eraseblocks = { {4 * 1024, 32} }, |
| 3843 | .block_erase = spi_block_erase_20, |
| 3844 | }, { |
| 3845 | .eraseblocks = { {32 * 1024, 4} }, |
| 3846 | .block_erase = spi_block_erase_d8, |
| 3847 | }, { |
| 3848 | .eraseblocks = { {32 * 1024, 4} }, |
| 3849 | .block_erase = spi_block_erase_52, |
| 3850 | }, { |
| 3851 | .eraseblocks = { {128 * 1024, 1} }, |
| 3852 | .block_erase = spi_block_erase_60, |
| 3853 | }, { |
| 3854 | .eraseblocks = { {128 * 1024, 1} }, |
| 3855 | .block_erase = spi_block_erase_c7, |
| 3856 | } |
| 3857 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3858 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3859 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3860 | .write = spi_chip_write_256, |
| 3861 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3862 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3863 | }, |
| 3864 | |
| 3865 | { |
| 3866 | .vendor = "Eon", |
| 3867 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3868 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3869 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3870 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3871 | .total_size = 256, |
| 3872 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3873 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3874 | .tested = TEST_UNTESTED, |
| 3875 | .probe = probe_spi_rdid, |
| 3876 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3877 | .block_erasers = |
| 3878 | { |
| 3879 | { |
| 3880 | .eraseblocks = { {4 * 1024, 64} }, |
| 3881 | .block_erase = spi_block_erase_20, |
| 3882 | }, { |
| 3883 | .eraseblocks = { {64 * 1024, 4} }, |
| 3884 | .block_erase = spi_block_erase_d8, |
| 3885 | }, { |
| 3886 | .eraseblocks = { {64 * 1024, 4} }, |
| 3887 | .block_erase = spi_block_erase_52, |
| 3888 | }, { |
| 3889 | .eraseblocks = { {256 * 1024, 1} }, |
| 3890 | .block_erase = spi_block_erase_60, |
| 3891 | }, { |
| 3892 | .eraseblocks = { {256 * 1024, 1} }, |
| 3893 | .block_erase = spi_block_erase_c7, |
| 3894 | } |
| 3895 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3896 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3897 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3898 | .write = spi_chip_write_256, |
| 3899 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3900 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3901 | }, |
| 3902 | |
| 3903 | { |
| 3904 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3905 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3906 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3907 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3908 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3909 | .total_size = 512, |
| 3910 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3911 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 3912 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3913 | .probe = probe_spi_rdid, |
| 3914 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3915 | .block_erasers = |
| 3916 | { |
| 3917 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3918 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3919 | .block_erase = spi_block_erase_20, |
| 3920 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3921 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3922 | .block_erase = spi_block_erase_d8, |
| 3923 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3924 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3925 | .block_erase = spi_block_erase_60, |
| 3926 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3927 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3928 | .block_erase = spi_block_erase_c7, |
| 3929 | }, |
| 3930 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3931 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3932 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3933 | .write = spi_chip_write_256, |
| 3934 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3935 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3936 | }, |
| 3937 | |
| 3938 | { |
| 3939 | .vendor = "Eon", |
| 3940 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3941 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3942 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3943 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3944 | .total_size = 1024, |
| 3945 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3946 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 3947 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3948 | .probe = probe_spi_rdid, |
| 3949 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3950 | .block_erasers = |
| 3951 | { |
| 3952 | { |
| 3953 | .eraseblocks = { {4 * 1024, 256} }, |
| 3954 | .block_erase = spi_block_erase_20, |
| 3955 | }, { |
| 3956 | .eraseblocks = { {64 * 1024, 16} }, |
| 3957 | .block_erase = spi_block_erase_d8, |
| 3958 | }, { |
| 3959 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3960 | .block_erase = spi_block_erase_60, |
| 3961 | }, { |
| 3962 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3963 | .block_erase = spi_block_erase_c7, |
| 3964 | } |
| 3965 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3966 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3967 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3968 | .write = spi_chip_write_256, |
| 3969 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3970 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3971 | }, |
| 3972 | |
| 3973 | { |
| 3974 | .vendor = "Eon", |
| 3975 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3976 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3977 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3978 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3979 | .total_size = 2048, |
| 3980 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3981 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 3982 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3983 | .probe = probe_spi_rdid, |
| 3984 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3985 | .block_erasers = |
| 3986 | { |
| 3987 | { |
| 3988 | .eraseblocks = { {4 * 1024, 512} }, |
| 3989 | .block_erase = spi_block_erase_20, |
| 3990 | }, { |
| 3991 | .eraseblocks = { {64 * 1024, 32} }, |
| 3992 | .block_erase = spi_block_erase_d8, |
| 3993 | }, { |
| 3994 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3995 | .block_erase = spi_block_erase_60, |
| 3996 | }, { |
| 3997 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3998 | .block_erase = spi_block_erase_c7, |
| 3999 | } |
| 4000 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4001 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4002 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4003 | .write = spi_chip_write_256, |
| 4004 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4005 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4006 | }, |
| 4007 | |
| 4008 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4009 | .vendor = "Eon", |
| 4010 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4011 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4012 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4013 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4014 | .total_size = 4096, |
| 4015 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4016 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4017 | .tested = TEST_UNTESTED, |
| 4018 | .probe = probe_spi_rdid, |
| 4019 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4020 | .block_erasers = |
| 4021 | { |
| 4022 | { |
| 4023 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4024 | .block_erase = spi_block_erase_20, |
| 4025 | }, { |
| 4026 | .eraseblocks = { {64 * 1024, 64} }, |
| 4027 | .block_erase = spi_block_erase_d8, |
| 4028 | }, { |
| 4029 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4030 | .block_erase = spi_block_erase_60, |
| 4031 | }, { |
| 4032 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4033 | .block_erase = spi_block_erase_c7, |
| 4034 | } |
| 4035 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4036 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4037 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4038 | .write = spi_chip_write_256, |
| 4039 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4040 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4041 | }, |
| 4042 | |
| 4043 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4044 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4045 | .name = "EN25F64", |
| 4046 | .bustype = BUS_SPI, |
| 4047 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4048 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4049 | .total_size = 8192, |
| 4050 | .page_size = 256, |
| 4051 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4052 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4053 | .probe = probe_spi_rdid, |
| 4054 | .probe_timing = TIMING_ZERO, |
| 4055 | .block_erasers = |
| 4056 | { |
| 4057 | { |
| 4058 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4059 | .block_erase = spi_block_erase_20, |
| 4060 | }, { |
| 4061 | .eraseblocks = { {64 * 1024, 128} }, |
| 4062 | .block_erase = spi_block_erase_d8, |
| 4063 | }, { |
| 4064 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4065 | .block_erase = spi_block_erase_60, |
| 4066 | }, { |
| 4067 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4068 | .block_erase = spi_block_erase_c7, |
| 4069 | } |
| 4070 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4071 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4072 | .unlock = spi_disable_blockprotect, |
| 4073 | .write = spi_chip_write_256, |
| 4074 | .read = spi_chip_read, |
| 4075 | .voltage = {2700, 3600}, |
| 4076 | }, |
| 4077 | |
| 4078 | { |
| 4079 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4080 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4081 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4082 | .manufacture_id = EON_ID_NOPREFIX, |
| 4083 | .model_id = EON_EN25Q40, |
| 4084 | .total_size = 512, |
| 4085 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4086 | /* OTP: 256B total; enter 0x3A */ |
| 4087 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4088 | .tested = TEST_UNTESTED, |
| 4089 | .probe = probe_spi_rdid, |
| 4090 | .probe_timing = TIMING_ZERO, |
| 4091 | .block_erasers = |
| 4092 | { |
| 4093 | { |
| 4094 | .eraseblocks = { {4 * 1024, 128} }, |
| 4095 | .block_erase = spi_block_erase_20, |
| 4096 | }, { |
| 4097 | .eraseblocks = { {64 * 1024, 8} }, |
| 4098 | .block_erase = spi_block_erase_d8, |
| 4099 | }, { |
| 4100 | .eraseblocks = { {512 * 1024, 1} }, |
| 4101 | .block_erase = spi_block_erase_60, |
| 4102 | }, { |
| 4103 | .eraseblocks = { {512 * 1024, 1} }, |
| 4104 | .block_erase = spi_block_erase_c7, |
| 4105 | } |
| 4106 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4107 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4108 | .unlock = spi_disable_blockprotect, |
| 4109 | .write = spi_chip_write_256, |
| 4110 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4111 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4112 | }, |
| 4113 | |
| 4114 | { |
| 4115 | .vendor = "Eon", |
| 4116 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4117 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4118 | .manufacture_id = EON_ID_NOPREFIX, |
| 4119 | .model_id = EON_EN25Q80, |
| 4120 | .total_size = 1024, |
| 4121 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4122 | /* OTP: 256B total; enter 0x3A */ |
| 4123 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4124 | .tested = TEST_UNTESTED, |
| 4125 | .probe = probe_spi_rdid, |
| 4126 | .probe_timing = TIMING_ZERO, |
| 4127 | .block_erasers = |
| 4128 | { |
| 4129 | { |
| 4130 | .eraseblocks = { {4 * 1024, 256} }, |
| 4131 | .block_erase = spi_block_erase_20, |
| 4132 | }, { |
| 4133 | .eraseblocks = { {64 * 1024, 16} }, |
| 4134 | .block_erase = spi_block_erase_d8, |
| 4135 | }, { |
| 4136 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4137 | .block_erase = spi_block_erase_60, |
| 4138 | }, { |
| 4139 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4140 | .block_erase = spi_block_erase_c7, |
| 4141 | } |
| 4142 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4143 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4144 | .unlock = spi_disable_blockprotect, |
| 4145 | .write = spi_chip_write_256, |
| 4146 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4147 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4148 | }, |
| 4149 | |
| 4150 | { |
| 4151 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4152 | but has different write protection capabilities */ |
| 4153 | .vendor = "Eon", |
| 4154 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4155 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4156 | .manufacture_id = EON_ID_NOPREFIX, |
| 4157 | .model_id = EON_EN25Q16, |
| 4158 | .total_size = 2048, |
| 4159 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4160 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4161 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4162 | .tested = TEST_UNTESTED, |
| 4163 | .probe = probe_spi_rdid, |
| 4164 | .probe_timing = TIMING_ZERO, |
| 4165 | .block_erasers = |
| 4166 | { |
| 4167 | { |
| 4168 | .eraseblocks = { {4 * 1024, 512} }, |
| 4169 | .block_erase = spi_block_erase_20, |
| 4170 | }, { |
| 4171 | .eraseblocks = { {64 * 1024, 32} }, |
| 4172 | .block_erase = spi_block_erase_d8, |
| 4173 | }, { |
| 4174 | /* not supported by Q16 version */ |
| 4175 | .eraseblocks = { {64 * 1024, 32} }, |
| 4176 | .block_erase = spi_block_erase_52, |
| 4177 | }, { |
| 4178 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4179 | .block_erase = spi_block_erase_60, |
| 4180 | }, { |
| 4181 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4182 | .block_erase = spi_block_erase_c7, |
| 4183 | } |
| 4184 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4185 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4186 | .unlock = spi_disable_blockprotect, |
| 4187 | .write = spi_chip_write_256, |
| 4188 | .read = spi_chip_read, |
| 4189 | .voltage = {2700, 3600}, |
| 4190 | }, |
| 4191 | |
| 4192 | { |
| 4193 | .vendor = "Eon", |
| 4194 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4195 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4196 | .manufacture_id = EON_ID_NOPREFIX, |
| 4197 | .model_id = EON_EN25Q32, |
| 4198 | .total_size = 4096, |
| 4199 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4200 | /* OTP: 512B total; enter 0x3A */ |
| 4201 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4202 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4203 | .probe = probe_spi_rdid, |
| 4204 | .probe_timing = TIMING_ZERO, |
| 4205 | .block_erasers = |
| 4206 | { |
| 4207 | { |
| 4208 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4209 | .block_erase = spi_block_erase_20, |
| 4210 | }, { |
| 4211 | .eraseblocks = { {64 * 1024, 64} }, |
| 4212 | .block_erase = spi_block_erase_d8, |
| 4213 | }, { |
| 4214 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4215 | .block_erase = spi_block_erase_60, |
| 4216 | }, { |
| 4217 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4218 | .block_erase = spi_block_erase_c7, |
| 4219 | } |
| 4220 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4221 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4222 | .unlock = spi_disable_blockprotect, |
| 4223 | .write = spi_chip_write_256, |
| 4224 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4225 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4226 | }, |
| 4227 | |
| 4228 | { |
| 4229 | .vendor = "Eon", |
| 4230 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4231 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4232 | .manufacture_id = EON_ID_NOPREFIX, |
| 4233 | .model_id = EON_EN25Q64, |
| 4234 | .total_size = 8192, |
| 4235 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4236 | /* OTP: 512B total; enter 0x3A */ |
| 4237 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4238 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4239 | .probe = probe_spi_rdid, |
| 4240 | .probe_timing = TIMING_ZERO, |
| 4241 | .block_erasers = |
| 4242 | { |
| 4243 | { |
| 4244 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4245 | .block_erase = spi_block_erase_20, |
| 4246 | }, { |
| 4247 | .eraseblocks = { {64 * 1024, 128} }, |
| 4248 | .block_erase = spi_block_erase_d8, |
| 4249 | }, { |
| 4250 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4251 | .block_erase = spi_block_erase_60, |
| 4252 | }, { |
| 4253 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4254 | .block_erase = spi_block_erase_c7, |
| 4255 | } |
| 4256 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4257 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4258 | .unlock = spi_disable_blockprotect, |
| 4259 | .write = spi_chip_write_256, |
| 4260 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4261 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4262 | }, |
| 4263 | |
| 4264 | { |
| 4265 | .vendor = "Eon", |
| 4266 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4267 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4268 | .manufacture_id = EON_ID_NOPREFIX, |
| 4269 | .model_id = EON_EN25Q128, |
| 4270 | .total_size = 16384, |
| 4271 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4272 | /* OTP: 512B total; enter 0x3A */ |
| 4273 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4274 | .tested = TEST_UNTESTED, |
| 4275 | .probe = probe_spi_rdid, |
| 4276 | .probe_timing = TIMING_ZERO, |
| 4277 | .block_erasers = |
| 4278 | { |
| 4279 | { |
| 4280 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4281 | .block_erase = spi_block_erase_20, |
| 4282 | }, { |
| 4283 | .eraseblocks = { {64 * 1024, 256} }, |
| 4284 | .block_erase = spi_block_erase_d8, |
| 4285 | }, { |
| 4286 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4287 | .block_erase = spi_block_erase_60, |
| 4288 | }, { |
| 4289 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4290 | .block_erase = spi_block_erase_c7, |
| 4291 | } |
| 4292 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4293 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4294 | .unlock = spi_disable_blockprotect, |
| 4295 | .write = spi_chip_write_256, |
| 4296 | .read = spi_chip_read, |
| 4297 | }, |
| 4298 | |
| 4299 | { |
| 4300 | .vendor = "Eon", |
| 4301 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4302 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4303 | .manufacture_id = EON_ID_NOPREFIX, |
| 4304 | .model_id = EON_EN25QH16, |
| 4305 | .total_size = 2048, |
| 4306 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4307 | /* supports SFDP */ |
| 4308 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4309 | /* QPI enable 0x38, disable 0xFF */ |
| 4310 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 4311 | .tested = TEST_OK_PR, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4312 | .probe = probe_spi_rdid, |
| 4313 | .probe_timing = TIMING_ZERO, |
| 4314 | .block_erasers = |
| 4315 | { |
| 4316 | { |
| 4317 | .eraseblocks = { {4 * 1024, 512} }, |
| 4318 | .block_erase = spi_block_erase_20, |
| 4319 | }, { |
| 4320 | .eraseblocks = { {64 * 1024, 32} }, |
| 4321 | .block_erase = spi_block_erase_d8, |
| 4322 | }, { |
| 4323 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4324 | .block_erase = spi_block_erase_60, |
| 4325 | }, { |
| 4326 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4327 | .block_erase = spi_block_erase_c7, |
| 4328 | } |
| 4329 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4330 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4331 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4332 | .write = spi_chip_write_256, |
| 4333 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4334 | .voltage = {2700, 3600}, |
| 4335 | }, |
| 4336 | |
| 4337 | { |
| 4338 | .vendor = "Eon", |
| 4339 | .name = "EN25QH32", |
| 4340 | .bustype = BUS_SPI, |
| 4341 | .manufacture_id = EON_ID_NOPREFIX, |
| 4342 | .model_id = EON_EN25QH32, |
| 4343 | .total_size = 4096, |
| 4344 | .page_size = 256, |
| 4345 | /* supports SFDP */ |
| 4346 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4347 | /* QPI enable 0x38, disable 0xFF */ |
| 4348 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4349 | .tested = TEST_UNTESTED, |
| 4350 | .probe = probe_spi_rdid, |
| 4351 | .probe_timing = TIMING_ZERO, |
| 4352 | .block_erasers = |
| 4353 | { |
| 4354 | { |
| 4355 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4356 | .block_erase = spi_block_erase_20, |
| 4357 | }, { |
| 4358 | .eraseblocks = { {64 * 1024, 64} }, |
| 4359 | .block_erase = spi_block_erase_d8, |
| 4360 | }, { |
| 4361 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4362 | .block_erase = spi_block_erase_60, |
| 4363 | }, { |
| 4364 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4365 | .block_erase = spi_block_erase_c7, |
| 4366 | } |
| 4367 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4368 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4369 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4370 | .write = spi_chip_write_256, |
| 4371 | .read = spi_chip_read, |
| 4372 | .voltage = {2700, 3600}, |
| 4373 | }, |
| 4374 | |
| 4375 | { |
| 4376 | .vendor = "Eon", |
| 4377 | .name = "EN25QH64", |
| 4378 | .bustype = BUS_SPI, |
| 4379 | .manufacture_id = EON_ID_NOPREFIX, |
| 4380 | .model_id = EON_EN25QH64, |
| 4381 | .total_size = 8192, |
| 4382 | .page_size = 256, |
| 4383 | /* supports SFDP */ |
| 4384 | /* OTP: 512B total; enter 0x3A */ |
| 4385 | /* QPI enable 0x38, disable 0xFF */ |
| 4386 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 4387 | .tested = TEST_OK_PR, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4388 | .probe = probe_spi_rdid, |
| 4389 | .probe_timing = TIMING_ZERO, |
| 4390 | .block_erasers = { |
| 4391 | { |
| 4392 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4393 | .block_erase = spi_block_erase_20, |
| 4394 | }, { |
| 4395 | .eraseblocks = { {64 * 1024, 128} }, |
| 4396 | .block_erase = spi_block_erase_d8, |
| 4397 | }, { |
| 4398 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4399 | .block_erase = spi_block_erase_60, |
| 4400 | }, { |
| 4401 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4402 | .block_erase = spi_block_erase_c7, |
| 4403 | } |
| 4404 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4405 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4406 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4407 | .write = spi_chip_write_256, |
| 4408 | .read = spi_chip_read, |
| 4409 | .voltage = {2700, 3600}, |
| 4410 | }, |
| 4411 | |
| 4412 | { |
| 4413 | .vendor = "Eon", |
| 4414 | .name = "EN25QH128", |
| 4415 | .bustype = BUS_SPI, |
| 4416 | .manufacture_id = EON_ID_NOPREFIX, |
| 4417 | .model_id = EON_EN25QH128, |
| 4418 | .total_size = 16384, |
| 4419 | .page_size = 256, |
| 4420 | /* supports SFDP */ |
| 4421 | /* OTP: 512B total; enter 0x3A */ |
| 4422 | /* QPI enable 0x38, disable 0xFF */ |
| 4423 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4424 | .tested = TEST_UNTESTED, |
| 4425 | .probe = probe_spi_rdid, |
| 4426 | .probe_timing = TIMING_ZERO, |
| 4427 | .block_erasers = { |
| 4428 | { |
| 4429 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4430 | .block_erase = spi_block_erase_20, |
| 4431 | }, { |
| 4432 | .eraseblocks = { {64 * 1024, 256} }, |
| 4433 | .block_erase = spi_block_erase_d8, |
| 4434 | }, { |
| 4435 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4436 | .block_erase = spi_block_erase_60, |
| 4437 | }, { |
| 4438 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4439 | .block_erase = spi_block_erase_c7, |
| 4440 | } |
| 4441 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4442 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4443 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4444 | .write = spi_chip_write_256, |
| 4445 | .read = spi_chip_read, |
| 4446 | .voltage = {2700, 3600}, |
| 4447 | }, |
| 4448 | |
| 4449 | { |
| 4450 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4451 | .name = "EN25S10", |
| 4452 | .bustype = BUS_SPI, |
| 4453 | .manufacture_id = EON_ID_NOPREFIX, |
| 4454 | .model_id = EON_EN25S10, |
| 4455 | .total_size = 128, |
| 4456 | .page_size = 256, |
| 4457 | /* OTP: 256B total; enter 0x3A */ |
| 4458 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4459 | .tested = TEST_UNTESTED, |
| 4460 | .probe = probe_spi_rdid, |
| 4461 | .probe_timing = TIMING_ZERO, |
| 4462 | .block_erasers = { |
| 4463 | { |
| 4464 | .eraseblocks = { {4 * 1024, 32} }, |
| 4465 | .block_erase = spi_block_erase_20, |
| 4466 | }, { |
| 4467 | .eraseblocks = { {32 * 1024, 4} }, |
| 4468 | .block_erase = spi_block_erase_52, |
| 4469 | }, { |
| 4470 | .eraseblocks = { {128 * 1024, 1} }, |
| 4471 | .block_erase = spi_block_erase_60, |
| 4472 | }, { |
| 4473 | .eraseblocks = { {128 * 1024, 1} }, |
| 4474 | .block_erase = spi_block_erase_c7, |
| 4475 | } |
| 4476 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4477 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4478 | .unlock = spi_disable_blockprotect, |
| 4479 | .write = spi_chip_write_256, |
| 4480 | .read = spi_chip_read, |
| 4481 | .voltage = {1650, 1950}, |
| 4482 | }, |
| 4483 | |
| 4484 | { |
| 4485 | .vendor = "Eon", |
| 4486 | .name = "EN25S20", |
| 4487 | .bustype = BUS_SPI, |
| 4488 | .manufacture_id = EON_ID_NOPREFIX, |
| 4489 | .model_id = EON_EN25S20, |
| 4490 | .total_size = 256, |
| 4491 | .page_size = 256, |
| 4492 | /* OTP: 256B total; enter 0x3A */ |
| 4493 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4494 | .tested = TEST_UNTESTED, |
| 4495 | .probe = probe_spi_rdid, |
| 4496 | .probe_timing = TIMING_ZERO, |
| 4497 | .block_erasers = { |
| 4498 | { |
| 4499 | .eraseblocks = { {4 * 1024, 64} }, |
| 4500 | .block_erase = spi_block_erase_20, |
| 4501 | }, { |
| 4502 | .eraseblocks = { {64 * 1024, 4} }, |
| 4503 | .block_erase = spi_block_erase_d8, |
| 4504 | }, { |
| 4505 | .eraseblocks = { {256 * 1024, 1} }, |
| 4506 | .block_erase = spi_block_erase_60, |
| 4507 | }, { |
| 4508 | .eraseblocks = { {256 * 1024, 1} }, |
| 4509 | .block_erase = spi_block_erase_c7, |
| 4510 | } |
| 4511 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4512 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4513 | .unlock = spi_disable_blockprotect, |
| 4514 | .write = spi_chip_write_256, |
| 4515 | .read = spi_chip_read, |
| 4516 | .voltage = {1650, 1950}, |
| 4517 | }, |
| 4518 | |
| 4519 | { |
| 4520 | .vendor = "Eon", |
| 4521 | .name = "EN25S40", |
| 4522 | .bustype = BUS_SPI, |
| 4523 | .manufacture_id = EON_ID_NOPREFIX, |
| 4524 | .model_id = EON_EN25S40, |
| 4525 | .total_size = 512, |
| 4526 | .page_size = 256, |
| 4527 | /* OTP: 256B total; enter 0x3A */ |
| 4528 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4529 | .tested = TEST_UNTESTED, |
| 4530 | .probe = probe_spi_rdid, |
| 4531 | .probe_timing = TIMING_ZERO, |
| 4532 | .block_erasers = { |
| 4533 | { |
| 4534 | .eraseblocks = { {4 * 1024, 128} }, |
| 4535 | .block_erase = spi_block_erase_20, |
| 4536 | }, { |
| 4537 | .eraseblocks = { {64 * 1024, 8} }, |
| 4538 | .block_erase = spi_block_erase_d8, |
| 4539 | }, { |
| 4540 | .eraseblocks = { {512 * 1024, 1} }, |
| 4541 | .block_erase = spi_block_erase_60, |
| 4542 | }, { |
| 4543 | .eraseblocks = { {512 * 1024, 1} }, |
| 4544 | .block_erase = spi_block_erase_c7, |
| 4545 | } |
| 4546 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4547 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4548 | .unlock = spi_disable_blockprotect, |
| 4549 | .write = spi_chip_write_256, |
| 4550 | .read = spi_chip_read, |
| 4551 | .voltage = {1650, 1950}, |
| 4552 | }, |
| 4553 | |
| 4554 | { |
| 4555 | .vendor = "Eon", |
| 4556 | .name = "EN25S80", |
| 4557 | .bustype = BUS_SPI, |
| 4558 | .manufacture_id = EON_ID_NOPREFIX, |
| 4559 | .model_id = EON_EN25S80, |
| 4560 | .total_size = 1024, |
| 4561 | .page_size = 256, |
| 4562 | /* OTP: 256B total; enter 0x3A */ |
| 4563 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4564 | .tested = TEST_UNTESTED, |
| 4565 | .probe = probe_spi_rdid, |
| 4566 | .probe_timing = TIMING_ZERO, |
| 4567 | .block_erasers = { |
| 4568 | { |
| 4569 | .eraseblocks = { {4 * 1024, 256} }, |
| 4570 | .block_erase = spi_block_erase_20, |
| 4571 | }, { |
| 4572 | .eraseblocks = { {64 * 1024, 16} }, |
| 4573 | .block_erase = spi_block_erase_d8, |
| 4574 | }, { |
| 4575 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4576 | .block_erase = spi_block_erase_60, |
| 4577 | }, { |
| 4578 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4579 | .block_erase = spi_block_erase_c7, |
| 4580 | } |
| 4581 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4582 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4583 | .unlock = spi_disable_blockprotect, |
| 4584 | .write = spi_chip_write_256, |
| 4585 | .read = spi_chip_read, |
| 4586 | .voltage = {1650, 1950}, |
| 4587 | }, |
| 4588 | |
| 4589 | { |
| 4590 | .vendor = "Eon", |
| 4591 | .name = "EN25S16", |
| 4592 | .bustype = BUS_SPI, |
| 4593 | .manufacture_id = EON_ID_NOPREFIX, |
| 4594 | .model_id = EON_EN25S16, |
| 4595 | .total_size = 2048, |
| 4596 | .page_size = 256, |
| 4597 | /* OTP: 512B total; enter 0x3A */ |
| 4598 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4599 | .tested = TEST_UNTESTED, |
| 4600 | .probe = probe_spi_rdid, |
| 4601 | .probe_timing = TIMING_ZERO, |
| 4602 | .block_erasers = { |
| 4603 | { |
| 4604 | .eraseblocks = { {4 * 1024, 512} }, |
| 4605 | .block_erase = spi_block_erase_20, |
| 4606 | }, { |
| 4607 | .eraseblocks = { {64 * 1024, 32} }, |
| 4608 | .block_erase = spi_block_erase_52, |
| 4609 | }, { |
| 4610 | .eraseblocks = { {32 * 1024, 64} }, |
| 4611 | .block_erase = spi_block_erase_d8, |
| 4612 | }, { |
| 4613 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4614 | .block_erase = spi_block_erase_60, |
| 4615 | }, { |
| 4616 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4617 | .block_erase = spi_block_erase_c7, |
| 4618 | } |
| 4619 | }, |
| 4620 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4621 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4622 | .write = spi_chip_write_256, |
| 4623 | .read = spi_chip_read, |
| 4624 | .voltage = {1650, 1950}, |
| 4625 | }, |
| 4626 | |
| 4627 | { |
| 4628 | .vendor = "Eon", |
| 4629 | .name = "EN25S32", |
| 4630 | .bustype = BUS_SPI, |
| 4631 | .manufacture_id = EON_ID_NOPREFIX, |
| 4632 | .model_id = EON_EN25S32, |
| 4633 | .total_size = 4096, |
| 4634 | .page_size = 256, |
| 4635 | /* OTP: 512B total; enter 0x3A */ |
| 4636 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4637 | .tested = TEST_UNTESTED, |
| 4638 | .probe = probe_spi_rdid, |
| 4639 | .probe_timing = TIMING_ZERO, |
| 4640 | .block_erasers = { |
| 4641 | { |
| 4642 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4643 | .block_erase = spi_block_erase_20, |
| 4644 | }, { |
| 4645 | .eraseblocks = { {32 * 1024, 128} }, |
| 4646 | .block_erase = spi_block_erase_52, |
| 4647 | }, { |
| 4648 | .eraseblocks = { {64 * 1024, 64} }, |
| 4649 | .block_erase = spi_block_erase_d8, |
| 4650 | }, { |
| 4651 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4652 | .block_erase = spi_block_erase_60, |
| 4653 | }, { |
| 4654 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4655 | .block_erase = spi_block_erase_c7, |
| 4656 | } |
| 4657 | }, |
| 4658 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4659 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4660 | .write = spi_chip_write_256, |
| 4661 | .read = spi_chip_read, |
| 4662 | .voltage = {1650, 1950}, |
| 4663 | }, |
| 4664 | |
| 4665 | { |
| 4666 | .vendor = "Eon", |
| 4667 | .name = "EN25S64", |
| 4668 | .bustype = BUS_SPI, |
| 4669 | .manufacture_id = EON_ID_NOPREFIX, |
| 4670 | .model_id = EON_EN25S64, |
| 4671 | .total_size = 8192, |
| 4672 | .page_size = 256, |
| 4673 | /* OTP: 512B total; enter 0x3A */ |
| 4674 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4675 | .tested = TEST_UNTESTED, |
| 4676 | .probe = probe_spi_rdid, |
| 4677 | .probe_timing = TIMING_ZERO, |
| 4678 | .block_erasers = { |
| 4679 | { |
| 4680 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4681 | .block_erase = spi_block_erase_20, |
| 4682 | }, { |
| 4683 | .eraseblocks = { {64 * 1024, 128} }, |
| 4684 | .block_erase = spi_block_erase_d8, |
| 4685 | }, { |
| 4686 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4687 | .block_erase = spi_block_erase_60, |
| 4688 | }, { |
| 4689 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4690 | .block_erase = spi_block_erase_c7, |
| 4691 | } |
| 4692 | }, |
| 4693 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4694 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4695 | .write = spi_chip_write_256, |
| 4696 | .read = spi_chip_read, |
| 4697 | .voltage = {1650, 1950}, |
| 4698 | }, |
| 4699 | |
| 4700 | { |
| 4701 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4702 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4703 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4704 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4705 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4706 | .total_size = 128, |
| 4707 | .page_size = 128, |
| 4708 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4709 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4710 | .probe = probe_jedec, |
| 4711 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4712 | .block_erasers = |
| 4713 | { |
| 4714 | { |
| 4715 | .eraseblocks = { {16 * 1024, 8} }, |
| 4716 | .block_erase = erase_sector_jedec, |
| 4717 | }, |
| 4718 | { |
| 4719 | .eraseblocks = { {128 * 1024, 1} }, |
| 4720 | .block_erase = erase_chip_block_jedec, |
| 4721 | }, |
| 4722 | }, |
| 4723 | .write = write_jedec_1, |
| 4724 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4725 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4726 | }, |
| 4727 | |
| 4728 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4729 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4730 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4731 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4732 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4733 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4734 | .total_size = 256, |
| 4735 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4736 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4737 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4738 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4739 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4740 | .block_erasers = |
| 4741 | { |
| 4742 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4743 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4744 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4745 | {8 * 1024, 2}, |
| 4746 | {32 * 1024, 1}, |
| 4747 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4748 | }, |
| 4749 | .block_erase = erase_sector_jedec, |
| 4750 | }, { |
| 4751 | .eraseblocks = { {256 * 1024, 1} }, |
| 4752 | .block_erase = erase_chip_block_jedec, |
| 4753 | }, |
| 4754 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4755 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4756 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4757 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4758 | }, |
| 4759 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4760 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4761 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4762 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4763 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4764 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4765 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4766 | .total_size = 256, |
| 4767 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4768 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4769 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4770 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4771 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4772 | .block_erasers = |
| 4773 | { |
| 4774 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4775 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4776 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4777 | {32 * 1024, 1}, |
| 4778 | {8 * 1024, 2}, |
| 4779 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4780 | }, |
| 4781 | .block_erase = erase_sector_jedec, |
| 4782 | }, { |
| 4783 | .eraseblocks = { {256 * 1024, 1} }, |
| 4784 | .block_erase = erase_chip_block_jedec, |
| 4785 | }, |
| 4786 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4787 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4788 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4789 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4790 | }, |
| 4791 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4792 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4793 | .vendor = "Eon", |
| 4794 | .name = "EN29LV640B", |
| 4795 | .bustype = BUS_PARALLEL, |
| 4796 | .manufacture_id = EON_ID, |
| 4797 | .model_id = EON_EN29LV640B, |
| 4798 | .total_size = 8192, |
| 4799 | .page_size = 8192, |
| 4800 | .feature_bits = 0, |
| 4801 | .tested = TEST_OK_PREW, |
| 4802 | .probe = probe_en29lv640b, |
| 4803 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4804 | .block_erasers = |
| 4805 | { |
| 4806 | { |
| 4807 | .eraseblocks = { |
| 4808 | {8 * 1024, 8}, |
| 4809 | {64 * 1024, 127}, |
| 4810 | }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 4811 | .block_erase = erase_block_shifted_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4812 | }, { |
| 4813 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 4814 | .block_erase = erase_chip_block_shifted_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4815 | }, |
| 4816 | }, |
| 4817 | .write = write_en29lv640b, |
| 4818 | .read = read_memmapped, |
| 4819 | .voltage = {2700, 3600}, |
| 4820 | }, |
| 4821 | |
| 4822 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4823 | .vendor = "Fujitsu", |
| 4824 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4825 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4826 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4827 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4828 | .total_size = 512, |
| 4829 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4830 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4831 | .tested = TEST_UNTESTED, |
| 4832 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4833 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4834 | .block_erasers = |
| 4835 | { |
| 4836 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4837 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4838 | {16 * 1024, 1}, |
| 4839 | {8 * 1024, 2}, |
| 4840 | {32 * 1024, 1}, |
| 4841 | {64 * 1024, 7}, |
| 4842 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4843 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4844 | }, { |
| 4845 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4846 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4847 | }, |
| 4848 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4849 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4850 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4851 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4852 | }, |
| 4853 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4854 | { |
| 4855 | .vendor = "Fujitsu", |
| 4856 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4857 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4858 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4859 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4860 | .total_size = 512, |
| 4861 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4862 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4863 | .tested = TEST_UNTESTED, |
| 4864 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4865 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4866 | .block_erasers = |
| 4867 | { |
| 4868 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4869 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4870 | {64 * 1024, 7}, |
| 4871 | {32 * 1024, 1}, |
| 4872 | {8 * 1024, 2}, |
| 4873 | {16 * 1024, 1}, |
| 4874 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4875 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4876 | }, { |
| 4877 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4878 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4879 | }, |
| 4880 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4881 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4882 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4883 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4884 | }, |
| 4885 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4886 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4887 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4888 | .vendor = "Fujitsu", |
| 4889 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4890 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4891 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4892 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4893 | .total_size = 512, |
| 4894 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4895 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4896 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4897 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4898 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4899 | .block_erasers = |
| 4900 | { |
| 4901 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4902 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4903 | {16 * 1024, 1}, |
| 4904 | {8 * 1024, 2}, |
| 4905 | {32 * 1024, 1}, |
| 4906 | {64 * 1024, 7}, |
| 4907 | }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 4908 | .block_erase = erase_block_shifted_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4909 | }, { |
| 4910 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 4911 | .block_erase = erase_chip_block_shifted_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4912 | }, |
| 4913 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4914 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4915 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4916 | .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] | 4917 | }, |
| 4918 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4919 | { |
| 4920 | .vendor = "Fujitsu", |
| 4921 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4922 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4923 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4924 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4925 | .total_size = 512, |
| 4926 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4927 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4928 | .tested = TEST_UNTESTED, |
| 4929 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4930 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4931 | .block_erasers = |
| 4932 | { |
| 4933 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4934 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4935 | {64 * 1024, 7}, |
| 4936 | {32 * 1024, 1}, |
| 4937 | {8 * 1024, 2}, |
| 4938 | {16 * 1024, 1}, |
| 4939 | }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 4940 | .block_erase = erase_block_shifted_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4941 | }, { |
| 4942 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 4943 | .block_erase = erase_chip_block_shifted_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4944 | }, |
| 4945 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 4946 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4947 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4948 | .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] | 4949 | }, |
| 4950 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4951 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 4952 | .vendor = "Fujitsu", |
| 4953 | .name = "MBM29LV160BE", |
| 4954 | .bustype = BUS_PARALLEL, |
| 4955 | .manufacture_id = FUJITSU_ID, |
| 4956 | .model_id = FUJITSU_MBM29LV160BE, |
| 4957 | .total_size = 2 * 1024, |
| 4958 | .page_size = 0, |
| 4959 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 4960 | .tested = TEST_UNTESTED, |
| 4961 | .probe = probe_m29f400bt, |
| 4962 | .probe_timing = TIMING_IGNORED, |
| 4963 | .block_erasers = |
| 4964 | { |
| 4965 | { |
| 4966 | .eraseblocks = { |
| 4967 | {16 * 1024, 1}, |
| 4968 | {8 * 1024, 2}, |
| 4969 | {32 * 1024, 1}, |
| 4970 | {64 * 1024, 31}, |
| 4971 | }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 4972 | .block_erase = erase_block_shifted_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 4973 | }, { |
| 4974 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 4975 | .block_erase = erase_chip_block_shifted_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 4976 | }, |
| 4977 | }, |
| 4978 | .write = write_m29f400bt, /* Supports a fast mode too */ |
| 4979 | .read = read_memmapped, |
| 4980 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 4981 | }, |
| 4982 | |
| 4983 | { |
| 4984 | .vendor = "Fujitsu", |
| 4985 | .name = "MBM29LV160TE", |
| 4986 | .bustype = BUS_PARALLEL, |
| 4987 | .manufacture_id = FUJITSU_ID, |
| 4988 | .model_id = FUJITSU_MBM29LV160TE, |
| 4989 | .total_size = 2 * 1024, |
| 4990 | .page_size = 0, |
| 4991 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 4992 | .tested = TEST_UNTESTED, |
| 4993 | .probe = probe_m29f400bt, |
| 4994 | .probe_timing = TIMING_IGNORED, |
| 4995 | .block_erasers = |
| 4996 | { |
| 4997 | { |
| 4998 | .eraseblocks = { |
| 4999 | {64 * 1024, 31}, |
| 5000 | {32 * 1024, 1}, |
| 5001 | {8 * 1024, 2}, |
| 5002 | {16 * 1024, 1}, |
| 5003 | }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 5004 | .block_erase = erase_block_shifted_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5005 | }, { |
| 5006 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 5007 | .block_erase = erase_chip_block_shifted_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5008 | }, |
| 5009 | }, |
| 5010 | .write = write_m29f400bt, /* Supports a fast mode too */ |
| 5011 | .read = read_memmapped, |
| 5012 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5013 | }, |
| 5014 | |
| 5015 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5016 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5017 | .name = "GD25LQ32", |
| 5018 | .bustype = BUS_SPI, |
| 5019 | .manufacture_id = GIGADEVICE_ID, |
| 5020 | .model_id = GIGADEVICE_GD25LQ32, |
| 5021 | .total_size = 4096, |
| 5022 | .page_size = 256, |
| 5023 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5024 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5025 | .tested = TEST_OK_PREW, |
| 5026 | .probe = probe_spi_rdid, |
| 5027 | .probe_timing = TIMING_ZERO, |
| 5028 | .block_erasers = |
| 5029 | { |
| 5030 | { |
| 5031 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5032 | .block_erase = spi_block_erase_20, |
| 5033 | }, { |
| 5034 | .eraseblocks = { {32 * 1024, 128} }, |
| 5035 | .block_erase = spi_block_erase_52, |
| 5036 | }, { |
| 5037 | .eraseblocks = { {64 * 1024, 64} }, |
| 5038 | .block_erase = spi_block_erase_d8, |
| 5039 | }, { |
| 5040 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5041 | .block_erase = spi_block_erase_60, |
| 5042 | }, { |
| 5043 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5044 | .block_erase = spi_block_erase_c7, |
| 5045 | } |
| 5046 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5047 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5048 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5049 | .write = spi_chip_write_256, |
| 5050 | .read = spi_chip_read, |
| 5051 | .voltage = {1700, 1950}, |
| 5052 | }, |
| 5053 | |
| 5054 | { |
| 5055 | .vendor = "GigaDevice", |
| 5056 | .name = "GD25Q512", |
| 5057 | .bustype = BUS_SPI, |
| 5058 | .manufacture_id = GIGADEVICE_ID, |
| 5059 | .model_id = GIGADEVICE_GD25Q512, |
| 5060 | .total_size = 64, |
| 5061 | .page_size = 256, |
| 5062 | .feature_bits = FEATURE_WRSR_WREN, |
| 5063 | .tested = TEST_UNTESTED, |
| 5064 | .probe = probe_spi_rdid, |
| 5065 | .probe_timing = TIMING_ZERO, |
| 5066 | .block_erasers = { |
| 5067 | { |
| 5068 | .eraseblocks = { {4 * 1024, 16} }, |
| 5069 | .block_erase = spi_block_erase_20, |
| 5070 | }, { |
| 5071 | .eraseblocks = { {32 * 1024, 2} }, |
| 5072 | .block_erase = spi_block_erase_52, |
| 5073 | }, { |
| 5074 | .eraseblocks = { {64 * 1024, 1} }, |
| 5075 | .block_erase = spi_block_erase_60, |
| 5076 | }, { |
| 5077 | .eraseblocks = { {64 * 1024, 1} }, |
| 5078 | .block_erase = spi_block_erase_c7, |
| 5079 | } |
| 5080 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5081 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5082 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5083 | .write = spi_chip_write_256, |
| 5084 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5085 | .voltage = {2700, 3600}, |
| 5086 | }, |
| 5087 | |
| 5088 | { |
| 5089 | .vendor = "GigaDevice", |
| 5090 | .name = "GD25Q10", |
| 5091 | .bustype = BUS_SPI, |
| 5092 | .manufacture_id = GIGADEVICE_ID, |
| 5093 | .model_id = GIGADEVICE_GD25Q10, |
| 5094 | .total_size = 128, |
| 5095 | .page_size = 256, |
| 5096 | .feature_bits = FEATURE_WRSR_WREN, |
| 5097 | .tested = TEST_UNTESTED, |
| 5098 | .probe = probe_spi_rdid, |
| 5099 | .probe_timing = TIMING_ZERO, |
| 5100 | .block_erasers = { |
| 5101 | { |
| 5102 | .eraseblocks = { {4 * 1024, 32} }, |
| 5103 | .block_erase = spi_block_erase_20, |
| 5104 | }, { |
| 5105 | .eraseblocks = { {32 * 1024, 4} }, |
| 5106 | .block_erase = spi_block_erase_52, |
| 5107 | }, { |
| 5108 | .eraseblocks = { {64 * 1024, 2} }, |
| 5109 | .block_erase = spi_block_erase_d8, |
| 5110 | }, { |
| 5111 | .eraseblocks = { {128 * 1024, 1} }, |
| 5112 | .block_erase = spi_block_erase_60, |
| 5113 | }, { |
| 5114 | .eraseblocks = { {128 * 1024, 1} }, |
| 5115 | .block_erase = spi_block_erase_c7, |
| 5116 | } |
| 5117 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5118 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5119 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5120 | .write = spi_chip_write_256, |
| 5121 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5122 | .voltage = {2700, 3600}, |
| 5123 | }, |
| 5124 | |
| 5125 | { |
| 5126 | .vendor = "GigaDevice", |
| 5127 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5128 | .bustype = BUS_SPI, |
| 5129 | .manufacture_id = GIGADEVICE_ID, |
| 5130 | .model_id = GIGADEVICE_GD25Q20, |
| 5131 | .total_size = 256, |
| 5132 | .page_size = 256, |
| 5133 | .feature_bits = FEATURE_WRSR_WREN, |
| 5134 | .tested = TEST_UNTESTED, |
| 5135 | .probe = probe_spi_rdid, |
| 5136 | .probe_timing = TIMING_ZERO, |
| 5137 | .block_erasers = |
| 5138 | { |
| 5139 | { |
| 5140 | .eraseblocks = { {4 * 1024, 64} }, |
| 5141 | .block_erase = spi_block_erase_20, |
| 5142 | }, { |
| 5143 | .eraseblocks = { {32 * 1024, 8} }, |
| 5144 | .block_erase = spi_block_erase_52, |
| 5145 | }, { |
| 5146 | .eraseblocks = { {64 * 1024, 4} }, |
| 5147 | .block_erase = spi_block_erase_d8, |
| 5148 | }, { |
| 5149 | .eraseblocks = { {256 * 1024, 1} }, |
| 5150 | .block_erase = spi_block_erase_60, |
| 5151 | }, { |
| 5152 | .eraseblocks = { {256 * 1024, 1} }, |
| 5153 | .block_erase = spi_block_erase_c7, |
| 5154 | } |
| 5155 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5156 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5157 | .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] | 5158 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5159 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5160 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5161 | }, |
| 5162 | |
| 5163 | { |
| 5164 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5165 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5166 | .bustype = BUS_SPI, |
| 5167 | .manufacture_id = GIGADEVICE_ID, |
| 5168 | .model_id = GIGADEVICE_GD25Q40, |
| 5169 | .total_size = 512, |
| 5170 | .page_size = 256, |
| 5171 | .feature_bits = FEATURE_WRSR_WREN, |
| 5172 | .tested = TEST_UNTESTED, |
| 5173 | .probe = probe_spi_rdid, |
| 5174 | .probe_timing = TIMING_ZERO, |
| 5175 | .block_erasers = |
| 5176 | { |
| 5177 | { |
| 5178 | .eraseblocks = { {4 * 1024, 128} }, |
| 5179 | .block_erase = spi_block_erase_20, |
| 5180 | }, { |
| 5181 | .eraseblocks = { {32 * 1024, 16} }, |
| 5182 | .block_erase = spi_block_erase_52, |
| 5183 | }, { |
| 5184 | .eraseblocks = { {64 * 1024, 8} }, |
| 5185 | .block_erase = spi_block_erase_d8, |
| 5186 | }, { |
| 5187 | .eraseblocks = { {512 * 1024, 1} }, |
| 5188 | .block_erase = spi_block_erase_60, |
| 5189 | }, { |
| 5190 | .eraseblocks = { {512 * 1024, 1} }, |
| 5191 | .block_erase = spi_block_erase_c7, |
| 5192 | } |
| 5193 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5194 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5195 | .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] | 5196 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5197 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5198 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5199 | }, |
| 5200 | |
| 5201 | { |
| 5202 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5203 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5204 | .bustype = BUS_SPI, |
| 5205 | .manufacture_id = GIGADEVICE_ID, |
| 5206 | .model_id = GIGADEVICE_GD25Q80, |
| 5207 | .total_size = 1024, |
| 5208 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5209 | /* 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] | 5210 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5211 | .tested = TEST_OK_PREW, |
| 5212 | .probe = probe_spi_rdid, |
| 5213 | .probe_timing = TIMING_ZERO, |
| 5214 | .block_erasers = |
| 5215 | { |
| 5216 | { |
| 5217 | .eraseblocks = { {4 * 1024, 256} }, |
| 5218 | .block_erase = spi_block_erase_20, |
| 5219 | }, { |
| 5220 | .eraseblocks = { {32 * 1024, 32} }, |
| 5221 | .block_erase = spi_block_erase_52, |
| 5222 | }, { |
| 5223 | .eraseblocks = { {64 * 1024, 16} }, |
| 5224 | .block_erase = spi_block_erase_d8, |
| 5225 | }, { |
| 5226 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5227 | .block_erase = spi_block_erase_60, |
| 5228 | }, { |
| 5229 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5230 | .block_erase = spi_block_erase_c7, |
| 5231 | } |
| 5232 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5233 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5234 | .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] | 5235 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5236 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5237 | .voltage = {2700, 3600}, |
| 5238 | }, |
| 5239 | |
| 5240 | { |
| 5241 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5242 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5243 | .bustype = BUS_SPI, |
| 5244 | .manufacture_id = GIGADEVICE_ID, |
| 5245 | .model_id = GIGADEVICE_GD25Q16, |
| 5246 | .total_size = 2048, |
| 5247 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5248 | /* 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] | 5249 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5250 | .tested = TEST_UNTESTED, |
| 5251 | .probe = probe_spi_rdid, |
| 5252 | .probe_timing = TIMING_ZERO, |
| 5253 | .block_erasers = |
| 5254 | { |
| 5255 | { |
| 5256 | .eraseblocks = { {4 * 1024, 512} }, |
| 5257 | .block_erase = spi_block_erase_20, |
| 5258 | }, { |
| 5259 | .eraseblocks = { {32 * 1024, 64} }, |
| 5260 | .block_erase = spi_block_erase_52, |
| 5261 | }, { |
| 5262 | .eraseblocks = { {64 * 1024, 32} }, |
| 5263 | .block_erase = spi_block_erase_d8, |
| 5264 | }, { |
| 5265 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5266 | .block_erase = spi_block_erase_60, |
| 5267 | }, { |
| 5268 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5269 | .block_erase = spi_block_erase_c7, |
| 5270 | } |
| 5271 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5272 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5273 | .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] | 5274 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5275 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5276 | .voltage = {2700, 3600}, |
| 5277 | }, |
| 5278 | |
| 5279 | { |
| 5280 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5281 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5282 | .bustype = BUS_SPI, |
| 5283 | .manufacture_id = GIGADEVICE_ID, |
| 5284 | .model_id = GIGADEVICE_GD25Q32, |
| 5285 | .total_size = 4096, |
| 5286 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5287 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5288 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 5289 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5290 | .probe = probe_spi_rdid, |
| 5291 | .probe_timing = TIMING_ZERO, |
| 5292 | .block_erasers = |
| 5293 | { |
| 5294 | { |
| 5295 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5296 | .block_erase = spi_block_erase_20, |
| 5297 | }, { |
| 5298 | .eraseblocks = { {32 * 1024, 128} }, |
| 5299 | .block_erase = spi_block_erase_52, |
| 5300 | }, { |
| 5301 | .eraseblocks = { {64 * 1024, 64} }, |
| 5302 | .block_erase = spi_block_erase_d8, |
| 5303 | }, { |
| 5304 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5305 | .block_erase = spi_block_erase_60, |
| 5306 | }, { |
| 5307 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5308 | .block_erase = spi_block_erase_c7, |
| 5309 | } |
| 5310 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5311 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5312 | .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] | 5313 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5314 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5315 | .voltage = {2700, 3600}, |
| 5316 | }, |
| 5317 | |
| 5318 | { |
| 5319 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5320 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5321 | .bustype = BUS_SPI, |
| 5322 | .manufacture_id = GIGADEVICE_ID, |
| 5323 | .model_id = GIGADEVICE_GD25Q64, |
| 5324 | .total_size = 8192, |
| 5325 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5326 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5327 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5328 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5329 | .probe = probe_spi_rdid, |
| 5330 | .probe_timing = TIMING_ZERO, |
| 5331 | .block_erasers = |
| 5332 | { |
| 5333 | { |
| 5334 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5335 | .block_erase = spi_block_erase_20, |
| 5336 | }, { |
| 5337 | .eraseblocks = { {32 * 1024, 256} }, |
| 5338 | .block_erase = spi_block_erase_52, |
| 5339 | }, { |
| 5340 | .eraseblocks = { {64 * 1024, 128} }, |
| 5341 | .block_erase = spi_block_erase_d8, |
| 5342 | }, { |
| 5343 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5344 | .block_erase = spi_block_erase_60, |
| 5345 | }, { |
| 5346 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5347 | .block_erase = spi_block_erase_c7, |
| 5348 | } |
| 5349 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5350 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5351 | .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] | 5352 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5353 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5354 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5355 | }, |
| 5356 | |
| 5357 | { |
| 5358 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5359 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5360 | .bustype = BUS_SPI, |
| 5361 | .manufacture_id = GIGADEVICE_ID, |
| 5362 | .model_id = GIGADEVICE_GD25Q128, |
| 5363 | .total_size = 16384, |
| 5364 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5365 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5366 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5367 | .tested = TEST_UNTESTED, |
| 5368 | .probe = probe_spi_rdid, |
| 5369 | .probe_timing = TIMING_ZERO, |
| 5370 | .block_erasers = |
| 5371 | { |
| 5372 | { |
| 5373 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5374 | .block_erase = spi_block_erase_20, |
| 5375 | }, { |
| 5376 | .eraseblocks = { {32 * 1024, 512} }, |
| 5377 | .block_erase = spi_block_erase_52, |
| 5378 | }, { |
| 5379 | .eraseblocks = { {64 * 1024, 256} }, |
| 5380 | .block_erase = spi_block_erase_d8, |
| 5381 | }, { |
| 5382 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5383 | .block_erase = spi_block_erase_60, |
| 5384 | }, { |
| 5385 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5386 | .block_erase = spi_block_erase_c7, |
| 5387 | } |
| 5388 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5389 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5390 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5391 | .write = spi_chip_write_256, |
| 5392 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5393 | .voltage = {2700, 3600}, |
| 5394 | }, |
| 5395 | |
| 5396 | { |
| 5397 | .vendor = "GigaDevice", |
| 5398 | .name = "GD25T80", |
| 5399 | .bustype = BUS_SPI, |
| 5400 | .manufacture_id = GIGADEVICE_ID, |
| 5401 | .model_id = GIGADEVICE_GD25T80, |
| 5402 | .total_size = 1024, |
| 5403 | .page_size = 256, |
| 5404 | /* OTP: 256B total; enter 0x3A */ |
| 5405 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5406 | .tested = TEST_UNTESTED, |
| 5407 | .probe = probe_spi_rdid, |
| 5408 | .probe_timing = TIMING_ZERO, |
| 5409 | .block_erasers = { |
| 5410 | { |
| 5411 | .eraseblocks = { {4 * 1024, 256} }, |
| 5412 | .block_erase = spi_block_erase_20, |
| 5413 | }, { |
| 5414 | .eraseblocks = { {64 * 1024, 16} }, |
| 5415 | .block_erase = spi_block_erase_52, |
| 5416 | }, { |
| 5417 | .eraseblocks = { {64 * 1024, 16} }, |
| 5418 | .block_erase = spi_block_erase_d8, |
| 5419 | }, { |
| 5420 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5421 | .block_erase = spi_block_erase_60, |
| 5422 | }, { |
| 5423 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5424 | .block_erase = spi_block_erase_c7, |
| 5425 | } |
| 5426 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5427 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5428 | .unlock = spi_disable_blockprotect, |
| 5429 | .write = spi_chip_write_256, |
| 5430 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5431 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5432 | }, |
| 5433 | |
| 5434 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5435 | .vendor = "Hyundai", |
| 5436 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5437 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5438 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5439 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5440 | .total_size = 256, |
| 5441 | .page_size = 256 * 1024, |
| 5442 | .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] | 5443 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5444 | .probe = probe_jedec, |
| 5445 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5446 | .block_erasers = |
| 5447 | { |
| 5448 | { |
| 5449 | .eraseblocks = { |
| 5450 | {64 * 1024, 3}, |
| 5451 | {32 * 1024, 1}, |
| 5452 | {8 * 1024, 2}, |
| 5453 | {16 * 1024, 1}, |
| 5454 | }, |
| 5455 | .block_erase = erase_sector_jedec, |
| 5456 | }, { |
| 5457 | .eraseblocks = { {256 * 1024, 1} }, |
| 5458 | .block_erase = erase_chip_block_jedec, |
| 5459 | }, |
| 5460 | }, |
| 5461 | .write = write_jedec_1, |
| 5462 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5463 | .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] | 5464 | }, |
| 5465 | |
| 5466 | { |
| 5467 | .vendor = "Hyundai", |
| 5468 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5469 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5470 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5471 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5472 | .total_size = 256, |
| 5473 | .page_size = 256 * 1024, |
| 5474 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 5475 | .tested = TEST_UNTESTED, |
| 5476 | .probe = probe_jedec, |
| 5477 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5478 | .block_erasers = |
| 5479 | { |
| 5480 | { |
| 5481 | .eraseblocks = { |
| 5482 | {16 * 1024, 1}, |
| 5483 | {8 * 1024, 2}, |
| 5484 | {32 * 1024, 1}, |
| 5485 | {64 * 1024, 3}, |
| 5486 | }, |
| 5487 | .block_erase = erase_sector_jedec, |
| 5488 | }, { |
| 5489 | .eraseblocks = { {256 * 1024, 1} }, |
| 5490 | .block_erase = erase_chip_block_jedec, |
| 5491 | }, |
| 5492 | }, |
| 5493 | .write = write_jedec_1, |
| 5494 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5495 | .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] | 5496 | }, |
| 5497 | |
| 5498 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5499 | .vendor = "Hyundai", |
| 5500 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5501 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5502 | .manufacture_id = HYUNDAI_ID, |
| 5503 | .model_id = HYUNDAI_HY29F040A, |
| 5504 | .total_size = 512, |
| 5505 | .page_size = 64 * 1024, |
| 5506 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5507 | .tested = TEST_UNTESTED, |
| 5508 | .probe = probe_jedec, |
| 5509 | .probe_timing = TIMING_ZERO, |
| 5510 | .block_erasers = |
| 5511 | { |
| 5512 | { |
| 5513 | .eraseblocks = { {64 * 1024, 8} }, |
| 5514 | .block_erase = erase_sector_jedec, |
| 5515 | }, { |
| 5516 | .eraseblocks = { {512 * 1024, 1} }, |
| 5517 | .block_erase = erase_chip_block_jedec, |
| 5518 | }, |
| 5519 | }, |
| 5520 | .write = write_jedec_1, |
| 5521 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5522 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5523 | }, |
| 5524 | |
| 5525 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5526 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5527 | .name = "25F160S33B8", |
| 5528 | .bustype = BUS_SPI, |
| 5529 | .manufacture_id = INTEL_ID, |
| 5530 | .model_id = INTEL_25F160S33B8, |
| 5531 | .total_size = 2048, |
| 5532 | .page_size = 256, |
| 5533 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5534 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5535 | .tested = TEST_UNTESTED, |
| 5536 | .probe = probe_spi_rdid, |
| 5537 | .probe_timing = TIMING_ZERO, |
| 5538 | .block_erasers = |
| 5539 | { |
| 5540 | { |
| 5541 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5542 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5543 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5544 | .eraseblocks = { |
| 5545 | {8 * 1024, 8}, |
| 5546 | {64 * 1024, 31} // inaccessible |
| 5547 | }, |
| 5548 | .block_erase = spi_block_erase_40, |
| 5549 | }, { */ |
| 5550 | .eraseblocks = { {64 * 1024, 32} }, |
| 5551 | .block_erase = spi_block_erase_d8, |
| 5552 | }, { |
| 5553 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5554 | .block_erase = spi_block_erase_c7, |
| 5555 | } |
| 5556 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5557 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5558 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5559 | .write = spi_chip_write_256, |
| 5560 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5561 | .voltage = {2700, 3600}, |
| 5562 | }, |
| 5563 | |
| 5564 | { |
| 5565 | .vendor = "Intel", |
| 5566 | .name = "25F160S33T8", |
| 5567 | .bustype = BUS_SPI, |
| 5568 | .manufacture_id = INTEL_ID, |
| 5569 | .model_id = INTEL_25F160S33T8, |
| 5570 | .total_size = 2048, |
| 5571 | .page_size = 256, |
| 5572 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5573 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5574 | .tested = TEST_UNTESTED, |
| 5575 | .probe = probe_spi_rdid, |
| 5576 | .probe_timing = TIMING_ZERO, |
| 5577 | .block_erasers = |
| 5578 | { |
| 5579 | { |
| 5580 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5581 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5582 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5583 | .eraseblocks = { |
| 5584 | {64 * 1024, 31}, // inaccessible |
| 5585 | {8 * 1024, 8} |
| 5586 | }, |
| 5587 | .block_erase = spi_block_erase_40, |
| 5588 | }, { */ |
| 5589 | .eraseblocks = { {64 * 1024, 32} }, |
| 5590 | .block_erase = spi_block_erase_d8, |
| 5591 | }, { |
| 5592 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5593 | .block_erase = spi_block_erase_c7, |
| 5594 | } |
| 5595 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5596 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5597 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5598 | .write = spi_chip_write_256, |
| 5599 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5600 | .voltage = {2700, 3600}, |
| 5601 | }, |
| 5602 | |
| 5603 | { |
| 5604 | .vendor = "Intel", |
| 5605 | .name = "25F320S33B8", |
| 5606 | .bustype = BUS_SPI, |
| 5607 | .manufacture_id = INTEL_ID, |
| 5608 | .model_id = INTEL_25F320S33B8, |
| 5609 | .total_size = 4096, |
| 5610 | .page_size = 256, |
| 5611 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5612 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5613 | .tested = TEST_UNTESTED, |
| 5614 | .probe = probe_spi_rdid, |
| 5615 | .probe_timing = TIMING_ZERO, |
| 5616 | .block_erasers = |
| 5617 | { |
| 5618 | { |
| 5619 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5620 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5621 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5622 | .eraseblocks = { |
| 5623 | {8 * 1024, 8}, |
| 5624 | {64 * 1024, 63} // inaccessible |
| 5625 | }, |
| 5626 | .block_erase = spi_block_erase_40, |
| 5627 | }, { */ |
| 5628 | .eraseblocks = { {64 * 1024, 64} }, |
| 5629 | .block_erase = spi_block_erase_d8, |
| 5630 | }, { |
| 5631 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5632 | .block_erase = spi_block_erase_c7, |
| 5633 | } |
| 5634 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5635 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5636 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5637 | .write = spi_chip_write_256, |
| 5638 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5639 | .voltage = {2700, 3600}, |
| 5640 | }, |
| 5641 | |
| 5642 | { |
| 5643 | .vendor = "Intel", |
| 5644 | .name = "25F320S33T8", |
| 5645 | .bustype = BUS_SPI, |
| 5646 | .manufacture_id = INTEL_ID, |
| 5647 | .model_id = INTEL_25F320S33T8, |
| 5648 | .total_size = 4096, |
| 5649 | .page_size = 256, |
| 5650 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5651 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5652 | .tested = TEST_UNTESTED, |
| 5653 | .probe = probe_spi_rdid, |
| 5654 | .probe_timing = TIMING_ZERO, |
| 5655 | .block_erasers = |
| 5656 | { |
| 5657 | { |
| 5658 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5659 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5660 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5661 | .eraseblocks = { |
| 5662 | {64 * 1024, 63}, // inaccessible |
| 5663 | {8 * 1024, 8} |
| 5664 | }, |
| 5665 | .block_erase = spi_block_erase_40, |
| 5666 | }, { */ |
| 5667 | .eraseblocks = { {64 * 1024, 64} }, |
| 5668 | .block_erase = spi_block_erase_d8, |
| 5669 | }, { |
| 5670 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5671 | .block_erase = spi_block_erase_c7, |
| 5672 | } |
| 5673 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5674 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5675 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5676 | .write = spi_chip_write_256, |
| 5677 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5678 | .voltage = {2700, 3600}, |
| 5679 | }, |
| 5680 | |
| 5681 | { |
| 5682 | .vendor = "Intel", |
| 5683 | .name = "25F640S33B8", |
| 5684 | .bustype = BUS_SPI, |
| 5685 | .manufacture_id = INTEL_ID, |
| 5686 | .model_id = INTEL_25F640S33B8, |
| 5687 | .total_size = 8192, |
| 5688 | .page_size = 256, |
| 5689 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5690 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5691 | .tested = TEST_UNTESTED, |
| 5692 | .probe = probe_spi_rdid, |
| 5693 | .probe_timing = TIMING_ZERO, |
| 5694 | .block_erasers = |
| 5695 | { |
| 5696 | { |
| 5697 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5698 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5699 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5700 | .eraseblocks = { |
| 5701 | {8 * 1024, 8}, |
| 5702 | {64 * 1024, 127} // inaccessible |
| 5703 | }, |
| 5704 | .block_erase = spi_block_erase_40, |
| 5705 | }, { */ |
| 5706 | .eraseblocks = { {64 * 1024, 128} }, |
| 5707 | .block_erase = spi_block_erase_d8, |
| 5708 | }, { |
| 5709 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5710 | .block_erase = spi_block_erase_c7, |
| 5711 | } |
| 5712 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5713 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5714 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5715 | .write = spi_chip_write_256, |
| 5716 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5717 | .voltage = {2700, 3600}, |
| 5718 | }, |
| 5719 | |
| 5720 | { |
| 5721 | .vendor = "Intel", |
| 5722 | .name = "25F640S33T8", |
| 5723 | .bustype = BUS_SPI, |
| 5724 | .manufacture_id = INTEL_ID, |
| 5725 | .model_id = INTEL_25F640S33T8, |
| 5726 | .total_size = 8192, |
| 5727 | .page_size = 256, |
| 5728 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5729 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5730 | .tested = TEST_UNTESTED, |
| 5731 | .probe = probe_spi_rdid, |
| 5732 | .probe_timing = TIMING_ZERO, |
| 5733 | .block_erasers = |
| 5734 | { |
| 5735 | { |
| 5736 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5737 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5738 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5739 | .eraseblocks = { |
| 5740 | {64 * 1024, 127}, // inaccessible |
| 5741 | {8 * 1024, 8} |
| 5742 | }, |
| 5743 | .block_erase = spi_block_erase_40, |
| 5744 | }, { */ |
| 5745 | .eraseblocks = { {64 * 1024, 128} }, |
| 5746 | .block_erase = spi_block_erase_d8, |
| 5747 | }, { |
| 5748 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5749 | .block_erase = spi_block_erase_c7, |
| 5750 | } |
| 5751 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5752 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5753 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5754 | .write = spi_chip_write_256, |
| 5755 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5756 | .voltage = {2700, 3600}, |
| 5757 | }, |
| 5758 | |
| 5759 | { |
| 5760 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5761 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5762 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5763 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5764 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5765 | .total_size = 128, |
| 5766 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5767 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5768 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5769 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5770 | .block_erasers = |
| 5771 | { |
| 5772 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5773 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5774 | {8 * 1024, 1}, |
| 5775 | {4 * 1024, 2}, |
| 5776 | {112 * 1024, 1}, |
| 5777 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5778 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5779 | }, |
| 5780 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5781 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5782 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5783 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5784 | }, |
| 5785 | |
| 5786 | { |
| 5787 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5788 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5789 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5790 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5791 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5792 | .total_size = 128, |
| 5793 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5794 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5795 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5796 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5797 | .block_erasers = |
| 5798 | { |
| 5799 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5800 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5801 | {112 * 1024, 1}, |
| 5802 | {4 * 1024, 2}, |
| 5803 | {8 * 1024, 1}, |
| 5804 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5805 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5806 | }, |
| 5807 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5808 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5809 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5810 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5811 | }, |
| 5812 | |
| 5813 | { |
| 5814 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5815 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5816 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5817 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5818 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5819 | .total_size = 256, |
| 5820 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5821 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5822 | .probe = probe_82802ab, |
| 5823 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5824 | .block_erasers = |
| 5825 | { |
| 5826 | { |
| 5827 | .eraseblocks = { |
| 5828 | {128 * 1024, 1}, |
| 5829 | {96 * 1024, 1}, |
| 5830 | {8 * 1024, 2}, |
| 5831 | {16 * 1024, 1}, |
| 5832 | }, |
| 5833 | .block_erase = erase_block_82802ab, |
| 5834 | }, |
| 5835 | }, |
| 5836 | .write = write_82802ab, |
| 5837 | .read = read_memmapped, |
| 5838 | }, |
| 5839 | |
| 5840 | { |
| 5841 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5842 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5843 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5844 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5845 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5846 | .total_size = 512, |
| 5847 | .page_size = 256, |
| 5848 | .tested = TEST_UNTESTED, |
| 5849 | .probe = probe_82802ab, |
| 5850 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5851 | .block_erasers = |
| 5852 | { |
| 5853 | { |
| 5854 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5855 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5856 | }, |
| 5857 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5858 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5859 | .write = write_82802ab, |
| 5860 | .read = read_memmapped, |
| 5861 | }, |
| 5862 | |
| 5863 | { |
| 5864 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5865 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5866 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5867 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5868 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5869 | .total_size = 512, |
| 5870 | .page_size = 128 * 1024, /* maximal block size */ |
| 5871 | .tested = TEST_UNTESTED, |
| 5872 | .probe = probe_82802ab, |
| 5873 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5874 | .block_erasers = |
| 5875 | { |
| 5876 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5877 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5878 | {16 * 1024, 1}, |
| 5879 | {8 * 1024, 2}, |
| 5880 | {96 * 1024, 1}, |
| 5881 | {128 * 1024, 3}, |
| 5882 | }, |
| 5883 | .block_erase = erase_block_82802ab, |
| 5884 | }, |
| 5885 | }, |
| 5886 | .write = write_82802ab, |
| 5887 | .read = read_memmapped, |
| 5888 | }, |
| 5889 | |
| 5890 | { |
| 5891 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5892 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5893 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5894 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5895 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5896 | .total_size = 512, |
| 5897 | .page_size = 128 * 1024, /* maximal block size */ |
| 5898 | .tested = TEST_UNTESTED, |
| 5899 | .probe = probe_82802ab, |
| 5900 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5901 | .block_erasers = |
| 5902 | { |
| 5903 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5904 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5905 | {128 * 1024, 3}, |
| 5906 | {96 * 1024, 1}, |
| 5907 | {8 * 1024, 2}, |
| 5908 | {16 * 1024, 1}, |
| 5909 | }, |
| 5910 | .block_erase = erase_block_82802ab, |
| 5911 | }, |
| 5912 | }, |
| 5913 | .write = write_82802ab, |
| 5914 | .read = read_memmapped, |
| 5915 | }, |
| 5916 | |
| 5917 | { |
| 5918 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5919 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5920 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5921 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5922 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5923 | .total_size = 512, |
| 5924 | .page_size = 128 * 1024, /* maximal block size */ |
| 5925 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5926 | .tested = TEST_UNTESTED, |
| 5927 | .probe = probe_82802ab, |
| 5928 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5929 | .block_erasers = |
| 5930 | { |
| 5931 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5932 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5933 | {16 * 1024, 1}, |
| 5934 | {8 * 1024, 2}, |
| 5935 | {96 * 1024, 1}, |
| 5936 | {128 * 1024, 3}, |
| 5937 | }, |
| 5938 | .block_erase = erase_block_82802ab, |
| 5939 | }, |
| 5940 | }, |
| 5941 | .write = write_82802ab, |
| 5942 | .read = read_memmapped, |
| 5943 | }, |
| 5944 | |
| 5945 | { |
| 5946 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5947 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5948 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5949 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5950 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5951 | .total_size = 512, |
| 5952 | .page_size = 128 * 1024, /* maximal block size */ |
| 5953 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5954 | .tested = TEST_UNTESTED, |
| 5955 | .probe = probe_82802ab, |
| 5956 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5957 | .block_erasers = |
| 5958 | { |
| 5959 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5960 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5961 | {128 * 1024, 3}, |
| 5962 | {96 * 1024, 1}, |
| 5963 | {8 * 1024, 2}, |
| 5964 | {16 * 1024, 1}, |
| 5965 | }, |
| 5966 | .block_erase = erase_block_82802ab, |
| 5967 | }, |
| 5968 | }, |
| 5969 | .write = write_82802ab, |
| 5970 | .read = read_memmapped, |
| 5971 | }, |
| 5972 | |
| 5973 | { |
| 5974 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5975 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5976 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5977 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5978 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5979 | .total_size = 512, |
| 5980 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5981 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 5982 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5983 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5984 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5985 | .block_erasers = |
| 5986 | { |
| 5987 | { |
| 5988 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5989 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5990 | }, |
| 5991 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5992 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5993 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5994 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5995 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5996 | }, |
| 5997 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5998 | { |
| 5999 | .vendor = "Intel", |
| 6000 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6001 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6002 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6003 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6004 | .total_size = 1024, |
| 6005 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6006 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6007 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6008 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6009 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6010 | .block_erasers = |
| 6011 | { |
| 6012 | { |
| 6013 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6014 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6015 | }, |
| 6016 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6017 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6018 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6019 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6020 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6021 | }, |
| 6022 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6023 | { |
| 6024 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 6025 | .name = "MX23L3254", |
| 6026 | .bustype = BUS_SPI, |
| 6027 | .manufacture_id = MACRONIX_ID, |
| 6028 | .model_id = MACRONIX_MX23L3254, |
| 6029 | .total_size = 4096, |
| 6030 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 6031 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 6032 | .probe = probe_spi_rdid, |
| 6033 | .probe_timing = TIMING_ZERO, |
| 6034 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 6035 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6036 | .voltage = {3000, 3600}, |
| 6037 | }, |
| 6038 | |
| 6039 | { |
| 6040 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6041 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6042 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6043 | .manufacture_id = MACRONIX_ID, |
| 6044 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6045 | .total_size = 64, |
| 6046 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6047 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6048 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6049 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6050 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6051 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6052 | .block_erasers = |
| 6053 | { |
| 6054 | { |
| 6055 | .eraseblocks = { {4 * 1024, 16} }, |
| 6056 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6057 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6058 | .eraseblocks = { {64 * 1024, 1} }, |
| 6059 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6060 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6061 | .eraseblocks = { {64 * 1024, 1} }, |
| 6062 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6063 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6064 | .eraseblocks = { {64 * 1024, 1} }, |
| 6065 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6066 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6067 | .eraseblocks = { {64 * 1024, 1} }, |
| 6068 | .block_erase = spi_block_erase_c7, |
| 6069 | }, |
| 6070 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6071 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6072 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6073 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6074 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 6075 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6076 | }, |
| 6077 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6078 | { |
| 6079 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6080 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6081 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6082 | .manufacture_id = MACRONIX_ID, |
| 6083 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6084 | .total_size = 128, |
| 6085 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6086 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6087 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 6088 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6089 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6090 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6091 | .block_erasers = |
| 6092 | { |
| 6093 | { |
| 6094 | .eraseblocks = { {4 * 1024, 32} }, |
| 6095 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6096 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6097 | .eraseblocks = { {64 * 1024, 2} }, |
| 6098 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6099 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6100 | .eraseblocks = { {128 * 1024, 1} }, |
| 6101 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6102 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6103 | .eraseblocks = { {128 * 1024, 1} }, |
| 6104 | .block_erase = spi_block_erase_c7, |
| 6105 | }, |
| 6106 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6107 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6108 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6109 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6110 | .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] | 6111 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6112 | }, |
| 6113 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6114 | { |
| 6115 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6116 | .name = "MX25L2005(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6117 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6118 | .manufacture_id = MACRONIX_ID, |
| 6119 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6120 | .total_size = 256, |
| 6121 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6122 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6123 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6124 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6125 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6126 | .block_erasers = |
| 6127 | { |
| 6128 | { |
| 6129 | .eraseblocks = { {4 * 1024, 64} }, |
| 6130 | .block_erase = spi_block_erase_20, |
| 6131 | }, { |
| 6132 | .eraseblocks = { {64 * 1024, 4} }, |
| 6133 | .block_erase = spi_block_erase_52, |
| 6134 | }, { |
| 6135 | .eraseblocks = { {64 * 1024, 4} }, |
| 6136 | .block_erase = spi_block_erase_d8, |
| 6137 | }, { |
| 6138 | .eraseblocks = { {256 * 1024, 1} }, |
| 6139 | .block_erase = spi_block_erase_60, |
| 6140 | }, { |
| 6141 | .eraseblocks = { {256 * 1024, 1} }, |
| 6142 | .block_erase = spi_block_erase_c7, |
| 6143 | }, |
| 6144 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6145 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6146 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6147 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6148 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6149 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6150 | }, |
| 6151 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6152 | { |
| 6153 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6154 | .name = "MX25L4005(A/C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6155 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6156 | .manufacture_id = MACRONIX_ID, |
| 6157 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6158 | .total_size = 512, |
| 6159 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6160 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 6161 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6162 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6163 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6164 | .block_erasers = |
| 6165 | { |
| 6166 | { |
| 6167 | .eraseblocks = { {4 * 1024, 128} }, |
| 6168 | .block_erase = spi_block_erase_20, |
| 6169 | }, { |
| 6170 | .eraseblocks = { {64 * 1024, 8} }, |
| 6171 | .block_erase = spi_block_erase_52, |
| 6172 | }, { |
| 6173 | .eraseblocks = { {64 * 1024, 8} }, |
| 6174 | .block_erase = spi_block_erase_d8, |
| 6175 | }, { |
| 6176 | .eraseblocks = { {512 * 1024, 1} }, |
| 6177 | .block_erase = spi_block_erase_60, |
| 6178 | }, { |
| 6179 | .eraseblocks = { {512 * 1024, 1} }, |
| 6180 | .block_erase = spi_block_erase_c7, |
| 6181 | }, |
| 6182 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6183 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6184 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6185 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6186 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6187 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6188 | }, |
| 6189 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6190 | { |
| 6191 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6192 | .name = "MX25L8005/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6193 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6194 | .manufacture_id = MACRONIX_ID, |
| 6195 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6196 | .total_size = 1024, |
| 6197 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6198 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 6199 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6200 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6201 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6202 | .block_erasers = |
| 6203 | { |
| 6204 | { |
| 6205 | .eraseblocks = { {4 * 1024, 256} }, |
| 6206 | .block_erase = spi_block_erase_20, |
| 6207 | }, { |
| 6208 | .eraseblocks = { {64 * 1024, 16} }, |
| 6209 | .block_erase = spi_block_erase_52, |
| 6210 | }, { |
| 6211 | .eraseblocks = { {64 * 1024, 16} }, |
| 6212 | .block_erase = spi_block_erase_d8, |
| 6213 | }, { |
| 6214 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6215 | .block_erase = spi_block_erase_60, |
| 6216 | }, { |
| 6217 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6218 | .block_erase = spi_block_erase_c7, |
| 6219 | }, |
| 6220 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6221 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6222 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6223 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6224 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6225 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6226 | }, |
| 6227 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6228 | { |
| 6229 | .vendor = "Macronix", |
| 6230 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6231 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6232 | .manufacture_id = MACRONIX_ID, |
| 6233 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6234 | .total_size = 2048, |
| 6235 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6236 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 6237 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6238 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6239 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6240 | .block_erasers = |
| 6241 | { |
| 6242 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6243 | .eraseblocks = { {64 * 1024, 32} }, |
| 6244 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6245 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6246 | .eraseblocks = { {64 * 1024, 32} }, |
| 6247 | .block_erase = spi_block_erase_d8, |
| 6248 | }, { |
| 6249 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6250 | .block_erase = spi_block_erase_60, |
| 6251 | }, { |
| 6252 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6253 | .block_erase = spi_block_erase_c7, |
| 6254 | }, |
| 6255 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6256 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6257 | .unlock = spi_disable_blockprotect, |
| 6258 | .write = spi_chip_write_256, |
| 6259 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6260 | .voltage = {2700, 3600}, |
| 6261 | }, |
| 6262 | |
| 6263 | { |
| 6264 | .vendor = "Macronix", |
| 6265 | .name = "MX25L1605A/MX25L1606E", |
| 6266 | .bustype = BUS_SPI, |
| 6267 | .manufacture_id = MACRONIX_ID, |
| 6268 | .model_id = MACRONIX_MX25L1605, |
| 6269 | .total_size = 2048, |
| 6270 | .page_size = 256, |
| 6271 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ |
| 6272 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6273 | .tested = TEST_OK_PREW, |
| 6274 | .probe = probe_spi_rdid, |
| 6275 | .probe_timing = TIMING_ZERO, |
| 6276 | .block_erasers = |
| 6277 | { |
| 6278 | { |
| 6279 | .eraseblocks = { {4 * 1024, 512} }, |
| 6280 | .block_erase = spi_block_erase_20, |
| 6281 | }, { |
| 6282 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6283 | .block_erase = spi_block_erase_52, |
| 6284 | }, { |
| 6285 | .eraseblocks = { {64 * 1024, 32} }, |
| 6286 | .block_erase = spi_block_erase_d8, |
| 6287 | }, { |
| 6288 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6289 | .block_erase = spi_block_erase_60, |
| 6290 | }, { |
| 6291 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6292 | .block_erase = spi_block_erase_c7, |
| 6293 | }, |
| 6294 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6295 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6296 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6297 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6298 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6299 | .voltage = {2700, 3600}, |
| 6300 | }, |
| 6301 | |
| 6302 | { |
| 6303 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6304 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6305 | .bustype = BUS_SPI, |
| 6306 | .manufacture_id = MACRONIX_ID, |
| 6307 | .model_id = MACRONIX_MX25L1605, |
| 6308 | .total_size = 2048, |
| 6309 | .page_size = 256, |
| 6310 | .feature_bits = FEATURE_WRSR_WREN, |
| 6311 | .tested = TEST_OK_PREW, |
| 6312 | .probe = probe_spi_rdid, |
| 6313 | .probe_timing = TIMING_ZERO, |
| 6314 | .block_erasers = |
| 6315 | { |
| 6316 | { |
| 6317 | .eraseblocks = { {4 * 1024, 512} }, |
| 6318 | .block_erase = spi_block_erase_20, |
| 6319 | }, { |
| 6320 | .eraseblocks = { {64 * 1024, 32} }, |
| 6321 | .block_erase = spi_block_erase_d8, |
| 6322 | }, { |
| 6323 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6324 | .block_erase = spi_block_erase_60, |
| 6325 | }, { |
| 6326 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6327 | .block_erase = spi_block_erase_c7, |
| 6328 | }, |
| 6329 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6330 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continously Program (CP) mode */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6331 | .unlock = spi_disable_blockprotect, |
| 6332 | .write = spi_chip_write_256, |
| 6333 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6334 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6335 | }, |
| 6336 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6337 | { |
| 6338 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6339 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6340 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6341 | .manufacture_id = MACRONIX_ID, |
| 6342 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6343 | .total_size = 2048, |
| 6344 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6345 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6346 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6347 | .tested = TEST_UNTESTED, |
| 6348 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6349 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6350 | .block_erasers = |
| 6351 | { |
| 6352 | { |
| 6353 | .eraseblocks = { {4 * 1024, 512} }, |
| 6354 | .block_erase = spi_block_erase_20, |
| 6355 | }, { |
| 6356 | .eraseblocks = { {64 * 1024, 32} }, |
| 6357 | .block_erase = spi_block_erase_d8, |
| 6358 | }, { |
| 6359 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6360 | .block_erase = spi_block_erase_60, |
| 6361 | }, { |
| 6362 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6363 | .block_erase = spi_block_erase_c7, |
| 6364 | } |
| 6365 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6366 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6367 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6368 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6369 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6370 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6371 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 6372 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6373 | { |
| 6374 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6375 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6376 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6377 | .manufacture_id = MACRONIX_ID, |
| 6378 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6379 | .total_size = 2048, |
| 6380 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6381 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6382 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6383 | .tested = TEST_UNTESTED, |
| 6384 | .probe = probe_spi_rdid, |
| 6385 | .probe_timing = TIMING_ZERO, |
| 6386 | .block_erasers = |
| 6387 | { |
| 6388 | { |
| 6389 | .eraseblocks = { {4 * 1024, 512} }, |
| 6390 | .block_erase = spi_block_erase_20, |
| 6391 | }, { |
| 6392 | .eraseblocks = { {64 * 1024, 32} }, |
| 6393 | .block_erase = spi_block_erase_d8, |
| 6394 | }, { |
| 6395 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6396 | .block_erase = spi_block_erase_60, |
| 6397 | }, { |
| 6398 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6399 | .block_erase = spi_block_erase_c7, |
| 6400 | } |
| 6401 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6402 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6403 | .unlock = spi_disable_blockprotect, |
| 6404 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6405 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6406 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6407 | }, |
| 6408 | |
| 6409 | { |
| 6410 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6411 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6412 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6413 | .manufacture_id = MACRONIX_ID, |
| 6414 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6415 | .total_size = 4096, |
| 6416 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6417 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 6418 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6419 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6420 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6421 | .block_erasers = |
| 6422 | { |
| 6423 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6424 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6425 | .block_erase = spi_block_erase_20, |
| 6426 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6427 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6428 | .block_erase = spi_block_erase_d8, |
| 6429 | }, { |
| 6430 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6431 | .block_erase = spi_block_erase_60, |
| 6432 | }, { |
| 6433 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6434 | .block_erase = spi_block_erase_c7, |
| 6435 | }, |
| 6436 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6437 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6438 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6439 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6440 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6441 | .voltage = {2700, 3600}, |
| 6442 | }, |
| 6443 | |
| 6444 | { |
| 6445 | .vendor = "Macronix", |
| 6446 | .name = "MX25L3205D/MX25L3208D", |
| 6447 | .bustype = BUS_SPI, |
| 6448 | .manufacture_id = MACRONIX_ID, |
| 6449 | .model_id = MACRONIX_MX25L3205, |
| 6450 | .total_size = 4096, |
| 6451 | .page_size = 256, |
| 6452 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6453 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6454 | .tested = TEST_OK_PREW, |
| 6455 | .probe = probe_spi_rdid, |
| 6456 | .probe_timing = TIMING_ZERO, |
| 6457 | .block_erasers = |
| 6458 | { |
| 6459 | { |
| 6460 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6461 | .block_erase = spi_block_erase_20, |
| 6462 | }, { |
| 6463 | .eraseblocks = { {64 * 1024, 64} }, |
| 6464 | .block_erase = spi_block_erase_d8, |
| 6465 | }, { |
| 6466 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6467 | .block_erase = spi_block_erase_60, |
| 6468 | }, { |
| 6469 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6470 | .block_erase = spi_block_erase_c7, |
| 6471 | }, |
| 6472 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6473 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6474 | .unlock = spi_disable_blockprotect, |
| 6475 | .write = spi_chip_write_256, |
| 6476 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 6477 | .voltage = {2700, 3600}, |
| 6478 | }, |
| 6479 | |
| 6480 | { |
| 6481 | .vendor = "Macronix", |
| 6482 | .name = "MX25L3206E", |
| 6483 | .bustype = BUS_SPI, |
| 6484 | .manufacture_id = MACRONIX_ID, |
| 6485 | .model_id = MACRONIX_MX25L3205, |
| 6486 | .total_size = 4096, |
| 6487 | .page_size = 256, |
| 6488 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6489 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6490 | .tested = TEST_OK_PREW, |
| 6491 | .probe = probe_spi_rdid, |
| 6492 | .probe_timing = TIMING_ZERO, |
| 6493 | .block_erasers = |
| 6494 | { |
| 6495 | { |
| 6496 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6497 | .block_erase = spi_block_erase_20, |
| 6498 | }, { |
| 6499 | .eraseblocks = { {64 * 1024, 64} }, |
| 6500 | .block_erase = spi_block_erase_d8, |
| 6501 | }, { |
| 6502 | .eraseblocks = { {64 * 1024, 64} }, |
| 6503 | .block_erase = spi_block_erase_52, |
| 6504 | }, { |
| 6505 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6506 | .block_erase = spi_block_erase_60, |
| 6507 | }, { |
| 6508 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6509 | .block_erase = spi_block_erase_c7, |
| 6510 | }, |
| 6511 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6512 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6513 | .unlock = spi_disable_blockprotect, |
| 6514 | .write = spi_chip_write_256, |
| 6515 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6516 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6517 | }, |
| 6518 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6519 | { |
| 6520 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6521 | .name = "MX25L3273E", |
| 6522 | .bustype = BUS_SPI, |
| 6523 | .manufacture_id = MACRONIX_ID, |
| 6524 | .model_id = MACRONIX_MX25L3205, |
| 6525 | .total_size = 4096, |
| 6526 | .page_size = 256, |
| 6527 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6528 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6529 | .tested = TEST_UNTESTED, |
| 6530 | .probe = probe_spi_rdid, |
| 6531 | .probe_timing = TIMING_ZERO, |
| 6532 | .block_erasers = |
| 6533 | { |
| 6534 | { |
| 6535 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6536 | .block_erase = spi_block_erase_20, |
| 6537 | }, { |
| 6538 | .eraseblocks = { {32 * 1024, 128} }, |
| 6539 | .block_erase = spi_block_erase_52, |
| 6540 | }, { |
| 6541 | .eraseblocks = { {64 * 1024, 64} }, |
| 6542 | .block_erase = spi_block_erase_d8, |
| 6543 | }, { |
| 6544 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6545 | .block_erase = spi_block_erase_60, |
| 6546 | }, { |
| 6547 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6548 | .block_erase = spi_block_erase_c7, |
| 6549 | }, |
| 6550 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6551 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6552 | .unlock = spi_disable_blockprotect, |
| 6553 | .write = spi_chip_write_256, |
| 6554 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 6555 | .voltage = {2700, 3600}, |
| 6556 | }, |
| 6557 | |
| 6558 | { |
| 6559 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6560 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6561 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6562 | .manufacture_id = MACRONIX_ID, |
| 6563 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6564 | .total_size = 4096, |
| 6565 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6566 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 6567 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6568 | .tested = TEST_UNTESTED, |
| 6569 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6570 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6571 | .block_erasers = |
| 6572 | { |
| 6573 | { |
| 6574 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6575 | .block_erase = spi_block_erase_20, |
| 6576 | }, { |
| 6577 | .eraseblocks = { {64 * 1024, 64} }, |
| 6578 | .block_erase = spi_block_erase_d8, |
| 6579 | }, { |
| 6580 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6581 | .block_erase = spi_block_erase_60, |
| 6582 | }, { |
| 6583 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6584 | .block_erase = spi_block_erase_c7, |
| 6585 | } |
| 6586 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6587 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6588 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6589 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6590 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6591 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6592 | }, |
| 6593 | |
| 6594 | { |
| 6595 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6596 | .name = "MX25L6405(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6597 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6598 | .manufacture_id = MACRONIX_ID, |
| 6599 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6600 | .total_size = 8192, |
| 6601 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6602 | /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6603 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 6604 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6605 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6606 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6607 | .block_erasers = |
| 6608 | { |
| 6609 | { |
| 6610 | .eraseblocks = { {64 * 1024, 128} }, |
| 6611 | .block_erase = spi_block_erase_20, |
| 6612 | }, { |
| 6613 | .eraseblocks = { {64 * 1024, 128} }, |
| 6614 | .block_erase = spi_block_erase_d8, |
| 6615 | }, { |
| 6616 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6617 | .block_erase = spi_block_erase_60, |
| 6618 | }, { |
| 6619 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6620 | .block_erase = spi_block_erase_c7, |
| 6621 | } |
| 6622 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6623 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6624 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6625 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6626 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6627 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6628 | }, |
| 6629 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6630 | { |
| 6631 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6632 | .name = "MX25L6406E/MX25L6436E", |
| 6633 | .bustype = BUS_SPI, |
| 6634 | .manufacture_id = MACRONIX_ID, |
| 6635 | .model_id = MACRONIX_MX25L6405, |
| 6636 | .total_size = 8192, |
| 6637 | .page_size = 256, |
| 6638 | /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ |
| 6639 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6640 | .tested = TEST_OK_PREW, |
| 6641 | .probe = probe_spi_rdid, |
| 6642 | .probe_timing = TIMING_ZERO, |
| 6643 | .block_erasers = |
| 6644 | { |
| 6645 | { |
| 6646 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6647 | .block_erase = spi_block_erase_20, |
| 6648 | }, { |
| 6649 | .eraseblocks = { {64 * 1024, 128} }, |
| 6650 | .block_erase = spi_block_erase_d8, |
| 6651 | }, { |
| 6652 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6653 | .block_erase = spi_block_erase_60, |
| 6654 | }, { |
| 6655 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6656 | .block_erase = spi_block_erase_c7, |
| 6657 | } |
| 6658 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6659 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6660 | .unlock = spi_disable_blockprotect, |
| 6661 | .write = spi_chip_write_256, |
| 6662 | .read = spi_chip_read, |
| 6663 | .voltage = {2700, 3600}, |
| 6664 | }, |
| 6665 | |
| 6666 | { |
| 6667 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6668 | .name = "MX25L6445E/MX25L6473E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6669 | .bustype = BUS_SPI, |
| 6670 | .manufacture_id = MACRONIX_ID, |
| 6671 | .model_id = MACRONIX_MX25L6405, |
| 6672 | .total_size = 8192, |
| 6673 | .page_size = 256, |
| 6674 | /* supports SFDP */ |
| 6675 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6676 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6677 | .tested = TEST_OK_PREW, |
| 6678 | .probe = probe_spi_rdid, |
| 6679 | .probe_timing = TIMING_ZERO, |
| 6680 | .block_erasers = |
| 6681 | { |
| 6682 | { |
| 6683 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6684 | .block_erase = spi_block_erase_20, |
| 6685 | }, { |
| 6686 | .eraseblocks = { {32 * 1024, 256} }, |
| 6687 | .block_erase = spi_block_erase_52, |
| 6688 | }, { |
| 6689 | .eraseblocks = { {64 * 1024, 128} }, |
| 6690 | .block_erase = spi_block_erase_d8, |
| 6691 | }, { |
| 6692 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6693 | .block_erase = spi_block_erase_60, |
| 6694 | }, { |
| 6695 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6696 | .block_erase = spi_block_erase_c7, |
| 6697 | } |
| 6698 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6699 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6700 | .unlock = spi_disable_blockprotect, |
| 6701 | .write = spi_chip_write_256, |
| 6702 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6703 | .voltage = {2700, 3600}, |
| 6704 | }, |
| 6705 | |
| 6706 | { |
| 6707 | .vendor = "Macronix", |
| 6708 | .name = "MX25L12805(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6709 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6710 | .manufacture_id = MACRONIX_ID, |
| 6711 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6712 | .total_size = 16384, |
| 6713 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6714 | /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6715 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6716 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6717 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6718 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6719 | .block_erasers = |
| 6720 | { |
| 6721 | { |
| 6722 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6723 | .block_erase = spi_block_erase_20, |
| 6724 | }, { |
| 6725 | .eraseblocks = { {64 * 1024, 256} }, |
| 6726 | .block_erase = spi_block_erase_d8, |
| 6727 | }, { |
| 6728 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6729 | .block_erase = spi_block_erase_60, |
| 6730 | }, { |
| 6731 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6732 | .block_erase = spi_block_erase_c7, |
| 6733 | } |
| 6734 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6735 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6736 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6737 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6738 | .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6739 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6740 | }, |
| 6741 | |
| 6742 | { |
| 6743 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6744 | .name = "MX25U1635E", |
| 6745 | .bustype = BUS_SPI, |
| 6746 | .manufacture_id = MACRONIX_ID, |
| 6747 | .model_id = MACRONIX_MX25U1635E, |
| 6748 | .total_size = 2048, |
| 6749 | .page_size = 256, |
| 6750 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6751 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6752 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6753 | .tested = TEST_UNTESTED, |
| 6754 | .probe = probe_spi_rdid, |
| 6755 | .probe_timing = TIMING_ZERO, |
| 6756 | .block_erasers = |
| 6757 | { |
| 6758 | { |
| 6759 | .eraseblocks = { {4 * 1024, 512} }, |
| 6760 | .block_erase = spi_block_erase_20, |
| 6761 | }, { |
| 6762 | .eraseblocks = { {32 * 1024, 64} }, |
| 6763 | .block_erase = spi_block_erase_52, |
| 6764 | }, { |
| 6765 | .eraseblocks = { {64 * 1024, 32} }, |
| 6766 | .block_erase = spi_block_erase_d8, |
| 6767 | }, { |
| 6768 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6769 | .block_erase = spi_block_erase_60, |
| 6770 | }, { |
| 6771 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6772 | .block_erase = spi_block_erase_c7, |
| 6773 | } |
| 6774 | }, |
| 6775 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6776 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6777 | .unlock = spi_disable_blockprotect, |
| 6778 | .write = spi_chip_write_256, |
| 6779 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6780 | .voltage = {1650, 2000}, |
| 6781 | }, |
| 6782 | |
| 6783 | { |
| 6784 | .vendor = "Macronix", |
| 6785 | .name = "MX25U3235E/F", |
| 6786 | .bustype = BUS_SPI, |
| 6787 | .manufacture_id = MACRONIX_ID, |
| 6788 | .model_id = MACRONIX_MX25U3235E, |
| 6789 | .total_size = 4096, |
| 6790 | .page_size = 256, |
| 6791 | /* F model supports SFDP */ |
| 6792 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6793 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6794 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6795 | .tested = TEST_OK_PREW, |
| 6796 | .probe = probe_spi_rdid, |
| 6797 | .probe_timing = TIMING_ZERO, |
| 6798 | .block_erasers = |
| 6799 | { |
| 6800 | { |
| 6801 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6802 | .block_erase = spi_block_erase_20, |
| 6803 | }, { |
| 6804 | .eraseblocks = { {32 * 1024, 128} }, |
| 6805 | .block_erase = spi_block_erase_52, |
| 6806 | }, { |
| 6807 | .eraseblocks = { {64 * 1024, 64} }, |
| 6808 | .block_erase = spi_block_erase_d8, |
| 6809 | }, { |
| 6810 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6811 | .block_erase = spi_block_erase_60, |
| 6812 | }, { |
| 6813 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6814 | .block_erase = spi_block_erase_c7, |
| 6815 | } |
| 6816 | }, |
| 6817 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6818 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6819 | .unlock = spi_disable_blockprotect, |
| 6820 | .write = spi_chip_write_256, |
| 6821 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6822 | .voltage = {1650, 2000}, |
| 6823 | }, |
| 6824 | |
| 6825 | { |
| 6826 | .vendor = "Macronix", |
| 6827 | .name = "MX25U6435E/F", |
| 6828 | .bustype = BUS_SPI, |
| 6829 | .manufacture_id = MACRONIX_ID, |
| 6830 | .model_id = MACRONIX_MX25U6435E, |
| 6831 | .total_size = 8192, |
| 6832 | .page_size = 256, |
| 6833 | /* F model supports SFDP */ |
| 6834 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6835 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6836 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6837 | .tested = TEST_UNTESTED, |
| 6838 | .probe = probe_spi_rdid, |
| 6839 | .probe_timing = TIMING_ZERO, |
| 6840 | .block_erasers = |
| 6841 | { |
| 6842 | { |
| 6843 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6844 | .block_erase = spi_block_erase_20, |
| 6845 | }, { |
| 6846 | .eraseblocks = { {32 * 1024, 256} }, |
| 6847 | .block_erase = spi_block_erase_52, |
| 6848 | }, { |
| 6849 | .eraseblocks = { {64 * 1024, 128} }, |
| 6850 | .block_erase = spi_block_erase_d8, |
| 6851 | }, { |
| 6852 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6853 | .block_erase = spi_block_erase_60, |
| 6854 | }, { |
| 6855 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6856 | .block_erase = spi_block_erase_c7, |
| 6857 | } |
| 6858 | }, |
| 6859 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6860 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6861 | .unlock = spi_disable_blockprotect, |
| 6862 | .write = spi_chip_write_256, |
| 6863 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6864 | .voltage = {1650, 2000}, |
| 6865 | }, |
| 6866 | |
| 6867 | { |
| 6868 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6869 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6870 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6871 | .manufacture_id = MACRONIX_ID, |
| 6872 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6873 | .total_size = 128, |
| 6874 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6875 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6876 | .tested = TEST_UNTESTED, |
| 6877 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6878 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6879 | .block_erasers = |
| 6880 | { |
| 6881 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6882 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6883 | {8 * 1024, 1}, |
| 6884 | {4 * 1024, 2}, |
| 6885 | {8 * 1024, 2}, |
| 6886 | {32 * 1024, 1}, |
| 6887 | {64 * 1024, 1}, |
| 6888 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6889 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6890 | }, { |
| 6891 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6892 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6893 | } |
| 6894 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6895 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6896 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6897 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6898 | }, |
| 6899 | |
| 6900 | { |
| 6901 | .vendor = "Macronix", |
| 6902 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6903 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6904 | .manufacture_id = MACRONIX_ID, |
| 6905 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6906 | .total_size = 128, |
| 6907 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6908 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 6909 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6910 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6911 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6912 | .block_erasers = |
| 6913 | { |
| 6914 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6915 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6916 | {64 * 1024, 1}, |
| 6917 | {32 * 1024, 1}, |
| 6918 | {8 * 1024, 2}, |
| 6919 | {4 * 1024, 2}, |
| 6920 | {8 * 1024, 1}, |
| 6921 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6922 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6923 | }, { |
| 6924 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6925 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6926 | } |
| 6927 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6928 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6929 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6930 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6931 | }, |
| 6932 | |
| 6933 | { |
| 6934 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6935 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6936 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6937 | .manufacture_id = MACRONIX_ID, |
| 6938 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6939 | .total_size = 256, |
| 6940 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6941 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6942 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6943 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6944 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6945 | .block_erasers = |
| 6946 | { |
| 6947 | { |
| 6948 | .eraseblocks = { |
| 6949 | {16 * 1024, 1}, |
| 6950 | {8 * 1024, 2}, |
| 6951 | {32 * 1024, 1}, |
| 6952 | {64 * 1024, 3}, |
| 6953 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6954 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6955 | }, { |
| 6956 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6957 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6958 | }, |
| 6959 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6960 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6961 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6962 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6963 | }, |
| 6964 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6965 | { |
| 6966 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6967 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6968 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6969 | .manufacture_id = MACRONIX_ID, |
| 6970 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6971 | .total_size = 256, |
| 6972 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6973 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 6974 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6975 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6976 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6977 | .block_erasers = |
| 6978 | { |
| 6979 | { |
| 6980 | .eraseblocks = { |
| 6981 | {64 * 1024, 3}, |
| 6982 | {32 * 1024, 1}, |
| 6983 | {8 * 1024, 2}, |
| 6984 | {16 * 1024, 1}, |
| 6985 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6986 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6987 | }, { |
| 6988 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6989 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6990 | }, |
| 6991 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6992 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6993 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6994 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6995 | }, |
| 6996 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6997 | { |
| 6998 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6999 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7000 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7001 | .manufacture_id = MACRONIX_ID, |
| 7002 | .model_id = MACRONIX_MX29F040, |
| 7003 | .total_size = 512, |
| 7004 | .page_size = 64 * 1024, |
| 7005 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7006 | .tested = TEST_UNTESTED, |
| 7007 | .probe = probe_jedec, |
| 7008 | .probe_timing = TIMING_ZERO, |
| 7009 | .block_erasers = |
| 7010 | { |
| 7011 | { |
| 7012 | .eraseblocks = { {64 * 1024, 8} }, |
| 7013 | .block_erase = erase_sector_jedec, |
| 7014 | }, { |
| 7015 | .eraseblocks = { {512 * 1024, 1} }, |
| 7016 | .block_erase = erase_chip_block_jedec, |
| 7017 | }, |
| 7018 | }, |
| 7019 | .write = write_jedec_1, |
| 7020 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7021 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7022 | }, |
| 7023 | |
| 7024 | { |
| 7025 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 7026 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7027 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7028 | .manufacture_id = MACRONIX_ID, |
| 7029 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7030 | .total_size = 512, |
| 7031 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7032 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7033 | .tested = TEST_UNTESTED, |
| 7034 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7035 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7036 | .block_erasers = |
| 7037 | { |
| 7038 | { |
| 7039 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7040 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7041 | }, { |
| 7042 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7043 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7044 | }, |
| 7045 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7046 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7047 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7048 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 7049 | }, |
| 7050 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7051 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7052 | .vendor = "Micron/Numonyx/ST", |
| 7053 | .name = "M25P05-A", |
| 7054 | .bustype = BUS_SPI, |
| 7055 | .manufacture_id = ST_ID, |
| 7056 | .model_id = ST_M25P05A, |
| 7057 | .total_size = 64, |
| 7058 | .page_size = 256, |
| 7059 | .feature_bits = FEATURE_WRSR_WREN, |
| 7060 | .tested = TEST_OK_PREW, |
| 7061 | .probe = probe_spi_rdid, |
| 7062 | .probe_timing = TIMING_ZERO, |
| 7063 | .block_erasers = |
| 7064 | { |
| 7065 | { |
| 7066 | .eraseblocks = { {32 * 1024, 2} }, |
| 7067 | .block_erase = spi_block_erase_d8, |
| 7068 | }, { |
| 7069 | .eraseblocks = { {64 * 1024, 1} }, |
| 7070 | .block_erase = spi_block_erase_c7, |
| 7071 | } |
| 7072 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7073 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7074 | .unlock = spi_disable_blockprotect, |
| 7075 | .write = spi_chip_write_256, |
| 7076 | .read = spi_chip_read, |
| 7077 | .voltage = {2700, 3600}, |
| 7078 | }, |
| 7079 | |
| 7080 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 7081 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 7082 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 7083 | * only is successful if RDID does not work. |
| 7084 | */ |
| 7085 | { |
| 7086 | .vendor = "Micron/Numonyx/ST", |
| 7087 | .name = "M25P05", |
| 7088 | .bustype = BUS_SPI, |
| 7089 | .manufacture_id = 0, /* Not used. */ |
| 7090 | .model_id = ST_M25P05_RES, |
| 7091 | .total_size = 64, |
| 7092 | .page_size = 256, |
| 7093 | .feature_bits = FEATURE_WRSR_WREN, |
| 7094 | .tested = TEST_UNTESTED, |
| 7095 | .probe = probe_spi_res1, |
| 7096 | .probe_timing = TIMING_ZERO, |
| 7097 | .block_erasers = |
| 7098 | { |
| 7099 | { |
| 7100 | .eraseblocks = { {32 * 1024, 2} }, |
| 7101 | .block_erase = spi_block_erase_d8, |
| 7102 | }, { |
| 7103 | .eraseblocks = { {64 * 1024, 1} }, |
| 7104 | .block_erase = spi_block_erase_c7, |
| 7105 | } |
| 7106 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7107 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7108 | .unlock = spi_disable_blockprotect, |
| 7109 | .write = spi_chip_write_1, /* 128 */ |
| 7110 | .read = spi_chip_read, |
| 7111 | .voltage = {2700, 3600}, |
| 7112 | }, |
| 7113 | |
| 7114 | { |
| 7115 | .vendor = "Micron/Numonyx/ST", |
| 7116 | .name = "M25P10-A", |
| 7117 | .bustype = BUS_SPI, |
| 7118 | .manufacture_id = ST_ID, |
| 7119 | .model_id = ST_M25P10A, |
| 7120 | .total_size = 128, |
| 7121 | .page_size = 256, |
| 7122 | .feature_bits = FEATURE_WRSR_WREN, |
| 7123 | .tested = TEST_OK_PRE, |
| 7124 | .probe = probe_spi_rdid, |
| 7125 | .probe_timing = TIMING_ZERO, |
| 7126 | .block_erasers = |
| 7127 | { |
| 7128 | { |
| 7129 | .eraseblocks = { {32 * 1024, 4} }, |
| 7130 | .block_erase = spi_block_erase_d8, |
| 7131 | }, { |
| 7132 | .eraseblocks = { {128 * 1024, 1} }, |
| 7133 | .block_erase = spi_block_erase_c7, |
| 7134 | } |
| 7135 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7136 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7137 | .unlock = spi_disable_blockprotect, |
| 7138 | .write = spi_chip_write_256, |
| 7139 | .read = spi_chip_read, |
| 7140 | .voltage = {2700, 3600}, |
| 7141 | }, |
| 7142 | |
| 7143 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 7144 | { |
| 7145 | .vendor = "Micron/Numonyx/ST", |
| 7146 | .name = "M25P10", |
| 7147 | .bustype = BUS_SPI, |
| 7148 | .manufacture_id = 0, /* Not used. */ |
| 7149 | .model_id = ST_M25P10_RES, |
| 7150 | .total_size = 128, |
| 7151 | .page_size = 256, |
| 7152 | .feature_bits = FEATURE_WRSR_WREN, |
| 7153 | .tested = TEST_UNTESTED, |
| 7154 | .probe = probe_spi_res1, |
| 7155 | .probe_timing = TIMING_ZERO, |
| 7156 | .block_erasers = |
| 7157 | { |
| 7158 | { |
| 7159 | .eraseblocks = { {32 * 1024, 4} }, |
| 7160 | .block_erase = spi_block_erase_d8, |
| 7161 | }, { |
| 7162 | .eraseblocks = { {128 * 1024, 1} }, |
| 7163 | .block_erase = spi_block_erase_c7, |
| 7164 | } |
| 7165 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7166 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7167 | .unlock = spi_disable_blockprotect, |
| 7168 | .write = spi_chip_write_1, /* 128 */ |
| 7169 | .read = spi_chip_read, |
| 7170 | .voltage = {2700, 3600}, |
| 7171 | }, |
| 7172 | |
| 7173 | { |
| 7174 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 7175 | .name = "M25P20", |
| 7176 | .bustype = BUS_SPI, |
| 7177 | .manufacture_id = ST_ID, |
| 7178 | .model_id = ST_M25P20, |
| 7179 | .total_size = 256, |
| 7180 | .page_size = 256, |
| 7181 | .feature_bits = FEATURE_WRSR_WREN, |
| 7182 | .tested = TEST_UNTESTED, |
| 7183 | .probe = probe_spi_rdid, |
| 7184 | .probe_timing = TIMING_ZERO, |
| 7185 | .block_erasers = |
| 7186 | { |
| 7187 | { |
| 7188 | .eraseblocks = { {64 * 1024, 4} }, |
| 7189 | .block_erase = spi_block_erase_d8, |
| 7190 | }, { |
| 7191 | .eraseblocks = { {256 * 1024, 1} }, |
| 7192 | .block_erase = spi_block_erase_c7, |
| 7193 | } |
| 7194 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7195 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7196 | .unlock = spi_disable_blockprotect, |
| 7197 | .write = spi_chip_write_256, |
| 7198 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7199 | .voltage = {2700, 3600}, |
| 7200 | }, |
| 7201 | |
| 7202 | { |
| 7203 | .vendor = "Micron/Numonyx/ST", |
| 7204 | .name = "M25P20-old", |
| 7205 | .bustype = BUS_SPI, |
| 7206 | .manufacture_id = 0, /* Not used. */ |
| 7207 | .model_id = ST_M25P20_RES, |
| 7208 | .total_size = 256, |
| 7209 | .page_size = 256, |
| 7210 | .feature_bits = FEATURE_WRSR_WREN, |
| 7211 | .tested = TEST_OK_PREW, |
| 7212 | .probe = probe_spi_res1, |
| 7213 | .probe_timing = TIMING_ZERO, |
| 7214 | .block_erasers = |
| 7215 | { |
| 7216 | { |
| 7217 | .eraseblocks = { {64 * 1024, 4} }, |
| 7218 | .block_erase = spi_block_erase_d8, |
| 7219 | }, { |
| 7220 | .eraseblocks = { {256 * 1024, 1} }, |
| 7221 | .block_erase = spi_block_erase_c7, |
| 7222 | } |
| 7223 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7224 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7225 | .unlock = spi_disable_blockprotect, |
| 7226 | .write = spi_chip_write_256, |
| 7227 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7228 | .voltage = {2700, 3600}, |
| 7229 | }, |
| 7230 | |
| 7231 | { |
| 7232 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 7233 | .name = "M25P40", |
| 7234 | .bustype = BUS_SPI, |
| 7235 | .manufacture_id = ST_ID, |
| 7236 | .model_id = ST_M25P40, |
| 7237 | .total_size = 512, |
| 7238 | .page_size = 256, |
| 7239 | .feature_bits = FEATURE_WRSR_WREN, |
| 7240 | .tested = TEST_OK_PREW, |
| 7241 | .probe = probe_spi_rdid, |
| 7242 | .probe_timing = TIMING_ZERO, |
| 7243 | .block_erasers = |
| 7244 | { |
| 7245 | { |
| 7246 | .eraseblocks = { {64 * 1024, 8} }, |
| 7247 | .block_erase = spi_block_erase_d8, |
| 7248 | }, { |
| 7249 | .eraseblocks = { {512 * 1024, 1} }, |
| 7250 | .block_erase = spi_block_erase_c7, |
| 7251 | } |
| 7252 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7253 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7254 | .unlock = spi_disable_blockprotect, |
| 7255 | .write = spi_chip_write_256, |
| 7256 | .read = spi_chip_read, |
| 7257 | .voltage = {2700, 3600}, |
| 7258 | }, |
| 7259 | |
| 7260 | { |
| 7261 | .vendor = "Micron/Numonyx/ST", |
| 7262 | .name = "M25P40-old", |
| 7263 | .bustype = BUS_SPI, |
| 7264 | .manufacture_id = 0, /* Not used. */ |
| 7265 | .model_id = ST_M25P40_RES, |
| 7266 | .total_size = 512, |
| 7267 | .page_size = 256, |
| 7268 | .feature_bits = FEATURE_WRSR_WREN, |
| 7269 | .tested = TEST_UNTESTED, |
| 7270 | .probe = probe_spi_res1, |
| 7271 | .probe_timing = TIMING_ZERO, |
| 7272 | .block_erasers = |
| 7273 | { |
| 7274 | { |
| 7275 | .eraseblocks = { {64 * 1024, 8} }, |
| 7276 | .block_erase = spi_block_erase_d8, |
| 7277 | }, { |
| 7278 | .eraseblocks = { {512 * 1024, 1} }, |
| 7279 | .block_erase = spi_block_erase_c7, |
| 7280 | } |
| 7281 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7282 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7283 | .unlock = spi_disable_blockprotect, |
| 7284 | .write = spi_chip_write_256, |
| 7285 | .read = spi_chip_read, |
| 7286 | }, |
| 7287 | |
| 7288 | { |
| 7289 | .vendor = "Micron/Numonyx/ST", |
| 7290 | .name = "M25P80", |
| 7291 | .bustype = BUS_SPI, |
| 7292 | .manufacture_id = ST_ID, |
| 7293 | .model_id = ST_M25P80, |
| 7294 | .total_size = 1024, |
| 7295 | .page_size = 256, |
| 7296 | .feature_bits = FEATURE_WRSR_WREN, |
| 7297 | .tested = TEST_OK_PREW, |
| 7298 | .probe = probe_spi_rdid, |
| 7299 | .probe_timing = TIMING_ZERO, |
| 7300 | .block_erasers = |
| 7301 | { |
| 7302 | { |
| 7303 | .eraseblocks = { {64 * 1024, 16} }, |
| 7304 | .block_erase = spi_block_erase_d8, |
| 7305 | }, { |
| 7306 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7307 | .block_erase = spi_block_erase_c7, |
| 7308 | } |
| 7309 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7310 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7311 | .unlock = spi_disable_blockprotect, |
| 7312 | .write = spi_chip_write_256, |
| 7313 | .read = spi_chip_read, |
| 7314 | .voltage = {2700, 3600}, |
| 7315 | }, |
| 7316 | |
| 7317 | { |
| 7318 | .vendor = "Micron/Numonyx/ST", |
| 7319 | .name = "M25P16", |
| 7320 | .bustype = BUS_SPI, |
| 7321 | .manufacture_id = ST_ID, |
| 7322 | .model_id = ST_M25P16, |
| 7323 | .total_size = 2048, |
| 7324 | .page_size = 256, |
| 7325 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7326 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7327 | .probe = probe_spi_rdid, |
| 7328 | .probe_timing = TIMING_ZERO, |
| 7329 | .block_erasers = |
| 7330 | { |
| 7331 | { |
| 7332 | .eraseblocks = { {64 * 1024, 32} }, |
| 7333 | .block_erase = spi_block_erase_d8, |
| 7334 | }, { |
| 7335 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7336 | .block_erase = spi_block_erase_c7, |
| 7337 | } |
| 7338 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7339 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7340 | .unlock = spi_disable_blockprotect, |
| 7341 | .write = spi_chip_write_256, |
| 7342 | .read = spi_chip_read, |
| 7343 | .voltage = {2700, 3600}, |
| 7344 | }, |
| 7345 | |
| 7346 | { |
| 7347 | .vendor = "Micron/Numonyx/ST", |
| 7348 | .name = "M25P32", |
| 7349 | .bustype = BUS_SPI, |
| 7350 | .manufacture_id = ST_ID, |
| 7351 | .model_id = ST_M25P32, |
| 7352 | .total_size = 4096, |
| 7353 | .page_size = 256, |
| 7354 | .feature_bits = FEATURE_WRSR_WREN, |
| 7355 | .tested = TEST_OK_PREW, |
| 7356 | .probe = probe_spi_rdid, |
| 7357 | .probe_timing = TIMING_ZERO, |
| 7358 | .block_erasers = |
| 7359 | { |
| 7360 | { |
| 7361 | .eraseblocks = { {64 * 1024, 64} }, |
| 7362 | .block_erase = spi_block_erase_d8, |
| 7363 | }, { |
| 7364 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7365 | .block_erase = spi_block_erase_c7, |
| 7366 | } |
| 7367 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7368 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7369 | .unlock = spi_disable_blockprotect, |
| 7370 | .write = spi_chip_write_256, |
| 7371 | .read = spi_chip_read, |
| 7372 | .voltage = {2700, 3600}, |
| 7373 | }, |
| 7374 | |
| 7375 | { |
| 7376 | .vendor = "Micron/Numonyx/ST", |
| 7377 | .name = "M25P64", |
| 7378 | .bustype = BUS_SPI, |
| 7379 | .manufacture_id = ST_ID, |
| 7380 | .model_id = ST_M25P64, |
| 7381 | .total_size = 8192, |
| 7382 | .page_size = 256, |
| 7383 | .feature_bits = FEATURE_WRSR_WREN, |
| 7384 | .tested = TEST_OK_PREW, |
| 7385 | .probe = probe_spi_rdid, |
| 7386 | .probe_timing = TIMING_ZERO, |
| 7387 | .block_erasers = |
| 7388 | { |
| 7389 | { |
| 7390 | .eraseblocks = { {64 * 1024, 128} }, |
| 7391 | .block_erase = spi_block_erase_d8, |
| 7392 | }, { |
| 7393 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7394 | .block_erase = spi_block_erase_c7, |
| 7395 | } |
| 7396 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7397 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7398 | .unlock = spi_disable_blockprotect, |
| 7399 | .write = spi_chip_write_256, |
| 7400 | .read = spi_chip_read, |
| 7401 | .voltage = {2700, 3600}, |
| 7402 | }, |
| 7403 | |
| 7404 | { |
| 7405 | .vendor = "Micron/Numonyx/ST", |
| 7406 | .name = "M25P128", |
| 7407 | .bustype = BUS_SPI, |
| 7408 | .manufacture_id = ST_ID, |
| 7409 | .model_id = ST_M25P128, |
| 7410 | .total_size = 16384, |
| 7411 | .page_size = 256, |
| 7412 | .feature_bits = FEATURE_WRSR_WREN, |
| 7413 | .tested = TEST_OK_PREW, |
| 7414 | .probe = probe_spi_rdid, |
| 7415 | .probe_timing = TIMING_ZERO, |
| 7416 | .block_erasers = |
| 7417 | { |
| 7418 | { |
| 7419 | .eraseblocks = { {256 * 1024, 64} }, |
| 7420 | .block_erase = spi_block_erase_d8, |
| 7421 | }, { |
| 7422 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7423 | .block_erase = spi_block_erase_c7, |
| 7424 | } |
| 7425 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7426 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7427 | .unlock = spi_disable_blockprotect, |
| 7428 | .write = spi_chip_write_256, |
| 7429 | .read = spi_chip_read, |
| 7430 | .voltage = {2700, 3600}, |
| 7431 | }, |
| 7432 | |
| 7433 | { |
| 7434 | .vendor = "Micron/Numonyx/ST", |
| 7435 | .name = "M25PE10", |
| 7436 | .bustype = BUS_SPI, |
| 7437 | .manufacture_id = ST_ID, |
| 7438 | .model_id = ST_M25PE10, |
| 7439 | .total_size = 128, |
| 7440 | .page_size = 256, |
| 7441 | .feature_bits = FEATURE_WRSR_WREN, |
| 7442 | .tested = TEST_UNTESTED, |
| 7443 | .probe = probe_spi_rdid, |
| 7444 | .probe_timing = TIMING_ZERO, |
| 7445 | .block_erasers = |
| 7446 | { |
| 7447 | { |
| 7448 | .eraseblocks = { {4 * 1024, 32} }, |
| 7449 | .block_erase = spi_block_erase_20, |
| 7450 | }, { |
| 7451 | .eraseblocks = { {64 * 1024, 2} }, |
| 7452 | .block_erase = spi_block_erase_d8, |
| 7453 | }, { |
| 7454 | .eraseblocks = { {128 * 1024, 1} }, |
| 7455 | .block_erase = spi_block_erase_c7, |
| 7456 | } |
| 7457 | }, |
| 7458 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7459 | .unlock = spi_disable_blockprotect, |
| 7460 | .write = spi_chip_write_256, |
| 7461 | .read = spi_chip_read, |
| 7462 | .voltage = {2700, 3600}, |
| 7463 | }, |
| 7464 | |
| 7465 | { |
| 7466 | .vendor = "Micron/Numonyx/ST", |
| 7467 | .name = "M25PE20", |
| 7468 | .bustype = BUS_SPI, |
| 7469 | .manufacture_id = ST_ID, |
| 7470 | .model_id = ST_M25PE20, |
| 7471 | .total_size = 256, |
| 7472 | .page_size = 256, |
| 7473 | .feature_bits = FEATURE_WRSR_WREN, |
| 7474 | .tested = TEST_UNTESTED, |
| 7475 | .probe = probe_spi_rdid, |
| 7476 | .probe_timing = TIMING_ZERO, |
| 7477 | .block_erasers = |
| 7478 | { |
| 7479 | { |
| 7480 | .eraseblocks = { {4 * 1024, 64} }, |
| 7481 | .block_erase = spi_block_erase_20, |
| 7482 | }, { |
| 7483 | .eraseblocks = { {64 * 1024, 4} }, |
| 7484 | .block_erase = spi_block_erase_d8, |
| 7485 | }, { |
| 7486 | .eraseblocks = { {256 * 1024, 1} }, |
| 7487 | .block_erase = spi_block_erase_c7, |
| 7488 | } |
| 7489 | }, |
| 7490 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7491 | .unlock = spi_disable_blockprotect, |
| 7492 | .write = spi_chip_write_256, |
| 7493 | .read = spi_chip_read, |
| 7494 | .voltage = {2700, 3600}, |
| 7495 | }, |
| 7496 | |
| 7497 | { |
| 7498 | .vendor = "Micron/Numonyx/ST", |
| 7499 | .name = "M25PE40", |
| 7500 | .bustype = BUS_SPI, |
| 7501 | .manufacture_id = ST_ID, |
| 7502 | .model_id = ST_M25PE40, |
| 7503 | .total_size = 512, |
| 7504 | .page_size = 256, |
| 7505 | .feature_bits = FEATURE_WRSR_WREN, |
| 7506 | .tested = TEST_UNTESTED, |
| 7507 | .probe = probe_spi_rdid, |
| 7508 | .probe_timing = TIMING_ZERO, |
| 7509 | .block_erasers = |
| 7510 | { |
| 7511 | { |
| 7512 | .eraseblocks = { {4 * 1024, 128} }, |
| 7513 | .block_erase = spi_block_erase_20, |
| 7514 | }, { |
| 7515 | .eraseblocks = { {64 * 1024, 8} }, |
| 7516 | .block_erase = spi_block_erase_d8, |
| 7517 | }, { |
| 7518 | .eraseblocks = { {512 * 1024, 1} }, |
| 7519 | .block_erase = spi_block_erase_c7, |
| 7520 | } |
| 7521 | }, |
| 7522 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7523 | .unlock = spi_disable_blockprotect, |
| 7524 | .write = spi_chip_write_256, |
| 7525 | .read = spi_chip_read, |
| 7526 | .voltage = {2700, 3600}, |
| 7527 | }, |
| 7528 | |
| 7529 | { |
| 7530 | .vendor = "Micron/Numonyx/ST", |
| 7531 | .name = "M25PE80", |
| 7532 | .bustype = BUS_SPI, |
| 7533 | .manufacture_id = ST_ID, |
| 7534 | .model_id = ST_M25PE80, |
| 7535 | .total_size = 1024, |
| 7536 | .page_size = 256, |
| 7537 | .feature_bits = FEATURE_WRSR_WREN, |
| 7538 | .tested = TEST_OK_PREW, |
| 7539 | .probe = probe_spi_rdid, |
| 7540 | .probe_timing = TIMING_ZERO, |
| 7541 | .block_erasers = |
| 7542 | { |
| 7543 | { |
| 7544 | .eraseblocks = { {4 * 1024, 256} }, |
| 7545 | .block_erase = spi_block_erase_20, |
| 7546 | }, { |
| 7547 | .eraseblocks = { {64 * 1024, 16} }, |
| 7548 | .block_erase = spi_block_erase_d8, |
| 7549 | }, { |
| 7550 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7551 | .block_erase = spi_block_erase_c7, |
| 7552 | } |
| 7553 | }, |
| 7554 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7555 | .unlock = spi_disable_blockprotect, |
| 7556 | .write = spi_chip_write_256, |
| 7557 | .read = spi_chip_read, |
| 7558 | .voltage = {2700, 3600}, |
| 7559 | }, |
| 7560 | |
| 7561 | { |
| 7562 | .vendor = "Micron/Numonyx/ST", |
| 7563 | .name = "M25PE16", |
| 7564 | .bustype = BUS_SPI, |
| 7565 | .manufacture_id = ST_ID, |
| 7566 | .model_id = ST_M25PE16, |
| 7567 | .total_size = 2048, |
| 7568 | .page_size = 256, |
| 7569 | .feature_bits = FEATURE_WRSR_WREN, |
| 7570 | .tested = TEST_UNTESTED, |
| 7571 | .probe = probe_spi_rdid, |
| 7572 | .probe_timing = TIMING_ZERO, |
| 7573 | .block_erasers = |
| 7574 | { |
| 7575 | { |
| 7576 | .eraseblocks = { {4 * 1024, 512} }, |
| 7577 | .block_erase = spi_block_erase_20, |
| 7578 | }, { |
| 7579 | .eraseblocks = { {64 * 1024, 32} }, |
| 7580 | .block_erase = spi_block_erase_d8, |
| 7581 | }, { |
| 7582 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7583 | .block_erase = spi_block_erase_c7, |
| 7584 | } |
| 7585 | }, |
| 7586 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7587 | .unlock = spi_disable_blockprotect, |
| 7588 | .write = spi_chip_write_256, |
| 7589 | .read = spi_chip_read, |
| 7590 | .voltage = {2700, 3600}, |
| 7591 | }, |
| 7592 | |
| 7593 | { |
| 7594 | .vendor = "Micron/Numonyx/ST", |
| 7595 | .name = "M25PX80", |
| 7596 | .bustype = BUS_SPI, |
| 7597 | .manufacture_id = ST_ID, |
| 7598 | .model_id = ST_M25PX80, |
| 7599 | .total_size = 1024, |
| 7600 | .page_size = 256, |
| 7601 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 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 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 7609 | .block_erase = spi_block_erase_20, |
| 7610 | }, { |
| 7611 | .eraseblocks = { {64 * 1024, 16} }, |
| 7612 | .block_erase = spi_block_erase_d8, |
| 7613 | }, { |
| 7614 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7615 | .block_erase = spi_block_erase_c7, |
| 7616 | } |
| 7617 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7618 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7619 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7620 | .write = spi_chip_write_256, |
| 7621 | .read = spi_chip_read, |
| 7622 | .voltage = {2700, 3600}, |
| 7623 | }, |
| 7624 | |
| 7625 | { |
| 7626 | .vendor = "Micron/Numonyx/ST", |
| 7627 | .name = "M25PX16", |
| 7628 | .bustype = BUS_SPI, |
| 7629 | .manufacture_id = ST_ID, |
| 7630 | .model_id = ST_M25PX16, |
| 7631 | .total_size = 2048, |
| 7632 | .page_size = 256, |
| 7633 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7634 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7635 | .tested = TEST_OK_PREW, |
| 7636 | .probe = probe_spi_rdid, |
| 7637 | .probe_timing = TIMING_ZERO, |
| 7638 | .block_erasers = |
| 7639 | { |
| 7640 | { |
| 7641 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 7642 | .block_erase = spi_block_erase_20, |
| 7643 | }, { |
| 7644 | .eraseblocks = { {64 * 1024, 32} }, |
| 7645 | .block_erase = spi_block_erase_d8, |
| 7646 | }, { |
| 7647 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7648 | .block_erase = spi_block_erase_c7, |
| 7649 | } |
| 7650 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7651 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7652 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7653 | .write = spi_chip_write_256, |
| 7654 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7655 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7656 | }, |
| 7657 | |
| 7658 | { |
| 7659 | .vendor = "Micron/Numonyx/ST", |
| 7660 | .name = "M25PX32", |
| 7661 | .bustype = BUS_SPI, |
| 7662 | .manufacture_id = ST_ID, |
| 7663 | .model_id = ST_M25PX32, |
| 7664 | .total_size = 4096, |
| 7665 | .page_size = 256, |
| 7666 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7667 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7668 | .tested = TEST_OK_PRE, |
| 7669 | .probe = probe_spi_rdid, |
| 7670 | .probe_timing = TIMING_ZERO, |
| 7671 | .block_erasers = |
| 7672 | { |
| 7673 | { |
| 7674 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 7675 | .block_erase = spi_block_erase_20, |
| 7676 | }, { |
| 7677 | .eraseblocks = { {64 * 1024, 64} }, |
| 7678 | .block_erase = spi_block_erase_d8, |
| 7679 | }, { |
| 7680 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7681 | .block_erase = spi_block_erase_c7, |
| 7682 | } |
| 7683 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7684 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7685 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7686 | .write = spi_chip_write_256, |
| 7687 | .read = spi_chip_read, |
| 7688 | .voltage = {2700, 3600}, |
| 7689 | }, |
| 7690 | |
| 7691 | { |
| 7692 | .vendor = "Micron/Numonyx/ST", |
| 7693 | .name = "M25PX64", |
| 7694 | .bustype = BUS_SPI, |
| 7695 | .manufacture_id = ST_ID, |
| 7696 | .model_id = ST_M25PX64, |
| 7697 | .total_size = 8192, |
| 7698 | .page_size = 256, |
| 7699 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7700 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7701 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7702 | .probe = probe_spi_rdid, |
| 7703 | .probe_timing = TIMING_ZERO, |
| 7704 | .block_erasers = |
| 7705 | { |
| 7706 | { |
| 7707 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 7708 | .block_erase = spi_block_erase_20, |
| 7709 | }, { |
| 7710 | .eraseblocks = { {64 * 1024, 128} }, |
| 7711 | .block_erase = spi_block_erase_d8, |
| 7712 | }, { |
| 7713 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7714 | .block_erase = spi_block_erase_c7, |
| 7715 | } |
| 7716 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7717 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7718 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7719 | .write = spi_chip_write_256, |
| 7720 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7721 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7722 | }, |
| 7723 | |
| 7724 | { |
| 7725 | .vendor = "Micron/Numonyx/ST", |
| 7726 | .name = "M45PE10", |
| 7727 | .bustype = BUS_SPI, |
| 7728 | .manufacture_id = ST_ID, |
| 7729 | .model_id = ST_M45PE10, |
| 7730 | .total_size = 128, |
| 7731 | .page_size = 256, |
| 7732 | .tested = TEST_UNTESTED, |
| 7733 | .probe = probe_spi_rdid, |
| 7734 | .probe_timing = TIMING_ZERO, |
| 7735 | .block_erasers = { |
| 7736 | { |
| 7737 | .eraseblocks = { {256, 512} }, |
| 7738 | .block_erase = spi_block_erase_db, |
| 7739 | }, { |
| 7740 | .eraseblocks = { {64 * 1024, 2} }, |
| 7741 | .block_erase = spi_block_erase_d8, |
| 7742 | } |
| 7743 | }, |
| 7744 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7745 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7746 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7747 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7748 | .voltage = {2700, 3600}, |
| 7749 | }, |
| 7750 | |
| 7751 | { |
| 7752 | .vendor = "Micron/Numonyx/ST", |
| 7753 | .name = "M45PE20", |
| 7754 | .bustype = BUS_SPI, |
| 7755 | .manufacture_id = ST_ID, |
| 7756 | .model_id = ST_M45PE20, |
| 7757 | .total_size = 256, |
| 7758 | .page_size = 256, |
| 7759 | .tested = TEST_UNTESTED, |
| 7760 | .probe = probe_spi_rdid, |
| 7761 | .probe_timing = TIMING_ZERO, |
| 7762 | .block_erasers = { |
| 7763 | { |
| 7764 | .eraseblocks = { {256, 1024} }, |
| 7765 | .block_erase = spi_block_erase_db, |
| 7766 | }, { |
| 7767 | .eraseblocks = { {64 * 1024, 4} }, |
| 7768 | .block_erase = spi_block_erase_d8, |
| 7769 | } |
| 7770 | }, |
| 7771 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7772 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7773 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7774 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7775 | .voltage = {2700, 3600}, |
| 7776 | }, |
| 7777 | |
| 7778 | { |
| 7779 | .vendor = "Micron/Numonyx/ST", |
| 7780 | .name = "M45PE40", |
| 7781 | .bustype = BUS_SPI, |
| 7782 | .manufacture_id = ST_ID, |
| 7783 | .model_id = ST_M45PE40, |
| 7784 | .total_size = 512, |
| 7785 | .page_size = 256, |
| 7786 | .tested = TEST_UNTESTED, |
| 7787 | .probe = probe_spi_rdid, |
| 7788 | .probe_timing = TIMING_ZERO, |
| 7789 | .block_erasers = { |
| 7790 | { |
| 7791 | .eraseblocks = { {256, 2048} }, |
| 7792 | .block_erase = spi_block_erase_db, |
| 7793 | }, { |
| 7794 | .eraseblocks = { {64 * 1024, 8} }, |
| 7795 | .block_erase = spi_block_erase_d8, |
| 7796 | } |
| 7797 | }, |
| 7798 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7799 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7800 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7801 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7802 | .voltage = {2700, 3600}, |
| 7803 | }, |
| 7804 | |
| 7805 | { |
| 7806 | .vendor = "Micron/Numonyx/ST", |
| 7807 | .name = "M45PE80", |
| 7808 | .bustype = BUS_SPI, |
| 7809 | .manufacture_id = ST_ID, |
| 7810 | .model_id = ST_M45PE80, |
| 7811 | .total_size = 1024, |
| 7812 | .page_size = 256, |
| 7813 | .tested = TEST_UNTESTED, |
| 7814 | .probe = probe_spi_rdid, |
| 7815 | .probe_timing = TIMING_ZERO, |
| 7816 | .block_erasers = { |
| 7817 | { |
| 7818 | .eraseblocks = { {256, 4096} }, |
| 7819 | .block_erase = spi_block_erase_db, |
| 7820 | }, { |
| 7821 | .eraseblocks = { {64 * 1024, 16} }, |
| 7822 | .block_erase = spi_block_erase_d8, |
| 7823 | } |
| 7824 | }, |
| 7825 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7826 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7827 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7828 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7829 | .voltage = {2700, 3600}, |
| 7830 | }, |
| 7831 | |
| 7832 | { |
| 7833 | .vendor = "Micron/Numonyx/ST", |
| 7834 | .name = "M45PE16", |
| 7835 | .bustype = BUS_SPI, |
| 7836 | .manufacture_id = ST_ID, |
| 7837 | .model_id = ST_M45PE16, |
| 7838 | .total_size = 2048, |
| 7839 | .page_size = 256, |
| 7840 | .tested = TEST_UNTESTED, |
| 7841 | .probe = probe_spi_rdid, |
| 7842 | .probe_timing = TIMING_ZERO, |
| 7843 | .block_erasers = { |
| 7844 | { |
| 7845 | .eraseblocks = { {256, 8192} }, |
| 7846 | .block_erase = spi_block_erase_db, |
| 7847 | }, { |
| 7848 | .eraseblocks = { {64 * 1024, 32} }, |
| 7849 | .block_erase = spi_block_erase_d8, |
| 7850 | } |
| 7851 | }, |
| 7852 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7853 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7854 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7855 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7856 | .voltage = {2700, 3600}, |
| 7857 | }, |
| 7858 | |
| 7859 | { |
| 7860 | .vendor = "Micron/Numonyx/ST", |
| 7861 | .name = "N25Q016", |
| 7862 | .bustype = BUS_SPI, |
| 7863 | .manufacture_id = ST_ID, |
| 7864 | .model_id = ST_N25Q016__1E, |
| 7865 | .total_size = 2048, |
| 7866 | .page_size = 256, |
| 7867 | /* supports SFDP */ |
| 7868 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7869 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7870 | .tested = TEST_UNTESTED, |
| 7871 | .probe = probe_spi_rdid, |
| 7872 | .probe_timing = TIMING_ZERO, |
| 7873 | .block_erasers = |
| 7874 | { |
| 7875 | { |
| 7876 | .eraseblocks = { {4 * 1024, 512} }, |
| 7877 | .block_erase = spi_block_erase_20, |
| 7878 | }, { |
| 7879 | .eraseblocks = { {32 * 1024, 64} }, |
| 7880 | .block_erase = spi_block_erase_52, |
| 7881 | }, { |
| 7882 | .eraseblocks = { {64 * 1024, 32} }, |
| 7883 | .block_erase = spi_block_erase_d8, |
| 7884 | }, { |
| 7885 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7886 | .block_erase = spi_block_erase_c7, |
| 7887 | } |
| 7888 | }, |
| 7889 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7890 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7891 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7892 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7893 | .voltage = {1700, 2000}, |
| 7894 | }, |
| 7895 | |
| 7896 | { |
| 7897 | .vendor = "Micron/Numonyx/ST", |
| 7898 | .name = "N25Q032..1E", |
| 7899 | .bustype = BUS_SPI, |
| 7900 | .manufacture_id = ST_ID, |
| 7901 | .model_id = ST_N25Q032__1E, |
| 7902 | .total_size = 4096, |
| 7903 | .page_size = 256, |
| 7904 | /* supports SFDP */ |
| 7905 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7906 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7907 | .tested = TEST_UNTESTED, |
| 7908 | .probe = probe_spi_rdid, |
| 7909 | .probe_timing = TIMING_ZERO, |
| 7910 | .block_erasers = |
| 7911 | { |
| 7912 | { |
| 7913 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7914 | .block_erase = spi_block_erase_20, |
| 7915 | }, { |
| 7916 | .eraseblocks = { {64 * 1024, 64} }, |
| 7917 | .block_erase = spi_block_erase_d8, |
| 7918 | }, { |
| 7919 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7920 | .block_erase = spi_block_erase_c7, |
| 7921 | } |
| 7922 | }, |
| 7923 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7924 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7925 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7926 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7927 | .voltage = {1700, 2000}, |
| 7928 | }, |
| 7929 | |
| 7930 | { |
| 7931 | .vendor = "Micron/Numonyx/ST", |
| 7932 | .name = "N25Q032..3E", |
| 7933 | .bustype = BUS_SPI, |
| 7934 | .manufacture_id = ST_ID, |
| 7935 | .model_id = ST_N25Q032__3E, |
| 7936 | .total_size = 4096, |
| 7937 | .page_size = 256, |
| 7938 | /* supports SFDP */ |
| 7939 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7940 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7941 | .tested = TEST_OK_PREW, |
| 7942 | .probe = probe_spi_rdid, |
| 7943 | .probe_timing = TIMING_ZERO, |
| 7944 | .block_erasers = |
| 7945 | { |
| 7946 | { |
| 7947 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7948 | .block_erase = spi_block_erase_20, |
| 7949 | }, { |
| 7950 | .eraseblocks = { {64 * 1024, 64} }, |
| 7951 | .block_erase = spi_block_erase_d8, |
| 7952 | }, { |
| 7953 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7954 | .block_erase = spi_block_erase_c7, |
| 7955 | } |
| 7956 | }, |
| 7957 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7958 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7959 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7960 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7961 | .voltage = {2700, 3600}, |
| 7962 | }, |
| 7963 | |
| 7964 | { |
| 7965 | .vendor = "Micron/Numonyx/ST", |
| 7966 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7967 | .bustype = BUS_SPI, |
| 7968 | .manufacture_id = ST_ID, |
| 7969 | .model_id = ST_N25Q064__1E, |
| 7970 | .total_size = 8192, |
| 7971 | .page_size = 256, |
| 7972 | /* supports SFDP */ |
| 7973 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7975 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7976 | .probe = probe_spi_rdid, |
| 7977 | .probe_timing = TIMING_ZERO, |
| 7978 | .block_erasers = |
| 7979 | { |
| 7980 | { |
| 7981 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7982 | .block_erase = spi_block_erase_20, |
| 7983 | }, { |
| 7984 | .eraseblocks = { {64 * 1024, 128} }, |
| 7985 | .block_erase = spi_block_erase_d8, |
| 7986 | }, { |
| 7987 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7988 | .block_erase = spi_block_erase_c7, |
| 7989 | } |
| 7990 | }, |
| 7991 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7992 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7993 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7994 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7995 | .voltage = {1700, 2000}, |
| 7996 | }, |
| 7997 | |
| 7998 | { |
| 7999 | .vendor = "Micron/Numonyx/ST", |
| 8000 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 8001 | .bustype = BUS_SPI, |
| 8002 | .manufacture_id = ST_ID, |
| 8003 | .model_id = ST_N25Q064__3E, |
| 8004 | .total_size = 8192, |
| 8005 | .page_size = 256, |
| 8006 | /* supports SFDP */ |
| 8007 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8008 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8009 | .tested = TEST_OK_PREW, |
| 8010 | .probe = probe_spi_rdid, |
| 8011 | .probe_timing = TIMING_ZERO, |
| 8012 | .block_erasers = |
| 8013 | { |
| 8014 | { |
| 8015 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 8016 | .block_erase = spi_block_erase_20, |
| 8017 | }, { |
| 8018 | .eraseblocks = { {64 * 1024, 128} }, |
| 8019 | .block_erase = spi_block_erase_d8, |
| 8020 | }, { |
| 8021 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8022 | .block_erase = spi_block_erase_c7, |
| 8023 | } |
| 8024 | }, |
| 8025 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8026 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8027 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8028 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8029 | .voltage = {2700, 3600}, |
| 8030 | }, |
| 8031 | |
| 8032 | { |
| 8033 | .vendor = "Micron/Numonyx/ST", |
| 8034 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 8035 | .bustype = BUS_SPI, |
| 8036 | .manufacture_id = ST_ID, |
| 8037 | .model_id = ST_N25Q128__1E, |
| 8038 | .total_size = 16384, |
| 8039 | .page_size = 256, |
| 8040 | /* supports SFDP */ |
| 8041 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8042 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8043 | .tested = TEST_UNTESTED, |
| 8044 | .probe = probe_spi_rdid, |
| 8045 | .probe_timing = TIMING_ZERO, |
| 8046 | .block_erasers = { |
| 8047 | { |
| 8048 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 8049 | .block_erase = spi_block_erase_20, |
| 8050 | }, { |
| 8051 | .eraseblocks = { {64 * 1024, 256} }, |
| 8052 | .block_erase = spi_block_erase_d8, |
| 8053 | }, { |
| 8054 | .eraseblocks = { {16384 * 1024, 1} }, |
| 8055 | .block_erase = spi_block_erase_c7, |
| 8056 | } |
| 8057 | }, |
| 8058 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8059 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8060 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8061 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8062 | .voltage = {1700, 2000}, |
| 8063 | }, |
| 8064 | |
| 8065 | { |
| 8066 | .vendor = "Micron/Numonyx/ST", |
| 8067 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 8068 | .bustype = BUS_SPI, |
| 8069 | .manufacture_id = ST_ID, |
| 8070 | .model_id = ST_N25Q128__3E, |
| 8071 | .total_size = 16384, |
| 8072 | .page_size = 256, |
| 8073 | /* supports SFDP */ |
| 8074 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8075 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8076 | .tested = TEST_OK_PREW, |
| 8077 | .probe = probe_spi_rdid, |
| 8078 | .probe_timing = TIMING_ZERO, |
| 8079 | .block_erasers = { |
| 8080 | { |
| 8081 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 8082 | .block_erase = spi_block_erase_20, |
| 8083 | }, { |
| 8084 | .eraseblocks = { {64 * 1024, 256} }, |
| 8085 | .block_erase = spi_block_erase_d8, |
| 8086 | }, { |
| 8087 | .eraseblocks = { {16384 * 1024, 1} }, |
| 8088 | .block_erase = spi_block_erase_c7, |
| 8089 | } |
| 8090 | }, |
| 8091 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8092 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8093 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8094 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8095 | .voltage = {2700, 3600}, |
| 8096 | }, |
| 8097 | |
| 8098 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8099 | .vendor = "MoselVitelic", |
| 8100 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8101 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8102 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8103 | .model_id = MVC_V29C51000B, |
| 8104 | .total_size = 64, |
| 8105 | .page_size = 512, |
| 8106 | .feature_bits = FEATURE_EITHER_RESET, |
| 8107 | .tested = TEST_UNTESTED, |
| 8108 | .probe = probe_jedec, |
| 8109 | .probe_timing = TIMING_ZERO, |
| 8110 | .block_erasers = |
| 8111 | { |
| 8112 | { |
| 8113 | .eraseblocks = { {512, 128} }, |
| 8114 | .block_erase = erase_sector_jedec, |
| 8115 | }, { |
| 8116 | .eraseblocks = { {64 * 1024, 1} }, |
| 8117 | .block_erase = erase_chip_block_jedec, |
| 8118 | }, |
| 8119 | }, |
| 8120 | .write = write_jedec_1, |
| 8121 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8122 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8123 | }, |
| 8124 | |
| 8125 | { |
| 8126 | .vendor = "MoselVitelic", |
| 8127 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8128 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8129 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8130 | .model_id = MVC_V29C51000T, |
| 8131 | .total_size = 64, |
| 8132 | .page_size = 512, |
| 8133 | .feature_bits = FEATURE_EITHER_RESET, |
| 8134 | .tested = TEST_UNTESTED, |
| 8135 | .probe = probe_jedec, |
| 8136 | .probe_timing = TIMING_ZERO, |
| 8137 | .block_erasers = |
| 8138 | { |
| 8139 | { |
| 8140 | .eraseblocks = { {512, 128} }, |
| 8141 | .block_erase = erase_sector_jedec, |
| 8142 | }, { |
| 8143 | .eraseblocks = { {64 * 1024, 1} }, |
| 8144 | .block_erase = erase_chip_block_jedec, |
| 8145 | }, |
| 8146 | }, |
| 8147 | .write = write_jedec_1, |
| 8148 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8149 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8150 | }, |
| 8151 | |
| 8152 | { |
| 8153 | .vendor = "MoselVitelic", |
| 8154 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8155 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8156 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8157 | .model_id = MVC_V29C51400B, |
| 8158 | .total_size = 512, |
| 8159 | .page_size = 1024, |
| 8160 | .feature_bits = FEATURE_EITHER_RESET, |
| 8161 | .tested = TEST_UNTESTED, |
| 8162 | .probe = probe_jedec, |
| 8163 | .probe_timing = TIMING_ZERO, |
| 8164 | .block_erasers = |
| 8165 | { |
| 8166 | { |
| 8167 | .eraseblocks = { {1024, 512} }, |
| 8168 | .block_erase = erase_sector_jedec, |
| 8169 | }, { |
| 8170 | .eraseblocks = { {512 * 1024, 1} }, |
| 8171 | .block_erase = erase_chip_block_jedec, |
| 8172 | }, |
| 8173 | }, |
| 8174 | .write = write_jedec_1, |
| 8175 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8176 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8177 | }, |
| 8178 | |
| 8179 | { |
| 8180 | .vendor = "MoselVitelic", |
| 8181 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8182 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8183 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8184 | .model_id = MVC_V29C51400T, |
| 8185 | .total_size = 512, |
| 8186 | .page_size = 1024, |
| 8187 | .feature_bits = FEATURE_EITHER_RESET, |
| 8188 | .tested = TEST_UNTESTED, |
| 8189 | .probe = probe_jedec, |
| 8190 | .probe_timing = TIMING_ZERO, |
| 8191 | .block_erasers = |
| 8192 | { |
| 8193 | { |
| 8194 | .eraseblocks = { {1024, 512} }, |
| 8195 | .block_erase = erase_sector_jedec, |
| 8196 | }, { |
| 8197 | .eraseblocks = { {512 * 1024, 1} }, |
| 8198 | .block_erase = erase_chip_block_jedec, |
| 8199 | }, |
| 8200 | }, |
| 8201 | .write = write_jedec_1, |
| 8202 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8203 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8204 | }, |
| 8205 | |
| 8206 | { |
| 8207 | .vendor = "MoselVitelic", |
| 8208 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8209 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8210 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8211 | .model_id = MVC_V29LC51000, |
| 8212 | .total_size = 64, |
| 8213 | .page_size = 512, |
| 8214 | .feature_bits = FEATURE_EITHER_RESET, |
| 8215 | .tested = TEST_UNTESTED, |
| 8216 | .probe = probe_jedec, |
| 8217 | .probe_timing = TIMING_ZERO, |
| 8218 | .block_erasers = |
| 8219 | { |
| 8220 | { |
| 8221 | .eraseblocks = { {512, 128} }, |
| 8222 | .block_erase = erase_sector_jedec, |
| 8223 | }, { |
| 8224 | .eraseblocks = { {64 * 1024, 1} }, |
| 8225 | .block_erase = erase_chip_block_jedec, |
| 8226 | }, |
| 8227 | }, |
| 8228 | .write = write_jedec_1, |
| 8229 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8230 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8231 | }, |
| 8232 | |
| 8233 | { |
| 8234 | .vendor = "MoselVitelic", |
| 8235 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8236 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8237 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8238 | .model_id = MVC_V29LC51001, |
| 8239 | .total_size = 128, |
| 8240 | .page_size = 512, |
| 8241 | .feature_bits = FEATURE_EITHER_RESET, |
| 8242 | .tested = TEST_UNTESTED, |
| 8243 | .probe = probe_jedec, |
| 8244 | .probe_timing = TIMING_ZERO, |
| 8245 | .block_erasers = |
| 8246 | { |
| 8247 | { |
| 8248 | .eraseblocks = { {512, 256} }, |
| 8249 | .block_erase = erase_sector_jedec, |
| 8250 | }, { |
| 8251 | .eraseblocks = { {128 * 1024, 1} }, |
| 8252 | .block_erase = erase_chip_block_jedec, |
| 8253 | }, |
| 8254 | }, |
| 8255 | .write = write_jedec_1, |
| 8256 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8257 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8258 | }, |
| 8259 | |
| 8260 | { |
| 8261 | .vendor = "MoselVitelic", |
| 8262 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8263 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8264 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8265 | .model_id = MVC_V29LC51002, |
| 8266 | .total_size = 256, |
| 8267 | .page_size = 512, |
| 8268 | .feature_bits = FEATURE_EITHER_RESET, |
| 8269 | .tested = TEST_UNTESTED, |
| 8270 | .probe = probe_jedec, |
| 8271 | .probe_timing = TIMING_ZERO, |
| 8272 | .block_erasers = |
| 8273 | { |
| 8274 | { |
| 8275 | .eraseblocks = { {512, 512} }, |
| 8276 | .block_erase = erase_sector_jedec, |
| 8277 | }, { |
| 8278 | .eraseblocks = { {256 * 1024, 1} }, |
| 8279 | .block_erase = erase_chip_block_jedec, |
| 8280 | }, |
| 8281 | }, |
| 8282 | .write = write_jedec_1, |
| 8283 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8284 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8285 | }, |
| 8286 | |
| 8287 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8288 | .vendor = "Nantronics", |
| 8289 | .name = "N25S10", |
| 8290 | .bustype = BUS_SPI, |
| 8291 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8292 | .model_id = NANTRONICS_N25S10, |
| 8293 | .total_size = 128, |
| 8294 | .page_size = 256, |
| 8295 | .feature_bits = FEATURE_WRSR_WREN, |
| 8296 | .tested = TEST_UNTESTED, |
| 8297 | .probe = probe_spi_rdid, |
| 8298 | .probe_timing = TIMING_ZERO, |
| 8299 | .block_erasers = |
| 8300 | { |
| 8301 | { |
| 8302 | .eraseblocks = { {4 * 1024, 32} }, |
| 8303 | .block_erase = spi_block_erase_20, |
| 8304 | }, { |
| 8305 | .eraseblocks = { {4 * 1024, 32} }, |
| 8306 | .block_erase = spi_block_erase_d7, |
| 8307 | }, { |
| 8308 | .eraseblocks = { {32 * 1024, 4} }, |
| 8309 | .block_erase = spi_block_erase_52, |
| 8310 | }, { |
| 8311 | .eraseblocks = { {64 * 1024, 2} }, |
| 8312 | .block_erase = spi_block_erase_d8, |
| 8313 | }, { |
| 8314 | .eraseblocks = { {128 * 1024, 1} }, |
| 8315 | .block_erase = spi_block_erase_60, |
| 8316 | }, { |
| 8317 | .eraseblocks = { {128 * 1024, 1} }, |
| 8318 | .block_erase = spi_block_erase_c7, |
| 8319 | } |
| 8320 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8321 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8322 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8323 | .write = spi_chip_write_256, |
| 8324 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8325 | .voltage = {2700, 3600}, |
| 8326 | }, |
| 8327 | |
| 8328 | { |
| 8329 | .vendor = "Nantronics", |
| 8330 | .name = "N25S20", |
| 8331 | .bustype = BUS_SPI, |
| 8332 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8333 | .model_id = NANTRONICS_N25S20, |
| 8334 | .total_size = 256, |
| 8335 | .page_size = 256, |
| 8336 | .feature_bits = FEATURE_WRSR_WREN, |
| 8337 | .tested = TEST_UNTESTED, |
| 8338 | .probe = probe_spi_rdid, |
| 8339 | .probe_timing = TIMING_ZERO, |
| 8340 | .block_erasers = |
| 8341 | { |
| 8342 | { |
| 8343 | .eraseblocks = { {4 * 1024, 64} }, |
| 8344 | .block_erase = spi_block_erase_20, |
| 8345 | }, { |
| 8346 | .eraseblocks = { {4 * 1024, 64} }, |
| 8347 | .block_erase = spi_block_erase_d7, |
| 8348 | }, { |
| 8349 | .eraseblocks = { {32 * 1024, 8} }, |
| 8350 | .block_erase = spi_block_erase_52, |
| 8351 | }, { |
| 8352 | .eraseblocks = { {64 * 1024, 4} }, |
| 8353 | .block_erase = spi_block_erase_d8, |
| 8354 | }, { |
| 8355 | .eraseblocks = { {256 * 1024, 1} }, |
| 8356 | .block_erase = spi_block_erase_60, |
| 8357 | }, { |
| 8358 | .eraseblocks = { {256 * 1024, 1} }, |
| 8359 | .block_erase = spi_block_erase_c7, |
| 8360 | } |
| 8361 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8362 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8363 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8364 | .write = spi_chip_write_256, |
| 8365 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8366 | .voltage = {2700, 3600}, |
| 8367 | }, |
| 8368 | |
| 8369 | { |
| 8370 | .vendor = "Nantronics", |
| 8371 | .name = "N25S40", |
| 8372 | .bustype = BUS_SPI, |
| 8373 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8374 | .model_id = NANTRONICS_N25S40, |
| 8375 | .total_size = 512, |
| 8376 | .page_size = 256, |
| 8377 | .feature_bits = FEATURE_WRSR_WREN, |
| 8378 | .tested = TEST_UNTESTED, |
| 8379 | .probe = probe_spi_rdid, |
| 8380 | .probe_timing = TIMING_ZERO, |
| 8381 | .block_erasers = |
| 8382 | { |
| 8383 | { |
| 8384 | .eraseblocks = { {4 * 1024, 128} }, |
| 8385 | .block_erase = spi_block_erase_20, |
| 8386 | }, { |
| 8387 | .eraseblocks = { {4 * 1024, 128} }, |
| 8388 | .block_erase = spi_block_erase_d7, |
| 8389 | }, { |
| 8390 | .eraseblocks = { {32 * 1024, 16} }, |
| 8391 | .block_erase = spi_block_erase_52, |
| 8392 | }, { |
| 8393 | .eraseblocks = { {64 * 1024, 8} }, |
| 8394 | .block_erase = spi_block_erase_d8, |
| 8395 | }, { |
| 8396 | .eraseblocks = { {512 * 1024, 1} }, |
| 8397 | .block_erase = spi_block_erase_60, |
| 8398 | }, { |
| 8399 | .eraseblocks = { {512 * 1024, 1} }, |
| 8400 | .block_erase = spi_block_erase_c7, |
| 8401 | } |
| 8402 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8403 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8404 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8405 | .write = spi_chip_write_256, |
| 8406 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8407 | .voltage = {2700, 3600}, |
| 8408 | }, |
| 8409 | |
| 8410 | { |
| 8411 | .vendor = "Nantronics", |
| 8412 | .name = "N25S80", |
| 8413 | .bustype = BUS_SPI, |
| 8414 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8415 | .model_id = NANTRONICS_N25S80, |
| 8416 | .total_size = 1024, |
| 8417 | .page_size = 256, |
| 8418 | .feature_bits = FEATURE_WRSR_WREN, |
| 8419 | .tested = TEST_UNTESTED, |
| 8420 | .probe = probe_spi_rdid, |
| 8421 | .probe_timing = TIMING_ZERO, |
| 8422 | .block_erasers = |
| 8423 | { |
| 8424 | { |
| 8425 | .eraseblocks = { {4 * 1024, 256} }, |
| 8426 | .block_erase = spi_block_erase_20, |
| 8427 | }, { |
| 8428 | .eraseblocks = { {32 * 1024, 32} }, |
| 8429 | .block_erase = spi_block_erase_52, |
| 8430 | }, { |
| 8431 | .eraseblocks = { {64 * 1024, 16} }, |
| 8432 | .block_erase = spi_block_erase_d8, |
| 8433 | }, { |
| 8434 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8435 | .block_erase = spi_block_erase_60, |
| 8436 | }, { |
| 8437 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8438 | .block_erase = spi_block_erase_c7, |
| 8439 | } |
| 8440 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8441 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8442 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8443 | .write = spi_chip_write_256, |
| 8444 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8445 | .voltage = {2700, 3600}, |
| 8446 | }, |
| 8447 | |
| 8448 | { |
| 8449 | .vendor = "Nantronics", |
| 8450 | .name = "N25S16", |
| 8451 | .bustype = BUS_SPI, |
| 8452 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8453 | .model_id = NANTRONICS_N25S16, |
| 8454 | .total_size = 2048, |
| 8455 | .page_size = 256, |
| 8456 | .feature_bits = FEATURE_WRSR_WREN, |
| 8457 | .tested = TEST_UNTESTED, |
| 8458 | .probe = probe_spi_rdid, |
| 8459 | .probe_timing = TIMING_ZERO, |
| 8460 | .block_erasers = |
| 8461 | { |
| 8462 | { |
| 8463 | .eraseblocks = { {4 * 1024, 512} }, |
| 8464 | .block_erase = spi_block_erase_20, |
| 8465 | }, { |
| 8466 | .eraseblocks = { {64 * 1024, 32} }, |
| 8467 | .block_erase = spi_block_erase_d8, |
| 8468 | }, { |
| 8469 | .eraseblocks = { {2048 * 1024, 1} }, |
| 8470 | .block_erase = spi_block_erase_60, |
| 8471 | }, { |
| 8472 | .eraseblocks = { {2048 * 1024, 1} }, |
| 8473 | .block_erase = spi_block_erase_c7, |
| 8474 | } |
| 8475 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8476 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8477 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8478 | .write = spi_chip_write_256, |
| 8479 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8480 | .voltage = {2700, 3600}, |
| 8481 | }, |
| 8482 | |
| 8483 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8484 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8485 | .name = "Pm25LD256C", |
| 8486 | .bustype = BUS_SPI, |
| 8487 | .manufacture_id = PMC_ID, |
| 8488 | .model_id = PMC_PM25LD256C, |
| 8489 | .total_size = 32, |
| 8490 | .page_size = 256, |
| 8491 | .feature_bits = FEATURE_WRSR_WREN, |
| 8492 | .tested = TEST_UNTESTED, |
| 8493 | .probe = probe_spi_rdid, |
| 8494 | .probe_timing = TIMING_ZERO, |
| 8495 | .block_erasers = |
| 8496 | { |
| 8497 | { |
| 8498 | .eraseblocks = { {4 * 1024, 8} }, |
| 8499 | .block_erase = spi_block_erase_20, |
| 8500 | }, { |
| 8501 | .eraseblocks = { {4 * 1024, 8} }, |
| 8502 | .block_erase = spi_block_erase_d7, |
| 8503 | }, { |
| 8504 | .eraseblocks = { {32 * 1024, 1} }, |
| 8505 | .block_erase = spi_block_erase_d8, |
| 8506 | }, { |
| 8507 | .eraseblocks = { {32 * 1024, 1} }, |
| 8508 | .block_erase = spi_block_erase_60, |
| 8509 | }, { |
| 8510 | .eraseblocks = { {32 * 1024, 1} }, |
| 8511 | .block_erase = spi_block_erase_c7, |
| 8512 | } |
| 8513 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8514 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8515 | .unlock = spi_disable_blockprotect, |
| 8516 | .write = spi_chip_write_256, |
| 8517 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8518 | .voltage = {2700, 3600}, |
| 8519 | }, |
| 8520 | { |
| 8521 | .vendor = "PMC", |
| 8522 | .name = "Pm25LD512(C)", |
| 8523 | .bustype = BUS_SPI, |
| 8524 | .manufacture_id = PMC_ID, |
| 8525 | .model_id = PMC_PM25LD512, |
| 8526 | .total_size = 64, |
| 8527 | .page_size = 256, |
| 8528 | .feature_bits = FEATURE_WRSR_WREN, |
| 8529 | .tested = TEST_OK_PREW, |
| 8530 | .probe = probe_spi_rdid, |
| 8531 | .probe_timing = TIMING_ZERO, |
| 8532 | .block_erasers = |
| 8533 | { |
| 8534 | { |
| 8535 | .eraseblocks = { {4 * 1024, 16} }, |
| 8536 | .block_erase = spi_block_erase_20, |
| 8537 | }, { |
| 8538 | .eraseblocks = { {4 * 1024, 16} }, |
| 8539 | .block_erase = spi_block_erase_d7, |
| 8540 | }, { |
| 8541 | .eraseblocks = { {32 * 1024, 2} }, |
| 8542 | .block_erase = spi_block_erase_d8, |
| 8543 | }, { |
| 8544 | .eraseblocks = { {64 * 1024, 1} }, |
| 8545 | .block_erase = spi_block_erase_60, |
| 8546 | }, { |
| 8547 | .eraseblocks = { {64 * 1024, 1} }, |
| 8548 | .block_erase = spi_block_erase_c7, |
| 8549 | } |
| 8550 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8551 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8552 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8553 | .write = spi_chip_write_256, |
| 8554 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8555 | .voltage = {2300, 3600}, |
| 8556 | }, |
| 8557 | |
| 8558 | { |
| 8559 | .vendor = "PMC", |
| 8560 | .name = "Pm25LD010(C)", |
| 8561 | .bustype = BUS_SPI, |
| 8562 | .manufacture_id = PMC_ID, |
| 8563 | .model_id = PMC_PM25LD010, |
| 8564 | .total_size = 128, |
| 8565 | .page_size = 256, |
| 8566 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8567 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8568 | .probe = probe_spi_rdid, |
| 8569 | .probe_timing = TIMING_ZERO, |
| 8570 | .block_erasers = |
| 8571 | { |
| 8572 | { |
| 8573 | .eraseblocks = { {4 * 1024, 32} }, |
| 8574 | .block_erase = spi_block_erase_20, |
| 8575 | }, { |
| 8576 | .eraseblocks = { {4 * 1024, 32} }, |
| 8577 | .block_erase = spi_block_erase_d7, |
| 8578 | }, { |
| 8579 | .eraseblocks = { {32 * 1024, 4} }, |
| 8580 | .block_erase = spi_block_erase_d8, |
| 8581 | }, { |
| 8582 | .eraseblocks = { {128 * 1024, 1} }, |
| 8583 | .block_erase = spi_block_erase_60, |
| 8584 | }, { |
| 8585 | .eraseblocks = { {128 * 1024, 1} }, |
| 8586 | .block_erase = spi_block_erase_c7, |
| 8587 | } |
| 8588 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8589 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8590 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8591 | .write = spi_chip_write_256, |
| 8592 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8593 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 8594 | }, |
| 8595 | |
| 8596 | { |
| 8597 | .vendor = "PMC", |
| 8598 | .name = "Pm25LD020(C)", |
| 8599 | .bustype = BUS_SPI, |
| 8600 | .manufacture_id = PMC_ID, |
| 8601 | .model_id = PMC_PM25LD020, |
| 8602 | .total_size = 256, |
| 8603 | .page_size = 256, |
| 8604 | .feature_bits = FEATURE_WRSR_WREN, |
| 8605 | .tested = TEST_UNTESTED, |
| 8606 | .probe = probe_spi_rdid, |
| 8607 | .probe_timing = TIMING_ZERO, |
| 8608 | .block_erasers = |
| 8609 | { |
| 8610 | { |
| 8611 | .eraseblocks = { {4 * 1024, 64} }, |
| 8612 | .block_erase = spi_block_erase_20, |
| 8613 | }, { |
| 8614 | .eraseblocks = { {4 * 1024, 64} }, |
| 8615 | .block_erase = spi_block_erase_d7, |
| 8616 | }, { |
| 8617 | .eraseblocks = { {64 * 1024, 4} }, |
| 8618 | .block_erase = spi_block_erase_d8, |
| 8619 | }, { |
| 8620 | .eraseblocks = { {256 * 1024, 1} }, |
| 8621 | .block_erase = spi_block_erase_60, |
| 8622 | }, { |
| 8623 | .eraseblocks = { {256 * 1024, 1} }, |
| 8624 | .block_erase = spi_block_erase_c7, |
| 8625 | } |
| 8626 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8627 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8628 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8629 | .write = spi_chip_write_256, |
| 8630 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8631 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 8632 | }, |
| 8633 | |
| 8634 | { |
| 8635 | .vendor = "PMC", |
| 8636 | .name = "Pm25LD040(C)", |
| 8637 | .bustype = BUS_SPI, |
| 8638 | .manufacture_id = PMC_ID, |
| 8639 | .model_id = PMC_PM25LV040, |
| 8640 | .total_size = 512, |
| 8641 | .page_size = 256, |
| 8642 | .feature_bits = FEATURE_WRSR_WREN, |
| 8643 | .tested = TEST_UNTESTED, |
| 8644 | .probe = probe_spi_rdid, |
| 8645 | .probe_timing = TIMING_ZERO, |
| 8646 | .block_erasers = |
| 8647 | { |
| 8648 | { |
| 8649 | .eraseblocks = { {4 * 1024, 128} }, |
| 8650 | .block_erase = spi_block_erase_20, |
| 8651 | }, { |
| 8652 | .eraseblocks = { {4 * 1024, 128} }, |
| 8653 | .block_erase = spi_block_erase_d7, |
| 8654 | }, { |
| 8655 | .eraseblocks = { {64 * 1024, 8} }, |
| 8656 | .block_erase = spi_block_erase_d8, |
| 8657 | }, { |
| 8658 | .eraseblocks = { {512 * 1024, 1} }, |
| 8659 | .block_erase = spi_block_erase_60, |
| 8660 | }, { |
| 8661 | .eraseblocks = { {512 * 1024, 1} }, |
| 8662 | .block_erase = spi_block_erase_c7, |
| 8663 | } |
| 8664 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8665 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8666 | .unlock = spi_disable_blockprotect, |
| 8667 | .write = spi_chip_write_256, |
| 8668 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8669 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 8670 | }, |
| 8671 | |
| 8672 | { |
| 8673 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8674 | .name = "Pm25LV512(A)", |
| 8675 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 8676 | .manufacture_id = PMC_ID_NOPREFIX, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8677 | .model_id = PMC_PM25LV512, |
| 8678 | .total_size = 64, |
| 8679 | .page_size = 256, |
| 8680 | .feature_bits = FEATURE_WRSR_WREN, |
| 8681 | .tested = TEST_UNTESTED, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 8682 | .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] | 8683 | .probe_timing = TIMING_ZERO, |
| 8684 | .block_erasers = |
| 8685 | { |
| 8686 | { |
| 8687 | .eraseblocks = { {4 * 1024, 16} }, |
| 8688 | .block_erase = spi_block_erase_d7, |
| 8689 | }, { |
| 8690 | .eraseblocks = { {32 * 1024, 2} }, |
| 8691 | .block_erase = spi_block_erase_d8, |
| 8692 | }, { |
| 8693 | .eraseblocks = { {64 * 1024, 1} }, |
| 8694 | .block_erase = spi_block_erase_c7, |
| 8695 | } |
| 8696 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8697 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8698 | .unlock = spi_disable_blockprotect, |
| 8699 | .write = spi_chip_write_256, |
| 8700 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8701 | .voltage = {2700, 3600}, |
| 8702 | }, |
| 8703 | |
| 8704 | { |
| 8705 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8706 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8707 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 8708 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8709 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8710 | .total_size = 128, |
| 8711 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8712 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 8713 | .tested = TEST_OK_PREW, |
| 8714 | .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] | 8715 | .probe_timing = TIMING_ZERO, |
| 8716 | .block_erasers = |
| 8717 | { |
| 8718 | { |
| 8719 | .eraseblocks = { {4 * 1024, 32} }, |
| 8720 | .block_erase = spi_block_erase_d7, |
| 8721 | }, { |
| 8722 | .eraseblocks = { {32 * 1024, 4} }, |
| 8723 | .block_erase = spi_block_erase_d8, |
| 8724 | }, { |
| 8725 | .eraseblocks = { {128 * 1024, 1} }, |
| 8726 | .block_erase = spi_block_erase_c7, |
| 8727 | } |
| 8728 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8729 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8730 | .unlock = spi_disable_blockprotect, |
| 8731 | .write = spi_chip_write_256, |
| 8732 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8733 | .voltage = {2700, 3600}, |
| 8734 | }, |
| 8735 | |
| 8736 | { |
| 8737 | .vendor = "PMC", |
| 8738 | .name = "Pm25LV010A", |
| 8739 | .bustype = BUS_SPI, |
| 8740 | .manufacture_id = PMC_ID, |
| 8741 | .model_id = PMC_PM25LV010, |
| 8742 | .total_size = 128, |
| 8743 | .page_size = 256, |
| 8744 | .feature_bits = FEATURE_WRSR_WREN, |
| 8745 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8746 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8747 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8748 | .block_erasers = |
| 8749 | { |
| 8750 | { |
| 8751 | .eraseblocks = { {4 * 1024, 32} }, |
| 8752 | .block_erase = spi_block_erase_d7, |
| 8753 | }, { |
| 8754 | .eraseblocks = { {32 * 1024, 4} }, |
| 8755 | .block_erase = spi_block_erase_d8, |
| 8756 | }, { |
| 8757 | .eraseblocks = { {128 * 1024, 1} }, |
| 8758 | .block_erase = spi_block_erase_c7, |
| 8759 | } |
| 8760 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8761 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8762 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8763 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8764 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8765 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8766 | }, |
| 8767 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8768 | { |
| 8769 | .vendor = "PMC", |
| 8770 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8771 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8772 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8773 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8774 | .total_size = 256, |
| 8775 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8776 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8777 | .tested = TEST_UNTESTED, |
| 8778 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8779 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8780 | .block_erasers = |
| 8781 | { |
| 8782 | { |
| 8783 | .eraseblocks = { {4 * 1024, 64} }, |
| 8784 | .block_erase = spi_block_erase_d7, |
| 8785 | }, { |
| 8786 | .eraseblocks = { {64 * 1024, 4} }, |
| 8787 | .block_erase = spi_block_erase_d8, |
| 8788 | }, { |
| 8789 | .eraseblocks = { {256 * 1024, 1} }, |
| 8790 | .block_erase = spi_block_erase_c7, |
| 8791 | } |
| 8792 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8793 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8794 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8795 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8796 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8797 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8798 | }, |
| 8799 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8800 | { |
| 8801 | .vendor = "PMC", |
| 8802 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8803 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8804 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8805 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8806 | .total_size = 512, |
| 8807 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8808 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 8809 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8810 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8811 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8812 | .block_erasers = |
| 8813 | { |
| 8814 | { |
| 8815 | .eraseblocks = { {4 * 1024, 128} }, |
| 8816 | .block_erase = spi_block_erase_d7, |
| 8817 | }, { |
| 8818 | .eraseblocks = { {64 * 1024, 8} }, |
| 8819 | .block_erase = spi_block_erase_d8, |
| 8820 | }, { |
| 8821 | .eraseblocks = { {512 * 1024, 1} }, |
| 8822 | .block_erase = spi_block_erase_c7, |
| 8823 | } |
| 8824 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8825 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8826 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8827 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8828 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8829 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8830 | }, |
| 8831 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8832 | { |
| 8833 | .vendor = "PMC", |
| 8834 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8835 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8836 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8837 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8838 | .total_size = 1024, |
| 8839 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8840 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8841 | .tested = TEST_UNTESTED, |
| 8842 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8843 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8844 | .block_erasers = |
| 8845 | { |
| 8846 | { |
| 8847 | .eraseblocks = { {4 * 1024, 256} }, |
| 8848 | .block_erase = spi_block_erase_d7, |
| 8849 | }, { |
| 8850 | .eraseblocks = { {4 * 1024, 256} }, |
| 8851 | .block_erase = spi_block_erase_20, |
| 8852 | }, { |
| 8853 | .eraseblocks = { {64 * 1024, 16} }, |
| 8854 | .block_erase = spi_block_erase_d8, |
| 8855 | }, { |
| 8856 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8857 | .block_erase = spi_block_erase_60, |
| 8858 | }, { |
| 8859 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8860 | .block_erase = spi_block_erase_c7, |
| 8861 | } |
| 8862 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8863 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8864 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8865 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8866 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8867 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8868 | }, |
| 8869 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8870 | { |
| 8871 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8872 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8873 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8874 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8875 | .model_id = PMC_PM25LV016B, |
| 8876 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8877 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8878 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8879 | .tested = TEST_UNTESTED, |
| 8880 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8881 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8882 | .block_erasers = |
| 8883 | { |
| 8884 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8885 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8886 | .block_erase = spi_block_erase_d7, |
| 8887 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8888 | .eraseblocks = { {4 * 1024, 512} }, |
| 8889 | .block_erase = spi_block_erase_20, |
| 8890 | }, { |
| 8891 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8892 | .block_erase = spi_block_erase_d8, |
| 8893 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8894 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8895 | .block_erase = spi_block_erase_60, |
| 8896 | }, { |
| 8897 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8898 | .block_erase = spi_block_erase_c7, |
| 8899 | } |
| 8900 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8901 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8902 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8903 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8904 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8905 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8906 | }, |
| 8907 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8908 | { |
| 8909 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8910 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8911 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8912 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8913 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8914 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8915 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8916 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8917 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8918 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8919 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8920 | .block_erasers = |
| 8921 | { |
| 8922 | { |
| 8923 | .eraseblocks = { |
| 8924 | {128 * 1024, 1}, |
| 8925 | {96 * 1024, 1}, |
| 8926 | {8 * 1024, 2}, |
| 8927 | {16 * 1024, 1}, |
| 8928 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8929 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8930 | }, { |
| 8931 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8932 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8933 | }, |
| 8934 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8935 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8936 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8937 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8938 | }, |
| 8939 | |
| 8940 | { |
| 8941 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8942 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8943 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8944 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8945 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8946 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8947 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8948 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8949 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8950 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8951 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8952 | .block_erasers = |
| 8953 | { |
| 8954 | { |
| 8955 | .eraseblocks = { |
| 8956 | {16 * 1024, 1}, |
| 8957 | {8 * 1024, 2}, |
| 8958 | {96 * 1024, 1}, |
| 8959 | {128 * 1024, 1}, |
| 8960 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8961 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8962 | }, { |
| 8963 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8964 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8965 | }, |
| 8966 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8967 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8968 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8969 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8970 | }, |
| 8971 | |
| 8972 | { |
| 8973 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8974 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8975 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8976 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8977 | .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] | 8978 | .total_size = 128, |
| 8979 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8980 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8981 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8982 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8983 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8984 | .block_erasers = |
| 8985 | { |
| 8986 | { |
| 8987 | .eraseblocks = { {4 * 1024, 32} }, |
| 8988 | .block_erase = erase_sector_jedec, |
| 8989 | }, { |
| 8990 | .eraseblocks = { {64 * 1024, 2} }, |
| 8991 | .block_erase = erase_block_jedec, |
| 8992 | }, { |
| 8993 | .eraseblocks = { {128 * 1024, 1} }, |
| 8994 | .block_erase = erase_chip_block_jedec, |
| 8995 | } |
| 8996 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8997 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8998 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8999 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 9000 | }, |
| 9001 | |
| 9002 | { |
| 9003 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9004 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9005 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9006 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9007 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9008 | .total_size = 256, |
| 9009 | .page_size = 4096, |
| 9010 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 9011 | .tested = TEST_UNTESTED, |
| 9012 | .probe = probe_jedec, |
| 9013 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 9014 | .block_erasers = |
| 9015 | { |
| 9016 | { |
| 9017 | .eraseblocks = { {4 * 1024, 64} }, |
| 9018 | .block_erase = erase_sector_jedec, |
| 9019 | }, { |
| 9020 | .eraseblocks = { {64 * 1024, 4} }, |
| 9021 | .block_erase = erase_block_jedec, |
| 9022 | }, { |
| 9023 | .eraseblocks = { {256 * 1024, 1} }, |
| 9024 | .block_erase = erase_chip_block_jedec, |
| 9025 | } |
| 9026 | }, |
| 9027 | .write = write_jedec_1, |
| 9028 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9029 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9030 | }, |
| 9031 | |
| 9032 | { |
| 9033 | .vendor = "PMC", |
| 9034 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9035 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9036 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9037 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9038 | .total_size = 512, |
| 9039 | .page_size = 4096, |
| 9040 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9041 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9042 | .probe = probe_jedec, |
| 9043 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 9044 | .block_erasers = |
| 9045 | { |
| 9046 | { |
| 9047 | .eraseblocks = { {4 * 1024, 128} }, |
| 9048 | .block_erase = erase_sector_jedec, |
| 9049 | }, { |
| 9050 | .eraseblocks = { {64 * 1024, 8} }, |
| 9051 | .block_erase = erase_block_jedec, |
| 9052 | }, { |
| 9053 | .eraseblocks = { {512 * 1024, 1} }, |
| 9054 | .block_erase = erase_chip_block_jedec, |
| 9055 | } |
| 9056 | }, |
| 9057 | .write = write_jedec_1, |
| 9058 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9059 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9060 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 9061 | |
| 9062 | { |
| 9063 | .vendor = "PMC", |
| 9064 | .name = "Pm39LV512", |
| 9065 | .bustype = BUS_PARALLEL, |
| 9066 | .manufacture_id = PMC_ID_NOPREFIX, |
| 9067 | .model_id = PMC_PM39LV512, |
| 9068 | .total_size = 64, |
| 9069 | .page_size = 4096, |
| 9070 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 9071 | .tested = TEST_OK_PREW, |
| 9072 | .probe = probe_jedec, |
| 9073 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 9074 | .block_erasers = |
| 9075 | { |
| 9076 | { |
| 9077 | .eraseblocks = { {4 * 1024, 16} }, |
| 9078 | .block_erase = erase_sector_jedec, |
| 9079 | }, { |
| 9080 | .eraseblocks = { {64 * 1024, 1} }, |
| 9081 | .block_erase = erase_block_jedec, |
| 9082 | }, { |
| 9083 | .eraseblocks = { {64 * 1024, 1} }, |
| 9084 | .block_erase = erase_chip_block_jedec, |
| 9085 | } |
| 9086 | }, |
| 9087 | .write = write_jedec_1, |
| 9088 | .read = read_memmapped, |
| 9089 | .voltage = {2700, 3600}, |
| 9090 | }, |
| 9091 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9092 | { |
| 9093 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9094 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9095 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9096 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9097 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9098 | .total_size = 256, |
| 9099 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9100 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 9101 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 9102 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9103 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9104 | .block_erasers = |
| 9105 | { |
| 9106 | { |
| 9107 | .eraseblocks = { {4 * 1024, 64} }, |
| 9108 | .block_erase = erase_sector_jedec, |
| 9109 | }, { |
| 9110 | .eraseblocks = { {16 * 1024, 16} }, |
| 9111 | .block_erase = erase_block_jedec, |
| 9112 | }, { |
| 9113 | .eraseblocks = { {256 * 1024, 1} }, |
| 9114 | .block_erase = erase_chip_block_jedec, |
| 9115 | } |
| 9116 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 9117 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 9118 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9119 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9120 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9121 | }, |
| 9122 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9123 | { |
| 9124 | .vendor = "PMC", |
| 9125 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9126 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9127 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9128 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9129 | .total_size = 512, |
| 9130 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9131 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 9132 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 9133 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9134 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9135 | .block_erasers = |
| 9136 | { |
| 9137 | { |
| 9138 | .eraseblocks = { {4 * 1024, 128} }, |
| 9139 | .block_erase = erase_sector_jedec, |
| 9140 | }, { |
| 9141 | .eraseblocks = { {64 * 1024, 8} }, |
| 9142 | .block_erase = erase_block_jedec, |
| 9143 | }, { |
| 9144 | .eraseblocks = { {512 * 1024, 1} }, |
| 9145 | .block_erase = erase_chip_block_jedec, |
| 9146 | } |
| 9147 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 9148 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 9149 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9150 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9151 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9152 | }, |
| 9153 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9154 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9155 | .vendor = "Sanyo", |
Stefan Tauner | 33491b8 | 2014-05-18 21:36:04 +0000 | [diff] [blame] | 9156 | .name = "LE25FW406A", |
| 9157 | .bustype = BUS_SPI, |
| 9158 | .manufacture_id = SANYO_ID, |
| 9159 | .model_id = SANYO_LE25FW406A, |
| 9160 | .total_size = 512, |
| 9161 | .page_size = 256, |
| 9162 | .feature_bits = FEATURE_WRSR_WREN, |
| 9163 | .tested = TEST_OK_PREW, |
| 9164 | .probe = probe_spi_res2, |
| 9165 | .probe_timing = TIMING_ZERO, |
| 9166 | .block_erasers = { |
| 9167 | { |
| 9168 | .eraseblocks = { {4 * 1024, 128} }, |
| 9169 | .block_erase = spi_block_erase_d7, |
| 9170 | }, { |
| 9171 | .eraseblocks = { {64 * 1024, 8} }, |
| 9172 | .block_erase = spi_block_erase_d8, |
| 9173 | }, { |
| 9174 | .eraseblocks = { {512 * 1024, 1} }, |
| 9175 | .block_erase = spi_block_erase_c7, |
| 9176 | } |
| 9177 | }, |
| 9178 | .printlock = spi_prettyprint_status_register_plain, |
| 9179 | .unlock = spi_disable_blockprotect, |
| 9180 | .write = spi_chip_write_256, |
| 9181 | .read = spi_chip_read, |
| 9182 | .voltage = {2700, 3600}, |
| 9183 | }, |
| 9184 | |
| 9185 | { |
| 9186 | .vendor = "Sanyo", |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 9187 | .name = "LE25FU406B", |
| 9188 | .bustype = BUS_SPI, |
| 9189 | .manufacture_id = SANYO_ID, |
| 9190 | .model_id = SANYO_LE25FU406B, |
| 9191 | .total_size = 512, |
| 9192 | .page_size = 256, |
| 9193 | .feature_bits = FEATURE_WRSR_WREN, |
| 9194 | .tested = TEST_OK_PREW, |
| 9195 | .probe = probe_spi_res2, |
| 9196 | .probe_timing = TIMING_ZERO, |
| 9197 | .block_erasers = { |
| 9198 | { |
| 9199 | .eraseblocks = { {4 * 1024, 128} }, |
| 9200 | .block_erase = spi_block_erase_d7, |
| 9201 | }, { |
| 9202 | .eraseblocks = { {64 * 1024, 8} }, |
| 9203 | .block_erase = spi_block_erase_d8, |
| 9204 | }, { |
| 9205 | .eraseblocks = { {512 * 1024, 1} }, |
| 9206 | .block_erase = spi_block_erase_c7, |
| 9207 | } |
| 9208 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9209 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 9210 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9211 | .write = spi_chip_write_256, |
| 9212 | .read = spi_chip_read, |
| 9213 | .voltage = {2300, 3600}, |
| 9214 | }, |
| 9215 | |
| 9216 | { |
| 9217 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9218 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9219 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9220 | .manufacture_id = SANYO_ID, |
| 9221 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9222 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9223 | .page_size = 256, |
| 9224 | .tested = TEST_UNTESTED, |
| 9225 | .probe = probe_spi_rdid, |
| 9226 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9227 | .block_erasers = |
| 9228 | { |
| 9229 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9230 | .eraseblocks = { {256, 1024} }, |
| 9231 | .block_erase = spi_block_erase_db, |
| 9232 | }, { |
| 9233 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9234 | .block_erase = spi_block_erase_d8, |
| 9235 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9236 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9237 | .block_erase = spi_block_erase_c7, |
| 9238 | } |
| 9239 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9240 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9241 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9242 | .write = spi_chip_write_256, |
| 9243 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9244 | .voltage = {2700, 3600}, |
| 9245 | }, |
| 9246 | |
| 9247 | { |
| 9248 | .vendor = "Sanyo", |
| 9249 | .name = "LE25FW403A", |
| 9250 | .bustype = BUS_SPI, |
| 9251 | .manufacture_id = SANYO_ID, |
| 9252 | .model_id = SANYO_LE25FW403A, |
| 9253 | .total_size = 512, |
| 9254 | .page_size = 256, |
| 9255 | .tested = TEST_UNTESTED, |
| 9256 | .probe = probe_spi_rdid, |
| 9257 | .probe_timing = TIMING_ZERO, |
| 9258 | .block_erasers = { |
| 9259 | { |
| 9260 | .eraseblocks = { {256, 2 * 1024} }, |
| 9261 | .block_erase = spi_block_erase_db, |
| 9262 | }, { |
| 9263 | .eraseblocks = { {64 * 1024, 8} }, |
| 9264 | .block_erase = spi_block_erase_d8, |
| 9265 | }, { |
| 9266 | .eraseblocks = { {512 * 1024, 1} }, |
| 9267 | .block_erase = spi_block_erase_c7, |
| 9268 | } |
| 9269 | }, |
| 9270 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9271 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9272 | .write = spi_chip_write_256, |
| 9273 | .read = spi_chip_read, |
| 9274 | .voltage = {2700, 3600}, |
| 9275 | }, |
| 9276 | |
| 9277 | { |
| 9278 | .vendor = "Sanyo", |
| 9279 | .name = "LE25FW418A", |
| 9280 | .bustype = BUS_SPI, |
| 9281 | .manufacture_id = SANYO_ID, |
| 9282 | .model_id = SANYO_LE25FW418A, |
| 9283 | .total_size = 512, |
| 9284 | .page_size = 256, |
| 9285 | .feature_bits = FEATURE_WRSR_WREN, |
| 9286 | .tested = TEST_UNTESTED, |
| 9287 | .probe = probe_spi_res2, |
| 9288 | .probe_timing = TIMING_ZERO, |
| 9289 | .block_erasers = { |
| 9290 | { |
| 9291 | .eraseblocks = { {4 * 1024, 128} }, |
| 9292 | .block_erase = spi_block_erase_d7, |
| 9293 | }, { |
| 9294 | .eraseblocks = { {64 * 1024, 8} }, |
| 9295 | .block_erase = spi_block_erase_d8, |
| 9296 | }, { |
| 9297 | .eraseblocks = { {512 * 1024, 1} }, |
| 9298 | .block_erase = spi_block_erase_c7, |
| 9299 | } |
| 9300 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9301 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9302 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9303 | .write = spi_chip_write_256, |
| 9304 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 9305 | .voltage = {2700, 3600}, |
| 9306 | }, |
| 9307 | |
| 9308 | { |
| 9309 | .vendor = "Sanyo", |
| 9310 | .name = "LE25FW806", |
| 9311 | .bustype = BUS_SPI, |
| 9312 | .manufacture_id = SANYO_ID, |
| 9313 | .model_id = SANYO_LE25FW806, |
| 9314 | .total_size = 1024, |
| 9315 | .page_size = 256, |
| 9316 | .feature_bits = FEATURE_WRSR_WREN, |
| 9317 | .tested = TEST_UNTESTED, |
| 9318 | .probe = probe_spi_res2, |
| 9319 | .probe_timing = TIMING_ZERO, |
| 9320 | .block_erasers = { |
| 9321 | { |
| 9322 | .eraseblocks = { {4 * 1024, 256} }, |
| 9323 | .block_erase = spi_block_erase_20, |
| 9324 | }, { |
| 9325 | .eraseblocks = { {4 * 1024, 256} }, |
| 9326 | .block_erase = spi_block_erase_d7, |
| 9327 | }, { |
| 9328 | .eraseblocks = { {64 * 1024, 16} }, |
| 9329 | .block_erase = spi_block_erase_d8, |
| 9330 | }, { |
| 9331 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9332 | .block_erase = spi_block_erase_c7, |
| 9333 | } |
| 9334 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9335 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9336 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9337 | .write = spi_chip_write_256, |
| 9338 | .read = spi_chip_read, |
| 9339 | .voltage = {2700, 3600}, |
| 9340 | }, |
| 9341 | |
| 9342 | { |
| 9343 | .vendor = "Sanyo", |
| 9344 | .name = "LE25FW808", |
| 9345 | .bustype = BUS_SPI, |
| 9346 | .manufacture_id = SANYO_ID, |
| 9347 | .model_id = SANYO_LE25FW808, |
| 9348 | .total_size = 1024, |
| 9349 | .page_size = 256, |
| 9350 | .feature_bits = FEATURE_WRSR_WREN, |
| 9351 | .tested = TEST_UNTESTED, |
| 9352 | .probe = probe_spi_res2, |
| 9353 | .probe_timing = TIMING_ZERO, |
| 9354 | .block_erasers = { |
| 9355 | { |
| 9356 | .eraseblocks = { {8 * 1024, 128} }, |
| 9357 | .block_erase = spi_block_erase_d7, |
| 9358 | }, { |
| 9359 | .eraseblocks = { {64 * 1024, 16} }, |
| 9360 | .block_erase = spi_block_erase_d8, |
| 9361 | }, { |
| 9362 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9363 | .block_erase = spi_block_erase_c7, |
| 9364 | } |
| 9365 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9366 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9367 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9368 | .write = spi_chip_write_256, |
| 9369 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 9370 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9371 | }, |
| 9372 | |
| 9373 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9374 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 9375 | .name = "LH28F008BJT-BTLZ1", |
| 9376 | .bustype = BUS_PARALLEL, |
| 9377 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 9378 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 9379 | .total_size = 1024, |
| 9380 | .page_size = 64 * 1024, |
| 9381 | .tested = TEST_OK_PREW, |
| 9382 | .probe = probe_82802ab, |
| 9383 | .probe_timing = TIMING_ZERO, |
| 9384 | .block_erasers = |
| 9385 | { |
| 9386 | { |
| 9387 | .eraseblocks = { |
| 9388 | {8 * 1024, 8}, |
| 9389 | {64 * 1024, 15} |
| 9390 | }, |
| 9391 | .block_erase = erase_block_82802ab, |
| 9392 | }, { |
| 9393 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9394 | .block_erase = erase_sector_49lfxxxc, |
| 9395 | } |
| 9396 | }, |
| 9397 | .unlock = unlock_lh28f008bjt, |
| 9398 | .write = write_82802ab, |
| 9399 | .read = read_memmapped, |
| 9400 | .voltage = {2700, 3600}, |
| 9401 | }, |
| 9402 | |
| 9403 | { |
| 9404 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9405 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9406 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9407 | .manufacture_id = SHARP_ID, |
| 9408 | .model_id = SHARP_LHF00L04, |
| 9409 | .total_size = 1024, |
| 9410 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9411 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9412 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9413 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9414 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9415 | .block_erasers = |
| 9416 | { |
| 9417 | { |
| 9418 | .eraseblocks = { |
| 9419 | {64 * 1024, 15}, |
| 9420 | {8 * 1024, 8} |
| 9421 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9422 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9423 | }, { |
| 9424 | .eraseblocks = { |
| 9425 | {1024 * 1024, 1} |
| 9426 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9427 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9428 | }, |
| 9429 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9430 | .unlock = unlock_82802ab, |
| 9431 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9432 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9433 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9434 | }, |
| 9435 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9436 | { |
| 9437 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9438 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9439 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9440 | .manufacture_id = SPANSION_ID, |
| 9441 | .model_id = SPANSION_S25FL004A, |
| 9442 | .total_size = 512, |
| 9443 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9444 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9445 | .tested = TEST_UNTESTED, |
| 9446 | .probe = probe_spi_rdid, |
| 9447 | .probe_timing = TIMING_ZERO, |
| 9448 | .block_erasers = |
| 9449 | { |
| 9450 | { |
| 9451 | .eraseblocks = { {64 * 1024, 8} }, |
| 9452 | .block_erase = spi_block_erase_d8, |
| 9453 | }, { |
| 9454 | .eraseblocks = { {512 * 1024, 1} }, |
| 9455 | .block_erase = spi_block_erase_c7, |
| 9456 | } |
| 9457 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9458 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9459 | .unlock = spi_disable_blockprotect, |
| 9460 | .write = spi_chip_write_256, |
| 9461 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9462 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9463 | }, |
| 9464 | |
| 9465 | { |
| 9466 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9467 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9468 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9469 | .manufacture_id = SPANSION_ID, |
| 9470 | .model_id = SPANSION_S25FL008A, |
| 9471 | .total_size = 1024, |
| 9472 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9473 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9474 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9475 | .probe = probe_spi_rdid, |
| 9476 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9477 | .block_erasers = |
| 9478 | { |
| 9479 | { |
| 9480 | .eraseblocks = { {64 * 1024, 16} }, |
| 9481 | .block_erase = spi_block_erase_d8, |
| 9482 | }, { |
| 9483 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9484 | .block_erase = spi_block_erase_c7, |
| 9485 | } |
| 9486 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9487 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9488 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9489 | .write = spi_chip_write_256, |
| 9490 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9491 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9492 | }, |
| 9493 | |
| 9494 | { |
| 9495 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9496 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9497 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9498 | .manufacture_id = SPANSION_ID, |
| 9499 | .model_id = SPANSION_S25FL016A, |
| 9500 | .total_size = 2048, |
| 9501 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9502 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9503 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9504 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9505 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9506 | .block_erasers = |
| 9507 | { |
| 9508 | { |
| 9509 | .eraseblocks = { {64 * 1024, 32} }, |
| 9510 | .block_erase = spi_block_erase_d8, |
| 9511 | }, { |
| 9512 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9513 | .block_erase = spi_block_erase_c7, |
| 9514 | } |
| 9515 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9516 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9517 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9518 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9519 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9520 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9521 | }, |
| 9522 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9523 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9524 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9525 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9526 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9527 | .manufacture_id = SPANSION_ID, |
| 9528 | .model_id = SPANSION_S25FL032A, |
| 9529 | .total_size = 4096, |
| 9530 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9531 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9532 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9533 | .probe = probe_spi_rdid, |
| 9534 | .probe_timing = TIMING_ZERO, |
| 9535 | .block_erasers = |
| 9536 | { |
| 9537 | { |
| 9538 | .eraseblocks = { {64 * 1024, 64} }, |
| 9539 | .block_erase = spi_block_erase_d8, |
| 9540 | }, { |
| 9541 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9542 | .block_erase = spi_block_erase_c7, |
| 9543 | } |
| 9544 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9545 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9546 | .unlock = spi_disable_blockprotect, |
| 9547 | .write = spi_chip_write_256, |
| 9548 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9549 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9550 | }, |
| 9551 | |
| 9552 | { |
| 9553 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9554 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9555 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9556 | .manufacture_id = SPANSION_ID, |
| 9557 | .model_id = SPANSION_S25FL064A, |
| 9558 | .total_size = 8192, |
| 9559 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9560 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9561 | .tested = TEST_OK_PREW, |
| 9562 | .probe = probe_spi_rdid, |
| 9563 | .probe_timing = TIMING_ZERO, |
| 9564 | .block_erasers = |
| 9565 | { |
| 9566 | { |
| 9567 | .eraseblocks = { {64 * 1024, 128} }, |
| 9568 | .block_erase = spi_block_erase_d8, |
| 9569 | }, { |
| 9570 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9571 | .block_erase = spi_block_erase_c7, |
| 9572 | } |
| 9573 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9574 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9575 | .unlock = spi_disable_blockprotect, |
| 9576 | .write = spi_chip_write_256, |
| 9577 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9578 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9579 | }, |
| 9580 | |
| 9581 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9582 | .vendor = "Spansion", |
| 9583 | .name = "S25FL204K", |
| 9584 | .bustype = BUS_SPI, |
| 9585 | .manufacture_id = SPANSION_ID, |
| 9586 | .model_id = SPANSION_S25FL204, |
| 9587 | .total_size = 512, |
| 9588 | .page_size = 256, |
| 9589 | .feature_bits = FEATURE_WRSR_WREN, |
| 9590 | .tested = TEST_UNTESTED, |
| 9591 | .probe = probe_spi_rdid, |
| 9592 | .probe_timing = TIMING_ZERO, |
| 9593 | .block_erasers = { |
| 9594 | { |
| 9595 | .eraseblocks = { {4 * 1024, 128} }, |
| 9596 | .block_erase = spi_block_erase_20, |
| 9597 | }, { |
| 9598 | .eraseblocks = { {64 * 1024, 8} }, |
| 9599 | .block_erase = spi_block_erase_d8, |
| 9600 | }, { |
| 9601 | .eraseblocks = { { 512 * 1024, 1} }, |
| 9602 | .block_erase = spi_block_erase_60, |
| 9603 | }, { |
| 9604 | .eraseblocks = { { 512 * 1024, 1} }, |
| 9605 | .block_erase = spi_block_erase_c7, |
| 9606 | } |
| 9607 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9608 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9609 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9610 | .write = spi_chip_write_256, |
| 9611 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9612 | .voltage = {2700, 3600}, |
| 9613 | }, |
| 9614 | |
| 9615 | { |
| 9616 | .vendor = "Spansion", |
| 9617 | .name = "S25FL208K", |
| 9618 | .bustype = BUS_SPI, |
| 9619 | .manufacture_id = SPANSION_ID, |
| 9620 | .model_id = SPANSION_S25FL208, |
| 9621 | .total_size = 1024, |
| 9622 | .page_size = 256, |
| 9623 | .feature_bits = FEATURE_WRSR_WREN, |
| 9624 | .tested = TEST_UNTESTED, |
| 9625 | .probe = probe_spi_rdid, |
| 9626 | .probe_timing = TIMING_ZERO, |
| 9627 | .block_erasers = { |
| 9628 | { |
| 9629 | .eraseblocks = { {4 * 1024, 256} }, |
| 9630 | .block_erase = spi_block_erase_20, |
| 9631 | }, { |
| 9632 | .eraseblocks = { {64 * 1024, 16} }, |
| 9633 | .block_erase = spi_block_erase_d8, |
| 9634 | }, { |
| 9635 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 9636 | .block_erase = spi_block_erase_60, |
| 9637 | }, { |
| 9638 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 9639 | .block_erase = spi_block_erase_c7, |
| 9640 | } |
| 9641 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9642 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9643 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9644 | .write = spi_chip_write_256, |
| 9645 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9646 | .voltage = {2700, 3600}, |
| 9647 | }, |
| 9648 | |
| 9649 | { |
| 9650 | .vendor = "Spansion", |
| 9651 | .name = "S25FL116K/S25FL216K", |
| 9652 | .bustype = BUS_SPI, |
| 9653 | .manufacture_id = SPANSION_ID, |
| 9654 | .model_id = SPANSION_S25FL216, |
| 9655 | .total_size = 2048, |
| 9656 | .page_size = 256, |
| 9657 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 9658 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9659 | .tested = TEST_UNTESTED, |
| 9660 | .probe = probe_spi_rdid, |
| 9661 | .probe_timing = TIMING_ZERO, |
| 9662 | .block_erasers = { |
| 9663 | { |
| 9664 | .eraseblocks = { {4 * 1024, 512} }, |
| 9665 | .block_erase = spi_block_erase_20, |
| 9666 | }, { |
| 9667 | .eraseblocks = { {64 * 1024, 32} }, |
| 9668 | .block_erase = spi_block_erase_d8, |
| 9669 | }, { |
| 9670 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 9671 | .block_erase = spi_block_erase_60, |
| 9672 | }, { |
| 9673 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 9674 | .block_erase = spi_block_erase_c7, |
| 9675 | } |
| 9676 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9677 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9678 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9679 | .write = spi_chip_write_256, |
| 9680 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9681 | .voltage = {2700, 3600}, |
| 9682 | }, |
| 9683 | |
| 9684 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 9685 | .vendor = "Spansion", |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 9686 | .name = "S25FL132K", |
| 9687 | .bustype = BUS_SPI, |
| 9688 | .manufacture_id = SPANSION_ID, |
| 9689 | .model_id = SPANSION_S25FL132K, |
| 9690 | .total_size = 4096, |
| 9691 | .page_size = 256, |
| 9692 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 9693 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9694 | .tested = TEST_UNTESTED, |
| 9695 | .probe = probe_spi_rdid, |
| 9696 | .probe_timing = TIMING_ZERO, |
| 9697 | .block_erasers = { |
| 9698 | { |
| 9699 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9700 | .block_erase = spi_block_erase_20, |
| 9701 | }, { |
| 9702 | .eraseblocks = { {64 * 1024, 64} }, |
| 9703 | .block_erase = spi_block_erase_d8, |
| 9704 | }, { |
| 9705 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 9706 | .block_erase = spi_block_erase_60, |
| 9707 | }, { |
| 9708 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 9709 | .block_erase = spi_block_erase_c7, |
| 9710 | } |
| 9711 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9712 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 9713 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9714 | .write = spi_chip_write_256, |
| 9715 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9716 | .voltage = {2700, 3600}, |
| 9717 | }, |
| 9718 | |
| 9719 | { |
| 9720 | .vendor = "Spansion", |
| 9721 | .name = "S25FL164K", |
| 9722 | .bustype = BUS_SPI, |
| 9723 | .manufacture_id = SPANSION_ID, |
| 9724 | .model_id = SPANSION_S25FL164K, |
| 9725 | .total_size = 8192, |
| 9726 | .page_size = 256, |
| 9727 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 9728 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9729 | .tested = TEST_OK_PREW, |
| 9730 | .probe = probe_spi_rdid, |
| 9731 | .probe_timing = TIMING_ZERO, |
| 9732 | .block_erasers = { |
| 9733 | { |
| 9734 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9735 | .block_erase = spi_block_erase_20, |
| 9736 | }, { |
| 9737 | .eraseblocks = { {64 * 1024, 128} }, |
| 9738 | .block_erase = spi_block_erase_d8, |
| 9739 | }, { |
| 9740 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 9741 | .block_erase = spi_block_erase_60, |
| 9742 | }, { |
| 9743 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 9744 | .block_erase = spi_block_erase_c7, |
| 9745 | } |
| 9746 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9747 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 9748 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9749 | .write = spi_chip_write_256, |
| 9750 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9751 | .voltage = {2700, 3600}, |
| 9752 | }, |
| 9753 | |
| 9754 | { |
| 9755 | .vendor = "Spansion", |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 9756 | .name = "S25FL128S......0", /* uniform 256kB sectors */ |
| 9757 | .bustype = BUS_SPI, |
| 9758 | .manufacture_id = SPANSION_ID, |
| 9759 | .model_id = SPANSION_S25FL128, |
| 9760 | .total_size = 16384, |
| 9761 | .page_size = 256, |
| 9762 | /* supports 4B addressing */ |
| 9763 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 9764 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9765 | .tested = TEST_UNTESTED, |
| 9766 | .probe = probe_spi_rdid, |
| 9767 | .probe_timing = TIMING_ZERO, |
| 9768 | .block_erasers = { |
| 9769 | { |
| 9770 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9771 | .block_erase = spi_block_erase_20, |
| 9772 | }, { |
| 9773 | .eraseblocks = { {256 * 1024, 64} }, |
| 9774 | .block_erase = spi_block_erase_d8, |
| 9775 | }, { |
| 9776 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 9777 | .block_erase = spi_block_erase_60, |
| 9778 | }, { |
| 9779 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 9780 | .block_erase = spi_block_erase_c7, |
| 9781 | } |
| 9782 | }, |
| 9783 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 9784 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 9785 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9786 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9787 | .voltage = {2700, 3600}, |
| 9788 | }, |
| 9789 | |
| 9790 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9791 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 9792 | .name = "SST25LF020A", |
| 9793 | .bustype = BUS_SPI, |
| 9794 | .manufacture_id = SST_ID, |
| 9795 | .model_id = SST_SST25VF020_REMS, |
| 9796 | .total_size = 256, |
| 9797 | .page_size = 256, |
| 9798 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9799 | .tested = TEST_OK_PREW, |
| 9800 | .probe = probe_spi_rems, |
| 9801 | .probe_timing = TIMING_ZERO, |
| 9802 | .block_erasers = |
| 9803 | { |
| 9804 | { |
| 9805 | .eraseblocks = { {4 * 1024, 64} }, |
| 9806 | .block_erase = spi_block_erase_20, |
| 9807 | }, { |
| 9808 | .eraseblocks = { {32 * 1024, 8} }, |
| 9809 | .block_erase = spi_block_erase_52, |
| 9810 | }, { |
| 9811 | .eraseblocks = { {256 * 1024, 1} }, |
| 9812 | .block_erase = spi_block_erase_60, |
| 9813 | }, |
| 9814 | }, |
| 9815 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9816 | .unlock = spi_disable_blockprotect, |
| 9817 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9818 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9819 | .voltage = {2700, 3600}, |
| 9820 | }, |
| 9821 | |
| 9822 | { |
| 9823 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9824 | .name = "SST25LF040A", |
| 9825 | .bustype = BUS_SPI, |
| 9826 | .manufacture_id = SST_ID, |
| 9827 | .model_id = SST_SST25VF040_REMS, |
| 9828 | .total_size = 512, |
| 9829 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9830 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 9831 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9832 | .probe = probe_spi_res2, |
| 9833 | .probe_timing = TIMING_ZERO, |
| 9834 | .block_erasers = |
| 9835 | { |
| 9836 | { |
| 9837 | .eraseblocks = { {4 * 1024, 128} }, |
| 9838 | .block_erase = spi_block_erase_20, |
| 9839 | }, { |
| 9840 | .eraseblocks = { {32 * 1024, 16} }, |
| 9841 | .block_erase = spi_block_erase_52, |
| 9842 | }, { |
| 9843 | .eraseblocks = { {512 * 1024, 1} }, |
| 9844 | .block_erase = spi_block_erase_60, |
| 9845 | }, |
| 9846 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9847 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9848 | .unlock = spi_disable_blockprotect, |
| 9849 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9850 | .read = spi_chip_read, |
| 9851 | .voltage = {3000, 3600}, |
| 9852 | }, |
| 9853 | |
| 9854 | { |
| 9855 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9856 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9857 | .bustype = BUS_SPI, |
| 9858 | .manufacture_id = SST_ID, |
| 9859 | .model_id = SST_SST25VF080_REMS, |
| 9860 | .total_size = 1024, |
| 9861 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9862 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9863 | .tested = TEST_UNTESTED, |
| 9864 | .probe = probe_spi_res2, |
| 9865 | .probe_timing = TIMING_ZERO, |
| 9866 | .block_erasers = |
| 9867 | { |
| 9868 | { |
| 9869 | .eraseblocks = { {4 * 1024, 256} }, |
| 9870 | .block_erase = spi_block_erase_20, |
| 9871 | }, { |
| 9872 | .eraseblocks = { {32 * 1024, 32} }, |
| 9873 | .block_erase = spi_block_erase_52, |
| 9874 | }, { |
| 9875 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9876 | .block_erase = spi_block_erase_60, |
| 9877 | }, |
| 9878 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9879 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9880 | .unlock = spi_disable_blockprotect, |
| 9881 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9882 | .read = spi_chip_read, |
| 9883 | .voltage = {3000, 3600}, |
| 9884 | }, |
| 9885 | |
| 9886 | { |
| 9887 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9888 | .name = "SST25VF512A", |
| 9889 | .bustype = BUS_SPI, |
| 9890 | .manufacture_id = SST_ID, |
| 9891 | .model_id = SST_SST25VF512A_REMS, |
| 9892 | .total_size = 64, |
| 9893 | .page_size = 256, |
| 9894 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9895 | .tested = TEST_OK_PREW, |
| 9896 | .probe = probe_spi_rems, |
| 9897 | .probe_timing = TIMING_ZERO, |
| 9898 | .block_erasers = |
| 9899 | { |
| 9900 | { |
| 9901 | .eraseblocks = { {4 * 1024, 16} }, |
| 9902 | .block_erase = spi_block_erase_20, |
| 9903 | }, { |
| 9904 | .eraseblocks = { {32 * 1024, 2} }, |
| 9905 | .block_erase = spi_block_erase_52, |
| 9906 | }, { |
| 9907 | .eraseblocks = { {32 * 1024, 2} }, |
| 9908 | .block_erase = spi_block_erase_d8, |
| 9909 | }, { |
| 9910 | .eraseblocks = { {64 * 1024, 1} }, |
| 9911 | .block_erase = spi_block_erase_60, |
| 9912 | }, { |
| 9913 | .eraseblocks = { {64 * 1024, 1} }, |
| 9914 | .block_erase = spi_block_erase_c7, |
| 9915 | }, |
| 9916 | }, |
| 9917 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9918 | .unlock = spi_disable_blockprotect, |
| 9919 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9920 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9921 | .voltage = {2700, 3600}, |
| 9922 | }, |
| 9923 | |
| 9924 | { |
| 9925 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9926 | .name = "SST25VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9927 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9928 | .manufacture_id = SST_ID, |
| 9929 | .model_id = SST_SST25VF010_REMS, |
| 9930 | .total_size = 128, |
| 9931 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9932 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9933 | .tested = TEST_OK_PREW, |
| 9934 | .probe = probe_spi_rems, |
| 9935 | .probe_timing = TIMING_ZERO, |
| 9936 | .block_erasers = |
| 9937 | { |
| 9938 | { |
| 9939 | .eraseblocks = { {4 * 1024, 32} }, |
| 9940 | .block_erase = spi_block_erase_20, |
| 9941 | }, { |
| 9942 | .eraseblocks = { {32 * 1024, 4} }, |
| 9943 | .block_erase = spi_block_erase_52, |
| 9944 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9945 | .eraseblocks = { {32 * 1024, 4} }, |
| 9946 | .block_erase = spi_block_erase_d8, |
| 9947 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9948 | .eraseblocks = { {128 * 1024, 1} }, |
| 9949 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9950 | }, { |
| 9951 | .eraseblocks = { {128 * 1024, 1} }, |
| 9952 | .block_erase = spi_block_erase_c7, |
| 9953 | }, |
| 9954 | }, |
| 9955 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9956 | .unlock = spi_disable_blockprotect, |
| 9957 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9958 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9959 | .voltage = {2700, 3600}, |
| 9960 | }, |
| 9961 | |
| 9962 | { |
| 9963 | .vendor = "SST", |
| 9964 | .name = "SST25VF020", |
| 9965 | .bustype = BUS_SPI, |
| 9966 | .manufacture_id = SST_ID, |
| 9967 | .model_id = SST_SST25VF020_REMS, |
| 9968 | .total_size = 256, |
| 9969 | .page_size = 256, |
| 9970 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9971 | .tested = TEST_UNTESTED, |
| 9972 | .probe = probe_spi_rems, |
| 9973 | .probe_timing = TIMING_ZERO, |
| 9974 | .block_erasers = |
| 9975 | { |
| 9976 | { |
| 9977 | .eraseblocks = { {4 * 1024, 64} }, |
| 9978 | .block_erase = spi_block_erase_20, |
| 9979 | }, { |
| 9980 | .eraseblocks = { {32 * 1024, 8} }, |
| 9981 | .block_erase = spi_block_erase_52, |
| 9982 | }, { |
| 9983 | .eraseblocks = { {256 * 1024, 1} }, |
| 9984 | .block_erase = spi_block_erase_60, |
| 9985 | }, |
| 9986 | }, |
| 9987 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9988 | .unlock = spi_disable_blockprotect, |
| 9989 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9990 | .read = spi_chip_read, /* only */ |
| 9991 | .voltage = {2700, 3600}, |
| 9992 | }, |
| 9993 | |
| 9994 | { |
| 9995 | .vendor = "SST", |
| 9996 | .name = "SST25VF020B", |
| 9997 | .bustype = BUS_SPI, |
| 9998 | .manufacture_id = SST_ID, |
| 9999 | .model_id = SST_SST25VF020B, |
| 10000 | .total_size = 256, |
| 10001 | .page_size = 256, |
| 10002 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10003 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 10004 | .probe = probe_spi_rdid, |
| 10005 | .probe_timing = TIMING_ZERO, |
| 10006 | .block_erasers = |
| 10007 | { |
| 10008 | { |
| 10009 | .eraseblocks = { {4 * 1024, 64} }, |
| 10010 | .block_erase = spi_block_erase_20, |
| 10011 | }, { |
| 10012 | .eraseblocks = { {32 * 1024, 8} }, |
| 10013 | .block_erase = spi_block_erase_52, |
| 10014 | }, { |
| 10015 | .eraseblocks = { {64 * 1024, 4} }, |
| 10016 | .block_erase = spi_block_erase_d8, |
| 10017 | }, { |
| 10018 | .eraseblocks = { {256 * 1024, 1} }, |
| 10019 | .block_erase = spi_block_erase_60, |
| 10020 | }, { |
| 10021 | .eraseblocks = { {256 * 1024, 1} }, |
| 10022 | .block_erase = spi_block_erase_c7, |
| 10023 | }, |
| 10024 | }, |
| 10025 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 10026 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 10027 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 10028 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10029 | .voltage = {2700, 3600}, |
| 10030 | }, |
| 10031 | |
| 10032 | { |
| 10033 | .vendor = "SST", |
| 10034 | .name = "SST25VF040", |
| 10035 | .bustype = BUS_SPI, |
| 10036 | .manufacture_id = SST_ID, |
| 10037 | .model_id = SST_SST25VF040_REMS, |
| 10038 | .total_size = 512, |
| 10039 | .page_size = 256, |
| 10040 | .feature_bits = FEATURE_WRSR_EWSR, |
| 10041 | .tested = TEST_OK_PR, |
| 10042 | .probe = probe_spi_rems, |
| 10043 | .probe_timing = TIMING_ZERO, |
| 10044 | .block_erasers = |
| 10045 | { |
| 10046 | { |
| 10047 | .eraseblocks = { {4 * 1024, 128} }, |
| 10048 | .block_erase = spi_block_erase_20, |
| 10049 | }, { |
| 10050 | .eraseblocks = { {32 * 1024, 16} }, |
| 10051 | .block_erase = spi_block_erase_52, |
| 10052 | }, { |
| 10053 | .eraseblocks = { {512 * 1024, 1} }, |
| 10054 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10055 | }, |
| 10056 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10057 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10058 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 10059 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 10060 | .read = spi_chip_read, |
| 10061 | .voltage = {2700, 3600}, |
| 10062 | }, |
| 10063 | |
| 10064 | { |
| 10065 | .vendor = "SST", |
| 10066 | .name = "SST25VF040B", |
| 10067 | .bustype = BUS_SPI, |
| 10068 | .manufacture_id = SST_ID, |
| 10069 | .model_id = SST_SST25VF040B, |
| 10070 | .total_size = 512, |
| 10071 | .page_size = 256, |
| 10072 | .feature_bits = FEATURE_WRSR_EWSR, |
| 10073 | .tested = TEST_OK_PREW, |
| 10074 | .probe = probe_spi_rdid, |
| 10075 | .probe_timing = TIMING_ZERO, |
| 10076 | .block_erasers = |
| 10077 | { |
| 10078 | { |
| 10079 | .eraseblocks = { {4 * 1024, 128} }, |
| 10080 | .block_erase = spi_block_erase_20, |
| 10081 | }, { |
| 10082 | .eraseblocks = { {32 * 1024, 16} }, |
| 10083 | .block_erase = spi_block_erase_52, |
| 10084 | }, { |
| 10085 | .eraseblocks = { {64 * 1024, 8} }, |
| 10086 | .block_erase = spi_block_erase_d8, |
| 10087 | }, { |
| 10088 | .eraseblocks = { {512 * 1024, 1} }, |
| 10089 | .block_erase = spi_block_erase_60, |
| 10090 | }, { |
| 10091 | .eraseblocks = { {512 * 1024, 1} }, |
| 10092 | .block_erase = spi_block_erase_c7, |
| 10093 | }, |
| 10094 | }, |
| 10095 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 10096 | .unlock = spi_disable_blockprotect, |
| 10097 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 10098 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10099 | .voltage = {2700, 3600}, |
| 10100 | }, |
| 10101 | |
| 10102 | { |
| 10103 | .vendor = "SST", |
| 10104 | .name = "SST25VF040B.REMS", |
| 10105 | .bustype = BUS_SPI, |
| 10106 | .manufacture_id = SST_ID, |
| 10107 | .model_id = SST_SST25VF040B_REMS, |
| 10108 | .total_size = 512, |
| 10109 | .page_size = 256, |
| 10110 | .feature_bits = FEATURE_WRSR_EWSR, |
| 10111 | .tested = TEST_OK_PREW, |
| 10112 | .probe = probe_spi_rems, |
| 10113 | .probe_timing = TIMING_ZERO, |
| 10114 | .block_erasers = |
| 10115 | { |
| 10116 | { |
| 10117 | .eraseblocks = { {4 * 1024, 128} }, |
| 10118 | .block_erase = spi_block_erase_20, |
| 10119 | }, { |
| 10120 | .eraseblocks = { {32 * 1024, 16} }, |
| 10121 | .block_erase = spi_block_erase_52, |
| 10122 | }, { |
| 10123 | .eraseblocks = { {64 * 1024, 8} }, |
| 10124 | .block_erase = spi_block_erase_d8, |
| 10125 | }, { |
| 10126 | .eraseblocks = { {512 * 1024, 1} }, |
| 10127 | .block_erase = spi_block_erase_60, |
| 10128 | }, { |
| 10129 | .eraseblocks = { {512 * 1024, 1} }, |
| 10130 | .block_erase = spi_block_erase_c7, |
| 10131 | }, |
| 10132 | }, |
| 10133 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 10134 | .unlock = spi_disable_blockprotect, |
| 10135 | .write = spi_aai_write, |
| 10136 | .read = spi_chip_read, |
| 10137 | .voltage = {2700, 3600}, |
| 10138 | }, |
| 10139 | |
| 10140 | { |
| 10141 | .vendor = "SST", |
| 10142 | .name = "SST25VF080B", |
| 10143 | .bustype = BUS_SPI, |
| 10144 | .manufacture_id = SST_ID, |
| 10145 | .model_id = SST_SST25VF080B, |
| 10146 | .total_size = 1024, |
| 10147 | .page_size = 256, |
| 10148 | .feature_bits = FEATURE_WRSR_EWSR, |
| 10149 | .tested = TEST_OK_PREW, |
| 10150 | .probe = probe_spi_rdid, |
| 10151 | .probe_timing = TIMING_ZERO, |
| 10152 | .block_erasers = |
| 10153 | { |
| 10154 | { |
| 10155 | .eraseblocks = { {4 * 1024, 256} }, |
| 10156 | .block_erase = spi_block_erase_20, |
| 10157 | }, { |
| 10158 | .eraseblocks = { {32 * 1024, 32} }, |
| 10159 | .block_erase = spi_block_erase_52, |
| 10160 | }, { |
| 10161 | .eraseblocks = { {64 * 1024, 16} }, |
| 10162 | .block_erase = spi_block_erase_d8, |
| 10163 | }, { |
| 10164 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10165 | .block_erase = spi_block_erase_60, |
| 10166 | }, { |
| 10167 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10168 | .block_erase = spi_block_erase_c7, |
| 10169 | }, |
| 10170 | }, |
| 10171 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 10172 | .unlock = spi_disable_blockprotect, |
| 10173 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10174 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10175 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10176 | }, |
| 10177 | |
| 10178 | { |
| 10179 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10180 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10181 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10182 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10183 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10184 | .total_size = 2048, |
| 10185 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10186 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10187 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10188 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10189 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10190 | .block_erasers = |
| 10191 | { |
| 10192 | { |
| 10193 | .eraseblocks = { {4 * 1024, 512} }, |
| 10194 | .block_erase = spi_block_erase_20, |
| 10195 | }, { |
| 10196 | .eraseblocks = { {32 * 1024, 64} }, |
| 10197 | .block_erase = spi_block_erase_52, |
| 10198 | }, { |
| 10199 | .eraseblocks = { {64 * 1024, 32} }, |
| 10200 | .block_erase = spi_block_erase_d8, |
| 10201 | }, { |
| 10202 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10203 | .block_erase = spi_block_erase_60, |
| 10204 | }, { |
| 10205 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10206 | .block_erase = spi_block_erase_c7, |
| 10207 | }, |
| 10208 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10209 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10210 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 10211 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10212 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10213 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10214 | }, |
| 10215 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10216 | { |
| 10217 | .vendor = "SST", |
| 10218 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10219 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10220 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10221 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10222 | .total_size = 4096, |
| 10223 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10224 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 10225 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10226 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10227 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10228 | .block_erasers = |
| 10229 | { |
| 10230 | { |
| 10231 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10232 | .block_erase = spi_block_erase_20, |
| 10233 | }, { |
| 10234 | .eraseblocks = { {32 * 1024, 128} }, |
| 10235 | .block_erase = spi_block_erase_52, |
| 10236 | }, { |
| 10237 | .eraseblocks = { {64 * 1024, 64} }, |
| 10238 | .block_erase = spi_block_erase_d8, |
| 10239 | }, { |
| 10240 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10241 | .block_erase = spi_block_erase_60, |
| 10242 | }, { |
| 10243 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10244 | .block_erase = spi_block_erase_c7, |
| 10245 | }, |
| 10246 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10247 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10248 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 10249 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10250 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10251 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10252 | }, |
| 10253 | |
| 10254 | { |
| 10255 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10256 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10257 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10258 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10259 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10260 | .total_size = 8192, |
| 10261 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10262 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 10263 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10264 | .probe = probe_spi_rdid, |
| 10265 | .probe_timing = TIMING_ZERO, |
| 10266 | .block_erasers = |
| 10267 | { |
| 10268 | { |
| 10269 | .eraseblocks = { {4 * 1024, 2048} }, |
| 10270 | .block_erase = spi_block_erase_20, |
| 10271 | }, { |
| 10272 | .eraseblocks = { {32 * 1024, 256} }, |
| 10273 | .block_erase = spi_block_erase_52, |
| 10274 | }, { |
| 10275 | .eraseblocks = { {64 * 1024, 128} }, |
| 10276 | .block_erase = spi_block_erase_d8, |
| 10277 | }, { |
| 10278 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10279 | .block_erase = spi_block_erase_60, |
| 10280 | }, { |
| 10281 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10282 | .block_erase = spi_block_erase_c7, |
| 10283 | }, |
| 10284 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10285 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10286 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 10287 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10288 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10289 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10290 | }, |
| 10291 | |
| 10292 | { |
| 10293 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10294 | .name = "SST25WF512", |
| 10295 | .bustype = BUS_SPI, |
| 10296 | .manufacture_id = SST_ID, |
| 10297 | .model_id = SST_SST25WF512, |
| 10298 | .total_size = 64, |
| 10299 | .page_size = 256, |
| 10300 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10301 | .tested = TEST_UNTESTED, |
| 10302 | .probe = probe_spi_rdid, |
| 10303 | .probe_timing = TIMING_ZERO, |
| 10304 | .block_erasers = |
| 10305 | { |
| 10306 | { |
| 10307 | .eraseblocks = { {4 * 1024, 16} }, |
| 10308 | .block_erase = spi_block_erase_20, |
| 10309 | }, { |
| 10310 | .eraseblocks = { {32 * 1024, 2} }, |
| 10311 | .block_erase = spi_block_erase_52, |
| 10312 | }, { |
| 10313 | .eraseblocks = { {1024 * 64, 1} }, |
| 10314 | .block_erase = spi_block_erase_60, |
| 10315 | }, { |
| 10316 | .eraseblocks = { {1024 * 64, 1} }, |
| 10317 | .block_erase = spi_block_erase_c7, |
| 10318 | }, |
| 10319 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10320 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10321 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10322 | .write = spi_aai_write, |
| 10323 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10324 | .voltage = {1650, 1950}, |
| 10325 | }, |
| 10326 | |
| 10327 | { |
| 10328 | .vendor = "SST", |
| 10329 | .name = "SST25WF010", |
| 10330 | .bustype = BUS_SPI, |
| 10331 | .manufacture_id = SST_ID, |
| 10332 | .model_id = SST_SST25WF010, |
| 10333 | .total_size = 128, |
| 10334 | .page_size = 256, |
| 10335 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10336 | .tested = TEST_UNTESTED, |
| 10337 | .probe = probe_spi_rdid, |
| 10338 | .probe_timing = TIMING_ZERO, |
| 10339 | .block_erasers = |
| 10340 | { |
| 10341 | { |
| 10342 | .eraseblocks = { {4 * 1024, 32} }, |
| 10343 | .block_erase = spi_block_erase_20, |
| 10344 | }, { |
| 10345 | .eraseblocks = { {32 * 1024, 4} }, |
| 10346 | .block_erase = spi_block_erase_52, |
| 10347 | }, { |
| 10348 | .eraseblocks = { {1024 * 128, 1} }, |
| 10349 | .block_erase = spi_block_erase_60, |
| 10350 | }, { |
| 10351 | .eraseblocks = { {1024 * 128, 1} }, |
| 10352 | .block_erase = spi_block_erase_c7, |
| 10353 | }, |
| 10354 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10355 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10356 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10357 | .write = spi_aai_write, |
| 10358 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10359 | .voltage = {1650, 1950}, |
| 10360 | }, |
| 10361 | |
| 10362 | { |
| 10363 | .vendor = "SST", |
| 10364 | .name = "SST25WF020", |
| 10365 | .bustype = BUS_SPI, |
| 10366 | .manufacture_id = SST_ID, |
| 10367 | .model_id = SST_SST25WF020, |
| 10368 | .total_size = 256, |
| 10369 | .page_size = 256, |
| 10370 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10371 | .tested = TEST_UNTESTED, |
| 10372 | .probe = probe_spi_rdid, |
| 10373 | .probe_timing = TIMING_ZERO, |
| 10374 | .block_erasers = |
| 10375 | { |
| 10376 | { |
| 10377 | .eraseblocks = { {4 * 1024, 64} }, |
| 10378 | .block_erase = spi_block_erase_20, |
| 10379 | }, { |
| 10380 | .eraseblocks = { {32 * 1024, 8} }, |
| 10381 | .block_erase = spi_block_erase_52, |
| 10382 | }, { |
| 10383 | .eraseblocks = { {64 * 1024, 4} }, |
| 10384 | .block_erase = spi_block_erase_d8, |
| 10385 | }, { |
| 10386 | .eraseblocks = { {1024 * 256, 1} }, |
| 10387 | .block_erase = spi_block_erase_60, |
| 10388 | }, { |
| 10389 | .eraseblocks = { {1024 * 256, 1} }, |
| 10390 | .block_erase = spi_block_erase_c7, |
| 10391 | }, |
| 10392 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10393 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10394 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10395 | .write = spi_aai_write, |
| 10396 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10397 | .voltage = {1650, 1950}, |
| 10398 | }, |
| 10399 | |
| 10400 | { |
| 10401 | .vendor = "SST", |
| 10402 | .name = "SST25WF040", |
| 10403 | .bustype = BUS_SPI, |
| 10404 | .manufacture_id = SST_ID, |
| 10405 | .model_id = SST_SST25WF040, |
| 10406 | .total_size = 512, |
| 10407 | .page_size = 256, |
| 10408 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10409 | .tested = TEST_UNTESTED, |
| 10410 | .probe = probe_spi_rdid, |
| 10411 | .probe_timing = TIMING_ZERO, |
| 10412 | .block_erasers = |
| 10413 | { |
| 10414 | { |
| 10415 | .eraseblocks = { {4 * 1024, 128} }, |
| 10416 | .block_erase = spi_block_erase_20, |
| 10417 | }, { |
| 10418 | .eraseblocks = { {32 * 1024, 16} }, |
| 10419 | .block_erase = spi_block_erase_52, |
| 10420 | }, { |
| 10421 | .eraseblocks = { {64 * 1024, 8} }, |
| 10422 | .block_erase = spi_block_erase_d8, |
| 10423 | }, { |
| 10424 | .eraseblocks = { {1024 * 512, 1} }, |
| 10425 | .block_erase = spi_block_erase_60, |
| 10426 | }, { |
| 10427 | .eraseblocks = { {1024 * 512, 1} }, |
| 10428 | .block_erase = spi_block_erase_c7, |
| 10429 | }, |
| 10430 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10431 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10432 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 10433 | .write = spi_aai_write, |
| 10434 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10435 | .voltage = {1650, 1950}, |
| 10436 | }, |
| 10437 | |
| 10438 | { |
| 10439 | .vendor = "SST", |
| 10440 | .name = "SST25WF080", |
| 10441 | .bustype = BUS_SPI, |
| 10442 | .manufacture_id = SST_ID, |
| 10443 | .model_id = SST_SST25WF080, |
| 10444 | .total_size = 1024, |
| 10445 | .page_size = 256, |
| 10446 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10447 | .tested = TEST_OK_PREW, |
| 10448 | .probe = probe_spi_rdid, |
| 10449 | .probe_timing = TIMING_ZERO, |
| 10450 | .block_erasers = |
| 10451 | { |
| 10452 | { |
| 10453 | .eraseblocks = { {4 * 1024, 256} }, |
| 10454 | .block_erase = spi_block_erase_20, |
| 10455 | }, { |
| 10456 | .eraseblocks = { {32 * 1024, 32} }, |
| 10457 | .block_erase = spi_block_erase_52, |
| 10458 | }, { |
| 10459 | .eraseblocks = { {64 * 1024, 16} }, |
| 10460 | .block_erase = spi_block_erase_d8, |
| 10461 | }, { |
| 10462 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10463 | .block_erase = spi_block_erase_60, |
| 10464 | }, { |
| 10465 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10466 | .block_erase = spi_block_erase_c7, |
| 10467 | }, |
| 10468 | }, |
| 10469 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 10470 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10471 | .write = spi_aai_write, |
| 10472 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10473 | .voltage = {1650, 1950}, |
| 10474 | }, |
| 10475 | |
| 10476 | { |
| 10477 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10478 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10479 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10480 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10481 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10482 | .total_size = 512, |
| 10483 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10484 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10485 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10486 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10487 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10488 | .block_erasers = |
| 10489 | { |
| 10490 | { |
| 10491 | .eraseblocks = { {128, 4096} }, |
| 10492 | .block_erase = erase_sector_28sf040, |
| 10493 | }, { |
| 10494 | .eraseblocks = { {512 * 1024, 1} }, |
| 10495 | .block_erase = erase_chip_28sf040, |
| 10496 | } |
| 10497 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10498 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10499 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10500 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10501 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10502 | }, |
| 10503 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10504 | { |
| 10505 | .vendor = "SST", |
| 10506 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10507 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10508 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10509 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10510 | .total_size = 128, |
| 10511 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10512 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10513 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10514 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10515 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10516 | .block_erasers = |
| 10517 | { |
| 10518 | { |
| 10519 | .eraseblocks = { {128 * 1024, 1} }, |
| 10520 | .block_erase = erase_chip_block_jedec, |
| 10521 | } |
| 10522 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10523 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10524 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10525 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10526 | }, |
| 10527 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10528 | { |
| 10529 | .vendor = "SST", |
| 10530 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10531 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10532 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10533 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10534 | .total_size = 128, |
| 10535 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10536 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10537 | .tested = TEST_UNTESTED, |
| 10538 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10539 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10540 | .block_erasers = |
| 10541 | { |
| 10542 | { |
| 10543 | .eraseblocks = { {128 * 1024, 1} }, |
| 10544 | .block_erase = erase_chip_block_jedec, |
| 10545 | } |
| 10546 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10547 | .write = write_jedec, |
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 = "SST", |
| 10554 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10555 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10556 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10557 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10558 | .total_size = 256, |
| 10559 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10560 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10561 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10562 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10563 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10564 | .block_erasers = |
| 10565 | { |
| 10566 | { |
| 10567 | .eraseblocks = { {256 * 1024, 1} }, |
| 10568 | .block_erase = erase_chip_block_jedec, |
| 10569 | } |
| 10570 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10571 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10572 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10573 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10574 | }, |
| 10575 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10576 | { |
| 10577 | .vendor = "SST", |
| 10578 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10579 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10580 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10581 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10582 | .total_size = 256, |
| 10583 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10584 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10585 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10586 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10587 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10588 | .block_erasers = |
| 10589 | { |
| 10590 | { |
| 10591 | .eraseblocks = { {256 * 1024, 1} }, |
| 10592 | .block_erase = erase_chip_block_jedec, |
| 10593 | } |
| 10594 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10595 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10596 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10597 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10598 | }, |
| 10599 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10600 | { |
| 10601 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10602 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10603 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10604 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10605 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10606 | .total_size = 64, |
| 10607 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10608 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 10609 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10610 | .probe = probe_jedec, |
| 10611 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10612 | .block_erasers = |
| 10613 | { |
| 10614 | { |
| 10615 | .eraseblocks = { {4 * 1024, 16} }, |
| 10616 | .block_erase = erase_sector_jedec, |
| 10617 | }, { |
| 10618 | .eraseblocks = { {64 * 1024, 1} }, |
| 10619 | .block_erase = erase_chip_block_jedec, |
| 10620 | } |
| 10621 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10622 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10623 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10624 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10625 | }, |
| 10626 | |
| 10627 | { |
| 10628 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10629 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10630 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10631 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10632 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10633 | .total_size = 128, |
| 10634 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10635 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10636 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10637 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 10638 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10639 | .block_erasers = |
| 10640 | { |
| 10641 | { |
| 10642 | .eraseblocks = { {4 * 1024, 32} }, |
| 10643 | .block_erase = erase_sector_jedec, |
| 10644 | }, { |
| 10645 | .eraseblocks = { {128 * 1024, 1} }, |
| 10646 | .block_erase = erase_chip_block_jedec, |
| 10647 | } |
| 10648 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10649 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10650 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10651 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10652 | }, |
| 10653 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10654 | { |
| 10655 | .vendor = "SST", |
| 10656 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10657 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10658 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10659 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10660 | .total_size = 256, |
| 10661 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10662 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 10663 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10664 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10665 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10666 | .block_erasers = |
| 10667 | { |
| 10668 | { |
| 10669 | .eraseblocks = { {4 * 1024, 64} }, |
| 10670 | .block_erase = erase_sector_jedec, |
| 10671 | }, { |
| 10672 | .eraseblocks = { {256 * 1024, 1} }, |
| 10673 | .block_erase = erase_chip_block_jedec, |
| 10674 | } |
| 10675 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10676 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10677 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10678 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10679 | }, |
| 10680 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10681 | { |
| 10682 | .vendor = "SST", |
| 10683 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10684 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10685 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10686 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10687 | .total_size = 512, |
| 10688 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10689 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10690 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10691 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10692 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10693 | .block_erasers = |
| 10694 | { |
| 10695 | { |
| 10696 | .eraseblocks = { {4 * 1024, 128} }, |
| 10697 | .block_erase = erase_sector_jedec, |
| 10698 | }, { |
| 10699 | .eraseblocks = { {512 * 1024, 1} }, |
| 10700 | .block_erase = erase_chip_block_jedec, |
| 10701 | } |
| 10702 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10703 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10704 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10705 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10706 | }, |
| 10707 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10708 | { |
| 10709 | .vendor = "SST", |
| 10710 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10711 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10712 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10713 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10714 | .total_size = 64, |
| 10715 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10716 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 10717 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10718 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10719 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10720 | .block_erasers = |
| 10721 | { |
| 10722 | { |
| 10723 | .eraseblocks = { {4 * 1024, 16} }, |
| 10724 | .block_erase = erase_sector_jedec, |
| 10725 | }, { |
| 10726 | .eraseblocks = { {64 * 1024, 1} }, |
| 10727 | .block_erase = erase_chip_block_jedec, |
| 10728 | } |
| 10729 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10730 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10731 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10732 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10733 | }, |
| 10734 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10735 | { |
| 10736 | .vendor = "SST", |
| 10737 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10738 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10739 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10740 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10741 | .total_size = 128, |
| 10742 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10743 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 10744 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10745 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10746 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10747 | .block_erasers = |
| 10748 | { |
| 10749 | { |
| 10750 | .eraseblocks = { {4 * 1024, 32} }, |
| 10751 | .block_erase = erase_sector_jedec, |
| 10752 | }, { |
| 10753 | .eraseblocks = { {128 * 1024, 1} }, |
| 10754 | .block_erase = erase_chip_block_jedec, |
| 10755 | } |
| 10756 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10757 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10758 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10759 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10760 | }, |
| 10761 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10762 | { |
| 10763 | .vendor = "SST", |
| 10764 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10765 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10766 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10767 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10768 | .total_size = 256, |
| 10769 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10770 | .feature_bits = FEATURE_EITHER_RESET, |
| 10771 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10772 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10773 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10774 | .block_erasers = |
| 10775 | { |
| 10776 | { |
| 10777 | .eraseblocks = { {4 * 1024, 64} }, |
| 10778 | .block_erase = erase_sector_jedec, |
| 10779 | }, { |
| 10780 | .eraseblocks = { {256 * 1024, 1} }, |
| 10781 | .block_erase = erase_chip_block_jedec, |
| 10782 | } |
| 10783 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10784 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10785 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10786 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10787 | }, |
| 10788 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10789 | { |
| 10790 | .vendor = "SST", |
| 10791 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10792 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10793 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10794 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10795 | .total_size = 512, |
| 10796 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10797 | .feature_bits = FEATURE_EITHER_RESET, |
| 10798 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10799 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10800 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10801 | .block_erasers = |
| 10802 | { |
| 10803 | { |
| 10804 | .eraseblocks = { {4 * 1024, 128} }, |
| 10805 | .block_erase = erase_sector_jedec, |
| 10806 | }, { |
| 10807 | .eraseblocks = { {512 * 1024, 1} }, |
| 10808 | .block_erase = erase_chip_block_jedec, |
| 10809 | } |
| 10810 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10811 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10812 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10813 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 10814 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10815 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10816 | { |
| 10817 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10818 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10819 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 10820 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10821 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10822 | .total_size = 1024, |
| 10823 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10824 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10825 | .tested = TEST_UNTESTED, |
| 10826 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10827 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10828 | .block_erasers = |
| 10829 | { |
| 10830 | { |
| 10831 | .eraseblocks = { {4 * 1024, 256} }, |
| 10832 | .block_erase = erase_sector_jedec, |
| 10833 | }, { |
| 10834 | .eraseblocks = { {64 * 1024, 16} }, |
| 10835 | .block_erase = erase_block_jedec, |
| 10836 | }, { |
| 10837 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10838 | .block_erase = erase_chip_block_jedec, |
| 10839 | } |
| 10840 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10841 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10842 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10843 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10844 | }, |
| 10845 | |
| 10846 | { |
| 10847 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10848 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10849 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10850 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10851 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10852 | .total_size = 256, |
| 10853 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10854 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 10855 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10856 | .probe = probe_jedec, |
| 10857 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10858 | .block_erasers = |
| 10859 | { |
| 10860 | { |
| 10861 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10862 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10863 | }, { |
| 10864 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10865 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10866 | }, { |
| 10867 | .eraseblocks = { {256 * 1024, 1} }, |
| 10868 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10869 | } |
| 10870 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10871 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10872 | .unlock = unlock_sst_fwhub, |
| 10873 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10874 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10875 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10876 | }, |
| 10877 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10878 | { |
| 10879 | .vendor = "SST", |
| 10880 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10881 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10882 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10883 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10884 | .total_size = 384, |
| 10885 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10886 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10887 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10888 | .probe = probe_jedec, |
| 10889 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10890 | .block_erasers = |
| 10891 | { |
| 10892 | { |
| 10893 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10894 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10895 | }, { |
| 10896 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10897 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10898 | }, { |
| 10899 | .eraseblocks = { {384 * 1024, 1} }, |
| 10900 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10901 | } |
| 10902 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10903 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10904 | .unlock = unlock_sst_fwhub, |
| 10905 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10906 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10907 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10908 | }, |
| 10909 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10910 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10911 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 10912 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 10913 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10914 | .vendor = "SST", |
| 10915 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10916 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10917 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10918 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10919 | .total_size = 512, |
| 10920 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10921 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 10922 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10923 | .probe = probe_jedec, |
| 10924 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10925 | .block_erasers = |
| 10926 | { |
| 10927 | { |
| 10928 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10929 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10930 | }, { |
| 10931 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10932 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10933 | }, { |
| 10934 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10935 | .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] | 10936 | }, |
| 10937 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10938 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10939 | .unlock = unlock_sst_fwhub, |
| 10940 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10941 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10942 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10943 | }, |
| 10944 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10945 | { |
| 10946 | .vendor = "SST", |
| 10947 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10948 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10949 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10950 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10951 | .total_size = 512, |
| 10952 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10953 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10954 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10955 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10956 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10957 | .block_erasers = |
| 10958 | { |
| 10959 | { |
| 10960 | .eraseblocks = { {4 * 1024, 128} }, |
| 10961 | .block_erase = erase_sector_49lfxxxc, |
| 10962 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10963 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10964 | {64 * 1024, 7}, |
| 10965 | {32 * 1024, 1}, |
| 10966 | {8 * 1024, 2}, |
| 10967 | {16 * 1024, 1}, |
| 10968 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10969 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10970 | } |
| 10971 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10972 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10973 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10974 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10975 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10976 | }, |
| 10977 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10978 | { |
| 10979 | .vendor = "SST", |
| 10980 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10981 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10982 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10983 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10984 | .total_size = 1024, |
| 10985 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10986 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10987 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10988 | .probe = probe_jedec, |
| 10989 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10990 | .block_erasers = |
| 10991 | { |
| 10992 | { |
| 10993 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10994 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10995 | }, { |
| 10996 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10997 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10998 | }, { |
| 10999 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11000 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 11001 | } |
| 11002 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11003 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 11004 | .unlock = unlock_sst_fwhub, |
| 11005 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11006 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11007 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11008 | }, |
| 11009 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11010 | { |
| 11011 | .vendor = "SST", |
| 11012 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11013 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11014 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11015 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11016 | .total_size = 1024, |
| 11017 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11018 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11019 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11020 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11021 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11022 | .block_erasers = |
| 11023 | { |
| 11024 | { |
| 11025 | .eraseblocks = { {4 * 1024, 256} }, |
| 11026 | .block_erase = erase_sector_49lfxxxc, |
| 11027 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11028 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11029 | {64 * 1024, 15}, |
| 11030 | {32 * 1024, 1}, |
| 11031 | {8 * 1024, 2}, |
| 11032 | {16 * 1024, 1}, |
| 11033 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 11034 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11035 | } |
| 11036 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 11037 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11038 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11039 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11040 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11041 | }, |
| 11042 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11043 | { |
| 11044 | .vendor = "SST", |
| 11045 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11046 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11047 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11048 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11049 | .total_size = 2048, |
| 11050 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11051 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 11052 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11053 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11054 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11055 | .block_erasers = |
| 11056 | { |
| 11057 | { |
| 11058 | .eraseblocks = { {4 * 1024, 512} }, |
| 11059 | .block_erase = erase_sector_49lfxxxc, |
| 11060 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11061 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11062 | {64 * 1024, 31}, |
| 11063 | {32 * 1024, 1}, |
| 11064 | {8 * 1024, 2}, |
| 11065 | {16 * 1024, 1}, |
| 11066 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 11067 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11068 | } |
| 11069 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 11070 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11071 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11072 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11073 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11074 | }, |
| 11075 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11076 | { |
| 11077 | .vendor = "SST", |
| 11078 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11079 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11080 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11081 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11082 | .total_size = 256, |
| 11083 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11084 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 11085 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11086 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11087 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11088 | .block_erasers = |
| 11089 | { |
| 11090 | { |
| 11091 | .eraseblocks = { {4 * 1024, 64} }, |
| 11092 | .block_erase = erase_sector_jedec, |
| 11093 | }, { |
| 11094 | .eraseblocks = { {16 * 1024, 16} }, |
| 11095 | .block_erase = erase_block_jedec, |
| 11096 | }, { |
| 11097 | .eraseblocks = { {256 * 1024, 1} }, |
| 11098 | .block_erase = NULL, |
| 11099 | } |
| 11100 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11101 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11102 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11103 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 11104 | }, |
| 11105 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11106 | { |
| 11107 | .vendor = "SST", |
| 11108 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11109 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11110 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11111 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11112 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 11113 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11114 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11115 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11116 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11117 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11118 | .block_erasers = |
| 11119 | { |
| 11120 | { |
| 11121 | .eraseblocks = { {4 * 1024, 64} }, |
| 11122 | .block_erase = erase_sector_jedec, |
| 11123 | }, { |
| 11124 | .eraseblocks = { {16 * 1024, 16} }, |
| 11125 | .block_erase = erase_block_jedec, |
| 11126 | }, { |
| 11127 | .eraseblocks = { {256 * 1024, 1} }, |
| 11128 | .block_erase = NULL, |
| 11129 | } |
| 11130 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11131 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11132 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11133 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11134 | }, |
| 11135 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11136 | { |
| 11137 | .vendor = "SST", |
| 11138 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11139 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11140 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11141 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11142 | .total_size = 512, |
| 11143 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11144 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11145 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11146 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11147 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11148 | .block_erasers = |
| 11149 | { |
| 11150 | { |
| 11151 | .eraseblocks = { {4 * 1024, 128} }, |
| 11152 | .block_erase = erase_sector_jedec, |
| 11153 | }, { |
| 11154 | .eraseblocks = { {64 * 1024, 8} }, |
| 11155 | .block_erase = erase_block_jedec, |
| 11156 | }, { |
| 11157 | .eraseblocks = { {512 * 1024, 1} }, |
| 11158 | .block_erase = NULL, |
| 11159 | } |
| 11160 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11161 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11162 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11163 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11164 | }, |
| 11165 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11166 | { |
| 11167 | .vendor = "SST", |
| 11168 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11169 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11170 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11171 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11172 | .total_size = 512, |
| 11173 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 11174 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 11175 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11176 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11177 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11178 | .block_erasers = |
| 11179 | { |
| 11180 | { |
| 11181 | .eraseblocks = { {4 * 1024, 128} }, |
| 11182 | .block_erase = erase_sector_jedec, |
| 11183 | }, { |
| 11184 | .eraseblocks = { {64 * 1024, 8} }, |
| 11185 | .block_erase = erase_block_jedec, |
| 11186 | }, { |
| 11187 | .eraseblocks = { {512 * 1024, 1} }, |
| 11188 | .block_erase = NULL, |
| 11189 | } |
| 11190 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 11191 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11192 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11193 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11194 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11195 | }, |
| 11196 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11197 | { |
| 11198 | .vendor = "SST", |
| 11199 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11200 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11201 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11202 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11203 | .total_size = 1024, |
| 11204 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11205 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 11206 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11207 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11208 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11209 | .block_erasers = |
| 11210 | { |
| 11211 | { |
| 11212 | .eraseblocks = { {4 * 1024, 256} }, |
| 11213 | .block_erase = erase_sector_jedec, |
| 11214 | }, { |
| 11215 | .eraseblocks = { {64 * 1024, 16} }, |
| 11216 | .block_erase = erase_block_jedec, |
| 11217 | }, { |
| 11218 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11219 | .block_erase = NULL, |
| 11220 | } |
| 11221 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11222 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11223 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11224 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11225 | }, |
| 11226 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11227 | { |
| 11228 | .vendor = "SST", |
| 11229 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11230 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11231 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11232 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11233 | .total_size = 2048, |
| 11234 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11235 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11236 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11237 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11238 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11239 | .block_erasers = |
| 11240 | { |
| 11241 | { |
| 11242 | .eraseblocks = { {4 * 1024, 512} }, |
| 11243 | .block_erase = erase_sector_49lfxxxc, |
| 11244 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11245 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11246 | {64 * 1024, 31}, |
| 11247 | {32 * 1024, 1}, |
| 11248 | {8 * 1024, 2}, |
| 11249 | {16 * 1024, 1}, |
| 11250 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 11251 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11252 | } |
| 11253 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 11254 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11255 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11256 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11257 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11258 | }, |
| 11259 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11260 | { |
| 11261 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11262 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11263 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11264 | .manufacture_id = ST_ID, |
| 11265 | .model_id = ST_M29F002B, |
| 11266 | .total_size = 256, |
| 11267 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11268 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11269 | .tested = TEST_UNTESTED, |
| 11270 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11271 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11272 | .block_erasers = |
| 11273 | { |
| 11274 | { |
| 11275 | .eraseblocks = { |
| 11276 | {16 * 1024, 1}, |
| 11277 | {8 * 1024, 2}, |
| 11278 | {32 * 1024, 1}, |
| 11279 | {64 * 1024, 3}, |
| 11280 | }, |
| 11281 | .block_erase = erase_sector_jedec, |
| 11282 | }, { |
| 11283 | .eraseblocks = { {256 * 1024, 1} }, |
| 11284 | .block_erase = erase_chip_block_jedec, |
| 11285 | } |
| 11286 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11287 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11288 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11289 | .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] | 11290 | }, |
| 11291 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11292 | { |
| 11293 | .vendor = "ST", |
| 11294 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11295 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11296 | .manufacture_id = ST_ID, |
| 11297 | .model_id = ST_M29F002T, |
| 11298 | .total_size = 256, |
| 11299 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11300 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11301 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11302 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11303 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11304 | .block_erasers = |
| 11305 | { |
| 11306 | { |
| 11307 | .eraseblocks = { |
| 11308 | {64 * 1024, 3}, |
| 11309 | {32 * 1024, 1}, |
| 11310 | {8 * 1024, 2}, |
| 11311 | {16 * 1024, 1}, |
| 11312 | }, |
| 11313 | .block_erase = erase_sector_jedec, |
| 11314 | }, { |
| 11315 | .eraseblocks = { {256 * 1024, 1} }, |
| 11316 | .block_erase = erase_chip_block_jedec, |
| 11317 | } |
| 11318 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11319 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11320 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11321 | .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] | 11322 | }, |
| 11323 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11324 | { |
| 11325 | .vendor = "ST", |
| 11326 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11327 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11328 | .manufacture_id = ST_ID, |
| 11329 | .model_id = ST_M29F040B, |
| 11330 | .total_size = 512, |
| 11331 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11332 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11333 | .tested = TEST_UNTESTED, |
| 11334 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 11335 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11336 | .block_erasers = |
| 11337 | { |
| 11338 | { |
| 11339 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11340 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11341 | }, { |
| 11342 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11343 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11344 | } |
| 11345 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11346 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11347 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11348 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11349 | }, |
| 11350 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11351 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11352 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11353 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11354 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11355 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11356 | .manufacture_id = ST_ID, |
| 11357 | .model_id = ST_M29F400BB, |
| 11358 | .total_size = 512, |
| 11359 | .page_size = 64 * 1024, |
| 11360 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11361 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11362 | .probe = probe_m29f400bt, |
| 11363 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 11364 | .block_erasers = |
| 11365 | { |
| 11366 | { |
| 11367 | .eraseblocks = { |
| 11368 | {16 * 1024, 1}, |
| 11369 | {8 * 1024, 2}, |
| 11370 | {32 * 1024, 1}, |
| 11371 | {64 * 1024, 7}, |
| 11372 | }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 11373 | .block_erase = erase_block_shifted_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11374 | }, { |
| 11375 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 11376 | .block_erase = erase_chip_block_shifted_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11377 | } |
| 11378 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11379 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11380 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11381 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11382 | }, |
| 11383 | { |
| 11384 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 11385 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11386 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11387 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11388 | .manufacture_id = ST_ID, |
| 11389 | .model_id = ST_M29F400BT, |
| 11390 | .total_size = 512, |
| 11391 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11392 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11393 | .tested = TEST_UNTESTED, |
| 11394 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11395 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11396 | .block_erasers = |
| 11397 | { |
| 11398 | { |
| 11399 | .eraseblocks = { |
| 11400 | {64 * 1024, 7}, |
| 11401 | {32 * 1024, 1}, |
| 11402 | {8 * 1024, 2}, |
| 11403 | {16 * 1024, 1}, |
| 11404 | }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 11405 | .block_erase = erase_block_shifted_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11406 | }, { |
| 11407 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | f2756fa | 2014-06-01 02:21:02 +0000 | [diff] [blame] | 11408 | .block_erase = erase_chip_block_shifted_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11409 | } |
| 11410 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11411 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11412 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11413 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11414 | }, |
| 11415 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11416 | { |
| 11417 | .vendor = "ST", |
| 11418 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11419 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11420 | .manufacture_id = ST_ID, |
| 11421 | .model_id = ST_M29W010B, |
| 11422 | .total_size = 128, |
| 11423 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11424 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11425 | .tested = TEST_UNTESTED, |
| 11426 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11427 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11428 | .block_erasers = |
| 11429 | { |
| 11430 | { |
| 11431 | .eraseblocks = { {16 * 1024, 8}, }, |
| 11432 | .block_erase = erase_sector_jedec, |
| 11433 | }, { |
| 11434 | .eraseblocks = { {128 * 1024, 1} }, |
| 11435 | .block_erase = erase_chip_block_jedec, |
| 11436 | } |
| 11437 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11438 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11439 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11440 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11441 | }, |
| 11442 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11443 | { |
| 11444 | .vendor = "ST", |
| 11445 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11446 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11447 | .manufacture_id = ST_ID, |
| 11448 | .model_id = ST_M29W040B, |
| 11449 | .total_size = 512, |
| 11450 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11451 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11452 | .tested = TEST_UNTESTED, |
| 11453 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11454 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11455 | .block_erasers = |
| 11456 | { |
| 11457 | { |
| 11458 | .eraseblocks = { {64 * 1024, 8}, }, |
| 11459 | .block_erase = erase_sector_jedec, |
| 11460 | }, { |
| 11461 | .eraseblocks = { {512 * 1024, 1} }, |
| 11462 | .block_erase = erase_chip_block_jedec, |
| 11463 | } |
| 11464 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11465 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11466 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11467 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11468 | }, |
| 11469 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11470 | { |
| 11471 | .vendor = "ST", |
| 11472 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11473 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11474 | .manufacture_id = ST_ID, |
| 11475 | .model_id = ST_M29W512B, |
| 11476 | .total_size = 64, |
| 11477 | .page_size = 64 * 1024, |
| 11478 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11479 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11480 | .probe = probe_jedec, |
| 11481 | .probe_timing = TIMING_ZERO, |
| 11482 | .block_erasers = |
| 11483 | { |
| 11484 | { |
| 11485 | .eraseblocks = { {64 * 1024, 1} }, |
| 11486 | .block_erase = erase_chip_block_jedec, |
| 11487 | } |
| 11488 | }, |
| 11489 | .write = write_jedec_1, |
| 11490 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11491 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11492 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 11493 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11494 | { |
| 11495 | .vendor = "ST", |
| 11496 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11497 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11498 | .manufacture_id = ST_ID, |
| 11499 | .model_id = ST_M50FLW040A, |
| 11500 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11501 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11502 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11503 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11504 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11505 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11506 | .block_erasers = |
| 11507 | { |
| 11508 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11509 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11510 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11511 | {64 * 1024, 5}, /* block */ |
| 11512 | {4 * 1024, 16}, /* sector */ |
| 11513 | {4 * 1024, 16}, /* sector */ |
| 11514 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11515 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11516 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11517 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11518 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11519 | } |
| 11520 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11521 | .write = write_82802ab, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11522 | .unlock = unlock_stm50_uniform, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11523 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11524 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11525 | }, |
| 11526 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11527 | { |
| 11528 | .vendor = "ST", |
| 11529 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11530 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11531 | .manufacture_id = ST_ID, |
| 11532 | .model_id = ST_M50FLW040B, |
| 11533 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11534 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11535 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11536 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11537 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11538 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11539 | .block_erasers = |
| 11540 | { |
| 11541 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11542 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11543 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11544 | {4 * 1024, 16}, /* sector */ |
| 11545 | {64 * 1024, 5}, /* block */ |
| 11546 | {4 * 1024, 16}, /* sector */ |
| 11547 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11548 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11549 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11550 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11551 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11552 | } |
| 11553 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11554 | .write = write_82802ab, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11555 | .unlock = unlock_stm50_uniform, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11556 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11557 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11558 | }, |
| 11559 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11560 | { |
| 11561 | .vendor = "ST", |
| 11562 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11563 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11564 | .manufacture_id = ST_ID, |
| 11565 | .model_id = ST_M50FLW080A, |
| 11566 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11567 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11568 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11569 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11570 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11571 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11572 | .block_erasers = |
| 11573 | { |
| 11574 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11575 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11576 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11577 | {64 * 1024, 13}, /* block */ |
| 11578 | {4 * 1024, 16}, /* sector */ |
| 11579 | {4 * 1024, 16}, /* sector */ |
| 11580 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11581 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11582 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11583 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11584 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11585 | } |
| 11586 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11587 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11588 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11589 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11590 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11591 | }, |
| 11592 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11593 | { |
| 11594 | .vendor = "ST", |
| 11595 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11596 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11597 | .manufacture_id = ST_ID, |
| 11598 | .model_id = ST_M50FLW080B, |
| 11599 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11600 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11601 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11602 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11603 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11604 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11605 | .block_erasers = |
| 11606 | { |
| 11607 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11608 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11609 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11610 | {4 * 1024, 16}, /* sector */ |
| 11611 | {64 * 1024, 13}, /* block */ |
| 11612 | {4 * 1024, 16}, /* sector */ |
| 11613 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11614 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11615 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11616 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11617 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11618 | } |
| 11619 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11620 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11621 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11622 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11623 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11624 | }, |
| 11625 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11626 | { |
| 11627 | .vendor = "ST", |
| 11628 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11629 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11630 | .manufacture_id = ST_ID, |
| 11631 | .model_id = ST_M50FW002, |
| 11632 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11633 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11634 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11635 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11636 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11637 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11638 | .block_erasers = |
| 11639 | { |
| 11640 | { |
| 11641 | .eraseblocks = { |
| 11642 | {64 * 1024, 3}, |
| 11643 | {32 * 1024, 1}, |
| 11644 | {8 * 1024, 2}, |
| 11645 | {16 * 1024, 1}, |
| 11646 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11647 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11648 | } |
| 11649 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11650 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11651 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11652 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11653 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11654 | }, |
| 11655 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11656 | { |
| 11657 | .vendor = "ST", |
| 11658 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11659 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11660 | .manufacture_id = ST_ID, |
| 11661 | .model_id = ST_M50FW016, |
| 11662 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11663 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11664 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11665 | .tested = TEST_UNTESTED, |
| 11666 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11667 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11668 | .block_erasers = |
| 11669 | { |
| 11670 | { |
| 11671 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11672 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11673 | } |
| 11674 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11675 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11676 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11677 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11678 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11679 | }, |
| 11680 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11681 | { |
| 11682 | .vendor = "ST", |
| 11683 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11684 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11685 | .manufacture_id = ST_ID, |
| 11686 | .model_id = ST_M50FW040, |
| 11687 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11688 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11689 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11690 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11691 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11692 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11693 | .block_erasers = |
| 11694 | { |
| 11695 | { |
| 11696 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11697 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11698 | } |
| 11699 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11700 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11701 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11702 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11703 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11704 | }, |
| 11705 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11706 | { |
| 11707 | .vendor = "ST", |
| 11708 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11709 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11710 | .manufacture_id = ST_ID, |
| 11711 | .model_id = ST_M50FW080, |
| 11712 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11713 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11714 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11715 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11716 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11717 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11718 | .block_erasers = |
| 11719 | { |
| 11720 | { |
| 11721 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11722 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11723 | } |
| 11724 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11725 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11726 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11727 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11728 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11729 | }, |
| 11730 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11731 | { |
| 11732 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 11733 | .name = "M50LPW080", |
| 11734 | .bustype = BUS_LPC, /* A/A Mux */ |
| 11735 | .manufacture_id = ST_ID, |
| 11736 | .model_id = ST_M50LPW080, |
| 11737 | .total_size = 1024, |
| 11738 | .page_size = 0, |
| 11739 | .feature_bits = FEATURE_REGISTERMAP, |
| 11740 | .tested = TEST_UNTESTED, |
| 11741 | .probe = probe_82802ab, |
| 11742 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11743 | .block_erasers = |
| 11744 | { |
| 11745 | { |
| 11746 | .eraseblocks = { {64 * 1024, 16}, }, |
| 11747 | .block_erase = erase_block_82802ab, |
| 11748 | } |
| 11749 | }, |
| 11750 | .unlock = unlock_stm50_uniform, |
| 11751 | .write = write_82802ab, |
| 11752 | .read = read_memmapped, |
| 11753 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 11754 | }, |
| 11755 | |
| 11756 | { |
| 11757 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11758 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11759 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11760 | .manufacture_id = ST_ID, |
| 11761 | .model_id = ST_M50LPW116, |
| 11762 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11763 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11764 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11765 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11766 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11767 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11768 | .block_erasers = |
| 11769 | { |
| 11770 | { |
| 11771 | .eraseblocks = { |
| 11772 | {4 * 1024, 16}, |
| 11773 | {64 * 1024, 30}, |
| 11774 | {32 * 1024, 1}, |
| 11775 | {8 * 1024, 2}, |
| 11776 | {16 * 1024, 1}, |
| 11777 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11778 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11779 | } |
| 11780 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11781 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11782 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11783 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11784 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11785 | }, |
| 11786 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11787 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11788 | .vendor = "SyncMOS/MoselVitelic", |
| 11789 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11790 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11791 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11792 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11793 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11794 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11795 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11796 | .tested = TEST_UNTESTED, |
| 11797 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11798 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11799 | .block_erasers = |
| 11800 | { |
| 11801 | { |
| 11802 | .eraseblocks = { {512, 256} }, |
| 11803 | .block_erase = erase_sector_jedec, |
| 11804 | }, { |
| 11805 | .eraseblocks = { {128 * 1024, 1} }, |
| 11806 | .block_erase = erase_chip_block_jedec, |
| 11807 | }, |
| 11808 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11809 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11810 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11811 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11812 | }, |
| 11813 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11814 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11815 | .vendor = "SyncMOS/MoselVitelic", |
| 11816 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11817 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11818 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11819 | .model_id = SM_MVC_29C51001T, |
| 11820 | .total_size = 128, |
| 11821 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11822 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11823 | .tested = TEST_UNTESTED, |
| 11824 | .probe = probe_jedec, |
| 11825 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11826 | .block_erasers = |
| 11827 | { |
| 11828 | { |
| 11829 | .eraseblocks = { {512, 256} }, |
| 11830 | .block_erase = erase_sector_jedec, |
| 11831 | }, { |
| 11832 | .eraseblocks = { {128 * 1024, 1} }, |
| 11833 | .block_erase = erase_chip_block_jedec, |
| 11834 | }, |
| 11835 | }, |
| 11836 | .write = write_jedec_1, |
| 11837 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11838 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11839 | }, |
| 11840 | |
| 11841 | { |
| 11842 | .vendor = "SyncMOS/MoselVitelic", |
| 11843 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11844 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11845 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11846 | .model_id = SM_MVC_29C51002B, |
| 11847 | .total_size = 256, |
| 11848 | .page_size = 512, |
| 11849 | .feature_bits = FEATURE_EITHER_RESET, |
| 11850 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11851 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11852 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11853 | .block_erasers = |
| 11854 | { |
| 11855 | { |
| 11856 | .eraseblocks = { {512, 512} }, |
| 11857 | .block_erase = erase_sector_jedec, |
| 11858 | }, { |
| 11859 | .eraseblocks = { {256 * 1024, 1} }, |
| 11860 | .block_erase = erase_chip_block_jedec, |
| 11861 | }, |
| 11862 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11863 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11864 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11865 | }, |
| 11866 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11867 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11868 | .vendor = "SyncMOS/MoselVitelic", |
| 11869 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11870 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11871 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11872 | .model_id = SM_MVC_29C51002T, |
| 11873 | .total_size = 256, |
| 11874 | .page_size = 512, |
| 11875 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11876 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11877 | .probe = probe_jedec, |
| 11878 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11879 | .block_erasers = |
| 11880 | { |
| 11881 | { |
| 11882 | .eraseblocks = { {512, 512} }, |
| 11883 | .block_erase = erase_sector_jedec, |
| 11884 | }, { |
| 11885 | .eraseblocks = { {256 * 1024, 1} }, |
| 11886 | .block_erase = erase_chip_block_jedec, |
| 11887 | }, |
| 11888 | }, |
| 11889 | .write = write_jedec_1, |
| 11890 | .read = read_memmapped, |
| 11891 | }, |
| 11892 | |
| 11893 | { |
| 11894 | .vendor = "SyncMOS/MoselVitelic", |
| 11895 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11896 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11897 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11898 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11899 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11900 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11901 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11902 | .tested = TEST_UNTESTED, |
| 11903 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11904 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11905 | .block_erasers = |
| 11906 | { |
| 11907 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11908 | .eraseblocks = { {1024, 512} }, |
| 11909 | .block_erase = erase_sector_jedec, |
| 11910 | }, { |
| 11911 | .eraseblocks = { {512 * 1024, 1} }, |
| 11912 | .block_erase = erase_chip_block_jedec, |
| 11913 | }, |
| 11914 | }, |
| 11915 | .write = write_jedec_1, |
| 11916 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11917 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11918 | }, |
| 11919 | |
| 11920 | { |
| 11921 | .vendor = "SyncMOS/MoselVitelic", |
| 11922 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11923 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11924 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11925 | .model_id = SM_MVC_29C51004T, |
| 11926 | .total_size = 512, |
| 11927 | .page_size = 1024, |
| 11928 | .feature_bits = FEATURE_EITHER_RESET, |
| 11929 | .tested = TEST_UNTESTED, |
| 11930 | .probe = probe_jedec, |
| 11931 | .probe_timing = TIMING_ZERO, |
| 11932 | .block_erasers = |
| 11933 | { |
| 11934 | { |
| 11935 | .eraseblocks = { {1024, 512} }, |
| 11936 | .block_erase = erase_sector_jedec, |
| 11937 | }, { |
| 11938 | .eraseblocks = { {512 * 1024, 1} }, |
| 11939 | .block_erase = erase_chip_block_jedec, |
| 11940 | }, |
| 11941 | }, |
| 11942 | .write = write_jedec_1, |
| 11943 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11944 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11945 | }, |
| 11946 | |
| 11947 | { |
| 11948 | .vendor = "SyncMOS/MoselVitelic", |
| 11949 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11950 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11951 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11952 | .model_id = SM_MVC_29C31004B, |
| 11953 | .total_size = 512, |
| 11954 | .page_size = 1024, |
| 11955 | .feature_bits = FEATURE_EITHER_RESET, |
| 11956 | .tested = TEST_UNTESTED, |
| 11957 | .probe = probe_jedec, |
| 11958 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11959 | .block_erasers = |
| 11960 | { |
| 11961 | { |
| 11962 | .eraseblocks = { {1024, 512} }, |
| 11963 | .block_erase = erase_sector_jedec, |
| 11964 | }, { |
| 11965 | .eraseblocks = { {512 * 1024, 1} }, |
| 11966 | .block_erase = erase_chip_block_jedec, |
| 11967 | }, |
| 11968 | }, |
| 11969 | .write = write_jedec_1, |
| 11970 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11971 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11972 | }, |
| 11973 | |
| 11974 | { |
| 11975 | .vendor = "SyncMOS/MoselVitelic", |
| 11976 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11977 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11978 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11979 | .model_id = SM_MVC_29C31004T, |
| 11980 | .total_size = 512, |
| 11981 | .page_size = 1024, |
| 11982 | .feature_bits = FEATURE_EITHER_RESET, |
| 11983 | .tested = TEST_UNTESTED, |
| 11984 | .probe = probe_jedec, |
| 11985 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11986 | .block_erasers = |
| 11987 | { |
| 11988 | { |
| 11989 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11990 | .block_erase = erase_sector_jedec, |
| 11991 | }, { |
| 11992 | .eraseblocks = { {512 * 1024, 1} }, |
| 11993 | .block_erase = erase_chip_block_jedec, |
| 11994 | }, |
| 11995 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11996 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11997 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11998 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11999 | }, |
| 12000 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12001 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 12002 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12003 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12004 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12005 | .manufacture_id = TI_OLD_ID, |
| 12006 | .model_id = TI_TMS29F002RB, |
| 12007 | .total_size = 256, |
| 12008 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12009 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12010 | .tested = TEST_UNTESTED, |
| 12011 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12012 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12013 | .block_erasers = |
| 12014 | { |
| 12015 | { |
| 12016 | .eraseblocks = { |
| 12017 | {16 * 1024, 1}, |
| 12018 | {8 * 1024, 2}, |
| 12019 | {32 * 1024, 1}, |
| 12020 | {64 * 1024, 3}, |
| 12021 | }, |
| 12022 | .block_erase = erase_sector_jedec, |
| 12023 | }, { |
| 12024 | .eraseblocks = { {256 * 1024, 1} }, |
| 12025 | .block_erase = erase_chip_block_jedec, |
| 12026 | }, |
| 12027 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12028 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12029 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12030 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12031 | }, |
| 12032 | |
| 12033 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 12034 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12035 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12036 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12037 | .manufacture_id = TI_OLD_ID, |
| 12038 | .model_id = TI_TMS29F002RT, |
| 12039 | .total_size = 256, |
| 12040 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12041 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12042 | .tested = TEST_UNTESTED, |
| 12043 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12044 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12045 | .block_erasers = |
| 12046 | { |
| 12047 | { |
| 12048 | .eraseblocks = { |
| 12049 | {64 * 1024, 3}, |
| 12050 | {32 * 1024, 1}, |
| 12051 | {8 * 1024, 2}, |
| 12052 | {16 * 1024, 1}, |
| 12053 | }, |
| 12054 | .block_erase = erase_sector_jedec, |
| 12055 | }, { |
| 12056 | .eraseblocks = { {256 * 1024, 1} }, |
| 12057 | .block_erase = erase_chip_block_jedec, |
| 12058 | }, |
| 12059 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12060 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12061 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12062 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 12063 | }, |
| 12064 | |
| 12065 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12066 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12067 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12068 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12069 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12070 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12071 | .total_size = 1024, |
| 12072 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12073 | /* supports SFDP */ |
| 12074 | /* 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] | 12075 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 12076 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12077 | .probe = probe_spi_rdid, |
| 12078 | .probe_timing = TIMING_ZERO, |
| 12079 | .block_erasers = |
| 12080 | { |
| 12081 | { |
| 12082 | .eraseblocks = { {4 * 1024, 256} }, |
| 12083 | .block_erase = spi_block_erase_20, |
| 12084 | }, { |
| 12085 | .eraseblocks = { {32 * 1024, 32} }, |
| 12086 | .block_erase = spi_block_erase_52, |
| 12087 | }, { |
| 12088 | .eraseblocks = { {64 * 1024, 16} }, |
| 12089 | .block_erase = spi_block_erase_d8, |
| 12090 | }, { |
| 12091 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12092 | .block_erase = spi_block_erase_60, |
| 12093 | }, { |
| 12094 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12095 | .block_erase = spi_block_erase_c7, |
| 12096 | } |
| 12097 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12098 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12099 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12100 | .write = spi_chip_write_256, |
| 12101 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12102 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12103 | }, |
| 12104 | |
| 12105 | { |
| 12106 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12107 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12108 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12109 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12110 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12111 | .total_size = 2048, |
| 12112 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12113 | /* supports SFDP */ |
| 12114 | /* 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] | 12115 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12116 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12117 | .probe = probe_spi_rdid, |
| 12118 | .probe_timing = TIMING_ZERO, |
| 12119 | .block_erasers = |
| 12120 | { |
| 12121 | { |
| 12122 | .eraseblocks = { {4 * 1024, 512} }, |
| 12123 | .block_erase = spi_block_erase_20, |
| 12124 | }, { |
| 12125 | .eraseblocks = { {32 * 1024, 64} }, |
| 12126 | .block_erase = spi_block_erase_52, |
| 12127 | }, { |
| 12128 | .eraseblocks = { {64 * 1024, 32} }, |
| 12129 | .block_erase = spi_block_erase_d8, |
| 12130 | }, { |
| 12131 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12132 | .block_erase = spi_block_erase_60, |
| 12133 | }, { |
| 12134 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12135 | .block_erase = spi_block_erase_c7, |
| 12136 | } |
| 12137 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12138 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12139 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12140 | .write = spi_chip_write_256, |
| 12141 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12142 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12143 | }, |
| 12144 | |
| 12145 | { |
| 12146 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12147 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12148 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12149 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12150 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12151 | .total_size = 4096, |
| 12152 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12153 | /* supports SFDP */ |
| 12154 | /* 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] | 12155 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 12156 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12157 | .probe = probe_spi_rdid, |
| 12158 | .probe_timing = TIMING_ZERO, |
| 12159 | .block_erasers = |
| 12160 | { |
| 12161 | { |
| 12162 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12163 | .block_erase = spi_block_erase_20, |
| 12164 | }, { |
| 12165 | .eraseblocks = { {32 * 1024, 128} }, |
| 12166 | .block_erase = spi_block_erase_52, |
| 12167 | }, { |
| 12168 | .eraseblocks = { {64 * 1024, 64} }, |
| 12169 | .block_erase = spi_block_erase_d8, |
| 12170 | }, { |
| 12171 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12172 | .block_erase = spi_block_erase_60, |
| 12173 | }, { |
| 12174 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12175 | .block_erase = spi_block_erase_c7, |
| 12176 | } |
| 12177 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12178 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12179 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12180 | .write = spi_chip_write_256, |
| 12181 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12182 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12183 | }, |
| 12184 | |
| 12185 | { |
| 12186 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12187 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12188 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12189 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12190 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12191 | .total_size = 8192, |
| 12192 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12193 | /* supports SFDP */ |
| 12194 | /* 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] | 12195 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 12196 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12197 | .probe = probe_spi_rdid, |
| 12198 | .probe_timing = TIMING_ZERO, |
| 12199 | .block_erasers = |
| 12200 | { |
| 12201 | { |
| 12202 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12203 | .block_erase = spi_block_erase_20, |
| 12204 | }, { |
| 12205 | .eraseblocks = { {32 * 1024, 256} }, |
| 12206 | .block_erase = spi_block_erase_52, |
| 12207 | }, { |
| 12208 | .eraseblocks = { {64 * 1024, 128} }, |
| 12209 | .block_erase = spi_block_erase_d8, |
| 12210 | }, { |
| 12211 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12212 | .block_erase = spi_block_erase_60, |
| 12213 | }, { |
| 12214 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12215 | .block_erase = spi_block_erase_c7, |
| 12216 | } |
| 12217 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12218 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12219 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12220 | .write = spi_chip_write_256, |
| 12221 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12222 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12223 | }, |
| 12224 | |
| 12225 | { |
| 12226 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12227 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12228 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12229 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12230 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12231 | .total_size = 16384, |
| 12232 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12233 | /* supports SFDP */ |
| 12234 | /* 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] | 12235 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12236 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12237 | .probe = probe_spi_rdid, |
| 12238 | .probe_timing = TIMING_ZERO, |
| 12239 | .block_erasers = |
| 12240 | { |
| 12241 | { |
| 12242 | .eraseblocks = { {4 * 1024, 4096} }, |
| 12243 | .block_erase = spi_block_erase_20, |
| 12244 | }, { |
| 12245 | .eraseblocks = { {32 * 1024, 512} }, |
| 12246 | .block_erase = spi_block_erase_52, |
| 12247 | }, { |
| 12248 | .eraseblocks = { {64 * 1024, 256} }, |
| 12249 | .block_erase = spi_block_erase_d8, |
| 12250 | }, { |
| 12251 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 12252 | .block_erase = spi_block_erase_60, |
| 12253 | }, { |
| 12254 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 12255 | .block_erase = spi_block_erase_c7, |
| 12256 | } |
| 12257 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12258 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12259 | .unlock = spi_disable_blockprotect, |
| 12260 | .write = spi_chip_write_256, |
| 12261 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12262 | .voltage = {2700, 3600}, |
| 12263 | }, |
| 12264 | |
| 12265 | { |
| 12266 | .vendor = "Winbond", |
| 12267 | .name = "W25Q20.W", |
| 12268 | .bustype = BUS_SPI, |
| 12269 | .manufacture_id = WINBOND_NEX_ID, |
| 12270 | .model_id = WINBOND_NEX_W25Q20_W, |
| 12271 | .total_size = 256, |
| 12272 | .page_size = 256, |
| 12273 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12274 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12275 | .tested = TEST_UNTESTED, |
| 12276 | .probe = probe_spi_rdid, |
| 12277 | .probe_timing = TIMING_ZERO, |
| 12278 | .block_erasers = |
| 12279 | { |
| 12280 | { |
| 12281 | .eraseblocks = { {4 * 1024, 64} }, |
| 12282 | .block_erase = spi_block_erase_20, |
| 12283 | }, { |
| 12284 | .eraseblocks = { {32 * 1024, 8} }, |
| 12285 | .block_erase = spi_block_erase_52, |
| 12286 | }, { |
| 12287 | .eraseblocks = { {64 * 1024, 4} }, |
| 12288 | .block_erase = spi_block_erase_d8, |
| 12289 | }, { |
| 12290 | .eraseblocks = { {256 * 1024, 1} }, |
| 12291 | .block_erase = spi_block_erase_60, |
| 12292 | }, { |
| 12293 | .eraseblocks = { {256 * 1024, 1} }, |
| 12294 | .block_erase = spi_block_erase_c7, |
| 12295 | } |
| 12296 | }, |
| 12297 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12298 | .unlock = spi_disable_blockprotect, |
| 12299 | .write = spi_chip_write_256, |
| 12300 | .read = spi_chip_read, |
| 12301 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12302 | }, |
| 12303 | |
| 12304 | { |
| 12305 | .vendor = "Winbond", |
| 12306 | .name = "W25Q40.W", |
| 12307 | .bustype = BUS_SPI, |
| 12308 | .manufacture_id = WINBOND_NEX_ID, |
| 12309 | .model_id = WINBOND_NEX_W25Q40_W, |
| 12310 | .total_size = 512, |
| 12311 | .page_size = 256, |
| 12312 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12313 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12314 | .tested = TEST_UNTESTED, |
| 12315 | .probe = probe_spi_rdid, |
| 12316 | .probe_timing = TIMING_ZERO, |
| 12317 | .block_erasers = |
| 12318 | { |
| 12319 | { |
| 12320 | .eraseblocks = { {4 * 1024, 128} }, |
| 12321 | .block_erase = spi_block_erase_20, |
| 12322 | }, { |
| 12323 | .eraseblocks = { {32 * 1024, 16} }, |
| 12324 | .block_erase = spi_block_erase_52, |
| 12325 | }, { |
| 12326 | .eraseblocks = { {64 * 1024, 8} }, |
| 12327 | .block_erase = spi_block_erase_d8, |
| 12328 | }, { |
| 12329 | .eraseblocks = { {512 * 1024, 1} }, |
| 12330 | .block_erase = spi_block_erase_60, |
| 12331 | }, { |
| 12332 | .eraseblocks = { {512 * 1024, 1} }, |
| 12333 | .block_erase = spi_block_erase_c7, |
| 12334 | } |
| 12335 | }, |
| 12336 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12337 | .unlock = spi_disable_blockprotect, |
| 12338 | .write = spi_chip_write_256, |
| 12339 | .read = spi_chip_read, |
| 12340 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12341 | }, |
| 12342 | |
| 12343 | { |
| 12344 | .vendor = "Winbond", |
| 12345 | .name = "W25Q80.W", |
| 12346 | .bustype = BUS_SPI, |
| 12347 | .manufacture_id = WINBOND_NEX_ID, |
| 12348 | .model_id = WINBOND_NEX_W25Q80_W, |
| 12349 | .total_size = 1024, |
| 12350 | .page_size = 256, |
| 12351 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12352 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12353 | .tested = TEST_UNTESTED, |
| 12354 | .probe = probe_spi_rdid, |
| 12355 | .probe_timing = TIMING_ZERO, |
| 12356 | .block_erasers = |
| 12357 | { |
| 12358 | { |
| 12359 | .eraseblocks = { {4 * 1024, 256} }, |
| 12360 | .block_erase = spi_block_erase_20, |
| 12361 | }, { |
| 12362 | .eraseblocks = { {32 * 1024, 32} }, |
| 12363 | .block_erase = spi_block_erase_52, |
| 12364 | }, { |
| 12365 | .eraseblocks = { {64 * 1024, 16} }, |
| 12366 | .block_erase = spi_block_erase_d8, |
| 12367 | }, { |
| 12368 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 12369 | .block_erase = spi_block_erase_60, |
| 12370 | }, { |
| 12371 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 12372 | .block_erase = spi_block_erase_c7, |
| 12373 | } |
| 12374 | }, |
| 12375 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12376 | .unlock = spi_disable_blockprotect, |
| 12377 | .write = spi_chip_write_256, |
| 12378 | .read = spi_chip_read, |
| 12379 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12380 | }, |
| 12381 | |
| 12382 | { |
| 12383 | .vendor = "Winbond", |
| 12384 | .name = "W25Q16.W", |
| 12385 | .bustype = BUS_SPI, |
| 12386 | .manufacture_id = WINBOND_NEX_ID, |
| 12387 | .model_id = WINBOND_NEX_W25Q16_W, |
| 12388 | .total_size = 2048, |
| 12389 | .page_size = 256, |
| 12390 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12391 | /* QPI enable 0x38, disable 0xFF */ |
| 12392 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 12393 | .tested = TEST_UNTESTED, |
| 12394 | .probe = probe_spi_rdid, |
| 12395 | .probe_timing = TIMING_ZERO, |
| 12396 | .block_erasers = |
| 12397 | { |
| 12398 | { |
| 12399 | .eraseblocks = { {4 * 1024, 512} }, |
| 12400 | .block_erase = spi_block_erase_20, |
| 12401 | }, { |
| 12402 | .eraseblocks = { {32 * 1024, 64} }, |
| 12403 | .block_erase = spi_block_erase_52, |
| 12404 | }, { |
| 12405 | .eraseblocks = { {64 * 1024, 32} }, |
| 12406 | .block_erase = spi_block_erase_d8, |
| 12407 | }, { |
| 12408 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12409 | .block_erase = spi_block_erase_60, |
| 12410 | }, { |
| 12411 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12412 | .block_erase = spi_block_erase_c7, |
| 12413 | } |
| 12414 | }, |
| 12415 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12416 | .unlock = spi_disable_blockprotect, |
| 12417 | .write = spi_chip_write_256, |
| 12418 | .read = spi_chip_read, |
| 12419 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12420 | }, |
| 12421 | |
| 12422 | { |
| 12423 | .vendor = "Winbond", |
| 12424 | .name = "W25Q32.W", |
| 12425 | .bustype = BUS_SPI, |
| 12426 | .manufacture_id = WINBOND_NEX_ID, |
| 12427 | .model_id = WINBOND_NEX_W25Q32_W, |
| 12428 | .total_size = 4096, |
| 12429 | .page_size = 256, |
| 12430 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12431 | /* QPI enable 0x38, disable 0xFF */ |
| 12432 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 12433 | .tested = TEST_OK_PREW, |
| 12434 | .probe = probe_spi_rdid, |
| 12435 | .probe_timing = TIMING_ZERO, |
| 12436 | .block_erasers = |
| 12437 | { |
| 12438 | { |
| 12439 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12440 | .block_erase = spi_block_erase_20, |
| 12441 | }, { |
| 12442 | .eraseblocks = { {32 * 1024, 128} }, |
| 12443 | .block_erase = spi_block_erase_52, |
| 12444 | }, { |
| 12445 | .eraseblocks = { {64 * 1024, 64} }, |
| 12446 | .block_erase = spi_block_erase_d8, |
| 12447 | }, { |
| 12448 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12449 | .block_erase = spi_block_erase_60, |
| 12450 | }, { |
| 12451 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12452 | .block_erase = spi_block_erase_c7, |
| 12453 | } |
| 12454 | }, |
| 12455 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12456 | .unlock = spi_disable_blockprotect, |
| 12457 | .write = spi_chip_write_256, |
| 12458 | .read = spi_chip_read, |
| 12459 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12460 | }, |
| 12461 | |
| 12462 | { |
| 12463 | .vendor = "Winbond", |
| 12464 | .name = "W25Q64.W", |
| 12465 | .bustype = BUS_SPI, |
| 12466 | .manufacture_id = WINBOND_NEX_ID, |
| 12467 | .model_id = WINBOND_NEX_W25Q64_W, |
| 12468 | .total_size = 8192, |
| 12469 | .page_size = 256, |
| 12470 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12471 | /* QPI enable 0x38, disable 0xFF */ |
| 12472 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12473 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12474 | .probe = probe_spi_rdid, |
| 12475 | .probe_timing = TIMING_ZERO, |
| 12476 | .block_erasers = |
| 12477 | { |
| 12478 | { |
| 12479 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12480 | .block_erase = spi_block_erase_20, |
| 12481 | }, { |
| 12482 | .eraseblocks = { {32 * 1024, 256} }, |
| 12483 | .block_erase = spi_block_erase_52, |
| 12484 | }, { |
| 12485 | .eraseblocks = { {64 * 1024, 128} }, |
| 12486 | .block_erase = spi_block_erase_d8, |
| 12487 | }, { |
| 12488 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12489 | .block_erase = spi_block_erase_60, |
| 12490 | }, { |
| 12491 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12492 | .block_erase = spi_block_erase_c7, |
| 12493 | } |
| 12494 | }, |
| 12495 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12496 | .unlock = spi_disable_blockprotect, |
| 12497 | .write = spi_chip_write_256, |
| 12498 | .read = spi_chip_read, |
| 12499 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12500 | }, |
| 12501 | |
| 12502 | { |
| 12503 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12504 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12505 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12506 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12507 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12508 | .total_size = 128, |
| 12509 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12510 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12511 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12512 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12513 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12514 | .block_erasers = |
| 12515 | { |
| 12516 | { |
| 12517 | .eraseblocks = { {4 * 1024, 32} }, |
| 12518 | .block_erase = spi_block_erase_20, |
| 12519 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12520 | .eraseblocks = { {64 * 1024, 2} }, |
| 12521 | .block_erase = spi_block_erase_d8, |
| 12522 | }, { |
| 12523 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12524 | .block_erase = spi_block_erase_c7, |
| 12525 | } |
| 12526 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12527 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12528 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12529 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12530 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12531 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12532 | }, |
| 12533 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12534 | { |
| 12535 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12536 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12537 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12538 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12539 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12540 | .total_size = 256, |
| 12541 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12542 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12543 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12544 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12545 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12546 | .block_erasers = |
| 12547 | { |
| 12548 | { |
| 12549 | .eraseblocks = { {4 * 1024, 64} }, |
| 12550 | .block_erase = spi_block_erase_20, |
| 12551 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12552 | .eraseblocks = { {64 * 1024, 4} }, |
| 12553 | .block_erase = spi_block_erase_d8, |
| 12554 | }, { |
| 12555 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12556 | .block_erase = spi_block_erase_c7, |
| 12557 | } |
| 12558 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12559 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12560 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12561 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12562 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12563 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12564 | }, |
| 12565 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12566 | { |
| 12567 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12568 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12569 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12570 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12571 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12572 | .total_size = 512, |
| 12573 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12574 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12575 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12576 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12577 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12578 | .block_erasers = |
| 12579 | { |
| 12580 | { |
| 12581 | .eraseblocks = { {4 * 1024, 128} }, |
| 12582 | .block_erase = spi_block_erase_20, |
| 12583 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12584 | .eraseblocks = { {64 * 1024, 8} }, |
| 12585 | .block_erase = spi_block_erase_d8, |
| 12586 | }, { |
| 12587 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12588 | .block_erase = spi_block_erase_c7, |
| 12589 | } |
| 12590 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12591 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12592 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12593 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12594 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12595 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12596 | }, |
| 12597 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12598 | { |
| 12599 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12600 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12601 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12602 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12603 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12604 | .total_size = 1024, |
| 12605 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12606 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 12607 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12608 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12609 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12610 | .block_erasers = |
| 12611 | { |
| 12612 | { |
| 12613 | .eraseblocks = { {4 * 1024, 256} }, |
| 12614 | .block_erase = spi_block_erase_20, |
| 12615 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12616 | .eraseblocks = { {64 * 1024, 16} }, |
| 12617 | .block_erase = spi_block_erase_d8, |
| 12618 | }, { |
| 12619 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12620 | .block_erase = spi_block_erase_c7, |
| 12621 | } |
| 12622 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12623 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12624 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12625 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12626 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12627 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12628 | }, |
| 12629 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12630 | { |
| 12631 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12632 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12633 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12634 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12635 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12636 | .total_size = 2048, |
| 12637 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12638 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12639 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12640 | .probe = probe_spi_rdid, |
| 12641 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12642 | .block_erasers = |
| 12643 | { |
| 12644 | { |
| 12645 | .eraseblocks = { {4 * 1024, 512} }, |
| 12646 | .block_erase = spi_block_erase_20, |
| 12647 | }, { |
| 12648 | .eraseblocks = { {32 * 1024, 64} }, |
| 12649 | .block_erase = spi_block_erase_52, |
| 12650 | }, { |
| 12651 | .eraseblocks = { {64 * 1024, 32} }, |
| 12652 | .block_erase = spi_block_erase_d8, |
| 12653 | }, { |
| 12654 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12655 | .block_erase = spi_block_erase_60, |
| 12656 | }, { |
| 12657 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12658 | .block_erase = spi_block_erase_c7, |
| 12659 | } |
| 12660 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12661 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12662 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12663 | .write = spi_chip_write_256, |
| 12664 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12665 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12666 | }, |
| 12667 | |
| 12668 | { |
| 12669 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12670 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12671 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12672 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12673 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12674 | .total_size = 4096, |
| 12675 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12676 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12677 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12678 | .probe = probe_spi_rdid, |
| 12679 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12680 | .block_erasers = |
| 12681 | { |
| 12682 | { |
| 12683 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12684 | .block_erase = spi_block_erase_20, |
| 12685 | }, { |
| 12686 | .eraseblocks = { {32 * 1024, 128} }, |
| 12687 | .block_erase = spi_block_erase_52, |
| 12688 | }, { |
| 12689 | .eraseblocks = { {64 * 1024, 64} }, |
| 12690 | .block_erase = spi_block_erase_d8, |
| 12691 | }, { |
| 12692 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12693 | .block_erase = spi_block_erase_60, |
| 12694 | }, { |
| 12695 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12696 | .block_erase = spi_block_erase_c7, |
| 12697 | } |
| 12698 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12699 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12700 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12701 | .write = spi_chip_write_256, |
| 12702 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12703 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12704 | }, |
| 12705 | |
| 12706 | { |
| 12707 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12708 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12709 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12710 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12711 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12712 | .total_size = 8192, |
| 12713 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12714 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12715 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12716 | .probe = probe_spi_rdid, |
| 12717 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12718 | .block_erasers = |
| 12719 | { |
| 12720 | { |
| 12721 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12722 | .block_erase = spi_block_erase_20, |
| 12723 | }, { |
| 12724 | .eraseblocks = { {32 * 1024, 256} }, |
| 12725 | .block_erase = spi_block_erase_52, |
| 12726 | }, { |
| 12727 | .eraseblocks = { {64 * 1024, 128} }, |
| 12728 | .block_erase = spi_block_erase_d8, |
| 12729 | }, { |
| 12730 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12731 | .block_erase = spi_block_erase_60, |
| 12732 | }, { |
| 12733 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12734 | .block_erase = spi_block_erase_c7, |
| 12735 | } |
| 12736 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12737 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12738 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12739 | .write = spi_chip_write_256, |
| 12740 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12741 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12742 | }, |
| 12743 | |
| 12744 | { |
| 12745 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12746 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12747 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12748 | .manufacture_id = WINBOND_ID, |
| 12749 | .model_id = WINBOND_W29C010, |
| 12750 | .total_size = 128, |
| 12751 | .page_size = 128, |
| 12752 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12753 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12754 | .probe = probe_w29ee011, |
| 12755 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 12756 | .block_erasers = |
| 12757 | { |
| 12758 | { |
| 12759 | .eraseblocks = { {128 * 1024, 1} }, |
| 12760 | .block_erase = erase_chip_block_jedec, |
| 12761 | } |
| 12762 | }, |
| 12763 | .write = write_jedec, |
| 12764 | .read = read_memmapped, |
| 12765 | }, |
| 12766 | |
| 12767 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 12768 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12769 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12770 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12771 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12772 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12773 | .total_size = 128, |
| 12774 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12775 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12776 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12777 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12778 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12779 | .block_erasers = |
| 12780 | { |
| 12781 | { |
| 12782 | .eraseblocks = { {128 * 1024, 1} }, |
| 12783 | .block_erase = erase_chip_block_jedec, |
| 12784 | } |
| 12785 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12786 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12787 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12788 | }, |
| 12789 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12790 | { |
| 12791 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12792 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12793 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12794 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12795 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12796 | .total_size = 256, |
| 12797 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12798 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12799 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12800 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12801 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12802 | .block_erasers = |
| 12803 | { |
| 12804 | { |
| 12805 | .eraseblocks = { {256 * 1024, 1} }, |
| 12806 | .block_erase = erase_chip_block_jedec, |
| 12807 | } |
| 12808 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12809 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12810 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12811 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12812 | }, |
| 12813 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12814 | { |
| 12815 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12816 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12817 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12818 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12819 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12820 | .total_size = 512, |
| 12821 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12822 | .feature_bits = FEATURE_LONG_RESET, |
| 12823 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12824 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12825 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12826 | .block_erasers = |
| 12827 | { |
| 12828 | { |
| 12829 | .eraseblocks = { {512 * 1024, 1} }, |
| 12830 | .block_erase = erase_chip_block_jedec, |
| 12831 | } |
| 12832 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12833 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12834 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12835 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12836 | }, |
| 12837 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12838 | { |
| 12839 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 12840 | .name = "W39F010", |
| 12841 | .bustype = BUS_PARALLEL, |
| 12842 | .manufacture_id = WINBOND_ID, |
| 12843 | .model_id = WINBOND_W39F010, |
| 12844 | .total_size = 128, |
| 12845 | .page_size = 4 * 1024, |
| 12846 | .feature_bits = FEATURE_EITHER_RESET, |
| 12847 | .tested = TEST_OK_PREW, |
| 12848 | .probe = probe_jedec, |
| 12849 | .probe_timing = 10, |
| 12850 | .block_erasers = |
| 12851 | { |
| 12852 | { |
| 12853 | .eraseblocks = { {4 * 1024, 32} }, |
| 12854 | .block_erase = erase_block_jedec, |
| 12855 | }, { |
| 12856 | .eraseblocks = { {128 * 1024, 1} }, |
| 12857 | .block_erase = erase_chip_block_jedec, |
| 12858 | } |
| 12859 | }, |
| 12860 | .printlock = printlock_w39f010, |
| 12861 | .write = write_jedec_1, |
| 12862 | .read = read_memmapped, |
| 12863 | .voltage = {4500, 5500}, |
| 12864 | }, |
| 12865 | |
| 12866 | { |
| 12867 | .vendor = "Winbond", |
| 12868 | .name = "W39L010", |
| 12869 | .bustype = BUS_PARALLEL, |
| 12870 | .manufacture_id = WINBOND_ID, |
| 12871 | .model_id = WINBOND_W39L010, |
| 12872 | .total_size = 128, |
| 12873 | .page_size = 4 * 1024, |
| 12874 | .feature_bits = FEATURE_EITHER_RESET, |
| 12875 | .tested = TEST_UNTESTED, |
| 12876 | .probe = probe_jedec, |
| 12877 | .probe_timing = 10, |
| 12878 | .block_erasers = |
| 12879 | { |
| 12880 | { |
| 12881 | .eraseblocks = { {4 * 1024, 32} }, |
| 12882 | .block_erase = erase_block_jedec, |
| 12883 | }, { |
| 12884 | .eraseblocks = { {128 * 1024, 1} }, |
| 12885 | .block_erase = erase_chip_block_jedec, |
| 12886 | } |
| 12887 | }, |
| 12888 | .printlock = printlock_w39l010, |
| 12889 | .write = write_jedec_1, |
| 12890 | .read = read_memmapped, |
| 12891 | .voltage = {3000, 3600}, |
| 12892 | }, |
| 12893 | |
| 12894 | { |
| 12895 | .vendor = "Winbond", |
| 12896 | .name = "W39L020", |
| 12897 | .bustype = BUS_PARALLEL, |
| 12898 | .manufacture_id = WINBOND_ID, |
| 12899 | .model_id = WINBOND_W39L020, |
| 12900 | .total_size = 256, |
| 12901 | .page_size = 4 * 1024, |
| 12902 | .feature_bits = FEATURE_EITHER_RESET, |
| 12903 | .tested = TEST_UNTESTED, |
| 12904 | .probe = probe_jedec, |
| 12905 | .probe_timing = 10, |
| 12906 | .block_erasers = |
| 12907 | { |
| 12908 | { |
| 12909 | .eraseblocks = { {4 * 1024, 64} }, |
| 12910 | .block_erase = erase_block_jedec, |
| 12911 | }, { |
| 12912 | .eraseblocks = { {64 * 1024, 4} }, |
| 12913 | .block_erase = erase_sector_jedec, |
| 12914 | }, { |
| 12915 | .eraseblocks = { {256 * 1024, 1} }, |
| 12916 | .block_erase = erase_chip_block_jedec, |
| 12917 | } |
| 12918 | }, |
| 12919 | .printlock = printlock_w39l020, |
| 12920 | .write = write_jedec_1, |
| 12921 | .read = read_memmapped, |
| 12922 | .voltage = {3000, 3600}, |
| 12923 | }, |
| 12924 | |
| 12925 | { |
| 12926 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12927 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12928 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12929 | .manufacture_id = WINBOND_ID, |
| 12930 | .model_id = WINBOND_W39L040, |
| 12931 | .total_size = 512, |
| 12932 | .page_size = 64 * 1024, |
| 12933 | .feature_bits = FEATURE_EITHER_RESET, |
| 12934 | .tested = TEST_OK_PR, |
| 12935 | .probe = probe_jedec, |
| 12936 | .probe_timing = 10, |
| 12937 | .block_erasers = |
| 12938 | { |
| 12939 | { |
| 12940 | .eraseblocks = { {4 * 1024, 128} }, |
| 12941 | .block_erase = erase_block_jedec, |
| 12942 | }, { |
| 12943 | .eraseblocks = { {64 * 1024, 8} }, |
| 12944 | .block_erase = erase_sector_jedec, |
| 12945 | }, { |
| 12946 | .eraseblocks = { {512 * 1024, 1} }, |
| 12947 | .block_erase = erase_chip_block_jedec, |
| 12948 | } |
| 12949 | }, |
| 12950 | .printlock = printlock_w39l040, |
| 12951 | .write = write_jedec_1, |
| 12952 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12953 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12954 | }, |
| 12955 | |
| 12956 | { |
| 12957 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12958 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12959 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12960 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12961 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12962 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12963 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12964 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12965 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12966 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12967 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12968 | .block_erasers = |
| 12969 | { |
| 12970 | { |
| 12971 | .eraseblocks = { {64 * 1024, 8} }, |
| 12972 | .block_erase = erase_sector_jedec, |
| 12973 | }, { |
| 12974 | .eraseblocks = { {512 * 1024, 1} }, |
| 12975 | .block_erase = erase_chip_block_jedec, |
| 12976 | } |
| 12977 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12978 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12979 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12980 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12981 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12982 | }, |
| 12983 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12984 | { |
| 12985 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12986 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12987 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12988 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12989 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12990 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12991 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12992 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12993 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12994 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12995 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12996 | .block_erasers = |
| 12997 | { |
| 12998 | { |
| 12999 | .eraseblocks = { {64 * 1024, 8} }, |
| 13000 | .block_erase = erase_sector_jedec, |
| 13001 | }, { |
| 13002 | .eraseblocks = { {512 * 1024, 1} }, |
| 13003 | .block_erase = erase_chip_block_jedec, |
| 13004 | } |
| 13005 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13006 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13007 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13008 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13009 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13010 | }, |
| 13011 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13012 | { |
| 13013 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13014 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13015 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13016 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13017 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13018 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13019 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13020 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13021 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13022 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13023 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13024 | .block_erasers = |
| 13025 | { |
| 13026 | { |
| 13027 | .eraseblocks = { {64 * 1024, 8} }, |
| 13028 | .block_erase = erase_sector_jedec, |
| 13029 | }, { |
| 13030 | .eraseblocks = { {512 * 1024, 1} }, |
| 13031 | .block_erase = erase_chip_block_jedec, |
| 13032 | } |
| 13033 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 13034 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13035 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13036 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13037 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13038 | }, |
| 13039 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13040 | { |
| 13041 | .vendor = "Winbond", |
| 13042 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13043 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13044 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13045 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13046 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13047 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 13048 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 13049 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13050 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 13051 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13052 | .block_erasers = |
| 13053 | { |
| 13054 | { |
| 13055 | .eraseblocks = { {4 * 1024, 128} }, |
| 13056 | .block_erase = erase_block_jedec, |
| 13057 | }, { |
| 13058 | .eraseblocks = { {64 * 1024, 8} }, |
| 13059 | .block_erase = erase_sector_jedec, |
| 13060 | }, { |
| 13061 | .eraseblocks = { {512 * 1024, 1} }, |
| 13062 | .block_erase = erase_chip_block_jedec, |
| 13063 | } |
| 13064 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13065 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 13066 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13067 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13068 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13069 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13070 | }, |
| 13071 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13072 | { |
| 13073 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13074 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13075 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13076 | .manufacture_id = WINBOND_ID, |
| 13077 | .model_id = WINBOND_W39V040B, |
| 13078 | .total_size = 512, |
| 13079 | .page_size = 64 * 1024, |
| 13080 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13081 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13082 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13083 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13084 | .block_erasers = |
| 13085 | { |
| 13086 | { |
| 13087 | .eraseblocks = { {64 * 1024, 8} }, |
| 13088 | .block_erase = erase_sector_jedec, |
| 13089 | }, { |
| 13090 | .eraseblocks = { {512 * 1024, 1} }, |
| 13091 | .block_erase = erase_chip_block_jedec, |
| 13092 | } |
| 13093 | }, |
| 13094 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 13095 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13096 | .write = write_jedec_1, |
| 13097 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13098 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13099 | }, |
| 13100 | |
| 13101 | { |
| 13102 | .vendor = "Winbond", |
| 13103 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13104 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13105 | .manufacture_id = WINBOND_ID, |
| 13106 | .model_id = WINBOND_W39V040C, |
| 13107 | .total_size = 512, |
| 13108 | .page_size = 64 * 1024, |
| 13109 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 13110 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13111 | .probe = probe_jedec, |
| 13112 | .probe_timing = 10, |
| 13113 | .block_erasers = |
| 13114 | { |
| 13115 | { |
| 13116 | .eraseblocks = { {64 * 1024, 8} }, |
| 13117 | .block_erase = erase_sector_jedec, |
| 13118 | }, { |
| 13119 | .eraseblocks = { {512 * 1024, 1} }, |
| 13120 | .block_erase = erase_chip_block_jedec, |
| 13121 | } |
| 13122 | }, |
| 13123 | .printlock = printlock_w39v040fc, |
| 13124 | .write = write_jedec_1, |
| 13125 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13126 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13127 | }, |
| 13128 | |
| 13129 | { |
| 13130 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13131 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13132 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13133 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13134 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13135 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13136 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13137 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 13138 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13139 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 13140 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13141 | .block_erasers = |
| 13142 | { |
| 13143 | { |
| 13144 | .eraseblocks = { {64 * 1024, 16} }, |
| 13145 | .block_erase = erase_sector_jedec, |
| 13146 | }, { |
| 13147 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13148 | .block_erase = erase_chip_block_jedec, |
| 13149 | } |
| 13150 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13151 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13152 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13153 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13154 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13155 | }, |
| 13156 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13157 | { |
| 13158 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13159 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13160 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13161 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13162 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13163 | .total_size = 256, |
| 13164 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13165 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13166 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13167 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13168 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13169 | .block_erasers = |
| 13170 | { |
| 13171 | { |
| 13172 | .eraseblocks = { |
| 13173 | {128 * 1024, 1}, |
| 13174 | {96 * 1024, 1}, |
| 13175 | {8 * 1024, 2}, |
| 13176 | {16 * 1024, 1}, |
| 13177 | }, |
| 13178 | .block_erase = erase_sector_jedec, |
| 13179 | }, { |
| 13180 | .eraseblocks = { {256 * 1024, 1} }, |
| 13181 | .block_erase = erase_chip_block_jedec, |
| 13182 | } |
| 13183 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13184 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13185 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13186 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13187 | }, |
| 13188 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13189 | { |
| 13190 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13191 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13192 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13193 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13194 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13195 | .total_size = 256, |
| 13196 | .page_size = 128, |
| 13197 | .feature_bits = FEATURE_EITHER_RESET, |
| 13198 | .tested = TEST_OK_PROBE, |
| 13199 | .probe = probe_jedec, |
| 13200 | .probe_timing = 10, |
| 13201 | .block_erasers = |
| 13202 | { |
| 13203 | { |
| 13204 | .eraseblocks = { {256 * 1024, 1} }, |
| 13205 | .block_erase = erase_chip_block_jedec, |
| 13206 | } |
| 13207 | }, |
| 13208 | .write = write_jedec_1, |
| 13209 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13210 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13211 | }, |
| 13212 | |
| 13213 | { |
| 13214 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13215 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13216 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13217 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13218 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13219 | .total_size = 256, |
| 13220 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13221 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13222 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13223 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13224 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13225 | .block_erasers = |
| 13226 | { |
| 13227 | { |
| 13228 | .eraseblocks = { |
| 13229 | {64 * 1024, 3}, |
| 13230 | {32 * 1024, 1}, |
| 13231 | {8 * 1024, 2}, |
| 13232 | {16 * 1024, 1}, |
| 13233 | }, |
| 13234 | .block_erase = erase_sector_jedec, |
| 13235 | }, { |
| 13236 | .eraseblocks = { {256 * 1024, 1} }, |
| 13237 | .block_erase = erase_chip_block_jedec, |
| 13238 | } |
| 13239 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13240 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13241 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13242 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13243 | }, |
| 13244 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13245 | { |
| 13246 | .vendor = "Winbond", |
| 13247 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13248 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13249 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13250 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13251 | .total_size = 256, |
| 13252 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13253 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13254 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13255 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13256 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13257 | .block_erasers = |
| 13258 | { |
| 13259 | { |
| 13260 | .eraseblocks = { |
| 13261 | {64 * 1024, 3}, |
| 13262 | {32 * 1024, 1}, |
| 13263 | {8 * 1024, 2}, |
| 13264 | {16 * 1024, 1}, |
| 13265 | }, |
| 13266 | .block_erase = erase_sector_jedec, |
| 13267 | }, { |
| 13268 | .eraseblocks = { {256 * 1024, 1} }, |
| 13269 | .block_erase = erase_chip_block_jedec, |
| 13270 | } |
| 13271 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13272 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13273 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13274 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13275 | }, |
| 13276 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13277 | { |
| 13278 | .vendor = "Winbond", |
| 13279 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13280 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13281 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13282 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13283 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13284 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13285 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13286 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13287 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13288 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13289 | .block_erasers = |
| 13290 | { |
| 13291 | { |
| 13292 | .eraseblocks = { {64 * 1024, 16}, }, |
| 13293 | .block_erase = erase_sector_jedec, |
| 13294 | }, { |
| 13295 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13296 | .block_erase = erase_chip_block_jedec, |
| 13297 | } |
| 13298 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13299 | .printlock = printlock_w39v080fa, |
| 13300 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13301 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13302 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13303 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13304 | }, |
| 13305 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13306 | { |
| 13307 | .vendor = "Winbond", |
| 13308 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13309 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13310 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13311 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13312 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13313 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13314 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13315 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13316 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13317 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13318 | .block_erasers = |
| 13319 | { |
| 13320 | { |
| 13321 | .eraseblocks = { {64 * 1024, 8}, }, |
| 13322 | .block_erase = erase_sector_jedec, |
| 13323 | }, { |
| 13324 | .eraseblocks = { {512 * 1024, 1} }, |
| 13325 | .block_erase = erase_chip_block_jedec, |
| 13326 | } |
| 13327 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13328 | .printlock = printlock_w39v080fa_dual, |
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 | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13331 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13332 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 13333 | |
| 13334 | { |
| 13335 | .vendor = "Unknown", |
| 13336 | .name = "SFDP-capable chip", |
| 13337 | .bustype = BUS_SPI, |
| 13338 | .manufacture_id = GENERIC_MANUF_ID, |
| 13339 | .model_id = SFDP_DEVICE_ID, |
| 13340 | /* We present our own "report this" text hence we do not |
| 13341 | * want the default "This flash part has status UNTESTED..." |
| 13342 | * text to be printed. */ |
| 13343 | .tested = TEST_OK_PREW, |
| 13344 | .probe = probe_spi_sfdp, |
| 13345 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 13346 | .read = spi_chip_read, |
| 13347 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 13348 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 13349 | /* Everything below will be set by the probing function. */ |
| 13350 | .write = NULL, |
| 13351 | .total_size = 0, |
| 13352 | .page_size = 0, |
| 13353 | .feature_bits = 0, |
| 13354 | .block_erasers = {}, |
| 13355 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13356 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13357 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 13358 | .vendor = "Programmer", |
| 13359 | .name = "Opaque flash chip", |
| 13360 | .bustype = BUS_PROG, |
| 13361 | .manufacture_id = PROGMANUF_ID, |
| 13362 | .model_id = PROGDEV_ID, |
| 13363 | .total_size = 0, |
| 13364 | .page_size = 256, |
| 13365 | /* probe is assumed to work, rest will be filled in by probe */ |
| 13366 | .tested = TEST_OK_PROBE, |
| 13367 | .probe = probe_opaque, |
| 13368 | /* eraseblock sizes will be set by the probing function */ |
| 13369 | .block_erasers = |
| 13370 | { |
| 13371 | { |
| 13372 | .block_erase = erase_opaque, |
| 13373 | } |
| 13374 | }, |
| 13375 | .write = write_opaque, |
| 13376 | .read = read_opaque, |
| 13377 | }, |
| 13378 | |
| 13379 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 13380 | .vendor = "AMIC", |
| 13381 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13382 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 13383 | .manufacture_id = AMIC_ID, |
| 13384 | .model_id = GENERIC_DEVICE_ID, |
| 13385 | .total_size = 0, |
| 13386 | .page_size = 256, |
| 13387 | .tested = TEST_BAD_PREW, |
| 13388 | .probe = probe_spi_rdid4, |
| 13389 | .probe_timing = TIMING_ZERO, |
| 13390 | .write = NULL, |
| 13391 | .read = NULL, |
| 13392 | }, |
| 13393 | |
| 13394 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13395 | .vendor = "Atmel", |
| 13396 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13397 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13398 | .manufacture_id = ATMEL_ID, |
| 13399 | .model_id = GENERIC_DEVICE_ID, |
| 13400 | .total_size = 0, |
| 13401 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13402 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13403 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13404 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13405 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13406 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13407 | }, |
| 13408 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13409 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 13410 | .vendor = "Eon", |
| 13411 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13412 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13413 | .manufacture_id = EON_ID_NOPREFIX, |
| 13414 | .model_id = GENERIC_DEVICE_ID, |
| 13415 | .total_size = 0, |
| 13416 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13417 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13418 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13419 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13420 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13421 | .read = NULL, |
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 = "Macronix", |
| 13426 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13427 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13428 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13429 | .model_id = GENERIC_DEVICE_ID, |
| 13430 | .total_size = 0, |
| 13431 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13432 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13433 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13434 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13435 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13436 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13437 | }, |
| 13438 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13439 | { |
| 13440 | .vendor = "PMC", |
| 13441 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13442 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13443 | .manufacture_id = PMC_ID, |
| 13444 | .model_id = GENERIC_DEVICE_ID, |
| 13445 | .total_size = 0, |
| 13446 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13447 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13448 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13449 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13450 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13451 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13452 | }, |
| 13453 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13454 | { |
| 13455 | .vendor = "SST", |
| 13456 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13457 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13458 | .manufacture_id = SST_ID, |
| 13459 | .model_id = GENERIC_DEVICE_ID, |
| 13460 | .total_size = 0, |
| 13461 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13462 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13463 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13464 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13465 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13466 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13467 | }, |
| 13468 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13469 | { |
| 13470 | .vendor = "ST", |
| 13471 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13472 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13473 | .manufacture_id = ST_ID, |
| 13474 | .model_id = GENERIC_DEVICE_ID, |
| 13475 | .total_size = 0, |
| 13476 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13477 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13478 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13479 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13480 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13481 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13482 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 13483 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13484 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13485 | .vendor = "Sanyo", |
| 13486 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13487 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13488 | .manufacture_id = SANYO_ID, |
| 13489 | .model_id = GENERIC_DEVICE_ID, |
| 13490 | .total_size = 0, |
| 13491 | .page_size = 256, |
| 13492 | .tested = TEST_BAD_PREW, |
| 13493 | .probe = probe_spi_rdid, |
| 13494 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13495 | .write = NULL, |
| 13496 | .read = NULL, |
| 13497 | }, |
| 13498 | |
| 13499 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13500 | .vendor = "Winbond", |
| 13501 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 13502 | .bustype = BUS_SPI, |
| 13503 | .manufacture_id = WINBOND_NEX_ID, |
| 13504 | .model_id = GENERIC_DEVICE_ID, |
| 13505 | .total_size = 0, |
| 13506 | .page_size = 256, |
| 13507 | .tested = TEST_BAD_PREW, |
| 13508 | .probe = probe_spi_rdid, |
| 13509 | .probe_timing = TIMING_ZERO, |
| 13510 | .write = NULL, |
| 13511 | .read = NULL, |
| 13512 | }, |
| 13513 | |
| 13514 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13515 | .vendor = "Generic", |
| 13516 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13517 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13518 | .manufacture_id = GENERIC_MANUF_ID, |
| 13519 | .model_id = GENERIC_DEVICE_ID, |
| 13520 | .total_size = 0, |
| 13521 | .page_size = 256, |
| 13522 | .tested = TEST_BAD_PREW, |
| 13523 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13524 | .write = NULL, |
| 13525 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 13526 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13527 | { |
| 13528 | .vendor = "Generic", |
| 13529 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13530 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13531 | .manufacture_id = GENERIC_MANUF_ID, |
| 13532 | .model_id = GENERIC_DEVICE_ID, |
| 13533 | .total_size = 0, |
| 13534 | .page_size = 256, |
| 13535 | .tested = TEST_BAD_PREW, |
| 13536 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13537 | .write = NULL, |
| 13538 | }, |
| 13539 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 13540 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 13541 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 13542 | |
| 13543 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |